Documentation
¶
Index ¶
- type ChosenInlineResult
- 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 InlineQueryResultsButton
- type InputContactMessageContent
- type InputInvoiceMessageContent
- type InputLocationMessageContent
- type InputMessageContent
- type InputTextMessageContent
- type InputVenueMessageContent
- type SentWebAppMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChosenInlineResult ¶
type InlineQuery ¶
type InlineQueryResult ¶
type InlineQueryResult interface {
GetType() string
}
type InlineQueryResultArticle ¶
type InlineQueryResultArticle struct {
Type string `json:"type"`
Id string `json:"id"`
Title string `json:"title"`
InputMssageContent InputMessageContent `json:"input_message_content"`
Url string `json:"url,omitempty"`
HideUrl bool `json:"hide_url,omitempty"`
Description string `json:"description,omitempty"`
ThumbnailUrl string `json:"thumbnail_url,omitempty"`
ThumbnailWidth int `json:"thumbnail_width,omitempty"`
ThumbnailHeight int `json:"thumbnail_height,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultarticle
func (*InlineQueryResultArticle) GetType ¶
func (q *InlineQueryResultArticle) GetType() string
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"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []message_entity_dto.MessageEntity `json:"caption_entities,omitempty"`
Performer string `json:"performer,omitempty"`
AudioDuration int `json:"audio_duration,omitempty"`
ReplyMarkup *message_dto.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent InputMessageContent `json:"input_message_content,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultaudio
func (*InlineQueryResultAudio) GetType ¶
func (q *InlineQueryResultAudio) GetType() string
type InlineQueryResultCachedAudio ¶
type InlineQueryResultCachedAudio struct {
Type string `json:"type"`
Id string `json:"id"`
AudioFileId string `json:"audio_file_id"`
Caption string `json:"caption,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []message_entity_dto.MessageEntity `json:"caption_entities,omitempty"`
ReplyMarkup *message_dto.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent InputMessageContent `json:"input_message_content,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultcachedaudio
func (*InlineQueryResultCachedAudio) GetType ¶
func (q *InlineQueryResultCachedAudio) GetType() string
type InlineQueryResultCachedDocument ¶
type InlineQueryResultCachedDocument struct {
Type string `json:"type"`
Id string `json:"id"`
Title string `json:"title"`
DocumentFileId string `json:"document_file_id"`
Caption string `json:"caption,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []message_entity_dto.MessageEntity `json:"caption_entities,omitempty"`
Description string `json:"description,omitempty"`
ReplyMarkup *message_dto.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent InputMessageContent `json:"input_message_content,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultcacheddocument
func (*InlineQueryResultCachedDocument) GetType ¶
func (q *InlineQueryResultCachedDocument) GetType() string
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"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []*message_entity_dto.MessageEntity `json:"caption_entities,omitempty"`
ReplyMarkup *message_dto.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent InputMessageContent `json:"input_message_content,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultcachedgif
func (*InlineQueryResultCachedGif) GetType ¶
func (q *InlineQueryResultCachedGif) GetType() string
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"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []*message_entity_dto.MessageEntity `json:"caption_entities,omitempty"`
ReplyMarkup *message_dto.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent InputMessageContent `json:"input_message_content,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultcachedmpeg4gif
func (*InlineQueryResultCachedMpeg4Gif) GetType ¶
func (q *InlineQueryResultCachedMpeg4Gif) GetType() string
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"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []*message_entity_dto.MessageEntity `json:"caption_entities,omitempty"`
ReplyMarkup *message_dto.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent InputMessageContent `json:"input_message_content,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultcachedphoto
func (*InlineQueryResultCachedPhoto) GetType ¶
func (q *InlineQueryResultCachedPhoto) GetType() string
type InlineQueryResultCachedSticker ¶
type InlineQueryResultCachedSticker struct {
Type string `json:"type"`
Id string `json:"id"`
StickerFileId string `json:"sticker_file_id"`
ReplyMarkup *message_dto.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent InputMessageContent `json:"input_message_content,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultcachedsticker
func (*InlineQueryResultCachedSticker) GetType ¶
func (q *InlineQueryResultCachedSticker) GetType() string
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"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []message_entity_dto.MessageEntity `json:"caption_entities,omitempty"`
ReplyMarkup *message_dto.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent InputMessageContent `json:"input_message_content,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultcachedvideo
func (*InlineQueryResultCachedVideo) GetType ¶
func (q *InlineQueryResultCachedVideo) GetType() string
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"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []message_entity_dto.MessageEntity `json:"caption_entities,omitempty"`
ReplyMarkup *message_dto.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent InputMessageContent `json:"input_message_content,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultcachedvoice
func (*InlineQueryResultCachedVoice) GetType ¶
func (q *InlineQueryResultCachedVoice) GetType() string
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"`
Vcard string `json:"vcard,omitempty"`
ReplyMarkup *message_dto.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent InputMessageContent `json:"input_message_content,omitempty"`
ThumbnailUrl string `json:"thumbnail_url,omitempty"`
ThumbnailWidth uint `json:"thumbnail_width,omitempty"`
ThumbnailHeight uint `json:"thumbnail_height,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultcontact
func (*InlineQueryResultContact) GetType ¶
func (q *InlineQueryResultContact) GetType() string
type InlineQueryResultDocument ¶
type InlineQueryResultDocument struct {
Type string `json:"type"`
Id string `json:"id"`
Title string `json:"title"`
Caption string `json:"caption,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []message_entity_dto.MessageEntity `json:"caption_entities,omitempty"`
DocumentUrl string `json:"document_url"`
MimeType string `json:"mime_type"`
Description string `json:"description,omitempty"`
ReplyMarkup *message_dto.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent InputMessageContent `json:"input_message_content,omitempty"`
ThumbnailUrl string `json:"thumbnail_url,omitempty"`
ThumbnailWidth int `json:"thumbnail_width,omitempty"`
ThumbnailHeight int `json:"thumbnail_height,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultdocument
func (*InlineQueryResultDocument) GetType ¶
func (q *InlineQueryResultDocument) GetType() string
type InlineQueryResultGame ¶
type InlineQueryResultGame struct {
Type string `json:"type"`
Id string `json:"id"`
GameShortName string `json:"game_short_name"`
ReplyMarkup *message_dto.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultcontact
func (*InlineQueryResultGame) GetType ¶
func (q *InlineQueryResultGame) GetType() string
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"`
GifDuration int `json:"gif_duration,omitempty"`
ThumbnailUrl string `json:"thumbnail_url,omitempty"`
ThumbnailMimeType string `json:"thumbnail_mime_type,omitempty"`
Title string `json:"title,omitempty"`
Caption string `json:"caption,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []*message_entity_dto.MessageEntity `json:"caption_entities,omitempty"`
ReplyMarkup *message_dto.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent InputMessageContent `json:"input_message_content,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultgif
func (*InlineQueryResultGif) GetType ¶
func (q *InlineQueryResultGif) GetType() string
type InlineQueryResultLocation ¶
type InlineQueryResultLocation struct {
Type string `json:"type"`
Id string `json:"id"`
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
Title string `json:"title"`
HorizontalAccuracy float64 `json:"horizontal_accuracy,omitempty"`
LivePeriod int32 `json:"live_period,omitempty"`
Heading uint16 `json:"heading,omitempty"`
ProximityAlertRadius uint32 `json:"Proximity_alert_radius,omitempty"`
ReplyMarkup *message_dto.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent InputMessageContent `json:"input_message_content,omitempty"`
ThumbnailUrl string `json:"thumbnail_url,omitempty"`
ThumbnailWidth uint `json:"thumbnail_width,omitempty"`
ThumbnailHeight uint `json:"thumbnail_height,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultlocation
func (*InlineQueryResultLocation) GetType ¶
func (q *InlineQueryResultLocation) GetType() string
type InlineQueryResultMpeg4Gif ¶
type InlineQueryResultMpeg4Gif struct {
Type string `json:"type"`
Id string `json:"id"`
Mpeg4Url string `json:"mpeg4_url"`
Mpeg4Width int `json:"gif_width,omitempty"`
Mpeg4Height int `json:"mpeg4_height,omitempty"`
Mpeg4Duration int `json:"mpeg4_duration,omitempty"`
ThumbnailUrl string `json:"thumbnail_url,omitempty"`
ThumbnailMimeType string `json:"thumbnail_mime_type,omitempty"`
Title string `json:"title,omitempty"`
Caption string `json:"caption,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []*message_entity_dto.MessageEntity `json:"caption_entities,omitempty"`
ReplyMarkup *message_dto.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent InputMessageContent `json:"input_message_content,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultmpeg4gif
func (*InlineQueryResultMpeg4Gif) GetType ¶
func (q *InlineQueryResultMpeg4Gif) GetType() string
type InlineQueryResultPhoto ¶
type InlineQueryResultPhoto struct {
Type string `json:"type"`
Id string `json:"id"`
PhotoUrl string `json:"photo_url"`
ThumbnailUrl string `json:"thumbnail_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"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []*message_entity_dto.MessageEntity `json:"caption_entities,omitempty"`
ReplyMarkup *message_dto.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent InputMessageContent `json:"input_message_content,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultphoto
func (*InlineQueryResultPhoto) GetType ¶
func (q *InlineQueryResultPhoto) GetType() string
type InlineQueryResultVenue ¶
type InlineQueryResultVenue struct {
Type string `json:"type"`
Id string `json:"id"`
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
Title string `json:"title"`
Address string `json:"address"`
FoursquareId string `json:"foursquare_id,omitempty"`
FoursquareType string `json:"foursquare_type,omitempty"`
GooglePlaceId string `json:"google_place_id,omitempty"`
GooglePlaceType string `json:"google_place_type,omitempty"`
ReplyMarkup *message_dto.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent InputMessageContent `json:"input_message_content,omitempty"`
ThumbnailUrl string `json:"thumbnail_url,omitempty"`
ThumbnailWidth uint `json:"thumbnail_width,omitempty"`
ThumbnailHeight uint `json:"thumbnail_height,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultvenue
func (*InlineQueryResultVenue) GetType ¶
func (q *InlineQueryResultVenue) GetType() string
type InlineQueryResultVideo ¶
type InlineQueryResultVideo struct {
Type string `json:"type"`
Id string `json:"id"`
VideoUrl string `json:"video_url"`
MimeType string `json:"mime_type"`
ThumbnailUrl string `json:"thumbnail_url"`
Title string `json:"title"`
Caption string `json:"caption,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []message_entity_dto.MessageEntity `json:"caption_entities,omitempty"`
VideoWidth int `json:"video_width,omitempty"`
VideoHeight int `json:"video_height,omitempty"`
VideoDuration int `json:"video_duration"`
Description string `json:"description,omitempty"`
ReplyMarkup *message_dto.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent InputMessageContent `json:"input_message_content,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultvideo
func (*InlineQueryResultVideo) GetType ¶
func (q *InlineQueryResultVideo) GetType() string
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"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []message_entity_dto.MessageEntity `json:"caption_entities,omitempty"`
ReplyMarkup *message_dto.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent InputMessageContent `json:"input_message_content,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultvoice
func (*InlineQueryResultVoice) GetType ¶
func (q *InlineQueryResultVoice) GetType() string
type InlineQueryResultsButton ¶
type InlineQueryResultsButton struct {
Text string `json:"text"`
WebApp *utils_dto.WebAppInfo `json:"web_app,omitempty"`
StartParameter string `json:"cache_time,omitempty"`
}
type InputContactMessageContent ¶
type InputContactMessageContent struct {
PhoneNumber string `json:"phone_number"`
FirstName string `json:"first_name"`
LastName string `json:"foursquare_id,omitempty"`
Vcard string `json:"foursquare_type,omitempty"`
}
https://core.telegram.org/bots/api#inputcontactmessagecontent
type InputInvoiceMessageContent ¶
type InputInvoiceMessageContent struct {
Title string `json:"title"`
Description string `json:"description"`
Payload string `json:"payload"`
ProviderToken string `json:"provider_token"`
Currency string `json:"currency"`
Prices []any `json:"prices"` // TODO LabeledPrice
MaxTipAmount uint `json:"max_tip_amount,omitempty"`
SuggestedTipAmounts []uint `json:"suggested_tip_amounts,omitempty"`
ProviderData string `json:"provider_data,omitempty"`
PhotoUrl string `json:"photo_url,omitempty"`
PhotoSize uint `json:"photo_size,omitempty"`
PhotoWidth uint `json:"photo_width,omitempty"`
PhotoHeight uint `json:"photo_height,omitempty"`
NeedName bool `json:"need_name,omitempty"`
NeedPhoneNumber bool `json:"need_phone_number,omitempty"`
NeedEmail bool `json:"need_email,omitempty"`
NeedShippingAddress bool `json:"need_shipping_address,omitempty"`
SendPhoneNumberToProvider bool `json:"send_phone_number_to_provider,omitempty"`
SendEmailToProvider bool `json:"send_email_to_provider,omitempty"`
IsFlexible bool `json:"is_flexible,omitempty"`
}
https://core.telegram.org/bots/api#inputinvoicemessagecontent
type InputLocationMessageContent ¶
type InputLocationMessageContent struct {
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
HorizontalAccuracy float64 `json:"horizontal_accuracy,omitempty"`
LivePeriod uint32 `json:"live_period,omitempty"`
Heading uint16 `json:"heading,omitempty"`
ProximityAlertRadius uint32 `json:"proximity_alert_radius,omitempty"`
}
https://core.telegram.org/bots/api#inputlocationmessagecontent
type InputMessageContent ¶
type InputMessageContent interface {
InputMessage()
}
type InputTextMessageContent ¶
type InputTextMessageContent struct {
MessageText string `json:"message_text"`
ParseMode string `json:"parse_mode,omitempty"`
Entities []message_entity_dto.MessageEntity `json:"entities,omitempty"`
DisableWebPagePreview bool `json:"disable_web_page_preview,omitempty"`
}
https://core.telegram.org/bots/api#inputtextmessagecontent
func (*InputTextMessageContent) InputMessage ¶
func (m *InputTextMessageContent) InputMessage()
type InputVenueMessageContent ¶
type InputVenueMessageContent struct {
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
Title string `json:"horizontal_actitlecuracy"`
Address string `json:"address"`
FoursquareId string `json:"foursquare_id,omitempty"`
FoursquareType string `json:"foursquare_type,omitempty"`
GooglePlaceId string `json:"google_place_id,omitempty"`
GooglePlaceType string `json:"google_place_type,omitempty"`
}
type SentWebAppMessage ¶
type SentWebAppMessage struct {
InlineMessageId string `json:"inline_message_id"`
}