Documentation
¶
Overview ¶
Package telegram exposes the Telegram (Bot API) constructor and the raw-update and client accessors for botbooter. Import it for a Telegram bot; a Telegram-only binary pulls in go-telegram but never discordgo or slack-go.
Attachment resolution is platform-agnostic: call botbooter.Bot.ResolveAttachmentURL on the bot returned by New.
Index ¶
Constants ¶
View Source
const EnvSuppressURLWarning = tgint.EnvSuppressURLWarning
EnvSuppressURLWarning names the environment variable that silences the plaintext-token warning the Telegram resolver logs on every successful attachment resolve. Set it to any non-empty value to opt out.
Variables ¶
This section is empty.
Functions ¶
func Client ¶
Client returns the go-telegram bot client backing b, or nil if b is not a Telegram bot.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.