Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/channels/telegram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,16 @@ registerChannelAdapter('telegram', {
const telegramAdapter = createTelegramAdapter({
botToken: token,
mode: 'polling',
longPolling: {
// Reactions and callback queries are not included in Telegram's
// default allowed_updates set — once we set this list explicitly,
// all wanted update types must be enumerated. message + edited_message
// are the existing baseline; message_reaction unlocks 👍/👎 ingestion
// (Chat SDK already routes via processReaction); callback_query is
// included pre-emptively so future inline-keyboard work doesn't need
// another config edit.
allowedUpdates: ['message', 'edited_message', 'callback_query', 'message_reaction'],
},
});
const bridge = createChatSdkBridge({
adapter: telegramAdapter,
Expand Down
Loading