Documentation
¶
Overview ¶
Command media is a bot built on github.com/gotd/botapi that demonstrates sending and receiving media:
- /photo sends a photo by URL.
- sending the bot a photo echoes it back by file_id (no re-upload).
- sending the bot a document echoes it back and reports its size via GetFile.
Run it with an MTProto app identity (https://my.telegram.org) and a BotFather token:
APP_ID=12345 APP_HASH=abcdef BOT_TOKEN=123:abc go run ./examples/media
Click to show internal directories.
Click to hide internal directories.