Documentation ¶
Index ¶
- type TelegramBot
- func (bot *TelegramBot) Answer(chatID int, text string) (string, error)
- func (bot *TelegramBot) AnswerCallbackQuery(callbackQueryId string, text string) (string, error)
- func (bot *TelegramBot) AnswerWithRemoveKeyboard(chatID int, text string) (string, error)
- func (bot *TelegramBot) RequestLocation(chatID int, text string) (string, error)
- func (bot *TelegramBot) SendStationDetails(chatID int, station *model.Station) (string, error)
- func (bot *TelegramBot) SendStationSelectionButtons(chatID int, text string, stations []*model.Station) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TelegramBot ¶
type TelegramBot struct { BotToken string // contains filtered or unexported fields }
func NewTelegramBot ¶
func NewTelegramBot(botToken string) *TelegramBot
func (*TelegramBot) Answer ¶
func (bot *TelegramBot) Answer(chatID int, text string) (string, error)
func (*TelegramBot) AnswerCallbackQuery ¶
func (bot *TelegramBot) AnswerCallbackQuery(callbackQueryId string, text string) (string, error)
func (*TelegramBot) AnswerWithRemoveKeyboard ¶
func (bot *TelegramBot) AnswerWithRemoveKeyboard(chatID int, text string) (string, error)
func (*TelegramBot) RequestLocation ¶
func (bot *TelegramBot) RequestLocation(chatID int, text string) (string, error)
func (*TelegramBot) SendStationDetails ¶
func (*TelegramBot) SendStationSelectionButtons ¶
Click to show internal directories.
Click to hide internal directories.