Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessChecker ¶
type AccessChecker interface { // CheckAccess checks access to telegram chat and returns true if access is granted. CheckAccess(id int64, username string) bool }
AccessChecker checks access to telegram chats.
type Options ¶
type Options struct { Token string // Telegram bot token. GPT *gpt.GPT // GPT text transformer. AccessChecker AccessChecker // Access checker. Storage *storage.Storage // Storage. }
Options is a telegram bot options.
Click to show internal directories.
Click to hide internal directories.