Documentation
¶
Index ¶
- func GetFuncName(fn_struct interface{}) (string, error)
- type AddStickerToSet
- type Animation
- type AnswerCallbackQuery
- type AnswerInlineQuery
- type AnswerPreCheckoutQuery
- type AnswerShippingQuery
- type AnswerWebAppQuery
- type ApproveChatJoinRequest
- type Audio
- type BanChatMember
- type BanChatSenderChat
- type BotCommand
- type BotCommandScope
- type BotCommandScopeAllChatAdministrators
- type BotCommandScopeAllGroupChats
- type BotCommandScopeAllPrivateChats
- type BotCommandScopeChat
- type BotCommandScopeChatAdministrators
- type BotCommandScopeChatMember
- type BotCommandScopeDefault
- type BotDescription
- type BotName
- type BotShortDescription
- type CallbackGame
- type CallbackQuery
- type Chat
- type ChatAdministratorRights
- type ChatInviteLink
- type ChatJoinRequest
- type ChatLocation
- type ChatMember
- type ChatMemberAdministrator
- type ChatMemberBanned
- type ChatMemberLeft
- type ChatMemberMember
- type ChatMemberOwner
- type ChatMemberRestricted
- type ChatMemberUpdated
- type ChatPermissions
- type ChatPhoto
- type ChatShared
- type ChosenInlineResult
- type CloseForumTopic
- type CloseGeneralForumTopic
- type Contact
- type CopyMessage
- type CreateChatInviteLink
- type CreateForumTopic
- type CreateInvoiceLink
- type CreateNewStickerSet
- type DeclineChatJoinRequest
- type DeleteChatPhoto
- type DeleteChatStickerSet
- type DeleteForumTopic
- type DeleteMessage
- type DeleteMyCommands
- type DeleteStickerFromSet
- type DeleteStickerSet
- type Dice
- type Document
- type EditChatInviteLink
- type EditForumTopic
- type EditGeneralForumTopic
- type EditMessageCaption
- type EditMessageLiveLocation
- type EditMessageMedia
- type EditMessageReplyMarkup
- type EditMessageText
- type EncryptedCredentials
- type EncryptedPassportElement
- type ExportChatInviteLink
- type File
- type ForceReply
- type ForumTopic
- type ForumTopicClosed
- type ForumTopicCreated
- type ForumTopicEdited
- type ForumTopicReopened
- type ForwardMessage
- type Game
- type GameHighScore
- type GeneralForumTopicHidden
- type GeneralForumTopicUnhidden
- type GetChat
- type GetChatAdministrators
- type GetChatMember
- type GetChatMemberCount
- type GetChatMenuButton
- type GetCustomEmojiStickers
- type GetFile
- type GetGameHighScores
- type GetMyCommands
- type GetMyDefaultAdministratorRights
- type GetMyDescription
- type GetMyName
- type GetMyShortDescription
- type GetStickerSet
- type GetUpdates
- type GetUserProfilePhotos
- type HideGeneralForumTopic
- 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 InlineQueryResultsButton
- type InputContactMessageContent
- type InputFile
- type InputInvoiceMessageContent
- type InputLocationMessageContent
- type InputMedia
- type InputMediaAnimation
- type InputMediaAudio
- type InputMediaDocument
- type InputMediaPhoto
- type InputMediaVideo
- type InputMessageContent
- type InputSticker
- type InputTextMessageContent
- type InputVenueMessageContent
- type Invoice
- type KeyboardButton
- type KeyboardButtonPollType
- type KeyboardButtonRequestChat
- type KeyboardButtonRequestUser
- type LabeledPrice
- type LeaveChat
- type Location
- type LoginUrl
- type MaskPosition
- type MenuButton
- type MenuButtonCommands
- type MenuButtonDefault
- type MenuButtonWebApp
- type Message
- type MessageAutoDeleteTimerChanged
- type MessageEntity
- type MessageId
- type OrderInfo
- type PassportData
- type PassportElementError
- type PassportElementErrorDataField
- type PassportElementErrorFile
- type PassportElementErrorFiles
- type PassportElementErrorFrontSide
- type PassportElementErrorReverseSide
- type PassportElementErrorSelfie
- type PassportElementErrorTranslationFile
- type PassportElementErrorTranslationFiles
- type PassportElementErrorUnspecified
- type PassportFile
- type PhotoSize
- type PinChatMessage
- type Poll
- type PollAnswer
- type PollOption
- type PreCheckoutQuery
- type PromoteChatMember
- type ProximityAlertTriggered
- type ReopenForumTopic
- type ReopenGeneralForumTopic
- type ReplyKeyboardMarkup
- type ReplyKeyboardRemove
- type ResponseParameters
- type RestrictChatMember
- type RevokeChatInviteLink
- type SendAnimation
- type SendAudio
- type SendChatAction
- type SendContact
- type SendDice
- type SendDocument
- type SendGame
- type SendInvoice
- type SendLocation
- type SendMediaGroup
- type SendMessage
- type SendPhoto
- type SendPoll
- type SendSticker
- type SendVenue
- type SendVideo
- type SendVideoNote
- type SendVoice
- type SentWebAppMessage
- type SetChatAdministratorCustomTitle
- type SetChatDescription
- type SetChatMenuButton
- type SetChatPermissions
- type SetChatPhoto
- type SetChatStickerSet
- type SetChatTitle
- type SetCustomEmojiStickerSetThumbnail
- type SetGameScore
- type SetMyCommands
- type SetMyDefaultAdministratorRights
- type SetMyDescription
- type SetMyName
- type SetMyShortDescription
- type SetPassportDataErrors
- type SetStickerEmojiList
- type SetStickerKeywords
- type SetStickerMaskPosition
- type SetStickerPositionInSet
- type SetStickerSetThumbnail
- type SetStickerSetTitle
- type ShippingAddress
- type ShippingOption
- type ShippingQuery
- type Sticker
- type StickerSet
- type StopMessageLiveLocation
- type StopPoll
- type Story
- type SuccessfulPayment
- type SwitchInlineQueryChosenChat
- type TelegramUpdate
- type UnbanChatMember
- type UnbanChatSenderChat
- type UnhideGeneralForumTopic
- type UnpinAllChatMessages
- type UnpinAllForumTopicMessages
- type UnpinAllGeneralForumTopicMessages
- type UnpinChatMessage
- type Update
- type UploadStickerFile
- type User
- type UserProfilePhotos
- type UserShared
- type Venue
- type Video
- type VideoChatEnded
- type VideoChatParticipantsInvited
- type VideoChatScheduled
- type VideoChatStarted
- type VideoNote
- type Voice
- type WebAppData
- type WebAppInfo
- type WebhookInfo
- type WriteAccessAllowed
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFuncName ¶
Types ¶
type AddStickerToSet ¶
type AddStickerToSet struct { UserId int64 `json:"user_id,omitempty"` Name string `json:"name,omitempty"` Sticker InputSticker `json:"sticker,omitempty"` }
type Animation ¶
type Animation struct { FileId string `json:"file_id,omitempty"` FileUniqueId string `json:"file_unique_id,omitempty"` Width int64 `json:"width,omitempty"` Height int64 `json:"height,omitempty"` Duration int64 `json:"duration,omitempty"` Thumbnail PhotoSize `json:"thumbnail,omitempty"` FileName string `json:"file_name,omitempty"` MimeType string `json:"mime_type,omitempty"` FileSize int64 `json:"file_size,omitempty"` }
type AnswerCallbackQuery ¶
type AnswerInlineQuery ¶
type AnswerInlineQuery struct { InlineQueryId string `json:"inline_query_id,omitempty"` Results []interface{} `json:"results,omitempty"` CacheTime int64 `json:"cache_time,omitempty"` IsPersonal bool `json:"is_personal,omitempty"` NextOffset string `json:"next_offset,omitempty"` Button InlineQueryResultsButton `json:"button,omitempty"` }
type AnswerPreCheckoutQuery ¶
type AnswerShippingQuery ¶
type AnswerShippingQuery struct { ShippingQueryId string `json:"shipping_query_id,omitempty"` Ok bool `json:"ok,omitempty"` ShippingOptions []ShippingOption `json:"shipping_options,omitempty"` ErrorMessage string `json:"error_message,omitempty"` }
type AnswerWebAppQuery ¶
type AnswerWebAppQuery struct { WebAppQueryId string `json:"web_app_query_id,omitempty"` Result interface{} `json:"result,omitempty"` }
type ApproveChatJoinRequest ¶
type Audio ¶
type Audio struct { FileId string `json:"file_id,omitempty"` FileUniqueId string `json:"file_unique_id,omitempty"` Duration int64 `json:"duration,omitempty"` Performer string `json:"performer,omitempty"` Title string `json:"title,omitempty"` FileName string `json:"file_name,omitempty"` MimeType string `json:"mime_type,omitempty"` FileSize int64 `json:"file_size,omitempty"` Thumbnail PhotoSize `json:"thumbnail,omitempty"` }
type BanChatMember ¶
type BanChatSenderChat ¶
type BotCommand ¶
type BotCommandScope ¶
type BotCommandScope interface{}
type BotCommandScopeAllChatAdministrators ¶
type BotCommandScopeAllChatAdministrators struct {
Type string `json:"type,omitempty"`
}
type BotCommandScopeAllGroupChats ¶
type BotCommandScopeAllGroupChats struct {
Type string `json:"type,omitempty"`
}
type BotCommandScopeAllPrivateChats ¶
type BotCommandScopeAllPrivateChats struct {
Type string `json:"type,omitempty"`
}
type BotCommandScopeChat ¶
type BotCommandScopeDefault ¶
type BotCommandScopeDefault struct {
Type string `json:"type,omitempty"`
}
type BotDescription ¶
type BotDescription struct {
Description string `json:"description,omitempty"`
}
type BotShortDescription ¶
type BotShortDescription struct {
ShortDescription string `json:"short_description,omitempty"`
}
type CallbackGame ¶
type CallbackGame string
type CallbackQuery ¶
type CallbackQuery struct { Id string `json:"id,omitempty"` From User `json:"from,omitempty"` 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 int64 `json:"id,omitempty"` Type string `json:"type,omitempty"` Title string `json:"title,omitempty"` Username string `json:"username,omitempty"` FirstName string `json:"first_name,omitempty"` LastName string `json:"last_name,omitempty"` IsForum bool `json:"is_forum,omitempty"` Photo ChatPhoto `json:"photo,omitempty"` ActiveUsernames []string `json:"active_usernames,omitempty"` EmojiStatusCustomEmojiId string `json:"emoji_status_custom_emoji_id,omitempty"` EmojiStatusExpirationDate int64 `json:"emoji_status_expiration_date,omitempty"` Bio string `json:"bio,omitempty"` HasPrivateForwards bool `json:"has_private_forwards,omitempty"` HasRestrictedVoiceAndVideoMessages bool `json:"has_restricted_voice_and_video_messages,omitempty"` JoinToSendMessages bool `json:"join_to_send_messages,omitempty"` JoinByRequest bool `json:"join_by_request,omitempty"` Description string `json:"description,omitempty"` InviteLink string `json:"invite_link,omitempty"` Permissions ChatPermissions `json:"permissions,omitempty"` SlowModeDelay int64 `json:"slow_mode_delay,omitempty"` MessageAutoDeleteTime int64 `json:"message_auto_delete_time,omitempty"` HasAggressiveAntiSpamEnabled bool `json:"has_aggressive_anti_spam_enabled,omitempty"` HasHiddenMembers bool `json:"has_hidden_members,omitempty"` HasProtectedContent bool `json:"has_protected_content,omitempty"` StickerSetName string `json:"sticker_set_name,omitempty"` CanSetStickerSet bool `json:"can_set_sticker_set,omitempty"` LinkedChatId int64 `json:"linked_chat_id,omitempty"` Location ChatLocation `json:"location,omitempty"` }
type ChatAdministratorRights ¶
type ChatAdministratorRights struct { IsAnonymous bool `json:"is_anonymous,omitempty"` CanManageChat bool `json:"can_manage_chat,omitempty"` CanDeleteMessages bool `json:"can_delete_messages,omitempty"` CanManageVideoChats bool `json:"can_manage_video_chats,omitempty"` CanRestrictMembers bool `json:"can_restrict_members,omitempty"` CanPromoteMembers bool `json:"can_promote_members,omitempty"` CanChangeInfo bool `json:"can_change_info,omitempty"` CanInviteUsers bool `json:"can_invite_users,omitempty"` CanPostMessages bool `json:"can_post_messages,omitempty"` CanEditMessages bool `json:"can_edit_messages,omitempty"` CanPinMessages bool `json:"can_pin_messages,omitempty"` CanPostStories bool `json:"can_post_stories,omitempty"` CanEditStories bool `json:"can_edit_stories,omitempty"` CanDeleteStories bool `json:"can_delete_stories,omitempty"` CanManageTopics bool `json:"can_manage_topics,omitempty"` }
type ChatInviteLink ¶
type ChatInviteLink struct { InviteLink string `json:"invite_link,omitempty"` Creator User `json:"creator,omitempty"` CreatesJoinRequest bool `json:"creates_join_request,omitempty"` IsPrimary bool `json:"is_primary,omitempty"` IsRevoked bool `json:"is_revoked,omitempty"` Name string `json:"name,omitempty"` ExpireDate int64 `json:"expire_date,omitempty"` MemberLimit int64 `json:"member_limit,omitempty"` PendingJoinRequestCount int64 `json:"pending_join_request_count,omitempty"` }
type ChatJoinRequest ¶
type ChatLocation ¶
type ChatMember ¶
type ChatMember interface{}
type ChatMemberAdministrator ¶
type ChatMemberAdministrator struct { Status string `json:"status,omitempty"` User User `json:"user,omitempty"` CanBeEdited bool `json:"can_be_edited,omitempty"` IsAnonymous bool `json:"is_anonymous,omitempty"` CanManageChat bool `json:"can_manage_chat,omitempty"` CanDeleteMessages bool `json:"can_delete_messages,omitempty"` CanManageVideoChats bool `json:"can_manage_video_chats,omitempty"` CanRestrictMembers bool `json:"can_restrict_members,omitempty"` CanPromoteMembers bool `json:"can_promote_members,omitempty"` CanChangeInfo bool `json:"can_change_info,omitempty"` CanInviteUsers bool `json:"can_invite_users,omitempty"` CanPostMessages bool `json:"can_post_messages,omitempty"` CanEditMessages bool `json:"can_edit_messages,omitempty"` CanPinMessages bool `json:"can_pin_messages,omitempty"` CanPostStories bool `json:"can_post_stories,omitempty"` CanEditStories bool `json:"can_edit_stories,omitempty"` CanDeleteStories bool `json:"can_delete_stories,omitempty"` CanManageTopics bool `json:"can_manage_topics,omitempty"` CustomTitle string `json:"custom_title,omitempty"` }
type ChatMemberBanned ¶
type ChatMemberLeft ¶
type ChatMemberMember ¶
type ChatMemberOwner ¶
type ChatMemberRestricted ¶
type ChatMemberRestricted struct { Status string `json:"status,omitempty"` User User `json:"user,omitempty"` IsMember bool `json:"is_member,omitempty"` CanSendMessages bool `json:"can_send_messages,omitempty"` CanSendAudios bool `json:"can_send_audios,omitempty"` CanSendDocuments bool `json:"can_send_documents,omitempty"` CanSendPhotos bool `json:"can_send_photos,omitempty"` CanSendVideos bool `json:"can_send_videos,omitempty"` CanSendVideoNotes bool `json:"can_send_video_notes,omitempty"` CanSendVoiceNotes bool `json:"can_send_voice_notes,omitempty"` CanSendPolls bool `json:"can_send_polls,omitempty"` CanSendOtherMessages bool `json:"can_send_other_messages,omitempty"` CanAddWebPagePreviews bool `json:"can_add_web_page_previews,omitempty"` CanChangeInfo bool `json:"can_change_info,omitempty"` CanInviteUsers bool `json:"can_invite_users,omitempty"` CanPinMessages bool `json:"can_pin_messages,omitempty"` CanManageTopics bool `json:"can_manage_topics,omitempty"` UntilDate int64 `json:"until_date,omitempty"` }
type ChatMemberUpdated ¶
type ChatMemberUpdated struct { Chat Chat `json:"chat,omitempty"` From User `json:"from,omitempty"` Date int64 `json:"date,omitempty"` OldChatMember ChatMember `json:"old_chat_member,omitempty"` NewChatMember ChatMember `json:"new_chat_member,omitempty"` InviteLink ChatInviteLink `json:"invite_link,omitempty"` ViaChatFolderInviteLink bool `json:"via_chat_folder_invite_link,omitempty"` }
type ChatPermissions ¶
type ChatPermissions struct { CanSendMessages bool `json:"can_send_messages,omitempty"` CanSendAudios bool `json:"can_send_audios,omitempty"` CanSendDocuments bool `json:"can_send_documents,omitempty"` CanSendPhotos bool `json:"can_send_photos,omitempty"` CanSendVideos bool `json:"can_send_videos,omitempty"` CanSendVideoNotes bool `json:"can_send_video_notes,omitempty"` CanSendVoiceNotes bool `json:"can_send_voice_notes,omitempty"` CanSendPolls bool `json:"can_send_polls,omitempty"` CanSendOtherMessages bool `json:"can_send_other_messages,omitempty"` CanAddWebPagePreviews bool `json:"can_add_web_page_previews,omitempty"` CanChangeInfo bool `json:"can_change_info,omitempty"` CanInviteUsers bool `json:"can_invite_users,omitempty"` CanPinMessages bool `json:"can_pin_messages,omitempty"` CanManageTopics bool `json:"can_manage_topics,omitempty"` }
type ChatShared ¶
type ChatShared struct {}
type ChosenInlineResult ¶
type CloseForumTopic ¶
type CloseGeneralForumTopic ¶
type CloseGeneralForumTopic struct {
ChatId int64 `json:"chat_id,omitempty"`
}
type CopyMessage ¶
type CopyMessage struct { ChatId int64 `json:"chat_id,omitempty"` MessageThreadId int64 `json:"message_thread_id,omitempty"` FromChatId int64 `json:"from_chat_id,omitempty"` MessageId int64 `json:"message_id,omitempty"` Caption string `json:"caption,omitempty"` ParseMode string `json:"parse_mode,omitempty"` CaptionEntities []MessageEntity `json:"caption_entities,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"` AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"` ReplyMarkup interface{} `json:"reply_markup,omitempty"` }
type CreateChatInviteLink ¶
type CreateForumTopic ¶
type CreateInvoiceLink ¶
type CreateInvoiceLink struct { Title string `json:"title,omitempty"` Description string `json:"description,omitempty"` Payload string `json:"payload,omitempty"` ProviderToken string `json:"provider_token,omitempty"` Currency string `json:"currency,omitempty"` Prices []LabeledPrice `json:"prices,omitempty"` MaxTipAmount int64 `json:"max_tip_amount,omitempty"` SuggestedTipAmounts []int64 `json:"suggested_tip_amounts,omitempty"` ProviderData string `json:"provider_data,omitempty"` PhotoUrl string `json:"photo_url,omitempty"` PhotoSize int64 `json:"photo_size,omitempty"` PhotoWidth int64 `json:"photo_width,omitempty"` PhotoHeight int64 `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"` }
type CreateNewStickerSet ¶
type CreateNewStickerSet struct { UserId int64 `json:"user_id,omitempty"` Name string `json:"name,omitempty"` Title string `json:"title,omitempty"` Stickers []InputSticker `json:"stickers,omitempty"` StickerFormat string `json:"sticker_format,omitempty"` StickerType string `json:"sticker_type,omitempty"` NeedsRepainting bool `json:"needs_repainting,omitempty"` }
type DeclineChatJoinRequest ¶
type DeleteChatPhoto ¶
type DeleteChatPhoto struct {
ChatId int64 `json:"chat_id,omitempty"`
}
type DeleteChatStickerSet ¶
type DeleteChatStickerSet struct {
ChatId int64 `json:"chat_id,omitempty"`
}
type DeleteForumTopic ¶
type DeleteMessage ¶
type DeleteMyCommands ¶
type DeleteMyCommands struct { Scope interface{} `json:"scope,omitempty"` LanguageCode string `json:"language_code,omitempty"` }
type DeleteStickerFromSet ¶
type DeleteStickerFromSet struct {
Sticker string `json:"sticker,omitempty"`
}
type DeleteStickerSet ¶
type DeleteStickerSet struct {
Name string `json:"name,omitempty"`
}
type Document ¶
type Document struct { FileId string `json:"file_id,omitempty"` FileUniqueId string `json:"file_unique_id,omitempty"` Thumbnail PhotoSize `json:"thumbnail,omitempty"` FileName string `json:"file_name,omitempty"` MimeType string `json:"mime_type,omitempty"` FileSize int64 `json:"file_size,omitempty"` }
type EditChatInviteLink ¶
type EditChatInviteLink struct { ChatId int64 `json:"chat_id,omitempty"` InviteLink string `json:"invite_link,omitempty"` Name string `json:"name,omitempty"` ExpireDate int64 `json:"expire_date,omitempty"` MemberLimit int64 `json:"member_limit,omitempty"` CreatesJoinRequest bool `json:"creates_join_request,omitempty"` }
type EditForumTopic ¶
type EditGeneralForumTopic ¶
type EditMessageCaption ¶
type EditMessageCaption struct { ChatId int64 `json:"chat_id,omitempty"` MessageId int64 `json:"message_id,omitempty"` InlineMessageId string `json:"inline_message_id,omitempty"` Caption string `json:"caption,omitempty"` ParseMode string `json:"parse_mode,omitempty"` CaptionEntities []MessageEntity `json:"caption_entities,omitempty"` ReplyMarkup interface{} `json:"reply_markup,omitempty"` }
type EditMessageLiveLocation ¶
type EditMessageLiveLocation struct { ChatId int64 `json:"chat_id,omitempty"` MessageId int64 `json:"message_id,omitempty"` InlineMessageId string `json:"inline_message_id,omitempty"` Latitude float32 `json:"latitude,omitempty"` Longitude float32 `json:"longitude,omitempty"` HorizontalAccuracy float32 `json:"horizontal_accuracy,omitempty"` Heading int64 `json:"heading,omitempty"` ProximityAlertRadius int64 `json:"proximity_alert_radius,omitempty"` ReplyMarkup interface{} `json:"reply_markup,omitempty"` }
type EditMessageMedia ¶
type EditMessageReplyMarkup ¶
type EditMessageText ¶
type EditMessageText struct { ChatId int64 `json:"chat_id,omitempty"` MessageId int64 `json:"message_id,omitempty"` InlineMessageId string `json:"inline_message_id,omitempty"` Text string `json:"text,omitempty"` ParseMode string `json:"parse_mode,omitempty"` Entities []MessageEntity `json:"entities,omitempty"` DisableWebPagePreview bool `json:"disable_web_page_preview,omitempty"` ReplyMarkup interface{} `json:"reply_markup,omitempty"` }
type EncryptedCredentials ¶
type EncryptedPassportElement ¶
type EncryptedPassportElement struct { Type string `json:"type,omitempty"` Data string `json:"data,omitempty"` PhoneNumber string `json:"phone_number,omitempty"` Email string `json:"email,omitempty"` Files []PassportFile `json:"files,omitempty"` FrontSide PassportFile `json:"front_side,omitempty"` ReverseSide PassportFile `json:"reverse_side,omitempty"` Selfie PassportFile `json:"selfie,omitempty"` Translation []PassportFile `json:"translation,omitempty"` Hash string `json:"hash,omitempty"` }
type ExportChatInviteLink ¶
type ExportChatInviteLink struct {
ChatId int64 `json:"chat_id,omitempty"`
}
type ForceReply ¶
type ForumTopic ¶
type ForumTopicClosed ¶
type ForumTopicClosed interface{}
type ForumTopicCreated ¶
type ForumTopicEdited ¶
type ForumTopicReopened ¶
type ForumTopicReopened interface{}
type ForwardMessage ¶
type ForwardMessage struct { ChatId int64 `json:"chat_id,omitempty"` MessageThreadId int64 `json:"message_thread_id,omitempty"` FromChatId int64 `json:"from_chat_id,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` MessageId int64 `json:"message_id,omitempty"` }
type GameHighScore ¶
type GeneralForumTopicHidden ¶
type GeneralForumTopicHidden interface{}
type GeneralForumTopicUnhidden ¶
type GeneralForumTopicUnhidden interface{}
type GetChatAdministrators ¶
type GetChatAdministrators struct {
ChatId int64 `json:"chat_id,omitempty"`
}
type GetChatMember ¶
type GetChatMemberCount ¶
type GetChatMemberCount struct {
ChatId int64 `json:"chat_id,omitempty"`
}
type GetChatMenuButton ¶
type GetChatMenuButton struct {
ChatId int64 `json:"chat_id,omitempty"`
}
type GetCustomEmojiStickers ¶
type GetCustomEmojiStickers struct {
CustomEmojiIds []string `json:"custom_emoji_ids,omitempty"`
}
type GetGameHighScores ¶
type GetMyCommands ¶
type GetMyCommands struct { Scope interface{} `json:"scope,omitempty"` LanguageCode string `json:"language_code,omitempty"` }
type GetMyDefaultAdministratorRights ¶
type GetMyDefaultAdministratorRights struct {
ForChannels bool `json:"for_channels,omitempty"`
}
type GetMyDescription ¶
type GetMyDescription struct {
LanguageCode string `json:"language_code,omitempty"`
}
type GetMyShortDescription ¶
type GetMyShortDescription struct {
LanguageCode string `json:"language_code,omitempty"`
}
type GetStickerSet ¶
type GetStickerSet struct {
Name string `json:"name,omitempty"`
}
type GetUpdates ¶
type GetUserProfilePhotos ¶
type HideGeneralForumTopic ¶
type HideGeneralForumTopic struct {
ChatId int64 `json:"chat_id,omitempty"`
}
type InlineKeyboardButton ¶
type InlineKeyboardButton struct { Text string `json:"text,omitempty"` Url string `json:"url,omitempty"` CallbackData string `json:"callback_data,omitempty"` WebApp WebAppInfo `json:"web_app,omitempty"` LoginUrl LoginUrl `json:"login_url,omitempty"` SwitchInlineQuery string `json:"switch_inline_query,omitempty"` SwitchInlineQueryCurrentChat string `json:"switch_inline_query_current_chat,omitempty"` SwitchInlineQueryChosenChat SwitchInlineQueryChosenChat `json:"switch_inline_query_chosen_chat,omitempty"` CallbackGame CallbackGame `json:"callback_game,omitempty"` Pay bool `json:"pay,omitempty"` }
type InlineKeyboardMarkup ¶
type InlineKeyboardMarkup struct {
InlineKeyboard [][]InlineKeyboardButton `json:"inline_keyboard,omitempty"`
}
type InlineQuery ¶
type InlineQueryResult ¶
type InlineQueryResult interface{}
type InlineQueryResultArticle ¶
type InlineQueryResultArticle struct { Type string `json:"type,omitempty"` Id string `json:"id,omitempty"` Title string `json:"title,omitempty"` InputMessageContent InputMessageContent `json:"input_message_content,omitempty"` ReplyMarkup InlineKeyboardMarkup `json:"reply_markup,omitempty"` Url string `json:"url,omitempty"` HideUrl bool `json:"hide_url,omitempty"` Description string `json:"description,omitempty"` ThumbnailUrl string `json:"thumbnail_url,omitempty"` ThumbnailWidth int64 `json:"thumbnail_width,omitempty"` ThumbnailHeight int64 `json:"thumbnail_height,omitempty"` }
type InlineQueryResultAudio ¶
type InlineQueryResultAudio struct { Type string `json:"type,omitempty"` Id string `json:"id,omitempty"` AudioUrl string `json:"audio_url,omitempty"` Title string `json:"title,omitempty"` Caption string `json:"caption,omitempty"` ParseMode string `json:"parse_mode,omitempty"` CaptionEntities []MessageEntity `json:"caption_entities,omitempty"` Performer string `json:"performer,omitempty"` AudioDuration int64 `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,omitempty"` Id string `json:"id,omitempty"` AudioFileId string `json:"audio_file_id,omitempty"` Caption string `json:"caption,omitempty"` ParseMode string `json:"parse_mode,omitempty"` CaptionEntities []MessageEntity `json:"caption_entities,omitempty"` ReplyMarkup InlineKeyboardMarkup `json:"reply_markup,omitempty"` InputMessageContent InputMessageContent `json:"input_message_content,omitempty"` }
type InlineQueryResultCachedDocument ¶
type InlineQueryResultCachedDocument struct { Type string `json:"type,omitempty"` Id string `json:"id,omitempty"` Title string `json:"title,omitempty"` DocumentFileId string `json:"document_file_id,omitempty"` Description string `json:"description,omitempty"` Caption string `json:"caption,omitempty"` ParseMode string `json:"parse_mode,omitempty"` CaptionEntities []MessageEntity `json:"caption_entities,omitempty"` ReplyMarkup InlineKeyboardMarkup `json:"reply_markup,omitempty"` InputMessageContent InputMessageContent `json:"input_message_content,omitempty"` }
type InlineQueryResultCachedGif ¶
type InlineQueryResultCachedGif struct { Type string `json:"type,omitempty"` Id string `json:"id,omitempty"` GifFileId string `json:"gif_file_id,omitempty"` Title string `json:"title,omitempty"` Caption string `json:"caption,omitempty"` ParseMode string `json:"parse_mode,omitempty"` CaptionEntities []MessageEntity `json:"caption_entities,omitempty"` ReplyMarkup InlineKeyboardMarkup `json:"reply_markup,omitempty"` InputMessageContent InputMessageContent `json:"input_message_content,omitempty"` }
type InlineQueryResultCachedMpeg4Gif ¶
type InlineQueryResultCachedMpeg4Gif struct { Type string `json:"type,omitempty"` Id string `json:"id,omitempty"` Mpeg4FileId string `json:"mpeg4_file_id,omitempty"` Title string `json:"title,omitempty"` Caption string `json:"caption,omitempty"` ParseMode string `json:"parse_mode,omitempty"` CaptionEntities []MessageEntity `json:"caption_entities,omitempty"` ReplyMarkup InlineKeyboardMarkup `json:"reply_markup,omitempty"` InputMessageContent InputMessageContent `json:"input_message_content,omitempty"` }
type InlineQueryResultCachedPhoto ¶
type InlineQueryResultCachedPhoto struct { Type string `json:"type,omitempty"` Id string `json:"id,omitempty"` PhotoFileId string `json:"photo_file_id,omitempty"` Title string `json:"title,omitempty"` Description string `json:"description,omitempty"` Caption string `json:"caption,omitempty"` ParseMode string `json:"parse_mode,omitempty"` CaptionEntities []MessageEntity `json:"caption_entities,omitempty"` ReplyMarkup InlineKeyboardMarkup `json:"reply_markup,omitempty"` InputMessageContent InputMessageContent `json:"input_message_content,omitempty"` }
type InlineQueryResultCachedSticker ¶
type InlineQueryResultCachedSticker struct { Type string `json:"type,omitempty"` Id string `json:"id,omitempty"` StickerFileId string `json:"sticker_file_id,omitempty"` ReplyMarkup InlineKeyboardMarkup `json:"reply_markup,omitempty"` InputMessageContent InputMessageContent `json:"input_message_content,omitempty"` }
type InlineQueryResultCachedVideo ¶
type InlineQueryResultCachedVideo struct { Type string `json:"type,omitempty"` Id string `json:"id,omitempty"` VideoFileId string `json:"video_file_id,omitempty"` Title string `json:"title,omitempty"` Description string `json:"description,omitempty"` Caption string `json:"caption,omitempty"` ParseMode string `json:"parse_mode,omitempty"` CaptionEntities []MessageEntity `json:"caption_entities,omitempty"` ReplyMarkup InlineKeyboardMarkup `json:"reply_markup,omitempty"` InputMessageContent InputMessageContent `json:"input_message_content,omitempty"` }
type InlineQueryResultCachedVoice ¶
type InlineQueryResultCachedVoice struct { Type string `json:"type,omitempty"` Id string `json:"id,omitempty"` VoiceFileId string `json:"voice_file_id,omitempty"` Title string `json:"title,omitempty"` Caption string `json:"caption,omitempty"` ParseMode string `json:"parse_mode,omitempty"` CaptionEntities []MessageEntity `json:"caption_entities,omitempty"` ReplyMarkup InlineKeyboardMarkup `json:"reply_markup,omitempty"` InputMessageContent InputMessageContent `json:"input_message_content,omitempty"` }
type InlineQueryResultContact ¶
type InlineQueryResultContact struct { Type string `json:"type,omitempty"` Id string `json:"id,omitempty"` PhoneNumber string `json:"phone_number,omitempty"` FirstName string `json:"first_name,omitempty"` LastName string `json:"last_name,omitempty"` Vcard string `json:"vcard,omitempty"` ReplyMarkup InlineKeyboardMarkup `json:"reply_markup,omitempty"` InputMessageContent InputMessageContent `json:"input_message_content,omitempty"` ThumbnailUrl string `json:"thumbnail_url,omitempty"` ThumbnailWidth int64 `json:"thumbnail_width,omitempty"` ThumbnailHeight int64 `json:"thumbnail_height,omitempty"` }
type InlineQueryResultDocument ¶
type InlineQueryResultDocument struct { Type string `json:"type,omitempty"` Id string `json:"id,omitempty"` Title string `json:"title,omitempty"` Caption string `json:"caption,omitempty"` ParseMode string `json:"parse_mode,omitempty"` CaptionEntities []MessageEntity `json:"caption_entities,omitempty"` DocumentUrl string `json:"document_url,omitempty"` MimeType string `json:"mime_type,omitempty"` Description string `json:"description,omitempty"` ReplyMarkup InlineKeyboardMarkup `json:"reply_markup,omitempty"` InputMessageContent InputMessageContent `json:"input_message_content,omitempty"` ThumbnailUrl string `json:"thumbnail_url,omitempty"` ThumbnailWidth int64 `json:"thumbnail_width,omitempty"` ThumbnailHeight int64 `json:"thumbnail_height,omitempty"` }
type InlineQueryResultGame ¶
type InlineQueryResultGame struct { Type string `json:"type,omitempty"` Id string `json:"id,omitempty"` GameShortName string `json:"game_short_name,omitempty"` ReplyMarkup InlineKeyboardMarkup `json:"reply_markup,omitempty"` }
type InlineQueryResultGif ¶
type InlineQueryResultGif struct { Type string `json:"type,omitempty"` Id string `json:"id,omitempty"` GifUrl string `json:"gif_url,omitempty"` GifWidth int64 `json:"gif_width,omitempty"` GifHeight int64 `json:"gif_height,omitempty"` GifDuration int64 `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 []MessageEntity `json:"caption_entities,omitempty"` ReplyMarkup InlineKeyboardMarkup `json:"reply_markup,omitempty"` InputMessageContent InputMessageContent `json:"input_message_content,omitempty"` }
type InlineQueryResultLocation ¶
type InlineQueryResultLocation struct { Type string `json:"type,omitempty"` Id string `json:"id,omitempty"` Latitude float32 `json:"latitude,omitempty"` Longitude float32 `json:"longitude,omitempty"` Title string `json:"title,omitempty"` HorizontalAccuracy float32 `json:"horizontal_accuracy,omitempty"` LivePeriod int64 `json:"live_period,omitempty"` Heading int64 `json:"heading,omitempty"` ProximityAlertRadius int64 `json:"proximity_alert_radius,omitempty"` ReplyMarkup InlineKeyboardMarkup `json:"reply_markup,omitempty"` InputMessageContent InputMessageContent `json:"input_message_content,omitempty"` ThumbnailUrl string `json:"thumbnail_url,omitempty"` ThumbnailWidth int64 `json:"thumbnail_width,omitempty"` ThumbnailHeight int64 `json:"thumbnail_height,omitempty"` }
type InlineQueryResultMpeg4Gif ¶
type InlineQueryResultMpeg4Gif struct { Type string `json:"type,omitempty"` Id string `json:"id,omitempty"` Mpeg4Url string `json:"mpeg4_url,omitempty"` Mpeg4Width int64 `json:"mpeg4_width,omitempty"` Mpeg4Height int64 `json:"mpeg4_height,omitempty"` Mpeg4Duration int64 `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 []MessageEntity `json:"caption_entities,omitempty"` ReplyMarkup InlineKeyboardMarkup `json:"reply_markup,omitempty"` InputMessageContent InputMessageContent `json:"input_message_content,omitempty"` }
type InlineQueryResultPhoto ¶
type InlineQueryResultPhoto struct { Type string `json:"type,omitempty"` Id string `json:"id,omitempty"` PhotoUrl string `json:"photo_url,omitempty"` ThumbnailUrl string `json:"thumbnail_url,omitempty"` PhotoWidth int64 `json:"photo_width,omitempty"` PhotoHeight int64 `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 []MessageEntity `json:"caption_entities,omitempty"` ReplyMarkup InlineKeyboardMarkup `json:"reply_markup,omitempty"` InputMessageContent InputMessageContent `json:"input_message_content,omitempty"` }
type InlineQueryResultVenue ¶
type InlineQueryResultVenue struct { Type string `json:"type,omitempty"` Id string `json:"id,omitempty"` Latitude float32 `json:"latitude,omitempty"` Longitude float32 `json:"longitude,omitempty"` Title string `json:"title,omitempty"` Address string `json:"address,omitempty"` 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 InlineKeyboardMarkup `json:"reply_markup,omitempty"` InputMessageContent InputMessageContent `json:"input_message_content,omitempty"` ThumbnailUrl string `json:"thumbnail_url,omitempty"` ThumbnailWidth int64 `json:"thumbnail_width,omitempty"` ThumbnailHeight int64 `json:"thumbnail_height,omitempty"` }
type InlineQueryResultVideo ¶
type InlineQueryResultVideo struct { Type string `json:"type,omitempty"` Id string `json:"id,omitempty"` VideoUrl string `json:"video_url,omitempty"` MimeType string `json:"mime_type,omitempty"` ThumbnailUrl string `json:"thumbnail_url,omitempty"` Title string `json:"title,omitempty"` Caption string `json:"caption,omitempty"` ParseMode string `json:"parse_mode,omitempty"` CaptionEntities []MessageEntity `json:"caption_entities,omitempty"` VideoWidth int64 `json:"video_width,omitempty"` VideoHeight int64 `json:"video_height,omitempty"` VideoDuration int64 `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,omitempty"` Id string `json:"id,omitempty"` VoiceUrl string `json:"voice_url,omitempty"` Title string `json:"title,omitempty"` Caption string `json:"caption,omitempty"` ParseMode string `json:"parse_mode,omitempty"` CaptionEntities []MessageEntity `json:"caption_entities,omitempty"` VoiceDuration int64 `json:"voice_duration,omitempty"` ReplyMarkup InlineKeyboardMarkup `json:"reply_markup,omitempty"` InputMessageContent InputMessageContent `json:"input_message_content,omitempty"` }
type InlineQueryResultsButton ¶
type InlineQueryResultsButton struct { Text string `json:"text,omitempty"` WebApp WebAppInfo `json:"web_app,omitempty"` StartParameter string `json:"start_parameter,omitempty"` }
type InputInvoiceMessageContent ¶
type InputInvoiceMessageContent struct { Title string `json:"title,omitempty"` Description string `json:"description,omitempty"` Payload string `json:"payload,omitempty"` ProviderToken string `json:"provider_token,omitempty"` Currency string `json:"currency,omitempty"` Prices []LabeledPrice `json:"prices,omitempty"` MaxTipAmount int64 `json:"max_tip_amount,omitempty"` SuggestedTipAmounts []int64 `json:"suggested_tip_amounts,omitempty"` ProviderData string `json:"provider_data,omitempty"` PhotoUrl string `json:"photo_url,omitempty"` PhotoSize int64 `json:"photo_size,omitempty"` PhotoWidth int64 `json:"photo_width,omitempty"` PhotoHeight int64 `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"` }
type InputLocationMessageContent ¶
type InputLocationMessageContent struct { Latitude float32 `json:"latitude,omitempty"` Longitude float32 `json:"longitude,omitempty"` HorizontalAccuracy float32 `json:"horizontal_accuracy,omitempty"` LivePeriod int64 `json:"live_period,omitempty"` Heading int64 `json:"heading,omitempty"` ProximityAlertRadius int64 `json:"proximity_alert_radius,omitempty"` }
type InputMedia ¶
type InputMedia interface{}
type InputMediaAnimation ¶
type InputMediaAnimation struct { Type string `json:"type,omitempty"` Media string `json:"media,omitempty"` Thumbnail InputFile `json:"thumbnail,omitempty"` Caption string `json:"caption,omitempty"` ParseMode string `json:"parse_mode,omitempty"` CaptionEntities []MessageEntity `json:"caption_entities,omitempty"` Width int64 `json:"width,omitempty"` Height int64 `json:"height,omitempty"` Duration int64 `json:"duration,omitempty"` HasSpoiler bool `json:"has_spoiler,omitempty"` }
type InputMediaAudio ¶
type InputMediaAudio struct { Type string `json:"type,omitempty"` Media string `json:"media,omitempty"` Thumbnail InputFile `json:"thumbnail,omitempty"` Caption string `json:"caption,omitempty"` ParseMode string `json:"parse_mode,omitempty"` CaptionEntities []MessageEntity `json:"caption_entities,omitempty"` Duration int64 `json:"duration,omitempty"` Performer string `json:"performer,omitempty"` Title string `json:"title,omitempty"` }
type InputMediaDocument ¶
type InputMediaDocument struct { Type string `json:"type,omitempty"` Media string `json:"media,omitempty"` Thumbnail InputFile `json:"thumbnail,omitempty"` Caption string `json:"caption,omitempty"` ParseMode string `json:"parse_mode,omitempty"` CaptionEntities []MessageEntity `json:"caption_entities,omitempty"` DisableContentTypeDetection bool `json:"disable_content_type_detection,omitempty"` }
type InputMediaPhoto ¶
type InputMediaPhoto struct { Type string `json:"type,omitempty"` Media string `json:"media,omitempty"` Caption string `json:"caption,omitempty"` ParseMode string `json:"parse_mode,omitempty"` CaptionEntities []MessageEntity `json:"caption_entities,omitempty"` HasSpoiler bool `json:"has_spoiler,omitempty"` }
type InputMediaVideo ¶
type InputMediaVideo struct { Type string `json:"type,omitempty"` Media string `json:"media,omitempty"` Thumbnail InputFile `json:"thumbnail,omitempty"` Caption string `json:"caption,omitempty"` ParseMode string `json:"parse_mode,omitempty"` CaptionEntities []MessageEntity `json:"caption_entities,omitempty"` Width int64 `json:"width,omitempty"` Height int64 `json:"height,omitempty"` Duration int64 `json:"duration,omitempty"` SupportsStreaming bool `json:"supports_streaming,omitempty"` HasSpoiler bool `json:"has_spoiler,omitempty"` }
type InputMessageContent ¶
type InputMessageContent interface{}
type InputSticker ¶
type InputSticker struct { Sticker InputFile `json:"sticker,omitempty"` EmojiList []string `json:"emoji_list,omitempty"` MaskPosition MaskPosition `json:"mask_position,omitempty"` Keywords []string `json:"keywords,omitempty"` }
type InputTextMessageContent ¶
type InputTextMessageContent struct { MessageText string `json:"message_text,omitempty"` ParseMode string `json:"parse_mode,omitempty"` Entities []MessageEntity `json:"entities,omitempty"` DisableWebPagePreview bool `json:"disable_web_page_preview,omitempty"` }
type InputVenueMessageContent ¶
type InputVenueMessageContent struct { Latitude float32 `json:"latitude,omitempty"` Longitude float32 `json:"longitude,omitempty"` Title string `json:"title,omitempty"` Address string `json:"address,omitempty"` 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 KeyboardButton ¶
type KeyboardButton struct { Text string `json:"text,omitempty"` RequestUser KeyboardButtonRequestUser `json:"request_user,omitempty"` RequestChat KeyboardButtonRequestChat `json:"request_chat,omitempty"` RequestContact bool `json:"request_contact,omitempty"` RequestLocation bool `json:"request_location,omitempty"` RequestPoll KeyboardButtonPollType `json:"request_poll,omitempty"` WebApp WebAppInfo `json:"web_app,omitempty"` }
type KeyboardButtonPollType ¶
type KeyboardButtonPollType struct {
Type string `json:"type,omitempty"`
}
type KeyboardButtonRequestChat ¶
type KeyboardButtonRequestChat struct { RequestId int64 `json:"request_id,omitempty"` ChatIsChannel bool `json:"chat_is_channel,omitempty"` ChatIsForum bool `json:"chat_is_forum,omitempty"` ChatHasUsername bool `json:"chat_has_username,omitempty"` ChatIsCreated bool `json:"chat_is_created,omitempty"` UserAdministratorRights ChatAdministratorRights `json:"user_administrator_rights,omitempty"` BotAdministratorRights ChatAdministratorRights `json:"bot_administrator_rights,omitempty"` BotIsMember bool `json:"bot_is_member,omitempty"` }
type LabeledPrice ¶
type Location ¶
type Location struct { Longitude float32 `json:"longitude,omitempty"` Latitude float32 `json:"latitude,omitempty"` HorizontalAccuracy float32 `json:"horizontal_accuracy,omitempty"` LivePeriod int64 `json:"live_period,omitempty"` Heading int64 `json:"heading,omitempty"` ProximityAlertRadius int64 `json:"proximity_alert_radius,omitempty"` }
type MaskPosition ¶
type MenuButton ¶
type MenuButton interface{}
type MenuButtonCommands ¶
type MenuButtonCommands struct {
Type string `json:"type,omitempty"`
}
type MenuButtonDefault ¶
type MenuButtonDefault struct {
Type string `json:"type,omitempty"`
}
type MenuButtonWebApp ¶
type MenuButtonWebApp struct { Type string `json:"type,omitempty"` Text string `json:"text,omitempty"` WebApp WebAppInfo `json:"web_app,omitempty"` }
type Message ¶
type Message struct { MessageId int64 `json:"message_id,omitempty"` MessageThreadId int64 `json:"message_thread_id,omitempty"` From User `json:"from,omitempty"` SenderChat Chat `json:"sender_chat,omitempty"` Date int64 `json:"date,omitempty"` Chat Chat `json:"chat,omitempty"` ForwardFrom User `json:"forward_from,omitempty"` ForwardFromChat Chat `json:"forward_from_chat,omitempty"` ForwardFromMessageId int64 `json:"forward_from_message_id,omitempty"` ForwardSignature string `json:"forward_signature,omitempty"` ForwardSenderName string `json:"forward_sender_name,omitempty"` ForwardDate int64 `json:"forward_date,omitempty"` IsTopicMessage bool `json:"is_topic_message,omitempty"` IsAutomaticForward bool `json:"is_automatic_forward,omitempty"` ViaBot User `json:"via_bot,omitempty"` EditDate int64 `json:"edit_date,omitempty"` HasProtectedContent bool `json:"has_protected_content,omitempty"` MediaGroupId string `json:"media_group_id,omitempty"` AuthorSignature string `json:"author_signature,omitempty"` Text string `json:"text,omitempty"` Entities []MessageEntity `json:"entities,omitempty"` Animation Animation `json:"animation,omitempty"` Audio Audio `json:"audio,omitempty"` Document Document `json:"document,omitempty"` Photo []PhotoSize `json:"photo,omitempty"` Sticker Sticker `json:"sticker,omitempty"` Story Story `json:"story,omitempty"` Video Video `json:"video,omitempty"` VideoNote VideoNote `json:"video_note,omitempty"` Voice Voice `json:"voice,omitempty"` Caption string `json:"caption,omitempty"` CaptionEntities []MessageEntity `json:"caption_entities,omitempty"` HasMediaSpoiler bool `json:"has_media_spoiler,omitempty"` Contact Contact `json:"contact,omitempty"` Dice Dice `json:"dice,omitempty"` Game Game `json:"game,omitempty"` Poll Poll `json:"poll,omitempty"` Venue Venue `json:"venue,omitempty"` Location Location `json:"location,omitempty"` NewChatMembers []User `json:"new_chat_members,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"` MessageAutoDeleteTimerChanged MessageAutoDeleteTimerChanged `json:"message_auto_delete_timer_changed,omitempty"` MigrateToChatId int64 `json:"migrate_to_chat_id,omitempty"` MigrateFromChatId int64 `json:"migrate_from_chat_id,omitempty"` Invoice Invoice `json:"invoice,omitempty"` SuccessfulPayment SuccessfulPayment `json:"successful_payment,omitempty"` ConnectedWebsite string `json:"connected_website,omitempty"` WriteAccessAllowed WriteAccessAllowed `json:"write_access_allowed,omitempty"` PassportData PassportData `json:"passport_data,omitempty"` ProximityAlertTriggered ProximityAlertTriggered `json:"proximity_alert_triggered,omitempty"` ForumTopicCreated ForumTopicCreated `json:"forum_topic_created,omitempty"` ForumTopicEdited ForumTopicEdited `json:"forum_topic_edited,omitempty"` ForumTopicClosed ForumTopicClosed `json:"forum_topic_closed,omitempty"` ForumTopicReopened ForumTopicReopened `json:"forum_topic_reopened,omitempty"` VideoChatScheduled VideoChatScheduled `json:"video_chat_scheduled,omitempty"` VideoChatStarted VideoChatStarted `json:"video_chat_started,omitempty"` VideoChatEnded VideoChatEnded `json:"video_chat_ended,omitempty"` VideoChatParticipantsInvited VideoChatParticipantsInvited `json:"video_chat_participants_invited,omitempty"` WebAppData WebAppData `json:"web_app_data,omitempty"` ReplyMarkup InlineKeyboardMarkup `json:"reply_markup,omitempty"` }
type MessageAutoDeleteTimerChanged ¶
type MessageAutoDeleteTimerChanged struct {
MessageAutoDeleteTime int64 `json:"message_auto_delete_time,omitempty"`
}
type MessageEntity ¶
type MessageEntity struct { Type string `json:"type,omitempty"` Offset int64 `json:"offset,omitempty"` Length int64 `json:"length,omitempty"` Url string `json:"url,omitempty"` User User `json:"user,omitempty"` Language string `json:"language,omitempty"` CustomEmojiId string `json:"custom_emoji_id,omitempty"` }
type OrderInfo ¶
type OrderInfo struct { Name string `json:"name,omitempty"` PhoneNumber string `json:"phone_number,omitempty"` Email string `json:"email,omitempty"` ShippingAddress ShippingAddress `json:"shipping_address,omitempty"` }
type PassportData ¶
type PassportData struct { Data []EncryptedPassportElement `json:"data,omitempty"` Credentials EncryptedCredentials `json:"credentials,omitempty"` }
type PassportElementError ¶
type PassportElementError interface{}
type PassportFile ¶
type PinChatMessage ¶
type Poll ¶
type Poll struct { Id string `json:"id,omitempty"` Question string `json:"question,omitempty"` Options []PollOption `json:"options,omitempty"` TotalVoterCount int64 `json:"total_voter_count,omitempty"` IsClosed bool `json:"is_closed,omitempty"` IsAnonymous bool `json:"is_anonymous,omitempty"` Type string `json:"type,omitempty"` AllowsMultipleAnswers bool `json:"allows_multiple_answers,omitempty"` CorrectOptionId int64 `json:"correct_option_id,omitempty"` Explanation string `json:"explanation,omitempty"` ExplanationEntities []MessageEntity `json:"explanation_entities,omitempty"` OpenPeriod int64 `json:"open_period,omitempty"` CloseDate int64 `json:"close_date,omitempty"` }
type PollAnswer ¶
type PollOption ¶
type PreCheckoutQuery ¶
type PreCheckoutQuery struct { Id string `json:"id,omitempty"` From User `json:"from,omitempty"` Currency string `json:"currency,omitempty"` TotalAmount int64 `json:"total_amount,omitempty"` InvoicePayload string `json:"invoice_payload,omitempty"` ShippingOptionId string `json:"shipping_option_id,omitempty"` OrderInfo OrderInfo `json:"order_info,omitempty"` }
type PromoteChatMember ¶
type PromoteChatMember struct { ChatId int64 `json:"chat_id,omitempty"` UserId int64 `json:"user_id,omitempty"` IsAnonymous bool `json:"is_anonymous,omitempty"` CanManageChat bool `json:"can_manage_chat,omitempty"` CanDeleteMessages bool `json:"can_delete_messages,omitempty"` CanManageVideoChats bool `json:"can_manage_video_chats,omitempty"` CanRestrictMembers bool `json:"can_restrict_members,omitempty"` CanPromoteMembers bool `json:"can_promote_members,omitempty"` CanChangeInfo bool `json:"can_change_info,omitempty"` CanInviteUsers bool `json:"can_invite_users,omitempty"` CanPostMessages bool `json:"can_post_messages,omitempty"` CanEditMessages bool `json:"can_edit_messages,omitempty"` CanPinMessages bool `json:"can_pin_messages,omitempty"` CanPostStories bool `json:"can_post_stories,omitempty"` CanEditStories bool `json:"can_edit_stories,omitempty"` CanDeleteStories bool `json:"can_delete_stories,omitempty"` CanManageTopics bool `json:"can_manage_topics,omitempty"` }
type ProximityAlertTriggered ¶
type ReopenForumTopic ¶
type ReopenGeneralForumTopic ¶
type ReopenGeneralForumTopic struct {
ChatId int64 `json:"chat_id,omitempty"`
}
type ReplyKeyboardMarkup ¶
type ReplyKeyboardMarkup struct { Keyboard [][]KeyboardButton `json:"keyboard,omitempty"` IsPersistent bool `json:"is_persistent,omitempty"` ResizeKeyboard bool `json:"resize_keyboard,omitempty"` OneTimeKeyboard bool `json:"one_time_keyboard,omitempty"` InputFieldPlaceholder string `json:"input_field_placeholder,omitempty"` Selective bool `json:"selective,omitempty"` }
type ReplyKeyboardRemove ¶
type ResponseParameters ¶
type RestrictChatMember ¶
type RestrictChatMember struct { ChatId int64 `json:"chat_id,omitempty"` UserId int64 `json:"user_id,omitempty"` Permissions ChatPermissions `json:"permissions,omitempty"` UseIndependentChatPermissions bool `json:"use_independent_chat_permissions,omitempty"` UntilDate int64 `json:"until_date,omitempty"` }
type RevokeChatInviteLink ¶
type SendAnimation ¶
type SendAnimation struct { ChatId int64 `json:"chat_id,omitempty"` MessageThreadId int64 `json:"message_thread_id,omitempty"` Animation InputFile `json:"animation,omitempty"` Duration int64 `json:"duration,omitempty"` Width int64 `json:"width,omitempty"` Height int64 `json:"height,omitempty"` Thumbnail InputFile `json:"thumbnail,omitempty"` Caption string `json:"caption,omitempty"` ParseMode string `json:"parse_mode,omitempty"` CaptionEntities []MessageEntity `json:"caption_entities,omitempty"` HasSpoiler bool `json:"has_spoiler,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"` AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"` ReplyMarkup interface{} `json:"reply_markup,omitempty"` }
type SendAudio ¶
type SendAudio struct { ChatId int64 `json:"chat_id,omitempty"` MessageThreadId int64 `json:"message_thread_id,omitempty"` Audio InputFile `json:"audio,omitempty"` Caption string `json:"caption,omitempty"` ParseMode string `json:"parse_mode,omitempty"` CaptionEntities []MessageEntity `json:"caption_entities,omitempty"` Duration int64 `json:"duration,omitempty"` Performer string `json:"performer,omitempty"` Title string `json:"title,omitempty"` Thumbnail InputFile `json:"thumbnail,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"` AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"` ReplyMarkup interface{} `json:"reply_markup,omitempty"` }
type SendChatAction ¶
type SendContact ¶
type SendContact struct { ChatId int64 `json:"chat_id,omitempty"` MessageThreadId int64 `json:"message_thread_id,omitempty"` PhoneNumber string `json:"phone_number,omitempty"` FirstName string `json:"first_name,omitempty"` LastName string `json:"last_name,omitempty"` Vcard string `json:"vcard,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"` AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"` ReplyMarkup interface{} `json:"reply_markup,omitempty"` }
type SendDice ¶
type SendDice struct { ChatId int64 `json:"chat_id,omitempty"` MessageThreadId int64 `json:"message_thread_id,omitempty"` Emoji string `json:"emoji,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"` AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"` ReplyMarkup interface{} `json:"reply_markup,omitempty"` }
type SendDocument ¶
type SendDocument struct { ChatId int64 `json:"chat_id,omitempty"` MessageThreadId int64 `json:"message_thread_id,omitempty"` Document InputFile `json:"document,omitempty"` Thumbnail InputFile `json:"thumbnail,omitempty"` Caption string `json:"caption,omitempty"` ParseMode string `json:"parse_mode,omitempty"` CaptionEntities []MessageEntity `json:"caption_entities,omitempty"` DisableContentTypeDetection bool `json:"disable_content_type_detection,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"` AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"` ReplyMarkup interface{} `json:"reply_markup,omitempty"` }
type SendGame ¶
type SendGame struct { ChatId int64 `json:"chat_id,omitempty"` MessageThreadId int64 `json:"message_thread_id,omitempty"` GameShortName string `json:"game_short_name,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"` AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"` ReplyMarkup interface{} `json:"reply_markup,omitempty"` }
type SendInvoice ¶
type SendInvoice struct { ChatId int64 `json:"chat_id,omitempty"` MessageThreadId int64 `json:"message_thread_id,omitempty"` Title string `json:"title,omitempty"` Description string `json:"description,omitempty"` Payload string `json:"payload,omitempty"` ProviderToken string `json:"provider_token,omitempty"` Currency string `json:"currency,omitempty"` Prices []LabeledPrice `json:"prices,omitempty"` MaxTipAmount int64 `json:"max_tip_amount,omitempty"` SuggestedTipAmounts []int64 `json:"suggested_tip_amounts,omitempty"` StartParameter string `json:"start_parameter,omitempty"` ProviderData string `json:"provider_data,omitempty"` PhotoUrl string `json:"photo_url,omitempty"` PhotoSize int64 `json:"photo_size,omitempty"` PhotoWidth int64 `json:"photo_width,omitempty"` PhotoHeight int64 `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"` DisableNotification bool `json:"disable_notification,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"` AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"` ReplyMarkup interface{} `json:"reply_markup,omitempty"` }
type SendLocation ¶
type SendLocation struct { ChatId int64 `json:"chat_id,omitempty"` MessageThreadId int64 `json:"message_thread_id,omitempty"` Latitude float32 `json:"latitude,omitempty"` Longitude float32 `json:"longitude,omitempty"` HorizontalAccuracy float32 `json:"horizontal_accuracy,omitempty"` LivePeriod int64 `json:"live_period,omitempty"` Heading int64 `json:"heading,omitempty"` ProximityAlertRadius int64 `json:"proximity_alert_radius,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"` AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"` ReplyMarkup interface{} `json:"reply_markup,omitempty"` }
type SendMediaGroup ¶
type SendMediaGroup struct { ChatId int64 `json:"chat_id,omitempty"` MessageThreadId int64 `json:"message_thread_id,omitempty"` Media []interface{} `json:"media,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"` AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"` }
type SendMessage ¶
type SendMessage struct { ChatId int64 `json:"chat_id,omitempty"` MessageThreadId int64 `json:"message_thread_id,omitempty"` Text string `json:"text,omitempty"` ParseMode string `json:"parse_mode,omitempty"` Entities []MessageEntity `json:"entities,omitempty"` DisableWebPagePreview bool `json:"disable_web_page_preview,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"` AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"` ReplyMarkup interface{} `json:"reply_markup,omitempty"` }
type SendPhoto ¶
type SendPhoto struct { ChatId int64 `json:"chat_id,omitempty"` MessageThreadId int64 `json:"message_thread_id,omitempty"` Photo InputFile `json:"photo,omitempty"` Caption string `json:"caption,omitempty"` ParseMode string `json:"parse_mode,omitempty"` CaptionEntities []MessageEntity `json:"caption_entities,omitempty"` HasSpoiler bool `json:"has_spoiler,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"` AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"` ReplyMarkup interface{} `json:"reply_markup,omitempty"` }
type SendPoll ¶
type SendPoll struct { ChatId int64 `json:"chat_id,omitempty"` MessageThreadId int64 `json:"message_thread_id,omitempty"` Question string `json:"question,omitempty"` Options []string `json:"options,omitempty"` IsAnonymous bool `json:"is_anonymous,omitempty"` Type string `json:"type,omitempty"` AllowsMultipleAnswers bool `json:"allows_multiple_answers,omitempty"` CorrectOptionId int64 `json:"correct_option_id,omitempty"` Explanation string `json:"explanation,omitempty"` ExplanationParseMode string `json:"explanation_parse_mode,omitempty"` ExplanationEntities []MessageEntity `json:"explanation_entities,omitempty"` OpenPeriod int64 `json:"open_period,omitempty"` CloseDate int64 `json:"close_date,omitempty"` IsClosed bool `json:"is_closed,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"` AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"` ReplyMarkup interface{} `json:"reply_markup,omitempty"` }
type SendSticker ¶
type SendSticker struct { ChatId int64 `json:"chat_id,omitempty"` MessageThreadId int64 `json:"message_thread_id,omitempty"` Sticker InputFile `json:"sticker,omitempty"` Emoji string `json:"emoji,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"` AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"` ReplyMarkup interface{} `json:"reply_markup,omitempty"` }
type SendVenue ¶
type SendVenue struct { ChatId int64 `json:"chat_id,omitempty"` MessageThreadId int64 `json:"message_thread_id,omitempty"` Latitude float32 `json:"latitude,omitempty"` Longitude float32 `json:"longitude,omitempty"` Title string `json:"title,omitempty"` Address string `json:"address,omitempty"` 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"` DisableNotification bool `json:"disable_notification,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"` AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"` ReplyMarkup interface{} `json:"reply_markup,omitempty"` }
type SendVideo ¶
type SendVideo struct { ChatId int64 `json:"chat_id,omitempty"` MessageThreadId int64 `json:"message_thread_id,omitempty"` Video InputFile `json:"video,omitempty"` Duration int64 `json:"duration,omitempty"` Width int64 `json:"width,omitempty"` Height int64 `json:"height,omitempty"` Thumbnail InputFile `json:"thumbnail,omitempty"` Caption string `json:"caption,omitempty"` ParseMode string `json:"parse_mode,omitempty"` CaptionEntities []MessageEntity `json:"caption_entities,omitempty"` HasSpoiler bool `json:"has_spoiler,omitempty"` SupportsStreaming bool `json:"supports_streaming,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"` AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"` ReplyMarkup interface{} `json:"reply_markup,omitempty"` }
type SendVideoNote ¶
type SendVideoNote struct { ChatId int64 `json:"chat_id,omitempty"` MessageThreadId int64 `json:"message_thread_id,omitempty"` VideoNote InputFile `json:"video_note,omitempty"` Duration int64 `json:"duration,omitempty"` Length int64 `json:"length,omitempty"` Thumbnail InputFile `json:"thumbnail,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"` AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"` ReplyMarkup interface{} `json:"reply_markup,omitempty"` }
type SendVoice ¶
type SendVoice struct { ChatId int64 `json:"chat_id,omitempty"` MessageThreadId int64 `json:"message_thread_id,omitempty"` Voice InputFile `json:"voice,omitempty"` Caption string `json:"caption,omitempty"` ParseMode string `json:"parse_mode,omitempty"` CaptionEntities []MessageEntity `json:"caption_entities,omitempty"` Duration int64 `json:"duration,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"` AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"` ReplyMarkup interface{} `json:"reply_markup,omitempty"` }
type SentWebAppMessage ¶
type SentWebAppMessage struct {
InlineMessageId string `json:"inline_message_id,omitempty"`
}
type SetChatDescription ¶
type SetChatMenuButton ¶
type SetChatMenuButton struct { ChatId int64 `json:"chat_id,omitempty"` MenuButton interface{} `json:"menu_button,omitempty"` }
type SetChatPermissions ¶
type SetChatPermissions struct { ChatId int64 `json:"chat_id,omitempty"` Permissions ChatPermissions `json:"permissions,omitempty"` UseIndependentChatPermissions bool `json:"use_independent_chat_permissions,omitempty"` }
type SetChatPhoto ¶
type SetChatStickerSet ¶
type SetChatTitle ¶
type SetGameScore ¶
type SetGameScore struct { UserId int64 `json:"user_id,omitempty"` Score int64 `json:"score,omitempty"` Force bool `json:"force,omitempty"` DisableEditMessage bool `json:"disable_edit_message,omitempty"` ChatId int64 `json:"chat_id,omitempty"` MessageId int64 `json:"message_id,omitempty"` InlineMessageId string `json:"inline_message_id,omitempty"` }
type SetMyCommands ¶
type SetMyCommands struct { Commands []BotCommand `json:"commands,omitempty"` Scope interface{} `json:"scope,omitempty"` LanguageCode string `json:"language_code,omitempty"` }
type SetMyDefaultAdministratorRights ¶
type SetMyDefaultAdministratorRights struct { Rights ChatAdministratorRights `json:"rights,omitempty"` ForChannels bool `json:"for_channels,omitempty"` }
type SetMyDescription ¶
type SetMyShortDescription ¶
type SetPassportDataErrors ¶
type SetPassportDataErrors struct { UserId int64 `json:"user_id,omitempty"` Errors []interface{} `json:"errors,omitempty"` }
type SetStickerEmojiList ¶
type SetStickerKeywords ¶
type SetStickerMaskPosition ¶
type SetStickerMaskPosition struct { Sticker string `json:"sticker,omitempty"` MaskPosition MaskPosition `json:"mask_position,omitempty"` }
type SetStickerPositionInSet ¶
type SetStickerSetThumbnail ¶
type SetStickerSetTitle ¶
type ShippingAddress ¶
type ShippingAddress struct { CountryCode string `json:"country_code,omitempty"` State string `json:"state,omitempty"` City string `json:"city,omitempty"` StreetLine1 string `json:"street_line1,omitempty"` StreetLine2 string `json:"street_line2,omitempty"` PostCode string `json:"post_code,omitempty"` }
type ShippingOption ¶
type ShippingOption struct { Id string `json:"id,omitempty"` Title string `json:"title,omitempty"` Prices []LabeledPrice `json:"prices,omitempty"` }
type ShippingQuery ¶
type ShippingQuery struct { Id string `json:"id,omitempty"` From User `json:"from,omitempty"` InvoicePayload string `json:"invoice_payload,omitempty"` ShippingAddress ShippingAddress `json:"shipping_address,omitempty"` }
type Sticker ¶
type Sticker struct { FileId string `json:"file_id,omitempty"` FileUniqueId string `json:"file_unique_id,omitempty"` Type string `json:"type,omitempty"` Width int64 `json:"width,omitempty"` Height int64 `json:"height,omitempty"` IsAnimated bool `json:"is_animated,omitempty"` IsVideo bool `json:"is_video,omitempty"` Thumbnail PhotoSize `json:"thumbnail,omitempty"` Emoji string `json:"emoji,omitempty"` SetName string `json:"set_name,omitempty"` PremiumAnimation File `json:"premium_animation,omitempty"` MaskPosition MaskPosition `json:"mask_position,omitempty"` CustomEmojiId string `json:"custom_emoji_id,omitempty"` NeedsRepainting bool `json:"needs_repainting,omitempty"` FileSize int64 `json:"file_size,omitempty"` }
type StickerSet ¶
type StickerSet struct { Name string `json:"name,omitempty"` Title string `json:"title,omitempty"` StickerType string `json:"sticker_type,omitempty"` IsAnimated bool `json:"is_animated,omitempty"` IsVideo bool `json:"is_video,omitempty"` Stickers []Sticker `json:"stickers,omitempty"` Thumbnail PhotoSize `json:"thumbnail,omitempty"` }
type StopMessageLiveLocation ¶
type SuccessfulPayment ¶
type SuccessfulPayment struct { Currency string `json:"currency,omitempty"` TotalAmount int64 `json:"total_amount,omitempty"` InvoicePayload string `json:"invoice_payload,omitempty"` ShippingOptionId string `json:"shipping_option_id,omitempty"` OrderInfo OrderInfo `json:"order_info,omitempty"` TelegramPaymentChargeId string `json:"telegram_payment_charge_id,omitempty"` ProviderPaymentChargeId string `json:"provider_payment_charge_id,omitempty"` }
type SwitchInlineQueryChosenChat ¶
type SwitchInlineQueryChosenChat struct { Query string `json:"query,omitempty"` AllowUserChats bool `json:"allow_user_chats,omitempty"` AllowBotChats bool `json:"allow_bot_chats,omitempty"` AllowGroupChats bool `json:"allow_group_chats,omitempty"` AllowChannelChats bool `json:"allow_channel_chats,omitempty"` }
type TelegramUpdate ¶
type UnbanChatMember ¶
type UnbanChatSenderChat ¶
type UnhideGeneralForumTopic ¶
type UnhideGeneralForumTopic struct {
ChatId int64 `json:"chat_id,omitempty"`
}
type UnpinAllChatMessages ¶
type UnpinAllChatMessages struct {
ChatId int64 `json:"chat_id,omitempty"`
}
type UnpinAllGeneralForumTopicMessages ¶
type UnpinAllGeneralForumTopicMessages struct {
ChatId int64 `json:"chat_id,omitempty"`
}
type UnpinChatMessage ¶
type Update ¶
type Update struct { UpdateId int64 `json:"update_id,omitempty"` 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"` ShippingQuery ShippingQuery `json:"shipping_query,omitempty"` PreCheckoutQuery PreCheckoutQuery `json:"pre_checkout_query,omitempty"` Poll Poll `json:"poll,omitempty"` PollAnswer PollAnswer `json:"poll_answer,omitempty"` MyChatMember ChatMemberUpdated `json:"my_chat_member,omitempty"` ChatMember ChatMemberUpdated `json:"chat_member,omitempty"` ChatJoinRequest ChatJoinRequest `json:"chat_join_request,omitempty"` }
type UploadStickerFile ¶
type User ¶
type User struct { Id int64 `json:"id,omitempty"` IsBot bool `json:"is_bot,omitempty"` FirstName string `json:"first_name,omitempty"` LastName string `json:"last_name,omitempty"` Username string `json:"username,omitempty"` LanguageCode string `json:"language_code,omitempty"` IsPremium bool `json:"is_premium,omitempty"` AddedToAttachmentMenu bool `json:"added_to_attachment_menu,omitempty"` CanJoinGroups bool `json:"can_join_groups,omitempty"` CanReadAllGroupMessages bool `json:"can_read_all_group_messages,omitempty"` SupportsInlineQueries bool `json:"supports_inline_queries,omitempty"` }
type UserProfilePhotos ¶
type UserShared ¶
type UserShared struct {}
type Venue ¶
type Venue struct { Location Location `json:"location,omitempty"` Title string `json:"title,omitempty"` Address string `json:"address,omitempty"` 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 Video ¶
type Video struct { FileId string `json:"file_id,omitempty"` FileUniqueId string `json:"file_unique_id,omitempty"` Width int64 `json:"width,omitempty"` Height int64 `json:"height,omitempty"` Duration int64 `json:"duration,omitempty"` Thumbnail PhotoSize `json:"thumbnail,omitempty"` FileName string `json:"file_name,omitempty"` MimeType string `json:"mime_type,omitempty"` FileSize int64 `json:"file_size,omitempty"` }
type VideoChatEnded ¶
type VideoChatEnded struct {
Duration int64 `json:"duration,omitempty"`
}
type VideoChatParticipantsInvited ¶
type VideoChatParticipantsInvited struct {
Users []User `json:"users,omitempty"`
}
type VideoChatScheduled ¶
type VideoChatScheduled struct {
StartDate int64 `json:"start_date,omitempty"`
}
type VideoChatStarted ¶
type VideoChatStarted interface{}
type WebAppData ¶
type WebAppInfo ¶
type WebAppInfo struct {
Url string `json:"url,omitempty"`
}
type WebhookInfo ¶
type WebhookInfo struct { Url string `json:"url,omitempty"` HasCustomCertificate bool `json:"has_custom_certificate,omitempty"` PendingUpdateCount int64 `json:"pending_update_count,omitempty"` IpAddress string `json:"ip_address,omitempty"` LastErrorDate int64 `json:"last_error_date,omitempty"` LastErrorMessage string `json:"last_error_message,omitempty"` LastSynchronizationErrorDate int64 `json:"last_synchronization_error_date,omitempty"` MaxConnections int64 `json:"max_connections,omitempty"` AllowedUpdates []string `json:"allowed_updates,omitempty"` }
type WriteAccessAllowed ¶
Click to show internal directories.
Click to hide internal directories.