Documentation
¶
Index ¶
- type AddStickerToSetParams
- type Animation
- type AnswerInlineQueryParams
- type AnswerPreCheckoutQueryParams
- type AnswerShippingQueryParams
- type ApproveChatJoinRequestParams
- type Audio
- type BanChatMemberParams
- type BanChatSenderChatParams
- type BotCommand
- type BotDescription
- type BotName
- type BotShortDescription
- type CallbackGame
- type CallbackQuery
- type Chat
- type ChatAdministratorRights
- type ChatInviteLink
- type ChatJoinRequest
- type ChatMember
- type ChatOwnerChanged
- type ChatOwnerLeft
- type ChatPermissions
- type ChatPhoto
- type ChatType
- type Checklist
- type ChecklistTask
- type ChosenInlineResult
- type CloseForumTopicParams
- type CloseGeneralForumTopicParams
- type Contact
- type CopyMessageParams
- type CopyMessagesParams
- type CopyTextButton
- type CreateChatInviteLinkParams
- type CreateForumTopicParams
- type CreateInvoiceLinkParams
- type CreateNewStickerSetParams
- type DeclineChatJoinRequestParams
- type DeleteChatPhotoParams
- type DeleteChatStickerSetParams
- type DeleteForumTopicParams
- type DeleteMessageParams
- type DeleteMessagesParams
- type DeleteMyCommandsParams
- type DeleteStickerFromSetParams
- type DeleteWebhookParams
- type Dice
- type DirectMessagesTopic
- type Document
- type EditChatInviteLinkParams
- type EditForumTopicParams
- type EditGeneralForumTopicParams
- type EditMessageCaptionParams
- type EditMessageChecklistParams
- type EditMessageLiveLocationParams
- type EditMessageMediaParams
- type EditMessageReplyMarkupParams
- type EditMessageTextParams
- type ExportChatInviteLinkParams
- type File
- type ForceReply
- type ForumTopic
- type ForwardMessageParams
- type ForwardMessagesParams
- type Game
- type GameHighScore
- type GetChatMemberParams
- type GetChatMenuButtonParams
- type GetCustomEmojiStickersParams
- type GetGameHighScoresParams
- type GetMyCommandsParams
- type GetMyDescriptionParams
- type GetMyNameParams
- type GetMyShortDescriptionParams
- type GetStickerSetParams
- type GetUpdatesParams
- type GetUserProfileAudiosParams
- type GetUserProfilePhotosParams
- type GiftInfo
- type HideGeneralForumTopicParams
- type InlineKeyboardButton
- type InlineKeyboardMarkup
- type InlineQuery
- type InlineQueryResultArticle
- type InlineQueryResultCachedPhoto
- type InlineQueryResultPhoto
- type InputChecklist
- type InputChecklistTask
- type InputFile
- type InputMedia
- type InputMediaAnimation
- type InputMediaAudio
- type InputMediaDocument
- type InputMediaPhoto
- type InputMediaVideo
- type InputPaidMediaPhoto
- type InputPaidMediaVideo
- type InputPollOption
- type InputProfilePhoto
- type InputProfilePhotoAnimated
- type InputProfilePhotoStatic
- type InputSticker
- type InputTextMessageContent
- type Invoice
- type KeyboardButton
- type KeyboardButtonPollType
- type KeyboardButtonRequestChat
- type KeyboardButtonRequestUsers
- type LabeledPrice
- type Location
- type LoginURL
- type MaskPosition
- type MenuButton
- type Message
- type MessageAutoDeleteTimerChanged
- type MessageEntity
- type MessageID
- type OrderInfo
- type PaidMediaInfo
- type PhotoSize
- type PinChatMessageParams
- type Poll
- type PollAnswer
- type PollOption
- type PreCheckoutQuery
- type PromoteChatMemberParams
- type ReactionType
- type RefundedPayment
- type ReopenForumTopicParams
- type ReopenGeneralForumTopicParams
- type ReplyKeyboardMarkup
- type ReplyKeyboardRemove
- type ReplyParameters
- type Response
- type RestrictChatMemberParams
- type RevokeChatInviteLinkParams
- type SendAnimationParams
- type SendAudioParams
- type SendChecklistParams
- type SendContactParams
- type SendDiceParams
- type SendDocumentParams
- type SendGameParams
- type SendInvoiceParams
- type SendLocationParams
- type SendMediaGroupParams
- type SendMessageDraftParams
- type SendMessageParams
- type SendPaidMediaParams
- type SendPhotoParams
- type SendPollParams
- type SendStickerParams
- type SendVenueParams
- type SendVideoNoteParams
- type SendVideoParams
- type SendVoiceParams
- type SetChatAdministratorCustomTitleParams
- type SetChatDescriptionParams
- type SetChatMenuButtonParams
- type SetChatPermissionsParams
- type SetChatPhotoParams
- type SetChatStickerSetParams
- type SetChatTitleParams
- type SetGameScoreParams
- type SetMessageReactionParams
- type SetMyCommandsParams
- type SetMyDescriptionParams
- type SetMyNameParams
- type SetMyShortDescriptionParams
- type SetStickerPositionInSetParams
- type SetStickerSetThumbnailParams
- type SetWebhookParams
- type ShippingAddress
- type ShippingOption
- type ShippingQuery
- type Sticker
- type StickerSet
- type StopMessageLiveLocationParams
- type StopPollParams
- type SuccessfulPayment
- type SuggestedPostInfo
- type SuggestedPostParameters
- type SuggestedPostPrice
- type SwitchInlineQueryChosenChat
- type UnbanChatMemberParams
- type UnbanChatSenderChatParams
- type UnhideGeneralForumTopicParams
- type UnpinAllForumTopicMessagesParams
- type UnpinChatMessageParams
- type Update
- type UploadStickerFileParams
- type User
- type UserProfileAudios
- type UserProfilePhotos
- type Venue
- type Video
- type VideoNote
- type VideoQuality
- type Voice
- type WebAppInfo
- type WebhookInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddStickerToSetParams ¶
type AddStickerToSetParams struct {
UserID int64 `json:"user_id"`
Name string `json:"name"`
Sticker InputSticker `json:"sticker"`
}
type Animation ¶
type Animation struct {
FileID string `json:"file_id"`
FileUniqueID string `json:"file_unique_id"`
Width int `json:"width"`
Height int `json:"height"`
Duration int `json:"duration"`
Thumbnail *PhotoSize `json:"thumbnail,omitempty"`
FileName string `json:"file_name,omitempty"`
MimeType string `json:"mime_type,omitempty"`
FileSize int64 `json:"file_size,omitempty"`
}
type AnswerInlineQueryParams ¶
type AnswerInlineQueryParams struct {
InlineQueryID string `json:"inline_query_id"`
Results []interface{} `json:"results"`
CacheTime int `json:"cache_time,omitempty"`
IsPersonal bool `json:"is_personal,omitempty"`
NextOffset string `json:"next_offset,omitempty"`
Button interface{} `json:"button,omitempty"`
}
type AnswerPreCheckoutQueryParams ¶
type AnswerShippingQueryParams ¶
type AnswerShippingQueryParams struct {
ShippingQueryID string `json:"shipping_query_id"`
OK bool `json:"ok"`
ShippingOptions []ShippingOption `json:"shipping_options,omitempty"`
ErrorMessage string `json:"error_message,omitempty"`
}
type ApproveChatJoinRequestParams ¶
type ApproveChatJoinRequestParams struct {
ChatID interface{} `json:"chat_id"`
UserID int64 `json:"user_id"`
}
type Audio ¶
type Audio struct {
FileID string `json:"file_id"`
FileUniqueID string `json:"file_unique_id"`
Duration int `json:"duration"`
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 BanChatMemberParams ¶
type BanChatSenderChatParams ¶
type BanChatSenderChatParams struct {
ChatID interface{} `json:"chat_id"`
SenderChatID int64 `json:"sender_chat_id"`
}
type BotCommand ¶
type BotDescription ¶
type BotDescription struct {
Description string `json:"description"`
}
type BotShortDescription ¶
type BotShortDescription struct {
ShortDescription string `json:"short_description"`
}
type CallbackQuery ¶
type CallbackQuery struct {
ID string `json:"id"`
From User `json:"from"`
Message *Message `json:"message,omitempty"`
InlineMessageID string `json:"inline_message_id,omitempty"`
ChatInstance string `json:"chat_instance"`
Data string `json:"data,omitempty"`
GameShortName string `json:"game_short_name,omitempty"`
}
type Chat ¶
type Chat struct {
ID int64 `json:"id"`
Type ChatType `json:"type"`
Title string `json:"title,omitempty"`
Username string `json:"username,omitempty"`
FirstName string `json:"first_name,omitempty"`
LastName string `json:"last_name,omitempty"`
IsDirectMessages bool `json:"is_direct_messages,omitempty"`
}
type ChatAdministratorRights ¶
type ChatAdministratorRights struct {
IsAnonymous bool `json:"is_anonymous"`
CanManageChat bool `json:"can_manage_chat"`
CanDeleteMessages bool `json:"can_delete_messages"`
CanManageVideoChats bool `json:"can_manage_video_chats"`
CanRestrictMembers bool `json:"can_restrict_members"`
CanPromoteMembers bool `json:"can_promote_members"`
CanChangeInfo bool `json:"can_change_info"`
CanInviteUsers bool `json:"can_invite_users"`
CanPostMessages bool `json:"can_post_messages,omitempty"`
CanEditMessages bool `json:"can_edit_messages,omitempty"`
CanPinMessages bool `json:"can_pin_messages,omitempty"`
CanManageTopics bool `json:"can_manage_topics,omitempty"`
}
type ChatInviteLink ¶
type ChatInviteLink struct {
InviteLink string `json:"invite_link"`
Creator User `json:"creator"`
CreatesJoinRequest bool `json:"creates_join_request"`
IsPrimary bool `json:"is_primary"`
IsRevoked bool `json:"is_revoked"`
Name string `json:"name,omitempty"`
ExpireDate int64 `json:"expire_date,omitempty"`
MemberLimit int `json:"member_limit,omitempty"`
PendingJoinRequestCount int `json:"pending_join_request_count,omitempty"`
}
type ChatJoinRequest ¶
type ChatMember ¶
type ChatMember struct {
Status string `json:"status"`
User User `json:"user"`
IsAnonymous bool `json:"is_anonymous,omitempty"`
CustomTitle string `json:"custom_title,omitempty"`
CanBeEdited bool `json:"can_be_edited,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"`
CanManageTopics bool `json:"can_manage_topics,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"`
UntilDate int64 `json:"until_date,omitempty"`
}
type ChatOwnerChanged ¶
type ChatOwnerChanged struct {
NewOwner User `json:"new_owner"`
}
type ChatOwnerLeft ¶
type ChatOwnerLeft struct {
NewOwner *User `json:"new_owner,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 ChatPhoto ¶
type Checklist ¶
type Checklist struct {
Title string `json:"title"`
TitleEntities []MessageEntity `json:"title_entities,omitempty"`
Tasks []ChecklistTask `json:"tasks"`
OthersCanAddTasks bool `json:"others_can_add_tasks,omitempty"`
OthersCanMarkTasksAsDone bool `json:"others_can_mark_tasks_as_done,omitempty"`
}
type ChecklistTask ¶
type ChecklistTask struct {
Text string `json:"text"`
TextEntities []MessageEntity `json:"text_entities,omitempty"`
IsDone bool `json:"is_done"`
CompletedByUser *User `json:"completed_by_user,omitempty"`
CompletedByChat *Chat `json:"completed_by_chat,omitempty"`
}
type ChosenInlineResult ¶
type CloseForumTopicParams ¶
type CloseForumTopicParams struct {
ChatID interface{} `json:"chat_id"`
MessageThreadID int `json:"message_thread_id"`
}
type CloseGeneralForumTopicParams ¶
type CloseGeneralForumTopicParams struct {
ChatID interface{} `json:"chat_id"`
}
type Contact ¶
type CopyMessageParams ¶
type CopyMessageParams struct {
ChatID interface{} `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
FromChatID interface{} `json:"from_chat_id"`
MessageID int64 `json:"message_id"`
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 CopyMessagesParams ¶
type CopyMessagesParams struct {
ChatID interface{} `json:"chat_id"`
MessageThreadID int `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int `json:"direct_messages_topic_id,omitempty"`
FromChatID interface{} `json:"from_chat_id"`
MessageIDs []int `json:"message_ids"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
RemoveCaption bool `json:"remove_caption,omitempty"`
}
type CopyTextButton ¶ added in v0.2.2
type CopyTextButton struct {
Text string `json:"text"`
}
type CreateChatInviteLinkParams ¶
type CreateForumTopicParams ¶
type CreateInvoiceLinkParams ¶
type CreateInvoiceLinkParams struct {
Title string `json:"title"`
Description string `json:"description"`
Payload string `json:"payload"`
ProviderToken string `json:"provider_token,omitempty"`
Currency string `json:"currency"`
Prices []LabeledPrice `json:"prices"`
MaxTipAmount int `json:"max_tip_amount,omitempty"`
SuggestedTipAmounts []int `json:"suggested_tip_amounts,omitempty"`
ProviderData string `json:"provider_data,omitempty"`
PhotoURL string `json:"photo_url,omitempty"`
PhotoSize int `json:"photo_size,omitempty"`
PhotoWidth int `json:"photo_width,omitempty"`
PhotoHeight int `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 CreateNewStickerSetParams ¶
type DeclineChatJoinRequestParams ¶
type DeclineChatJoinRequestParams struct {
ChatID interface{} `json:"chat_id"`
UserID int64 `json:"user_id"`
}
type DeleteChatPhotoParams ¶
type DeleteChatPhotoParams struct {
ChatID interface{} `json:"chat_id"`
}
type DeleteChatStickerSetParams ¶
type DeleteChatStickerSetParams struct {
ChatID interface{} `json:"chat_id"`
}
type DeleteForumTopicParams ¶
type DeleteForumTopicParams struct {
ChatID interface{} `json:"chat_id"`
MessageThreadID int `json:"message_thread_id"`
}
type DeleteMessageParams ¶
type DeleteMessageParams struct {
ChatID interface{} `json:"chat_id"`
MessageID int64 `json:"message_id"`
}
type DeleteMessagesParams ¶
type DeleteMessagesParams struct {
ChatID interface{} `json:"chat_id"`
MessageIDs []int `json:"message_ids"`
}
type DeleteMyCommandsParams ¶
type DeleteMyCommandsParams struct {
Scope interface{} `json:"scope,omitempty"`
LanguageCode string `json:"language_code,omitempty"`
}
type DeleteStickerFromSetParams ¶
type DeleteStickerFromSetParams struct {
Sticker string `json:"sticker"`
}
type DeleteWebhookParams ¶
type DeleteWebhookParams struct {
DropPendingUpdates bool `json:"drop_pending_updates,omitempty"`
}
type DirectMessagesTopic ¶
type DirectMessagesTopic struct {
ID int `json:"id"`
}
type Document ¶
type EditChatInviteLinkParams ¶
type EditChatInviteLinkParams struct {
ChatID interface{} `json:"chat_id"`
InviteLink string `json:"invite_link"`
Name string `json:"name,omitempty"`
ExpireDate int64 `json:"expire_date,omitempty"`
MemberLimit int `json:"member_limit,omitempty"`
CreatesJoinRequest bool `json:"creates_join_request,omitempty"`
}
type EditForumTopicParams ¶
type EditGeneralForumTopicParams ¶
type EditGeneralForumTopicParams struct {
ChatID interface{} `json:"chat_id"`
Name string `json:"name"`
}
type EditMessageCaptionParams ¶
type EditMessageCaptionParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID interface{} `json:"chat_id,omitempty"`
MessageID int `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"`
ShowCaptionAboveMedia bool `json:"show_caption_above_media,omitempty"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
type EditMessageChecklistParams ¶
type EditMessageChecklistParams struct {
BusinessConnectionID string `json:"business_connection_id"`
ChatID int64 `json:"chat_id"`
MessageID int `json:"message_id"`
Checklist InputChecklist `json:"checklist"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
type EditMessageLiveLocationParams ¶
type EditMessageLiveLocationParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID interface{} `json:"chat_id,omitempty"`
MessageID int `json:"message_id,omitempty"`
InlineMessageID string `json:"inline_message_id,omitempty"`
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
LivePeriod int `json:"live_period,omitempty"`
HorizontalAccuracy float64 `json:"horizontal_accuracy,omitempty"`
Heading int `json:"heading,omitempty"`
ProximityAlertRadius int `json:"proximity_alert_radius,omitempty"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
type EditMessageMediaParams ¶
type EditMessageMediaParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID interface{} `json:"chat_id,omitempty"`
MessageID int `json:"message_id,omitempty"`
InlineMessageID string `json:"inline_message_id,omitempty"`
Media interface{} `json:"media"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
type EditMessageReplyMarkupParams ¶
type EditMessageReplyMarkupParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID interface{} `json:"chat_id,omitempty"`
MessageID int `json:"message_id,omitempty"`
InlineMessageID string `json:"inline_message_id,omitempty"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
type EditMessageTextParams ¶
type EditMessageTextParams struct {
ChatID interface{} `json:"chat_id,omitempty"`
MessageID int64 `json:"message_id,omitempty"`
InlineMessageID string `json:"inline_message_id,omitempty"`
Text string `json:"text"`
ParseMode string `json:"parse_mode,omitempty"`
Entities []MessageEntity `json:"entities,omitempty"`
DisableWebPagePreview bool `json:"disable_web_page_preview,omitempty"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
type ExportChatInviteLinkParams ¶
type ExportChatInviteLinkParams struct {
ChatID interface{} `json:"chat_id"`
}
type File ¶
type ForceReply ¶
type ForumTopic ¶
type ForwardMessageParams ¶
type ForwardMessageParams struct {
ChatID interface{} `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
FromChatID interface{} `json:"from_chat_id"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
MessageID int64 `json:"message_id"`
}
type ForwardMessagesParams ¶
type ForwardMessagesParams struct {
ChatID interface{} `json:"chat_id"`
MessageThreadID int `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int `json:"direct_messages_topic_id,omitempty"`
FromChatID interface{} `json:"from_chat_id"`
MessageIDs []int `json:"message_ids"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
}
type Game ¶
type GameHighScore ¶
type GetChatMemberParams ¶
type GetChatMemberParams struct {
ChatID interface{} `json:"chat_id"`
UserID int64 `json:"user_id"`
}
type GetChatMenuButtonParams ¶
type GetChatMenuButtonParams struct {
ChatID int64 `json:"chat_id,omitempty"`
}
type GetCustomEmojiStickersParams ¶
type GetCustomEmojiStickersParams struct {
CustomEmojiIDs []string `json:"custom_emoji_ids"`
}
type GetGameHighScoresParams ¶
type GetMyCommandsParams ¶
type GetMyCommandsParams struct {
Scope interface{} `json:"scope,omitempty"`
LanguageCode string `json:"language_code,omitempty"`
}
type GetMyDescriptionParams ¶
type GetMyDescriptionParams struct {
LanguageCode string `json:"language_code,omitempty"`
}
type GetMyNameParams ¶
type GetMyNameParams struct {
LanguageCode string `json:"language_code,omitempty"`
}
type GetMyShortDescriptionParams ¶
type GetMyShortDescriptionParams struct {
LanguageCode string `json:"language_code,omitempty"`
}
type GetStickerSetParams ¶
type GetStickerSetParams struct {
Name string `json:"name"`
}
type GetUpdatesParams ¶
type GetUserProfileAudiosParams ¶
type GetUserProfilePhotosParams ¶
type HideGeneralForumTopicParams ¶
type HideGeneralForumTopicParams struct {
ChatID interface{} `json:"chat_id"`
}
type InlineKeyboardButton ¶
type InlineKeyboardButton struct {
Text string `json:"text"`
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"`
CopyText *CopyTextButton `json:"copy_text,omitempty"`
CallbackGame *CallbackGame `json:"callback_game,omitempty"`
Pay bool `json:"pay,omitempty"`
IconCustomEmojiID string `json:"icon_custom_emoji_id,omitempty"`
Style string `json:"style,omitempty"`
}
type InlineKeyboardMarkup ¶
type InlineKeyboardMarkup struct {
InlineKeyboard [][]InlineKeyboardButton `json:"inline_keyboard"`
}
type InlineQuery ¶
type InlineQueryResultArticle ¶
type InlineQueryResultArticle struct {
Type string `json:"type"`
ID string `json:"id"`
Title string `json:"title"`
InputMessageContent interface{} `json:"input_message_content"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
URL string `json:"url,omitempty"`
HideURL bool `json:"hide_url,omitempty"`
Description string `json:"description,omitempty"`
ThumbnailURL string `json:"thumbnail_url,omitempty"`
ThumbnailWidth int `json:"thumbnail_width,omitempty"`
ThumbnailHeight int `json:"thumbnail_height,omitempty"`
}
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 []MessageEntity `json:"caption_entities,omitempty"`
ShowCaptionAboveMedia bool `json:"show_caption_above_media,omitempty"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent interface{} `json:"input_message_content,omitempty"`
}
https://core.telegram.org/bots/api#inlinequeryresultcachedphoto
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 []MessageEntity `json:"caption_entities,omitempty"`
ShowCaptionAboveMedia bool `json:"show_caption_above_media,omitempty"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
InputMessageContent interface{} `json:"input_message_content,omitempty"`
}
type InputChecklist ¶
type InputChecklist struct {
Title string `json:"title"`
TitleParseMode string `json:"title_parse_mode,omitempty"`
TitleEntities []MessageEntity `json:"title_entities,omitempty"`
Tasks []InputChecklistTask `json:"tasks"`
OthersCanAddTasks bool `json:"others_can_add_tasks,omitempty"`
OthersCanMarkTasksAsDone bool `json:"others_can_mark_tasks_as_done,omitempty"`
}
type InputChecklistTask ¶
type InputChecklistTask struct {
Text string `json:"text"`
TextParseMode string `json:"text_parse_mode,omitempty"`
TextEntities []MessageEntity `json:"text_entities,omitempty"`
}
type InputFile ¶ added in v0.2.3
InputFile represents a file to send to Telegram. Exactly one of FileID, URL, or Data should be set:
- FileID: re-use an already-uploaded Telegram file by its file_id.
- URL: let Telegram fetch the file from a public HTTP/HTTPS URL.
- Data: upload raw bytes via multipart/form-data (Name is used as the filename).
https://core.telegram.org/bots/api#inputfile
func (InputFile) MarshalJSON ¶ added in v0.2.3
MarshalJSON serialises InputFile as a plain JSON string (file_id or URL). When Data is set the caller must use a multipart/form-data request instead; this method is only a fallback for the JSON path and returns an empty string in that case so that misconfiguration is obvious.
type InputMediaAnimation ¶
type InputMediaAnimation struct {
Type string `json:"type"`
Media string `json:"media"`
Thumbnail interface{} `json:"thumbnail,omitempty"`
Caption string `json:"caption,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []MessageEntity `json:"caption_entities,omitempty"`
ShowCaptionAboveMedia bool `json:"show_caption_above_media,omitempty"`
Width int `json:"width,omitempty"`
Height int `json:"height,omitempty"`
Duration int `json:"duration,omitempty"`
HasSpoiler bool `json:"has_spoiler,omitempty"`
}
type InputMediaAudio ¶
type InputMediaAudio struct {
Type string `json:"type"`
Media string `json:"media"`
Thumbnail interface{} `json:"thumbnail,omitempty"`
Caption string `json:"caption,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []MessageEntity `json:"caption_entities,omitempty"`
Duration int `json:"duration,omitempty"`
Performer string `json:"performer,omitempty"`
Title string `json:"title,omitempty"`
}
type InputMediaDocument ¶
type InputMediaDocument struct {
Type string `json:"type"`
Media string `json:"media"`
Thumbnail interface{} `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"`
Media string `json:"media"`
Caption string `json:"caption,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []MessageEntity `json:"caption_entities,omitempty"`
ShowCaptionAboveMedia bool `json:"show_caption_above_media,omitempty"`
HasSpoiler bool `json:"has_spoiler,omitempty"`
}
type InputMediaVideo ¶
type InputMediaVideo struct {
Type string `json:"type"`
Media string `json:"media"`
Thumbnail interface{} `json:"thumbnail,omitempty"`
Caption string `json:"caption,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []MessageEntity `json:"caption_entities,omitempty"`
ShowCaptionAboveMedia bool `json:"show_caption_above_media,omitempty"`
Width int `json:"width,omitempty"`
Height int `json:"height,omitempty"`
Duration int `json:"duration,omitempty"`
SupportsStreaming bool `json:"supports_streaming,omitempty"`
HasSpoiler bool `json:"has_spoiler,omitempty"`
}
type InputPaidMediaPhoto ¶
type InputPaidMediaVideo ¶
type InputPollOption ¶
type InputPollOption struct {
Text string `json:"text"`
TextParseMode string `json:"text_parse_mode,omitempty"`
TextEntities []MessageEntity `json:"text_entities,omitempty"`
}
type InputProfilePhoto ¶
type InputProfilePhoto interface{}
type InputProfilePhotoAnimated ¶
type InputProfilePhotoAnimated struct {
Type string `json:"type"` // "animated"
Video interface{} `json:"video"` // Video file to upload
Thumbnail interface{} `json:"thumbnail,omitempty"`
}
https://core.telegram.org/bots/api#inputprofilephotoanimated
type InputProfilePhotoStatic ¶
type InputProfilePhotoStatic struct {
Type string `json:"type"` // "static"
Photo interface{} `json:"photo"` // File to upload
}
type InputSticker ¶
type InputSticker struct {
Sticker interface{} `json:"sticker"`
Format string `json:"format"`
EmojiList []string `json:"emoji_list"`
MaskPosition *MaskPosition `json:"mask_position,omitempty"`
Keywords []string `json:"keywords,omitempty"`
}
type InputTextMessageContent ¶
type InputTextMessageContent struct {
MessageText string `json:"message_text"`
ParseMode string `json:"parse_mode,omitempty"`
Entities []MessageEntity `json:"entities,omitempty"`
LinkPreviewOptions interface{} `json:"link_preview_options,omitempty"`
}
type Invoice ¶
type KeyboardButton ¶
type KeyboardButton struct {
Text string `json:"text"`
RequestUsers *KeyboardButtonRequestUsers `json:"request_users,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"`
IconCustomEmojiID string `json:"icon_custom_emoji_id,omitempty"`
Style string `json:"style,omitempty"`
}
type KeyboardButtonPollType ¶
type KeyboardButtonPollType struct {
Type string `json:"type,omitempty"`
}
type KeyboardButtonRequestChat ¶
type KeyboardButtonRequestChat struct {
RequestID int `json:"request_id"`
ChatIsChannel bool `json:"chat_is_channel"`
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"`
}
https://core.telegram.org/bots/api#keyboardbuttonrequestchat
type KeyboardButtonRequestUsers ¶
type KeyboardButtonRequestUsers struct {
RequestID int `json:"request_id"`
UserIsBot bool `json:"user_is_bot,omitempty"`
UserIsPremium bool `json:"user_is_premium,omitempty"`
MaxQuantity int `json:"max_quantity,omitempty"`
}
https://core.telegram.org/bots/api#keyboardbuttonrequestusers
type LabeledPrice ¶
type Location ¶
type Location struct {
Longitude float64 `json:"longitude"`
Latitude float64 `json:"latitude"`
HorizontalAccuracy float64 `json:"horizontal_accuracy,omitempty"`
LivePeriod int `json:"live_period,omitempty"`
Heading int `json:"heading,omitempty"`
ProximityAlertRadius int `json:"proximity_alert_radius,omitempty"`
}
type LoginURL ¶
type MaskPosition ¶
type MenuButton ¶
type MenuButton struct {
Type string `json:"type"`
Text string `json:"text,omitempty"`
WebApp *WebAppInfo `json:"web_app,omitempty"`
}
type Message ¶
type Message struct {
MessageID int64 `json:"message_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
From *User `json:"from,omitempty"`
SenderChat *Chat `json:"sender_chat,omitempty"`
Date int64 `json:"date"`
Chat Chat `json:"chat"`
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"`
ReplyToMessage *Message `json:"reply_to_message,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"`
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"`
Contact *Contact `json:"contact,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"`
PinnedMessage *Message `json:"pinned_message,omitempty"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
ReplyToChecklistTaskID int64 `json:"reply_to_checklist_task_id,omitempty"`
DirectMessagesTopic *DirectMessagesTopic `json:"direct_messages_topic,omitempty"`
GiftUpgradeSent *GiftInfo `json:"gift_upgrade_sent,omitempty"`
ChatOwnerLeft *ChatOwnerLeft `json:"chat_owner_left,omitempty"`
ChatOwnerChanged *ChatOwnerChanged `json:"chat_owner_changed,omitempty"`
}
type MessageAutoDeleteTimerChanged ¶
type MessageAutoDeleteTimerChanged struct {
MessageAutoDeleteTime int `json:"message_auto_delete_time"`
}
https://core.telegram.org/bots/api#messageautodeletetimerchanged
type MessageEntity ¶
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 PaidMediaInfo ¶
type PaidMediaInfo struct {
StarCount int `json:"star_count"`
PaidMedia []interface{} `json:"paid_media"`
}
type PhotoSize ¶
type PinChatMessageParams ¶
type Poll ¶
type Poll struct {
ID string `json:"id"`
Question string `json:"question"`
QuestionEntities []MessageEntity `json:"question_entities,omitempty"`
Options []PollOption `json:"options"`
TotalVoterCount int `json:"total_voter_count"`
IsClosed bool `json:"is_closed"`
IsAnonymous bool `json:"is_anonymous"`
Type string `json:"type"`
AllowsMultipleAnswers bool `json:"allows_multiple_answers"`
CorrectOptionID *int `json:"correct_option_id,omitempty"`
Explanation string `json:"explanation,omitempty"`
ExplanationEntities []MessageEntity `json:"explanation_entities,omitempty"`
OpenPeriod int `json:"open_period,omitempty"`
CloseDate int64 `json:"close_date,omitempty"`
}
type PollAnswer ¶
type PollOption ¶
type PreCheckoutQuery ¶
type PreCheckoutQuery struct {
ID string `json:"id"`
From User `json:"from"`
Currency string `json:"currency"`
TotalAmount int `json:"total_amount"`
InvoicePayload string `json:"invoice_payload"`
ShippingOptionID string `json:"shipping_option_id,omitempty"`
OrderInfo *OrderInfo `json:"order_info,omitempty"`
}
type PromoteChatMemberParams ¶
type PromoteChatMemberParams struct {
ChatID interface{} `json:"chat_id"`
UserID int64 `json:"user_id"`
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"`
CanManageTopics bool `json:"can_manage_topics,omitempty"`
}
type ReactionType ¶
type RefundedPayment ¶
type ReopenForumTopicParams ¶
type ReopenForumTopicParams struct {
ChatID interface{} `json:"chat_id"`
MessageThreadID int `json:"message_thread_id"`
}
type ReopenGeneralForumTopicParams ¶
type ReopenGeneralForumTopicParams struct {
ChatID interface{} `json:"chat_id"`
}
type ReplyKeyboardMarkup ¶
type ReplyKeyboardMarkup struct {
Keyboard [][]KeyboardButton `json:"keyboard"`
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 ReplyParameters ¶
type ReplyParameters struct {
MessageID int `json:"message_id"`
ChatID interface{} `json:"chat_id,omitempty"`
AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"`
Quote string `json:"quote,omitempty"`
QuoteParseMode string `json:"quote_parse_mode,omitempty"`
QuoteEntities []MessageEntity `json:"quote_entities,omitempty"`
QuotePosition int `json:"quote_position,omitempty"`
}
type Response ¶
type RestrictChatMemberParams ¶
type RestrictChatMemberParams struct {
ChatID interface{} `json:"chat_id"`
UserID int64 `json:"user_id"`
Permissions ChatPermissions `json:"permissions"`
UseIndependentChatPermissions bool `json:"use_independent_chat_permissions,omitempty"`
UntilDate int64 `json:"until_date,omitempty"`
}
type RevokeChatInviteLinkParams ¶
type RevokeChatInviteLinkParams struct {
ChatID interface{} `json:"chat_id"`
InviteLink string `json:"invite_link"`
}
type SendAnimationParams ¶
type SendAnimationParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID interface{} `json:"chat_id"`
MessageThreadID int `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int `json:"direct_messages_topic_id,omitempty"`
Animation interface{} `json:"animation"`
Duration int `json:"duration,omitempty"`
Width int `json:"width,omitempty"`
Height int `json:"height,omitempty"`
Thumbnail interface{} `json:"thumbnail,omitempty"`
Caption string `json:"caption,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []MessageEntity `json:"caption_entities,omitempty"`
ShowCaptionAboveMedia bool `json:"show_caption_above_media,omitempty"`
HasSpoiler bool `json:"has_spoiler,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
MessageEffectID string `json:"message_effect_id,omitempty"`
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
}
type SendAudioParams ¶
type SendAudioParams struct {
ChatID interface{} `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"`
Audio interface{} `json:"audio"`
Caption string `json:"caption,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []MessageEntity `json:"caption_entities,omitempty"`
Duration int `json:"duration,omitempty"`
Performer string `json:"performer,omitempty"`
Title string `json:"title,omitempty"`
Thumbnail interface{} `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 SendChecklistParams ¶
type SendChecklistParams struct {
BusinessConnectionID string `json:"business_connection_id"`
ChatID int64 `json:"chat_id"`
Checklist InputChecklist `json:"checklist"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
MessageEffectID string `json:"message_effect_id,omitempty"`
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
type SendContactParams ¶
type SendContactParams struct {
ChatID interface{} `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
PhoneNumber string `json:"phone_number"`
FirstName string `json:"first_name"`
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 SendDiceParams ¶
type SendDiceParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID interface{} `json:"chat_id"`
MessageThreadID int `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int `json:"direct_messages_topic_id,omitempty"`
Emoji string `json:"emoji,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
MessageEffectID string `json:"message_effect_id,omitempty"`
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
}
type SendDocumentParams ¶
type SendDocumentParams struct {
ChatID interface{} `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"`
Document interface{} `json:"document"`
Thumbnail interface{} `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 SendGameParams ¶
type SendGameParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID int64 `json:"chat_id"`
MessageThreadID int `json:"message_thread_id,omitempty"`
GameShortName string `json:"game_short_name"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
MessageEffectID string `json:"message_effect_id,omitempty"`
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
type SendInvoiceParams ¶
type SendInvoiceParams struct {
ChatID interface{} `json:"chat_id"`
MessageThreadID int `json:"message_thread_id,omitempty"`
Title string `json:"title"`
Description string `json:"description"`
Payload string `json:"payload"`
ProviderToken string `json:"provider_token,omitempty"`
Currency string `json:"currency"`
Prices []LabeledPrice `json:"prices"`
MaxTipAmount int `json:"max_tip_amount,omitempty"`
SuggestedTipAmounts []int `json:"suggested_tip_amounts,omitempty"`
StartParameter string `json:"start_parameter,omitempty"`
ProviderData string `json:"provider_data,omitempty"`
PhotoURL string `json:"photo_url,omitempty"`
PhotoSize int `json:"photo_size,omitempty"`
PhotoWidth int `json:"photo_width,omitempty"`
PhotoHeight int `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"`
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
type SendLocationParams ¶
type SendLocationParams struct {
ChatID interface{} `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
HorizontalAccuracy float64 `json:"horizontal_accuracy,omitempty"`
LivePeriod int `json:"live_period,omitempty"`
Heading int `json:"heading,omitempty"`
ProximityAlertRadius int `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 SendMediaGroupParams ¶
type SendMediaGroupParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID interface{} `json:"chat_id"`
MessageThreadID int `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int `json:"direct_messages_topic_id,omitempty"`
Media []interface{} `json:"media"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
MessageEffectID string `json:"message_effect_id,omitempty"`
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
}
type SendMessageDraftParams ¶
type SendMessageParams ¶
type SendMessageParams struct {
ChatID interface{} `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"`
Text string `json:"text"`
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 SendPaidMediaParams ¶
type SendPaidMediaParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID interface{} `json:"chat_id"`
MessageThreadID int `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int `json:"direct_messages_topic_id,omitempty"`
StarCount int `json:"star_count"`
Media []interface{} `json:"media"`
Payload string `json:"payload,omitempty"`
Caption string `json:"caption,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []MessageEntity `json:"caption_entities,omitempty"`
ShowCaptionAboveMedia bool `json:"show_caption_above_media,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
}
type SendPhotoParams ¶
type SendPhotoParams struct {
ChatID interface{} `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"`
Photo interface{} `json:"photo"`
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 SendPollParams ¶
type SendPollParams struct {
ChatID interface{} `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
Question string `json:"question"`
Options []string `json:"options"`
IsAnonymous bool `json:"is_anonymous,omitempty"`
Type string `json:"type,omitempty"`
AllowsMultipleAnswers bool `json:"allows_multiple_answers,omitempty"`
CorrectOptionID int `json:"correct_option_id,omitempty"`
Explanation string `json:"explanation,omitempty"`
ExplanationParseMode string `json:"explanation_parse_mode,omitempty"`
ExplanationEntities []MessageEntity `json:"explanation_entities,omitempty"`
OpenPeriod int `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 SendStickerParams ¶
type SendStickerParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID interface{} `json:"chat_id"`
MessageThreadID int `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int `json:"direct_messages_topic_id,omitempty"`
Sticker interface{} `json:"sticker"`
Emoji string `json:"emoji,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
MessageEffectID string `json:"message_effect_id,omitempty"`
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
}
type SendVenueParams ¶
type SendVenueParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID interface{} `json:"chat_id"`
MessageThreadID int `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int `json:"direct_messages_topic_id,omitempty"`
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"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
MessageEffectID string `json:"message_effect_id,omitempty"`
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
}
type SendVideoNoteParams ¶
type SendVideoNoteParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID interface{} `json:"chat_id"`
MessageThreadID int `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int `json:"direct_messages_topic_id,omitempty"`
VideoNote interface{} `json:"video_note"`
Duration int `json:"duration,omitempty"`
Length int `json:"length,omitempty"`
Thumbnail interface{} `json:"thumbnail,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
MessageEffectID string `json:"message_effect_id,omitempty"`
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
}
type SendVideoParams ¶
type SendVideoParams struct {
ChatID interface{} `json:"chat_id"`
MessageThreadID int64 `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int64 `json:"direct_messages_topic_id,omitempty"`
Video interface{} `json:"video"`
Duration int `json:"duration,omitempty"`
Width int `json:"width,omitempty"`
Height int `json:"height,omitempty"`
Thumbnail interface{} `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 SendVoiceParams ¶
type SendVoiceParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID interface{} `json:"chat_id"`
MessageThreadID int `json:"message_thread_id,omitempty"`
DirectMessagesTopicID int `json:"direct_messages_topic_id,omitempty"`
Voice interface{} `json:"voice"`
Caption string `json:"caption,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
CaptionEntities []MessageEntity `json:"caption_entities,omitempty"`
Duration int `json:"duration,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
MessageEffectID string `json:"message_effect_id,omitempty"`
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
}
type SetChatAdministratorCustomTitleParams ¶
type SetChatAdministratorCustomTitleParams struct {
ChatID interface{} `json:"chat_id"`
UserID int64 `json:"user_id"`
CustomTitle string `json:"custom_title"`
}
https://core.telegram.org/bots/api#setchatadministratorcustomtitle
type SetChatDescriptionParams ¶
type SetChatDescriptionParams struct {
ChatID interface{} `json:"chat_id"`
Description string `json:"description,omitempty"`
}
type SetChatMenuButtonParams ¶
type SetChatMenuButtonParams struct {
ChatID int64 `json:"chat_id,omitempty"`
MenuButton interface{} `json:"menu_button,omitempty"`
}
type SetChatPermissionsParams ¶
type SetChatPermissionsParams struct {
ChatID interface{} `json:"chat_id"`
Permissions ChatPermissions `json:"permissions"`
UseIndependentChatPermissions bool `json:"use_independent_chat_permissions,omitempty"`
}
type SetChatPhotoParams ¶
type SetChatPhotoParams struct {
ChatID interface{} `json:"chat_id"`
Photo interface{} `json:"photo"`
}
type SetChatStickerSetParams ¶
type SetChatStickerSetParams struct {
ChatID interface{} `json:"chat_id"`
StickerSetName string `json:"sticker_set_name"`
}
type SetChatTitleParams ¶
type SetChatTitleParams struct {
ChatID interface{} `json:"chat_id"`
Title string `json:"title"`
}
type SetGameScoreParams ¶
type SetGameScoreParams struct {
UserID int64 `json:"user_id"`
Score int `json:"score"`
Force bool `json:"force,omitempty"`
DisableEditMessage bool `json:"disable_edit_message,omitempty"`
ChatID int64 `json:"chat_id,omitempty"`
MessageID int `json:"message_id,omitempty"`
InlineMessageID string `json:"inline_message_id,omitempty"`
}
type SetMessageReactionParams ¶
type SetMyCommandsParams ¶
type SetMyCommandsParams struct {
Commands []BotCommand `json:"commands"`
Scope interface{} `json:"scope,omitempty"`
LanguageCode string `json:"language_code,omitempty"`
}
type SetMyDescriptionParams ¶
type SetMyNameParams ¶
type SetMyShortDescriptionParams ¶
type SetStickerPositionInSetParams ¶
type SetStickerSetThumbnailParams ¶
type SetWebhookParams ¶
type SetWebhookParams struct {
URL string `json:"url"`
Certificate interface{} `json:"certificate,omitempty"`
IPAddress string `json:"ip_address,omitempty"`
MaxConnections int `json:"max_connections,omitempty"`
AllowedUpdates []string `json:"allowed_updates,omitempty"`
DropPendingUpdates bool `json:"drop_pending_updates,omitempty"`
SecretToken string `json:"secret_token,omitempty"`
}
type ShippingAddress ¶
type ShippingOption ¶
type ShippingOption struct {
ID string `json:"id"`
Title string `json:"title"`
Prices []LabeledPrice `json:"prices"`
}
type ShippingQuery ¶
type ShippingQuery struct {
ID string `json:"id"`
From User `json:"from"`
InvoicePayload string `json:"invoice_payload"`
ShippingAddress ShippingAddress `json:"shipping_address"`
}
type Sticker ¶
type Sticker struct {
FileID string `json:"file_id"`
FileUniqueID string `json:"file_unique_id"`
Type string `json:"type"`
Width int `json:"width"`
Height int `json:"height"`
IsAnimated bool `json:"is_animated"`
IsVideo bool `json:"is_video"`
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"`
FileSize int64 `json:"file_size,omitempty"`
}
type StickerSet ¶
type StopMessageLiveLocationParams ¶
type StopMessageLiveLocationParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID interface{} `json:"chat_id,omitempty"`
MessageID int `json:"message_id,omitempty"`
InlineMessageID string `json:"inline_message_id,omitempty"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
type StopPollParams ¶
type StopPollParams struct {
BusinessConnectionID string `json:"business_connection_id,omitempty"`
ChatID interface{} `json:"chat_id"`
MessageID int `json:"message_id"`
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
type SuccessfulPayment ¶
type SuccessfulPayment struct {
Currency string `json:"currency"`
TotalAmount int `json:"total_amount"`
InvoicePayload string `json:"invoice_payload"`
ShippingOptionID string `json:"shipping_option_id,omitempty"`
OrderInfo *OrderInfo `json:"order_info,omitempty"`
TelegramPaymentChargeID string `json:"telegram_payment_charge_id"`
ProviderPaymentChargeID string `json:"provider_payment_charge_id"`
}
type SuggestedPostInfo ¶
type SuggestedPostInfo struct {
State string `json:"state"`
Price *SuggestedPostPrice `json:"price,omitempty"`
SendDate int64 `json:"send_date,omitempty"`
}
type SuggestedPostParameters ¶
type SuggestedPostParameters struct {
Price *SuggestedPostPrice `json:"price,omitempty"`
SendDate int64 `json:"send_date,omitempty"`
}
type SuggestedPostPrice ¶
type SuggestedPostPrice struct {
StarCount int `json:"star_count"`
}
type SwitchInlineQueryChosenChat ¶ added in v0.2.2
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"`
}
https://core.telegram.org/bots/api#switchinlinequerychosenchat
type UnbanChatMemberParams ¶
type UnbanChatSenderChatParams ¶
type UnbanChatSenderChatParams struct {
ChatID interface{} `json:"chat_id"`
SenderChatID int64 `json:"sender_chat_id"`
}
type UnhideGeneralForumTopicParams ¶
type UnhideGeneralForumTopicParams struct {
ChatID interface{} `json:"chat_id"`
}
type UnpinAllForumTopicMessagesParams ¶
type UnpinAllForumTopicMessagesParams struct {
ChatID interface{} `json:"chat_id"`
MessageThreadID int `json:"message_thread_id"`
}
https://core.telegram.org/bots/api#unpinallforumtopicmessages
type UnpinChatMessageParams ¶
type UnpinChatMessageParams struct {
ChatID interface{} `json:"chat_id"`
MessageID int64 `json:"message_id,omitempty"`
}
type Update ¶
type Update struct {
UpdateID int64 `json:"update_id"`
Message *Message `json:"message,omitempty"`
EditedMessage *Message `json:"edited_message,omitempty"`
ChannelPost *Message `json:"channel_post,omitempty"`
EditedChannelPost *Message `json:"edited_channel_post,omitempty"`
CallbackQuery *CallbackQuery `json:"callback_query,omitempty"`
InlineQuery *InlineQuery `json:"inline_query,omitempty"`
ChosenInlineResult *ChosenInlineResult `json:"chosen_inline_result,omitempty"`
}
type UploadStickerFileParams ¶
type User ¶
type User struct {
ID int64 `json:"id"`
IsBot bool `json:"is_bot"`
FirstName string `json:"first_name"`
LastName string `json:"last_name,omitempty"`
Username string `json:"username,omitempty"`
LanguageCode string `json:"language_code,omitempty"`
CanJoinGroups bool `json:"can_join_groups,omitempty"`
CanReadAllGroupMessages bool `json:"can_read_all_group_messages,omitempty"`
SupportsInlineQueries bool `json:"supports_inline_queries,omitempty"`
HasTopicsEnabled bool `json:"has_topics_enabled,omitempty"`
AllowsUsersToCreateTopics bool `json:"allows_users_to_create_topics,omitempty"`
}
type UserProfileAudios ¶
type UserProfilePhotos ¶
type Venue ¶
type Venue struct {
Location Location `json:"location"`
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"`
}
type Video ¶
type Video struct {
FileID string `json:"file_id"`
FileUniqueID string `json:"file_unique_id"`
Width int `json:"width"`
Height int `json:"height"`
Duration int `json:"duration"`
Thumbnail *PhotoSize `json:"thumbnail,omitempty"`
FileName string `json:"file_name,omitempty"`
MimeType string `json:"mime_type,omitempty"`
FileSize int64 `json:"file_size,omitempty"`
Qualities []VideoQuality `json:"qualities,omitempty"`
}
type VideoNote ¶
type VideoQuality ¶
type Voice ¶
type WebAppInfo ¶
type WebAppInfo struct {
URL string `json:"url"`
}
type WebhookInfo ¶
type WebhookInfo struct {
URL string `json:"url"`
HasCustomCertificate bool `json:"has_custom_certificate"`
PendingUpdateCount int `json:"pending_update_count"`
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 int `json:"max_connections,omitempty"`
AllowedUpdates []string `json:"allowed_updates,omitempty"`
}