connector: support messages sent by a channel
Signed-off-by: Sumner Evans <sumner.evans@automattic.com> Co-authored-by: Tulir Asokan <tulir@maunium.net>
This commit is contained in:
@@ -45,7 +45,7 @@ func APICallWithUpdates[U hasUpdates](ctx context.Context, t *TelegramClient, fn
|
||||
|
||||
for _, c := range resp.GetChats() {
|
||||
if channel, ok := c.(*tg.Channel); ok {
|
||||
if err := t.ScopedStore.SetAccessHash(ctx, channel.ID, channel.AccessHash); err != nil {
|
||||
if err := t.updateChannel(ctx, channel); err != nil {
|
||||
return *new(U), err
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user