pins: bridge from Telegram -> Matrix

Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
This commit is contained in:
Sumner Evans
2024-10-02 11:05:02 -06:00
parent abba9bcf81
commit 083837aa9e
5 changed files with 79 additions and 0 deletions
+3
View File
@@ -183,6 +183,9 @@ func NewTelegramClient(ctx context.Context, tc *TelegramConnector, login *bridge
dispatcher.OnNotifySettings(func(ctx context.Context, e tg.Entities, update *tg.UpdateNotifySettings) error {
return client.onNotifySettings(ctx, update)
})
dispatcher.OnPinnedDialogs(func(ctx context.Context, e tg.Entities, update *tg.UpdatePinnedDialogs) error {
return client.onPinnedDialogs(ctx, update)
})
client.ScopedStore = tc.Store.GetScopedStore(telegramUserID)