Documentation
¶
Index ¶
- type UpdateContext
- func (ctx *UpdateContext) SendMessage(chatID int64, text string) error
- func (ctx *UpdateContext) SendMessageWithKeyboard(chatID int64, text string, replyMarkup interface{}) error
- func (ctx *UpdateContext) SendPhotoWithKeyboard(chatID int64, text string, photo rawTypes.InputFile, replyMarkup interface{}) (*rawTypes.Result, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UpdateContext ¶
type UpdateContext struct {
Api *gobotapi.PollingClient
DB *db.DB
TorClient *tor.Client
Config *config.Config
Translator *translator.Translator
}
func NewLightContext ¶
func NewLightContext(api *gobotapi.PollingClient, languageCode string) *UpdateContext
func NewUpdateContext ¶
func NewUpdateContext(api *gobotapi.PollingClient, cfg *config.Config, torClient *tor.Client, dbCtx *db.DB, languageCode string) *UpdateContext
func (*UpdateContext) SendMessage ¶
func (ctx *UpdateContext) SendMessage(chatID int64, text string) error
func (*UpdateContext) SendMessageWithKeyboard ¶
func (ctx *UpdateContext) SendMessageWithKeyboard(chatID int64, text string, replyMarkup interface{}) error
func (*UpdateContext) SendPhotoWithKeyboard ¶
Click to show internal directories.
Click to hide internal directories.