Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Telegram ¶
type Telegram struct { // Bot is the handler which handles the message sent by users Bot *tb.Bot // AuthorizedUsers is a authorized users slice. AuthorizedUsers []*provider.User // contains filtered or unexported fields }
Telegram contains all variables needed to make a stable connection with the Telegram API.
func (*Telegram) Initialize ¶
Initialize initiliazes a provider with the given label, api token, slice of authorized users and user inputs write-only channel.
Click to show internal directories.
Click to hide internal directories.