Documentation ¶
Index ¶
- type TelegramChat
- func (telegramChat *TelegramChat) GetBot() *tgbotapi.BotAPI
- func (telegramChat *TelegramChat) GetBotUsername() string
- func (telegramChat *TelegramChat) SendDialog(dialog *dialog.Dialog, chatId int64)
- func (telegramChat *TelegramChat) SendMessage(chatId int64, message string)
- func (telegramChat *TelegramChat) SendQuestion(db *database.Database, questionId int64, usersChatIds []int64)
- func (telegramChat *TelegramChat) SetDebugModeEnabled(isEnabled bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TelegramChat ¶
type TelegramChat struct {
// contains filtered or unexported fields
}
func MakeTelegramChat ¶
func MakeTelegramChat(apiToken string) (bot *TelegramChat, outErr error)
func (*TelegramChat) GetBot ¶
func (telegramChat *TelegramChat) GetBot() *tgbotapi.BotAPI
func (*TelegramChat) GetBotUsername ¶
func (telegramChat *TelegramChat) GetBotUsername() string
func (*TelegramChat) SendDialog ¶
func (telegramChat *TelegramChat) SendDialog(dialog *dialog.Dialog, chatId int64)
func (*TelegramChat) SendMessage ¶
func (telegramChat *TelegramChat) SendMessage(chatId int64, message string)
func (*TelegramChat) SendQuestion ¶
func (telegramChat *TelegramChat) SendQuestion(db *database.Database, questionId int64, usersChatIds []int64)
func (*TelegramChat) SetDebugModeEnabled ¶
func (telegramChat *TelegramChat) SetDebugModeEnabled(isEnabled bool)
Click to show internal directories.
Click to hide internal directories.