mirror of
https://github.com/lukaszraczylo/go-telegram.git
synced 2026-07-22 19:29:33 +00:00
Snapshot taken 2026-07-21. Notable shape change: ReplyParameters.MessageID becomes optional (*int64) because Bot API 10.2 allows a reply to target ephemeral_message_id instead. This breaks callers that set MessageID by value, so examples/echo passes the address now. New surface includes the ephemeral message methods, sendRichMessage with InputRichMessageMedia, and the Community service messages.
echo
Long-poll echo bot. Replies to /start with a greeting and echoes any other text.
Run
export TELEGRAM_BOT_TOKEN=123456:ABC...
go run ./examples/echo