Documentation ¶
Index ¶
- func InlineKeyboardButtonMarkup(userId int64) tgbotapi.InlineKeyboardMarkup
- type Bot
- func (b *Bot) AddScore(user models.User, score int64) (models.User, error)
- func (b *Bot) CronInit(scheduler *cron.Cron)
- func (b *Bot) CronStart()
- func (b *Bot) GenerateImageUserCard(user models.User) ([]byte, error)
- func (b *Bot) GetUserProfile(message *tgbotapi.Message) error
- func (b *Bot) ReduceScore(user models.User, score int64) (models.User, error)
- func (b *Bot) SendCallbackAnswer(query *tgbotapi.CallbackQuery, text string)
- func (b *Bot) SendTestMessage(message *tgbotapi.Message) error
- func (b *Bot) SendWelcomeMessage(chatId int64)
- func (b *Bot) Start() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InlineKeyboardButtonMarkup ¶
func InlineKeyboardButtonMarkup(userId int64) tgbotapi.InlineKeyboardMarkup
Types ¶
type Bot ¶
func (*Bot) GenerateImageUserCard ¶
func (*Bot) ReduceScore ¶
func (*Bot) SendCallbackAnswer ¶
func (b *Bot) SendCallbackAnswer(query *tgbotapi.CallbackQuery, text string)
func (*Bot) SendWelcomeMessage ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.