Documentation
¶
Index ¶
- func GetArguments(update *tgbotapi.Update) string
- func GetLanguage(update *tgbotapi.Update) string
- func InitTelegram(token, proxyHost, proxyPort, proxyUser, proxyPassword string, debug bool) (bot *tgbotapi.BotAPI, err error)
- func ProcessTelegramCommand(update *tgbotapi.Update, user *database.User)
- func ProcessTelegramMessages(db *sql.DB, bot *tgbotapi.BotAPI, updates tgbotapi.UpdatesChannel)
- func Send(chatID int64, message string) error
- func SendCustom(chatID int64, replyTo int, message string, isMarkdown bool, ...) error
- func SendMarkdown(chatID int64, replyTo int, message string) error
- func SendPlain(chatID int64, replyTo int, message string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetArguments ¶
func GetLanguage ¶
func InitTelegram ¶
func InitTelegram(token, proxyHost, proxyPort, proxyUser, proxyPassword string, debug bool) (bot *tgbotapi.BotAPI, err error)
InitTelegram ...
func ProcessTelegramCommand ¶
ProcessTelegramCommand ...
func ProcessTelegramMessages ¶
ProcessTelegramMessages ...
func SendCustom ¶
func SendCustom(chatID int64, replyTo int, message string, isMarkdown bool, replyMarkup *tgbotapi.InlineKeyboardMarkup) error
Send ...
func SendMarkdown ¶
SendMarkdown ...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.