Documentation
¶
Overview ¶
Package telegram delivers the same alerts as Web Push to a Telegram chat — useful for a channel that outlives any one phone. The flow is deliberately tiny: the user makes a bot with BotFather, pastes the token, and sends the bot a message; cuxdeck catches the chat id from getUpdates and remembers it. From then on every event is a sendMessage. Token + chat id live under ~/.cuxdeck.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store holds the bot token and resolved chat id.
func (*Store) Poll ¶
Poll drains getUpdates once, capturing the chat id from the first message the user sends the bot. Returns true once linked. The panel calls this a few times after the user taps "/start".
Click to show internal directories.
Click to hide internal directories.