matrix-dimension/web/app/shared/models/telegram.ts
Travis Ralston c0936745c0 Frontend interface for basic bridging and unbridging of chats
Requires https://github.com/tulir/mautrix-telegram/pull/235

Puppeting is scheduled to be handled in https://github.com/turt2live/matrix-dimension/issues/214

The TODO comments about asking for unbridge/permission denied will be handled in a later commit.
2018-10-17 21:09:19 -06:00

21 lines
448 B
TypeScript

export interface FE_TelegramBridge {
id: number;
upstreamId?: number;
provisionUrl?: string;
sharedSecret?: string;
isEnabled: boolean;
options?: FE_TelegramBridgeOptions;
}
export interface FE_PortalInfo {
bridged: boolean;
chatId: number;
roomId: string;
canUnbridge: boolean;
chatName: string;
}
export interface FE_TelegramBridgeOptions {
allowTgPuppets: boolean;
allowMxPuppets: boolean;
}