Documentation ¶
Overview ¶
Package gobot will be responsible for creation of client and router that will handle the incoming requests
Index ¶
- func New(config *config.Config) (*tgbotapi.BotAPI, error)
- func Respond(chat chat.Info, bot *tgbotapi.BotAPI, messageText string, ...) error
- func RespondToCallBack(chat chat.Info, bot *tgbotapi.BotAPI, messageText string, ...) (int, error)
- func WithCustomParsing(mode string) func(*tgbotapi.MessageConfig)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Respond ¶
func Respond(chat chat.Info, bot *tgbotapi.BotAPI, messageText string, configOptions ...func(*tgbotapi.MessageConfig)) error
Respond will send msg string to user with userid
func RespondToCallBack ¶
func RespondToCallBack(chat chat.Info, bot *tgbotapi.BotAPI, messageText string, currentPage, totalPages int) (int, error)
RespondToCallBack will respond to callback query
func WithCustomParsing ¶
func WithCustomParsing(mode string) func(*tgbotapi.MessageConfig)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.