telegram

package
v0.0.0-...-88fbdb7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetArguments

func GetArguments(update *tgbotapi.Update) string

func GetLanguage

func GetLanguage(update *tgbotapi.Update) string

func InitTelegram

func InitTelegram(token, proxyHost, proxyPort, proxyUser, proxyPassword string, debug bool) (bot *tgbotapi.BotAPI, err error)

InitTelegram ...

func ProcessTelegramCommand

func ProcessTelegramCommand(update *tgbotapi.Update, user *database.User)

ProcessTelegramCommand ...

func ProcessTelegramMessages

func ProcessTelegramMessages(db *sql.DB, bot *tgbotapi.BotAPI, updates tgbotapi.UpdatesChannel)

ProcessTelegramMessages ...

func Send

func Send(chatID int64, message string) error

SendPlain ...

func SendCustom

func SendCustom(chatID int64, replyTo int, message string, isMarkdown bool, replyMarkup *tgbotapi.InlineKeyboardMarkup) error

Send ...

func SendMarkdown

func SendMarkdown(chatID int64, replyTo int, message string) error

SendMarkdown ...

func SendPlain

func SendPlain(chatID int64, replyTo int, message string) error

SendPlain ...

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL