examples/

directory
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2026 License: MIT

Directories

Path Synopsis
Command advanced is a full-featured demo bot that exercises most of the github.com/gotd/botapi surface: commands (auto-registered), formatting, inline and reply keyboards, callback queries, inline mode, the media send methods, incoming-media handling, editing, forwarding, chat actions, polls, dice, location/venue/contact and the predicate/middleware framework.
Command advanced is a full-featured demo bot that exercises most of the github.com/gotd/botapi surface: commands (auto-registered), formatting, inline and reply keyboards, callback queries, inline mode, the media send methods, incoming-media handling, editing, forwarding, chat actions, polls, dice, location/venue/contact and the predicate/middleware framework.
Command background demonstrates proactive, restart-surviving sends with github.com/gotd/botapi: messages that are NOT replies to an incoming update.
Command background demonstrates proactive, restart-surviving sends with github.com/gotd/botapi: messages that are NOT replies to an incoming update.
Command buttons is a bot built on github.com/gotd/botapi that demonstrates inline keyboards and callback queries: /menu shows a keyboard, and tapping a button answers the callback and edits the message.
Command buttons is a bot built on github.com/gotd/botapi that demonstrates inline keyboards and callback queries: /menu shows a keyboard, and tapping a button answers the callback and edits the message.
Command echo is a minimal bot built on github.com/gotd/botapi: it greets on /start and echoes any other text message back as a reply.
Command echo is a minimal bot built on github.com/gotd/botapi: it greets on /start and echoes any other text message back as a reply.
Command inline is an inline bot built on github.com/gotd/botapi.
Command inline is an inline bot built on github.com/gotd/botapi.
Command media is a bot built on github.com/gotd/botapi that demonstrates sending and receiving media:
Command media is a bot built on github.com/gotd/botapi that demonstrates sending and receiving media:
Command rich is a showcase of Telegram rich messages (Bot API 10.1) built with github.com/gotd/td/telegram/message/rich.
Command rich is a showcase of Telegram rich messages (Bot API 10.1) built with github.com/gotd/td/telegram/message/rich.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL