Documentation
¶
Index ¶
- Constants
- type Animation
- type AnswerCallbackQueryParams
- type AnswerInlineQueryParams
- type Audio
- type BotCommand
- type CallbackGame
- type CallbackQuery
- type Chat
- type ChatMember
- type ChosenInlineResult
- type Client
- func (c *Client) AnswerCallbackQuery(params AnswerCallbackQueryParams) (*bool, error)
- func (c *Client) AnswerInlineQuery(params AnswerInlineQueryParams) (*bool, error)
- func (c *Client) ForwardMessage(params ForwardMessageParams) (*Message, error)
- func (c *Client) GetChat(params GetChatParams) (*Chat, error)
- func (c *Client) GetChatAdministrators(params GetChatParams) (*[]ChatMember, error)
- func (c *Client) GetChatMember(params GetChatMemberParams) (*ChatMember, error)
- func (c *Client) GetChatMembersCount(params GetChatMembersCountParams) (*uint, error)
- func (c *Client) GetMe() (*User, error)
- func (c *Client) GetUpdates(params GetUpdatesParams) (*[]Update, error)
- func (c *Client) GetUpdatesChan(params GetUpdatesParams) chan *Update
- func (c *Client) GetUserProfilePhotos(params GetUserProfilePhotosParams) (*UserProfilePhotos, error)
- func (c *Client) KickChatMember(params KickChatMemberParams) (*bool, error)
- func (c *Client) LeaveChat(params LeaveChatParams) (*bool, error)
- func (c *Client) SendAudio(params SendAudioParams) (*Message, error)
- func (c *Client) SendChatAction(params SendChatActionParams) (*bool, error)
- func (c *Client) SendContact(params SendContactParams) (*Message, error)
- func (c *Client) SendDocument(params SendDocumentParams) (*Message, error)
- func (c *Client) SendLocation(params SendLocationParams) (*Message, error)
- func (c *Client) SendMessage(params SendMessageParams) (*Message, error)
- func (c *Client) SendPhoto(params SendPhotoParams) (*Message, error)
- func (c *Client) SendSticker(params SendStickerParams) (*Message, error)
- func (c *Client) SendVenue(params SendVenueParams) (*Message, error)
- func (c *Client) SendVideo(params SendVideoParams) (*Message, error)
- func (c *Client) SendVoice(params SendVoiceParams) (*Message, error)
- func (c *Client) SetBotCommands(params SetBotCommandParams) (*bool, error)
- func (c *Client) UnbanChatMember(params UnbanChatMemberParams) (*bool, error)
- type Contact
- type Document
- type File
- type ForceReply
- type ForwardMessageParams
- type Game
- type GameHighScore
- type GetChatAdministratorsParams
- type GetChatMemberParams
- type GetChatMembersCountParams
- type GetChatParams
- type GetUpdatesParams
- type GetUserProfilePhotosParams
- type InlineKeyboardButton
- type InlineKeyboardMarkup
- type InlineQuery
- type InlineQueryResult
- type InlineQueryResultArticle
- type InlineQueryResultAudio
- type InlineQueryResultCachedAudio
- type InlineQueryResultCachedDocument
- type InlineQueryResultCachedGif
- type InlineQueryResultCachedMpeg4Gif
- type InlineQueryResultCachedPhoto
- type InlineQueryResultCachedSticker
- type InlineQueryResultCachedVideo
- type InlineQueryResultCachedVoice
- type InlineQueryResultContact
- type InlineQueryResultDocument
- type InlineQueryResultGame
- type InlineQueryResultGif
- type InlineQueryResultLocation
- type InlineQueryResultMpeg4Gif
- type InlineQueryResultPhoto
- type InlineQueryResultVenue
- type InlineQueryResultVideo
- type InlineQueryResultVoice
- type InputContactMessageContent
- type InputFilePath
- type InputLocationMessageContent
- type InputMessageContent
- type InputTextMessageContent
- type InputVenueMessageContent
- type KeyboardButton
- type KickChatMemberParams
- type LeaveChatParams
- type Location
- type Message
- type MessageEntity
- type PhotoSize
- type ReplyKeyboardMarkup
- type ReplyKeyboardRemove
- type Response
- type ResponseParameters
- type SendAudioParams
- type SendChatActionParams
- type SendContactParams
- type SendDocumentParams
- type SendLocationParams
- type SendMessageParams
- type SendPhotoParams
- type SendStickerParams
- type SendVenueParams
- type SendVideoParams
- type SendVoiceParams
- type SetBotCommandParams
- type Sticker
- type UnbanChatMemberParams
- type Update
- type User
- type UserProfilePhotos
- type Venue
- type Video
- type Voice
Constants ¶
const ( TelegramAPIEndpoint = "https://api.telegram.org" // https://core.telegram.org/bots/api#chatmember ChatMemberStatusCreator = "creator" ChatMemberStatusAdministrator = "administrator" ChatMemberStatusMember = "member" ChatMemberStatusLeft = "left" ChatMemberStatusKicked = "kicked" // https://core.telegram.org/bots/api#markdown-style ParseModeMarkdown = "Markdown" // https://core.telegram.org/bots/api#html-style ParseModeHTML = "HTML" // https://core.telegram.org/bots/api#inlinequeryresult InlineQueryResultTypeArticle = "article" InlineQueryResultTypePhoto = "photo" InlineQueryResultTypeGif = "gif" InlineQueryResultTypeMpeg4Gif = "mpeg4_gif" InlineQueryResultTypeVideo = "video" InlineQueryResultTypeAudio = "audio" InlineQueryResultTypeVoice = "voice" InlineQueryResultTypeDocument = "document" InlineQueryResultTypeLocation = "location" InlineQueryResultTypeVenue = "venue" InlineQueryResultTypeContact = "contact" InlineQueryResultTypeGame = "game" InlineQueryResultTypeSticker = "sticker" MimeTypeTextHTML = "text/html" MimeTypeVideoMP4 = "video/mp4" MimeTypeApplicationPDF = "application/pdf" MimeTypeApplicationZIP = "application/zip" MimeTypeAudioMPEG = "audio/mpeg" MimeTypeAudioOgg = "audio/ogg" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Animation ¶
type AnswerCallbackQueryParams ¶
type AnswerInlineQueryParams ¶
type AnswerInlineQueryParams struct {
InlineQueryID string `json:"inline_query_id"`
Results []InlineQueryResult `json:"results"`
CacheTime uint `json:"cache_time,omitempty"`
IsPersonal bool `json:"is_personal,omitempty"`
NextOffset string `json:"next_offset,omitempty"`
SwitchPmText string `json:"switch_pm_text,omitempty"`
SwitchPmParameter string `json:"switch_pm_parameter,omitempty"`
}
type Audio ¶
type BotCommand ¶
type CallbackQuery ¶
type CallbackQuery struct {
ID string `json:"id"`
From *User `json:"from"`
Message *Message `json:"message,omitempty"`
InlineMessageID string `json:"inline_message_id,omitempty"`
ChatInstance string `json:"chat_instance,omitempty"`
Data string `json:"data,omitempty"`
GameShortName string `json:"game_short_name,omitempty"`
}
type Chat ¶
type Chat struct {
ID int `json:"id"`
Type string `json:"type"`
Title string `json:"title,omitempty"`
Username string `json:"username,omitempty"`
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
AllMembersAreAdministrators bool `json:"all_members_are_administrators,omitempty"`
}
type ChatMember ¶
type ChosenInlineResult ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AnswerCallbackQuery ¶
func (c *Client) AnswerCallbackQuery(params AnswerCallbackQueryParams) (*bool, error)
func (*Client) AnswerInlineQuery ¶
func (c *Client) AnswerInlineQuery(params AnswerInlineQueryParams) (*bool, error)
func (*Client) ForwardMessage ¶
func (c *Client) ForwardMessage(params ForwardMessageParams) (*Message, error)
func (*Client) GetChatAdministrators ¶
func (c *Client) GetChatAdministrators(params GetChatParams) (*[]ChatMember, error)
func (*Client) GetChatMember ¶
func (c *Client) GetChatMember(params GetChatMemberParams) (*ChatMember, error)
func (*Client) GetChatMembersCount ¶
func (c *Client) GetChatMembersCount(params GetChatMembersCountParams) (*uint, error)
func (*Client) GetUpdates ¶
func (c *Client) GetUpdates(params GetUpdatesParams) (*[]Update, error)
func (*Client) GetUpdatesChan ¶
func (c *Client) GetUpdatesChan(params GetUpdatesParams) chan *Update
func (*Client) GetUserProfilePhotos ¶
func (c *Client) GetUserProfilePhotos(params GetUserProfilePhotosParams) (*UserProfilePhotos, error)
func (*Client) KickChatMember ¶
func (c *Client) KickChatMember(params KickChatMemberParams) (*bool, error)
func (*Client) SendChatAction ¶
func (c *Client) SendChatAction(params SendChatActionParams) (*bool, error)
func (*Client) SendContact ¶
func (c *Client) SendContact(params SendContactParams) (*Message, error)
func (*Client) SendDocument ¶
func (c *Client) SendDocument(params SendDocumentParams) (*Message, error)
func (*Client) SendLocation ¶
func (c *Client) SendLocation(params SendLocationParams) (*Message, error)
func (*Client) SendMessage ¶
func (c *Client) SendMessage(params SendMessageParams) (*Message, error)
func (*Client) SendSticker ¶
func (c *Client) SendSticker(params SendStickerParams) (*Message, error)
func (*Client) SetBotCommands ¶
func (c *Client) SetBotCommands(params SetBotCommandParams) (*bool, error)
func (*Client) UnbanChatMember ¶
func (c *Client) UnbanChatMember(params UnbanChatMemberParams) (*bool, error)
type Contact ¶
type Document ¶
type File ¶
type ForceReply ¶
type ForwardMessageParams ¶
type Game ¶
type GameHighScore ¶
type GetChatAdministratorsParams ¶
type GetChatAdministratorsParams struct {
ChatID interface{} `json:"chat_id"`
}
type GetChatMemberParams ¶
type GetChatMemberParams struct {
ChatID interface{} `json:"chat_id"`
UserID int `json:"user_id"`
}
type GetChatMembersCountParams ¶
type GetChatMembersCountParams struct {
ChatID interface{} `json:"chat_id"`
}
type GetChatParams ¶
type GetChatParams struct {
ChatID interface{} `json:"chat_id"`
}
type GetUpdatesParams ¶
type GetUpdatesParams struct {
Offset int `json:"offset,omitempty"`
Limit uint `json:"limit,omitempty"`
Timeout int `json:"timeout,omitempty"`
AllowedUpdates []string `json:"allowed_updates,omitempty"`
}
GetUpdatesParams https://core.telegram.org/bots/api#getupdates
type GetUserProfilePhotosParams ¶
type InlineKeyboardButton ¶
type InlineKeyboardButton struct {
Text string `json:"text"`
URL string `json:"url,omitempty"`
Callbackdata string `json:"callback_data,omitempty"`
SwitchInlinequery string `json:"switch_inline_query,omitempty"`
SwitchInlineQueryCurrentChat string `json:"switch_inline_query_current_chat,omitempty"`
CallbackGame *CallbackGame `json:"callback_game,omitempty"`
}
type InlineKeyboardMarkup ¶
type InlineKeyboardMarkup struct {
InlineKeyboard *[][]InlineKeyboardButton `json:"inline_keyboardt"`
}
type InlineQuery ¶
type InlineQueryResult ¶
type InlineQueryResult interface{}
type InlineQueryResultArticle ¶
type InlineQueryResultArticle struct {
Type string `json:"type"`
ID string `json:"id"`
Title string `json:"title"`
InputMessageContent InputMessageContent `json:"input_message_content"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
URL string `json:"url,omitempty"`
HideURL bool `json:"hide_url,omitempty"`
Description string `json:"description,omitempty"`
ThumbURL string `json:"thumb_url,omitempty"`
ThumbWidth int `json:"thumb_width,omitempty"`
ThumbHeight int `json:"thumb_height,omitempty"`
}
type InlineQueryResultAudio ¶
type InlineQueryResultAudio struct {
Type string `json:"type"`
ID string `json:"id"`
AudioURL string `json:"audio_url"`
Title string `json:"title"`
Caption string `json:"caption,omitempty"`
Performer string `json:"performer,omitempty"`
AudioDuration int `json:"audio_duration,omitempty"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent *InputMessageContent `json:"input_message_content,omitempty"`
}
type InlineQueryResultCachedAudio ¶
type InlineQueryResultCachedAudio struct {
Type string `json:"type"`
ID string `json:"id"`
AudioFileID string `json:"audio_file_id"`
Caption string `json:"caption,omitempty"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent *InputMessageContent `json:"input_message_content,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultcachedaudio
type InlineQueryResultCachedDocument ¶
type InlineQueryResultCachedDocument struct {
Type string `json:"type"`
ID string `json:"id"`
Title string `json:"title"`
DocumentFileID string `json:"document_file_id"`
Description string `json:"description,omitempty"`
Caption string `json:"caption,omitempty"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent *InputMessageContent `json:"input_message_content,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultcacheddocument
type InlineQueryResultCachedGif ¶
type InlineQueryResultCachedGif struct {
Type string `json:"type"`
ID string `json:"id"`
GifFileID string `json:"gif_file_id"`
Title string `json:"title,omitempty"`
Caption string `json:"caption,omitempty"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent *InputMessageContent `json:"input_message_content,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultcachedgif
type InlineQueryResultCachedMpeg4Gif ¶
type InlineQueryResultCachedMpeg4Gif struct {
Type string `json:"type"`
ID string `json:"id"`
Mpeg4FileID string `json:"mpeg4_file_id"`
Title string `json:"title,omitempty"`
Caption string `json:"caption,omitempty"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent *InputMessageContent `json:"input_message_content,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultcachedmpeg4gif
type InlineQueryResultCachedPhoto ¶
type InlineQueryResultCachedPhoto struct {
Type string `json:"type"`
ID string `json:"id"`
PhotoFileID string `json:"photo_file_id"`
Title string `json:"title,omitempty"`
Description string `json:"description,omitempty"`
Caption string `json:"caption,omitempty"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent *InputMessageContent `json:"input_message_content,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultcachedphoto
type InlineQueryResultCachedSticker ¶
type InlineQueryResultCachedSticker struct {
Type string `json:"type"`
ID string `json:"id"`
StickerFileID string `json:"sticker_file_id"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent *InputMessageContent `json:"input_message_content,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultcachedsticker
type InlineQueryResultCachedVideo ¶
type InlineQueryResultCachedVideo struct {
Type string `json:"type"`
ID string `json:"id"`
VideoFileID string `json:"video_file_id"`
Title string `json:"title"`
Description string `json:"description,omitempty"`
Caption string `json:"caption,omitempty"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent *InputMessageContent `json:"input_message_content,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultcachedvideo
type InlineQueryResultCachedVoice ¶
type InlineQueryResultCachedVoice struct {
Type string `json:"type"`
ID string `json:"id"`
VoiceFileID string `json:"voice_file_id"`
Title string `json:"title"`
Caption string `json:"caption,omitempty"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent *InputMessageContent `json:"input_message_content,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultcachedvoice
type InlineQueryResultContact ¶
type InlineQueryResultContact struct {
Type string `json:"type"`
ID string `json:"id"`
PhoneNumber string `json:"phone_number"`
FirstName string `json:"first_name"`
LastName string `json:"last_name,omitempty"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent *InputMessageContent `json:"input_message_content,omitempty"`
ThumbURL string `json:"thumb_url,omitempty"`
ThumbWidth int `json:"thumb_width,omitempty"`
ThumbHeight int `json:"thumb_height,omitempty"`
}
type InlineQueryResultDocument ¶
type InlineQueryResultDocument struct {
Type string `json:"type"`
ID string `json:"id"`
Title string `json:"title"`
Caption string `json:"caption,omitempty"`
DocumentURL string `json:"document_url"`
MimeType string `json:"mime_type"`
Description string `json:"description,omitempty"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent *InputMessageContent `json:"input_message_content,omitempty"`
ThumbURL string `json:"thumb_url,omitempty"`
ThumbWidth int `json:"thumb_width,omitempty"`
ThumbHeight int `json:"thumb_height,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultdocument
type InlineQueryResultGame ¶
type InlineQueryResultGame struct {
Type string `json:"type"`
ID string `json:"id"`
GameShortName string `json:"game_short_name"`
ReplyMarkup InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
type InlineQueryResultGif ¶
type InlineQueryResultGif struct {
Type string `json:"type"`
ID string `json:"id"`
GifURL string `json:"gif_url"`
GifWidth int `json:"gif_width,omitempty"`
GifHeight int `json:"gif_height,omitempty"`
ThumbURL string `json:"thumb_url"`
Title string `json:"title,omitempty"`
Caption string `json:"caption,omitempty"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent *InputMessageContent `json:"input_message_content,omitempty"`
}
type InlineQueryResultLocation ¶
type InlineQueryResultLocation struct {
Type string `json:"type"`
ID string `json:"id"`
Latitude float32 `json:"latitude"`
Longitude float32 `json:"longitude"`
Title string `json:"title"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent *InputMessageContent `json:"input_message_content,omitempty"`
ThumbURL string `json:"thumb_url,omitempty"`
ThumbWidth int `json:"thumb_width,omitempty"`
ThumbHeight int `json:"thumb_height,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultlocation
type InlineQueryResultMpeg4Gif ¶
type InlineQueryResultMpeg4Gif struct {
Type string `json:"type"`
ID string `json:"id"`
Mpeg4URL string `json:"mpeg4_url"`
Mpeg4Width int `json:"mpeg4_width,omitempty"`
Mpeg4Height int `json:"mpeg4_height,omitempty"`
ThumbURL string `json:"thumb_url"`
Title string `json:"title,omitempty"`
Caption string `json:"caption,omitempty"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent *InputMessageContent `json:"input_message_content,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultmpeg4gif
type InlineQueryResultPhoto ¶
type InlineQueryResultPhoto struct {
Type string `json:"type"`
ID string `json:"id"`
PhotoURL string `json:"photo_url"`
ThumbURL string `json:"thumb_url"`
PhotoWidth int `json:"photo_width,omitempty"`
PhotoHeight int `json:"photo_height,omitempty"`
Title string `json:"title,omitempty"`
Description string `json:"description,omitempty"`
Caption string `json:"caption,omitempty"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent *InputMessageContent `json:"input_message_content,omitempty"`
}
type InlineQueryResultVenue ¶
type InlineQueryResultVenue struct {
Type string `json:"type"`
ID string `json:"id"`
Latitude string `json:"latitude"`
Longitude string `json:"longitude"`
Title string `json:"title"`
Address string `json:"address"`
FoursquareID string `json:"foursquare_id,omitempty"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent *InputMessageContent `json:"input_message_content,omitempty"`
ThumbURL string `json:"thumb_url,omitempty"`
ThumbWidth string `json:"thumb_width,omitempty"`
ThumbHeight string `json:"thumb_height,omitempty"`
}
type InlineQueryResultVideo ¶
type InlineQueryResultVideo struct {
Type string `json:"type"`
ID string `json:"id"`
VideoURL string `json:"video_url"`
MimeType string `json:"mime_type"`
ThumbURL string `json:"thumb_url"`
Title string `json:"title"`
Caption string `json:"caption,omitempty"`
VideoWidth int `json:"video_width,omitempty"`
VideoHeight int `json:"video_height,omitempty"`
VideoDuration int `json:"video_duration,omitempty"`
Description string `json:"description,omitempty"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent *InputMessageContent `json:"input_message_content,omitempty"`
}
type InlineQueryResultVoice ¶
type InlineQueryResultVoice struct {
Type string `json:"type"`
ID string `json:"id"`
VoiceURL string `json:"voice_url"`
Title string `json:"title"`
Caption string `json:"caption,omitempty"`
VoiceDuration string `json:"voice_duration,omitempty"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent *InputMessageContent `json:"input_message_content,omitempty"`
}
type InputContactMessageContent ¶
type InputContactMessageContent struct {
PhoneNumber string `json:"phone_number"`
FirstName string `json:"first_name"`
LastName string `json:"last_name,omitempty"`
}
https://core.telegram.org/bots/api#inputcontactmessagecontent
type InputLocationMessageContent ¶
type InputLocationMessageContent struct {
Latitude float32 `json:"latitude"`
Longitude float32 `json:"longitude"`
}
https://core.telegram.org/bots/api#inputlocationmessagecontent
type InputMessageContent ¶
type InputMessageContent interface{}
type InputTextMessageContent ¶
type InputVenueMessageContent ¶
type KeyboardButton ¶
type KickChatMemberParams ¶
type KickChatMemberParams struct {
ChatID interface{} `json:"chat_id"`
UserID int `json:"user_id"`
}
type LeaveChatParams ¶
type LeaveChatParams struct {
ChatID interface{} `json:"chat_id"`
}
type Message ¶
type Message struct {
ID int `json:"message_id"`
From User `json:"from,omitempty"`
Date int `json:"date"`
Chat *Chat `json:"chat"`
ForwardFrom *User `json:"forward_from,omitempty"`
ForwardFromChat *Chat `json:"forward_from_chat,omitempty"`
ForwardFromMessageID int `json:"forward_from_message_id,omitempty"`
ForwardDate int `json:"forward_date,omitempty"`
ReplyToMessage *Message `json:"reply_to_message,omitempty"`
EditDate int `json:"edit_date,omitempty"`
Text string `json:"text,omitempty"`
Entities *[]MessageEntity `json:"entities,omitempty"`
Audio *Audio `json:"audio,omitempty"`
Document *Document `json:"document,omitempty"`
Game *Game `json:"game,omitempty"`
Photo *[]PhotoSize `json:"photo,omitempty"`
Sticker *Sticker `json:"sticker,omitempty"`
Video *Video `json:"video,omitempty"`
Voice *Voice `json:"voice,omitempty"`
Caption string `json:"caption,omitempty"`
Contact *Contact `json:"contact,omitempty"`
Location *Location `json:"location,omitempty"`
Venue *Venue `json:"venue,omitempty"`
NewChatMember *User `json:"new_chat_member,omitempty"`
LeftChatMember *User `json:"left_chat_member,omitempty"`
NewChatTitle string `json:"new_chat_title,omitempty"`
NewChatPhoto *[]PhotoSize `json:"new_chat_photo,omitempty"`
DeleteChatPhoto bool `json:"delete_chat_photo,omitempty"`
GroupChatCreated bool `json:"group_chat_created,omitempty"`
SupergroupChatCreated bool `json:"supergroup_chat_created,omitempty"`
ChannelChatCreated bool `json:"channel_chat_created,omitempty"`
MigrateToChatID int `json:"migrate_to_chat_id,omitempty"`
MigrateFromChatID int `json:"migrate_from_chat_id,omitempty"`
PinnedMessage *Message `json:"pinned_message,omitempty"`
}
type MessageEntity ¶
type PhotoSize ¶
type ReplyKeyboardMarkup ¶
type ReplyKeyboardMarkup struct {
Keyboard *[][]KeyboardButton `json:"keyboard"`
ResizeKeyboard bool `json:"resize_keyboard"`
OneTimeKeyboard bool `json:"one_time_keyboard"`
Selective bool `json:"selective"`
}
type ReplyKeyboardRemove ¶
type Response ¶
type Response struct {
Ok bool `json:"ok"`
Description string `json:"description,omitempty"`
Result json.RawMessage `json:"result,omitempty"`
ErrorCode int `json:"error_code,omitempty"`
}
type ResponseParameters ¶
type SendAudioParams ¶
type SendAudioParams struct {
ChatID interface{} `json:"chat_id" form:"chat_id"`
Audio interface{} `json:"audio" form:"audio,inputFile"`
Caption string `json:"caption,omitempty" form:"caption,omitempty"`
Duration uint `json:"duration,omitempty" form:"duration,omitempty"`
Performer string `json:"performer,omitempty" form:"performer,omitempty"`
Title string `json:"title,omitempty" form:"title,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty" form:"disable_notification,omitempty"`
ReplyToMessageID int `json:"reply_to_message_id,omitempty" form:"reply_to_message_id,omitempty"`
ReplyMarkup interface{} `json:"reply_markup,omitempty" form:"reply_markup,omitempty"`
}
type SendChatActionParams ¶
type SendChatActionParams struct {
ChatID interface{} `json:"chat_id"`
Action string `json:"action"`
}
type SendContactParams ¶
type SendContactParams struct {
ChatID interface{} `json:"chat_id"`
PhoneNumber string `json:"phone_number"`
FirstName string `json:"first_name"`
LastName string `json:"last_name,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty"`
ReplyToMessageID int `json:"reply_to_message_id,omitempty"`
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
}
type SendDocumentParams ¶
type SendDocumentParams struct {
ChatID interface{} `json:"chat_id" form:"chat_id"`
Document interface{} `json:"document" form:"document,inputFile"`
Caption string `json:"caption,omitempty" form:"caption,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty" form:"disable_notification,omitempty"`
ReplyToMessageID int `json:"reply_to_message_id,omitempty" form:"reply_to_message_id,omitempty"`
ReplyMarkup interface{} `json:"reply_markup,omitempty" form:"reply_markup,omitempty"`
}
type SendLocationParams ¶
type SendLocationParams struct {
ChatID interface{} `json:"chat_id"`
Latitude float32 `json:"latitude"`
Longitude float32 `json:"longitude"`
DisableNotification bool `json:"disable_notification,omitempty"`
ReplyToMessageID int `json:"reply_to_message_id,omitempty"`
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
}
type SendMessageParams ¶
type SendMessageParams struct {
ChatID interface{} `json:"chat_id"`
Text string `json:"text"`
ParseMode string `json:"parse_mode,omitempty"`
DisableWebPagePreview bool `json:"disable_web_page_preview,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty"`
ReplyToMessageID int `json:"reply_to_message_id,omitempty"`
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
}
type SendPhotoParams ¶
type SendPhotoParams struct {
ChatID interface{} `json:"chat_id" form:"chat_id"`
Photo interface{} `json:"photo" form:"photo,inputFile"`
Caption string `json:"caption,omitempty" form:"caption,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty" form:"disable_notification,omitempty"`
ReplyToMessageID int `json:"reply_to_message_id,omitempty" form:"reply_to_message_id,omitempty"`
ReplyMarkup interface{} `json:"reply_markup,omitempty" form:"reply_markup,omitempty"`
}
type SendStickerParams ¶
type SendStickerParams struct {
ChatID interface{} `json:"chat_id" form:"chat_id"`
Sticker interface{} `json:"sticker" form:"sticker,inputFile"`
Caption string `json:"caption,omitempty" form:"caption,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty" form:"disable_notification,omitempty"`
ReplyToMessageID int `json:"reply_to_message_id,omitempty" form:"reply_to_message_id,omitempty"`
ReplyMarkup interface{} `json:"reply_markup,omitempty" form:"reply_markup,omitempty"`
}
type SendVenueParams ¶
type SendVenueParams struct {
ChatID interface{} `json:"chat_id"`
Latitude float32 `json:"latitude"`
Longitude float32 `json:"longitude"`
Title string `json:"title"`
Address string `json:"address"`
FoursquareID string `json:"foursquare_id,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty"`
ReplyToMessageID int `json:"reply_to_message_id,omitempty"`
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
}
type SendVideoParams ¶
type SendVideoParams struct {
ChatID interface{} `json:"chat_id" form:"chat_id"`
Video interface{} `json:"video" form:"video,inputFile"`
Duration uint `json:"duration,omitempty" form:"duration,omitempty"`
Width uint `json:"width,omitempty" form:"width,omitempty"`
Height uint `json:"height,omitempty" form:"height,omitempty"`
Caption string `json:"caption,omitempty" form:"caption,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty" form:"disable_notification,omitempty"`
ReplyToMessageID int `json:"reply_to_message_id,omitempty" form:"reply_to_message_id,omitempty"`
ReplyMarkup interface{} `json:"reply_markup,omitempty" form:"reply_markup,omitempty"`
}
type SendVoiceParams ¶
type SendVoiceParams struct {
ChatID interface{} `json:"chat_id" form:"chat_id"`
Voice interface{} `json:"voice" form:"voice,inputFile"`
Caption string `json:"caption,omitempty" form:"caption,omitempty"`
Duration uint `json:"duration,omitempty" form:"duration,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty" form:"disable_notification,omitempty"`
ReplyToMessageID int `json:"reply_to_message_id,omitempty" form:"reply_to_message_id,omitempty"`
ReplyMarkup interface{} `json:"reply_markup,omitempty" form:"reply_markup,omitempty"`
}
type SetBotCommandParams ¶
type SetBotCommandParams struct {
Commands []BotCommand `json:"commands"`
}
type Sticker ¶
type UnbanChatMemberParams ¶
type UnbanChatMemberParams struct {
ChatID interface{} `json:"chat_id"`
UserID int `json:"user_id"`
}
type Update ¶
type Update struct {
ID int `json:"update_id"`
Message *Message `json:"message,omitempty"`
EditedMessage *Message `json:"edited_message,omitempty"`
ChannelPost *Message `json:"channel_post,omitempty"`
EditedChannelPost *Message `json:"edited_channel_post,omitempty"`
InlineQuery *InlineQuery `json:"inline_query,omitempty"`
ChosenInlineResult *ChosenInlineResult `json:"chosen_inline_result,omitempty"`
CallbackQuery *CallbackQuery `json:"callback_query,omitempty"`
}