Documentation
¶
Overview ¶
Package telegram is tomo's Telegram channel. It long-polls getUpdates, so there is no webhook to expose, and it answers approvals with inline buttons. Only allowlisted chats are served; an unknown chat is ignored, not replied to, so the bot token leaking does not hand anyone an agent.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Telegram ¶
type Telegram struct {
Token string
Allow []int64 // chat ids permitted to talk to the bot
BaseURL string // default https://api.telegram.org, overridable for tests
Client *http.Client
// contains filtered or unexported fields
}
Telegram serves an allowlisted set of chats through the Bot API.
func (*Telegram) Caps ¶
Caps implements channel.Channel. Text is sent whole (no live editing yet), and approvals render as inline buttons.
Click to show internal directories.
Click to hide internal directories.