Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rtjc ¶
Rtjc is a listener for incoming rtjc commands. Publishes whatever it got from the socket compatible with the legacy rtjc bot. Primarily use case is to push news events from news.radio-t.com
type TelegramListener ¶
type TelegramListener struct { TbAPI tbAPI MsgLogger msgLogger Bots bot.Interface Group string // can be int64 or public group username (without "@" prefix) Debug bool IdleDuration time.Duration AllActivityTerm Terminator BotsActivityTerm Terminator SuperUsers SuperUser // contains filtered or unexported fields }
TelegramListener listens to tg update, forward to bots and send back responses Not thread safe
Click to show internal directories.
Click to hide internal directories.