Documentation
¶
Index ¶
- Constants
- func Button(text string, data string) models.InlineKeyboardButton
- func Keyboard(rows ...[]models.InlineKeyboardButton) [][]models.InlineKeyboardButton
- func Row(buttons ...models.InlineKeyboardButton) []models.InlineKeyboardButton
- type App
- type AudioParams
- type BanParams
- type Context
- func (c *Context) AnswerCallback(text ...string) (bool, error)
- func (c *Context) ApproveJoin(chatID any, userID int64) (bool, error)
- func (c *Context) Ban(chatID any, userID int64, params *BanParams) (bool, error)
- func (c *Context) BanChat(chatID any, senderChatID int64) (bool, error)
- func (c *Context) ChatID() int64
- func (c *Context) Copy(fromChatID any, messageID int, params *MsgParams) (*models.MessageID, error)
- func (c *Context) DeclineJoin(chatID any, userID int64) (bool, error)
- func (c *Context) Delete() (bool, error)
- func (c *Context) DeleteMessage(messageID int) (bool, error)
- func (c *Context) Edit(text string, params *MsgParams) (*models.Message, error)
- func (c *Context) EditMessage(messageID int, text string, params *MsgParams) (*models.Message, error)
- func (c *Context) FirstName() string
- func (c *Context) Forward(fromChatID any, messageID int) (*models.Message, error)
- func (c *Context) GetProfilePhoto(userID int64, params *ProfilePhotoParams) (*models.UserProfilePhotos, error)
- func (c *Context) Send(chatID any, text string, params *MsgParams) (*models.Message, error)
- func (c *Context) SendAudio(chatID any, params *AudioParams) (*models.Message, error)
- func (c *Context) SendPhoto(chatID any, url string, params *PhotoParams) (*models.Message, error)
- func (c *Context) Text() string
- func (c *Context) Unban(chatID any, userID int64) (bool, error)
- func (c *Context) UnbanChat(chatID any, senderChatID int64) (bool, error)
- func (c *Context) UserID() int64
- type Handler
- type MsgParams
- type PhotoParams
- type ProfilePhotoParams
Constants ¶
View Source
const ( HTML = "HTML" Markdown = "Markdown" )
Variables ¶
This section is empty.
Functions ¶
func Keyboard ¶
func Keyboard(rows ...[]models.InlineKeyboardButton) [][]models.InlineKeyboardButton
func Row ¶
func Row(buttons ...models.InlineKeyboardButton) []models.InlineKeyboardButton
Types ¶
type AudioParams ¶ added in v0.1.2
type Context ¶
func (*Context) EditMessage ¶
func (*Context) GetProfilePhoto ¶
func (c *Context) GetProfilePhoto(userID int64, params *ProfilePhotoParams) (*models.UserProfilePhotos, error)
type MsgParams ¶
type MsgParams struct {
ParseMode string
Reply bool
ReplyMarkup [][]models.InlineKeyboardButton
DisablePreview bool
}
type PhotoParams ¶
type PhotoParams struct {
Caption string
ParseMode string
Spoiler bool
ReplyMarkup [][]models.InlineKeyboardButton
}
type ProfilePhotoParams ¶
Click to show internal directories.
Click to hide internal directories.