2018-10-17 23:09:19 -04:00
< my-bridge-config [ bridgeComponent ] = " this " >
< ng-template # bridgeParamsTemplate >
< my-ibox [ isCollapsible ] = " false " >
< h5 class = "my-ibox-title" >
2020-10-23 07:30:20 -04:00
{{'Bridge to Telegram' | translate}}
2018-10-17 23:09:19 -04:00
< / h5 >
< div class = "my-ibox-content" >
< div * ngIf = "isBridged" >
2020-10-23 07:30:20 -04:00
{{'This room is bridged to on Telegram' | translate}} "{{ chatName }}" (< code > {{ chatId }}< / code > ) {{'on Telegram' | translate}}.
2018-10-17 23:09:19 -04:00
< div * ngIf = "canUnbridge" >
2019-07-11 00:17:16 -04:00
< button type = "button" class = "btn btn-sm btn-danger" [ disabled ] = " isUpdating "
(click)="unbridgeRoom()">
2020-10-23 07:30:20 -04:00
{{'Unbridge' | translate}}
2018-10-17 23:09:19 -04:00
< / button >
< / div >
< span * ngIf = "!canUnbridge" >
2020-10-23 07:30:20 -04:00
{{'You do not have the necessary permissions in this room to unbridge the channel.' | translate}}
2018-10-17 23:09:19 -04:00
< / span >
< / div >
< div * ngIf = "!isBridged" >
< label class = "label-block" >
Chat ID
2020-10-23 07:30:20 -04:00
< span class = "text-muted" > {{'After inviting' | translate}} < a href = "https://t.me/{{ botUsername }}" target = "_blank" > @{{ botUsername }}< / a > {{'to your Telegram chat, run the command' | translate}} < code > /id< / code > {{'in the Telegram room to get the chat ID.' | translate}}< / span >
2019-07-11 00:17:16 -04:00
< input title = "chat ID" type = "text" class = "form-control form-control-sm col-md-3"
[(ngModel)]="chatId" [disabled]="isUpdating"/>
2018-10-17 23:09:19 -04:00
< / label >
< button type = "button" class = "btn btn-sm btn-primary" [ disabled ] = " isUpdating " ( click ) = " bridgeRoom ( ) " >
Bridge
< / button >
< / div >
< / div >
< / my-ibox >
< / ng-template >
2020-10-23 07:30:20 -04:00
< / my-bridge-config >