power levels: bridge rights for group chats

Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
This commit is contained in:
Sumner Evans
2024-10-02 22:57:56 -06:00
parent 1c7e626c97
commit 7d9836c86b
4 changed files with 215 additions and 11 deletions
+3
View File
@@ -186,6 +186,9 @@ func NewTelegramClient(ctx context.Context, tc *TelegramConnector, login *bridge
dispatcher.OnPinnedDialogs(func(ctx context.Context, e tg.Entities, update *tg.UpdatePinnedDialogs) error {
return client.onPinnedDialogs(ctx, update)
})
dispatcher.OnChatDefaultBannedRights(func(ctx context.Context, e tg.Entities, update *tg.UpdateChatDefaultBannedRights) error {
return client.onChatDefaultBannedRights(ctx, e, update)
})
client.ScopedStore = tc.Store.GetScopedStore(telegramUserID)