Skip to content

Channel: Telegram Adapter #8

Description

@ggondim

Summary

Implement the Telegram channel adapter using Vercel Chat SDK. Telegram validates virtual thread support (reply chains) and inline keyboards.

Tasks

  • Register Telegram bot (BotFather token, webhook setup)
  • Inbound: messages, commands, callback queries
  • Outbound: text (Markdown/HTML), inline keyboards, reply keyboards
  • Thread support: virtual threads via reply chains (reply_to_message_id)
  • A2H inline (method 1): inline keyboard buttons for AUTHORIZE, callback queries for COLLECT
  • Response capture (method 2): callback query data, reply-to messages
  • Report capabilities: { threads: false, buttons: true, selectMenus: false, replyMessages: true, dms: true, fileUpload: true }
  • Integration tests with Telegram test bot (manual/CI-optional)

Acceptance Criteria

  • Adapter implements full ChannelAdapter interface
  • Inbound messages from Telegram are correctly parsed
  • Virtual threads correctly group messages by reply chain
  • A2H AUTHORIZE renders as inline keyboard, callback returns response
  • Free-text COLLECT captures via reply-to message
  • Passes shared adapter conformance test suite

Dependencies

References

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions