gotd/updates: initialize channel state runctx immediately

This commit is contained in:
Tulir Asokan
2025-12-11 14:37:01 +02:00
parent 042304f147
commit d03260c4a7
4 changed files with 23 additions and 24 deletions
+3 -1
View File
@@ -537,7 +537,9 @@ func (t *TelegramClient) Connect(_ context.Context) {
runTelegramClient(ctx, t.client, t.clientInitialized, t.clientDone, func(ctx context.Context) error {
log.Info().Msg("Client running starting updates")
return t.updatesManager.Run(ctx, t.client.API(), t.telegramUserID, updates.AuthOptions{})
return t.updatesManager.Run(ctx, t.client.API(), t.telegramUserID, updates.AuthOptions{
IsBot: t.metadata.IsBot,
})
})
}