Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Examples

With a better understanding of how the library works, let’s look at examples showing off Telegram’s features:

  • Command Handling — parse and respond to bot commands with replies and link preview controls.
  • Keyboard — custom reply keyboards.
  • Inline Keyboard — inline buttons and callback queries.
  • Rich Messages — structured blocks and Markdown rich messages with embedded media.
  • Ephemeral Messages — targeted messages visible only to a specific user.
  • Poll Media — polls with photos, links, and media attached to options, descriptions, or quiz explanations.
  • Business Connections — connecting to Telegram Business accounts and handling business messages.