Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseCommand ¶
ParseCommand extracts the command and arguments from a message text. Returns empty strings if the message is not a command. Example: "/anki some text here" → "anki", "some text here"
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
New creates a Telegram bot client. allowedUserIDs restricts who can interact with the bot. If empty, all users are allowed.
Click to show internal directories.
Click to hide internal directories.