Documentation ¶
Index ¶
- type TelegramChat
- func (telegramChat *TelegramChat) GetBot() *tgbotapi.BotAPI
- func (telegramChat *TelegramChat) GetBotUsername() string
- func (telegramChat *TelegramChat) IsUserAdmin(chatId int64, userId int64) bool
- func (telegramChat *TelegramChat) SendMessage(chatId int64, message string)
- 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) IsUserAdmin ¶
func (telegramChat *TelegramChat) IsUserAdmin(chatId int64, userId int64) bool
func (*TelegramChat) SendMessage ¶
func (telegramChat *TelegramChat) SendMessage(chatId int64, message string)
func (*TelegramChat) SetDebugModeEnabled ¶
func (telegramChat *TelegramChat) SetDebugModeEnabled(isEnabled bool)
Click to show internal directories.
Click to hide internal directories.