Documentation
¶
Overview ¶
Package client provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.
Index ¶
- Constants
- func NewAddStickerToSetRequest(server string, body AddStickerToSetJSONRequestBody) (*http.Request, error)
- func NewAddStickerToSetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAnswerCallbackQueryRequest(server string, body AnswerCallbackQueryJSONRequestBody) (*http.Request, error)
- func NewAnswerCallbackQueryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAnswerInlineQueryRequest(server string, body AnswerInlineQueryJSONRequestBody) (*http.Request, error)
- func NewAnswerInlineQueryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAnswerPreCheckoutQueryRequest(server string, body AnswerPreCheckoutQueryJSONRequestBody) (*http.Request, error)
- func NewAnswerPreCheckoutQueryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAnswerShippingQueryRequest(server string, body AnswerShippingQueryJSONRequestBody) (*http.Request, error)
- func NewAnswerShippingQueryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAnswerWebAppQueryRequest(server string, body AnswerWebAppQueryJSONRequestBody) (*http.Request, error)
- func NewAnswerWebAppQueryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewApproveChatJoinRequestRequest(server string, body ApproveChatJoinRequestJSONRequestBody) (*http.Request, error)
- func NewApproveChatJoinRequestRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewApproveSuggestedPostRequest(server string, body ApproveSuggestedPostJSONRequestBody) (*http.Request, error)
- func NewApproveSuggestedPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewBanChatMemberRequest(server string, body BanChatMemberJSONRequestBody) (*http.Request, error)
- func NewBanChatMemberRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewBanChatSenderChatRequest(server string, body BanChatSenderChatJSONRequestBody) (*http.Request, error)
- func NewBanChatSenderChatRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCloseForumTopicRequest(server string, body CloseForumTopicJSONRequestBody) (*http.Request, error)
- func NewCloseForumTopicRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCloseGeneralForumTopicRequest(server string, body CloseGeneralForumTopicJSONRequestBody) (*http.Request, error)
- func NewCloseGeneralForumTopicRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCloseRequest(server string) (*http.Request, error)
- func NewConvertGiftToStarsRequest(server string, body ConvertGiftToStarsJSONRequestBody) (*http.Request, error)
- func NewConvertGiftToStarsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCopyMessageRequest(server string, body CopyMessageJSONRequestBody) (*http.Request, error)
- func NewCopyMessageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCopyMessagesRequest(server string, body CopyMessagesJSONRequestBody) (*http.Request, error)
- func NewCopyMessagesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateChatInviteLinkRequest(server string, body CreateChatInviteLinkJSONRequestBody) (*http.Request, error)
- func NewCreateChatInviteLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateChatSubscriptionInviteLinkRequest(server string, body CreateChatSubscriptionInviteLinkJSONRequestBody) (*http.Request, error)
- func NewCreateChatSubscriptionInviteLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateForumTopicRequest(server string, body CreateForumTopicJSONRequestBody) (*http.Request, error)
- func NewCreateForumTopicRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateInvoiceLinkRequest(server string, body CreateInvoiceLinkJSONRequestBody) (*http.Request, error)
- func NewCreateInvoiceLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateNewStickerSetRequest(server string, body CreateNewStickerSetJSONRequestBody) (*http.Request, error)
- func NewCreateNewStickerSetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeclineChatJoinRequestRequest(server string, body DeclineChatJoinRequestJSONRequestBody) (*http.Request, error)
- func NewDeclineChatJoinRequestRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeclineSuggestedPostRequest(server string, body DeclineSuggestedPostJSONRequestBody) (*http.Request, error)
- func NewDeclineSuggestedPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteBusinessMessagesRequest(server string, body DeleteBusinessMessagesJSONRequestBody) (*http.Request, error)
- func NewDeleteBusinessMessagesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteChatPhotoRequest(server string, body DeleteChatPhotoJSONRequestBody) (*http.Request, error)
- func NewDeleteChatPhotoRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteChatStickerSetRequest(server string, body DeleteChatStickerSetJSONRequestBody) (*http.Request, error)
- func NewDeleteChatStickerSetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteForumTopicRequest(server string, body DeleteForumTopicJSONRequestBody) (*http.Request, error)
- func NewDeleteForumTopicRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteMessageRequest(server string, body DeleteMessageJSONRequestBody) (*http.Request, error)
- func NewDeleteMessageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteMessagesRequest(server string, body DeleteMessagesJSONRequestBody) (*http.Request, error)
- func NewDeleteMessagesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteMyCommandsRequest(server string, body DeleteMyCommandsJSONRequestBody) (*http.Request, error)
- func NewDeleteMyCommandsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteStickerFromSetRequest(server string, body DeleteStickerFromSetJSONRequestBody) (*http.Request, error)
- func NewDeleteStickerFromSetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteStickerSetRequest(server string, body DeleteStickerSetJSONRequestBody) (*http.Request, error)
- func NewDeleteStickerSetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteStoryRequest(server string, body DeleteStoryJSONRequestBody) (*http.Request, error)
- func NewDeleteStoryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteWebhookRequest(server string, body DeleteWebhookJSONRequestBody) (*http.Request, error)
- func NewDeleteWebhookRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewEditChatInviteLinkRequest(server string, body EditChatInviteLinkJSONRequestBody) (*http.Request, error)
- func NewEditChatInviteLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewEditChatSubscriptionInviteLinkRequest(server string, body EditChatSubscriptionInviteLinkJSONRequestBody) (*http.Request, error)
- func NewEditChatSubscriptionInviteLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewEditForumTopicRequest(server string, body EditForumTopicJSONRequestBody) (*http.Request, error)
- func NewEditForumTopicRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewEditGeneralForumTopicRequest(server string, body EditGeneralForumTopicJSONRequestBody) (*http.Request, error)
- func NewEditGeneralForumTopicRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewEditMessageCaptionRequest(server string, body EditMessageCaptionJSONRequestBody) (*http.Request, error)
- func NewEditMessageCaptionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewEditMessageChecklistRequest(server string, body EditMessageChecklistJSONRequestBody) (*http.Request, error)
- func NewEditMessageChecklistRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewEditMessageLiveLocationRequest(server string, body EditMessageLiveLocationJSONRequestBody) (*http.Request, error)
- func NewEditMessageLiveLocationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewEditMessageMediaRequest(server string, body EditMessageMediaJSONRequestBody) (*http.Request, error)
- func NewEditMessageMediaRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewEditMessageReplyMarkupRequest(server string, body EditMessageReplyMarkupJSONRequestBody) (*http.Request, error)
- func NewEditMessageReplyMarkupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewEditMessageTextRequest(server string, body EditMessageTextJSONRequestBody) (*http.Request, error)
- func NewEditMessageTextRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewEditStoryRequest(server string, body EditStoryJSONRequestBody) (*http.Request, error)
- func NewEditStoryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewEditUserStarSubscriptionRequest(server string, body EditUserStarSubscriptionJSONRequestBody) (*http.Request, error)
- func NewEditUserStarSubscriptionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewExportChatInviteLinkRequest(server string, body ExportChatInviteLinkJSONRequestBody) (*http.Request, error)
- func NewExportChatInviteLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewForwardMessageRequest(server string, body ForwardMessageJSONRequestBody) (*http.Request, error)
- func NewForwardMessageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewForwardMessagesRequest(server string, body ForwardMessagesJSONRequestBody) (*http.Request, error)
- func NewForwardMessagesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetAvailableGiftsRequest(server string) (*http.Request, error)
- func NewGetBusinessAccountGiftsRequest(server string, body GetBusinessAccountGiftsJSONRequestBody) (*http.Request, error)
- func NewGetBusinessAccountGiftsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetBusinessAccountStarBalanceRequest(server string, body GetBusinessAccountStarBalanceJSONRequestBody) (*http.Request, error)
- func NewGetBusinessAccountStarBalanceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetBusinessConnectionRequest(server string, body GetBusinessConnectionJSONRequestBody) (*http.Request, error)
- func NewGetBusinessConnectionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetChatAdministratorsRequest(server string, body GetChatAdministratorsJSONRequestBody) (*http.Request, error)
- func NewGetChatAdministratorsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetChatGiftsRequest(server string, body GetChatGiftsJSONRequestBody) (*http.Request, error)
- func NewGetChatGiftsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetChatMemberCountRequest(server string, body GetChatMemberCountJSONRequestBody) (*http.Request, error)
- func NewGetChatMemberCountRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetChatMemberRequest(server string, body GetChatMemberJSONRequestBody) (*http.Request, error)
- func NewGetChatMemberRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetChatMenuButtonRequest(server string, body GetChatMenuButtonJSONRequestBody) (*http.Request, error)
- func NewGetChatMenuButtonRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetChatRequest(server string, body GetChatJSONRequestBody) (*http.Request, error)
- func NewGetChatRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetCustomEmojiStickersRequest(server string, body GetCustomEmojiStickersJSONRequestBody) (*http.Request, error)
- func NewGetCustomEmojiStickersRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetFileRequest(server string, body GetFileJSONRequestBody) (*http.Request, error)
- func NewGetFileRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetForumTopicIconStickersRequest(server string) (*http.Request, error)
- func NewGetGameHighScoresRequest(server string, body GetGameHighScoresJSONRequestBody) (*http.Request, error)
- func NewGetGameHighScoresRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetMeRequest(server string) (*http.Request, error)
- func NewGetMyCommandsRequest(server string, body GetMyCommandsJSONRequestBody) (*http.Request, error)
- func NewGetMyCommandsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetMyDefaultAdministratorRightsRequest(server string, body GetMyDefaultAdministratorRightsJSONRequestBody) (*http.Request, error)
- func NewGetMyDefaultAdministratorRightsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetMyDescriptionRequest(server string, body GetMyDescriptionJSONRequestBody) (*http.Request, error)
- func NewGetMyDescriptionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetMyNameRequest(server string, body GetMyNameJSONRequestBody) (*http.Request, error)
- func NewGetMyNameRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetMyShortDescriptionRequest(server string, body GetMyShortDescriptionJSONRequestBody) (*http.Request, error)
- func NewGetMyShortDescriptionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetMyStarBalanceRequest(server string) (*http.Request, error)
- func NewGetStarTransactionsRequest(server string, body GetStarTransactionsJSONRequestBody) (*http.Request, error)
- func NewGetStarTransactionsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetStickerSetRequest(server string, body GetStickerSetJSONRequestBody) (*http.Request, error)
- func NewGetStickerSetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetUpdatesRequest(server string, body GetUpdatesJSONRequestBody) (*http.Request, error)
- func NewGetUpdatesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetUserChatBoostsRequest(server string, body GetUserChatBoostsJSONRequestBody) (*http.Request, error)
- func NewGetUserChatBoostsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetUserGiftsRequest(server string, body GetUserGiftsJSONRequestBody) (*http.Request, error)
- func NewGetUserGiftsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetUserProfilePhotosRequest(server string, body GetUserProfilePhotosJSONRequestBody) (*http.Request, error)
- func NewGetUserProfilePhotosRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetWebhookInfoRequest(server string) (*http.Request, error)
- func NewGiftPremiumSubscriptionRequest(server string, body GiftPremiumSubscriptionJSONRequestBody) (*http.Request, error)
- func NewGiftPremiumSubscriptionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewHideGeneralForumTopicRequest(server string, body HideGeneralForumTopicJSONRequestBody) (*http.Request, error)
- func NewHideGeneralForumTopicRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewLeaveChatRequest(server string, body LeaveChatJSONRequestBody) (*http.Request, error)
- func NewLeaveChatRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewLogOutRequest(server string) (*http.Request, error)
- func NewPinChatMessageRequest(server string, body PinChatMessageJSONRequestBody) (*http.Request, error)
- func NewPinChatMessageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostStoryRequest(server string, body PostStoryJSONRequestBody) (*http.Request, error)
- func NewPostStoryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPromoteChatMemberRequest(server string, body PromoteChatMemberJSONRequestBody) (*http.Request, error)
- func NewPromoteChatMemberRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewReadBusinessMessageRequest(server string, body ReadBusinessMessageJSONRequestBody) (*http.Request, error)
- func NewReadBusinessMessageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRefundStarPaymentRequest(server string, body RefundStarPaymentJSONRequestBody) (*http.Request, error)
- func NewRefundStarPaymentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRemoveBusinessAccountProfilePhotoRequest(server string, body RemoveBusinessAccountProfilePhotoJSONRequestBody) (*http.Request, error)
- func NewRemoveBusinessAccountProfilePhotoRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRemoveChatVerificationRequest(server string, body RemoveChatVerificationJSONRequestBody) (*http.Request, error)
- func NewRemoveChatVerificationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRemoveUserVerificationRequest(server string, body RemoveUserVerificationJSONRequestBody) (*http.Request, error)
- func NewRemoveUserVerificationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewReopenForumTopicRequest(server string, body ReopenForumTopicJSONRequestBody) (*http.Request, error)
- func NewReopenForumTopicRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewReopenGeneralForumTopicRequest(server string, body ReopenGeneralForumTopicJSONRequestBody) (*http.Request, error)
- func NewReopenGeneralForumTopicRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewReplaceStickerInSetRequest(server string, body ReplaceStickerInSetJSONRequestBody) (*http.Request, error)
- func NewReplaceStickerInSetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRepostStoryRequest(server string, body RepostStoryJSONRequestBody) (*http.Request, error)
- func NewRepostStoryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRestrictChatMemberRequest(server string, body RestrictChatMemberJSONRequestBody) (*http.Request, error)
- func NewRestrictChatMemberRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRevokeChatInviteLinkRequest(server string, body RevokeChatInviteLinkJSONRequestBody) (*http.Request, error)
- func NewRevokeChatInviteLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSavePreparedInlineMessageRequest(server string, body SavePreparedInlineMessageJSONRequestBody) (*http.Request, error)
- func NewSavePreparedInlineMessageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSendAnimationRequest(server string, body SendAnimationJSONRequestBody) (*http.Request, error)
- func NewSendAnimationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSendAudioRequest(server string, body SendAudioJSONRequestBody) (*http.Request, error)
- func NewSendAudioRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSendChatActionRequest(server string, body SendChatActionJSONRequestBody) (*http.Request, error)
- func NewSendChatActionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSendChecklistRequest(server string, body SendChecklistJSONRequestBody) (*http.Request, error)
- func NewSendChecklistRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSendContactRequest(server string, body SendContactJSONRequestBody) (*http.Request, error)
- func NewSendContactRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSendDiceRequest(server string, body SendDiceJSONRequestBody) (*http.Request, error)
- func NewSendDiceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSendDocumentRequest(server string, body SendDocumentJSONRequestBody) (*http.Request, error)
- func NewSendDocumentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSendGameRequest(server string, body SendGameJSONRequestBody) (*http.Request, error)
- func NewSendGameRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSendGiftRequest(server string, body SendGiftJSONRequestBody) (*http.Request, error)
- func NewSendGiftRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSendInvoiceRequest(server string, body SendInvoiceJSONRequestBody) (*http.Request, error)
- func NewSendInvoiceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSendLocationRequest(server string, body SendLocationJSONRequestBody) (*http.Request, error)
- func NewSendLocationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSendMediaGroupRequest(server string, body SendMediaGroupJSONRequestBody) (*http.Request, error)
- func NewSendMediaGroupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSendMessageDraftRequest(server string, body SendMessageDraftJSONRequestBody) (*http.Request, error)
- func NewSendMessageDraftRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSendMessageRequest(server string, body SendMessageJSONRequestBody) (*http.Request, error)
- func NewSendMessageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSendPaidMediaRequest(server string, body SendPaidMediaJSONRequestBody) (*http.Request, error)
- func NewSendPaidMediaRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSendPhotoRequest(server string, body SendPhotoJSONRequestBody) (*http.Request, error)
- func NewSendPhotoRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSendPollRequest(server string, body SendPollJSONRequestBody) (*http.Request, error)
- func NewSendPollRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSendStickerRequest(server string, body SendStickerJSONRequestBody) (*http.Request, error)
- func NewSendStickerRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSendVenueRequest(server string, body SendVenueJSONRequestBody) (*http.Request, error)
- func NewSendVenueRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSendVideoNoteRequest(server string, body SendVideoNoteJSONRequestBody) (*http.Request, error)
- func NewSendVideoNoteRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSendVideoRequest(server string, body SendVideoJSONRequestBody) (*http.Request, error)
- func NewSendVideoRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSendVoiceRequest(server string, body SendVoiceJSONRequestBody) (*http.Request, error)
- func NewSendVoiceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewServerUrlTelegramBotAPIEndpointSubstituteBotTokenWithYourBotToken(...) (string, error)
- func NewSetBusinessAccountBioRequest(server string, body SetBusinessAccountBioJSONRequestBody) (*http.Request, error)
- func NewSetBusinessAccountBioRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetBusinessAccountGiftSettingsRequest(server string, body SetBusinessAccountGiftSettingsJSONRequestBody) (*http.Request, error)
- func NewSetBusinessAccountGiftSettingsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetBusinessAccountNameRequest(server string, body SetBusinessAccountNameJSONRequestBody) (*http.Request, error)
- func NewSetBusinessAccountNameRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetBusinessAccountProfilePhotoRequest(server string, body SetBusinessAccountProfilePhotoJSONRequestBody) (*http.Request, error)
- func NewSetBusinessAccountProfilePhotoRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetBusinessAccountUsernameRequest(server string, body SetBusinessAccountUsernameJSONRequestBody) (*http.Request, error)
- func NewSetBusinessAccountUsernameRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetChatAdministratorCustomTitleRequest(server string, body SetChatAdministratorCustomTitleJSONRequestBody) (*http.Request, error)
- func NewSetChatAdministratorCustomTitleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetChatDescriptionRequest(server string, body SetChatDescriptionJSONRequestBody) (*http.Request, error)
- func NewSetChatDescriptionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetChatMenuButtonRequest(server string, body SetChatMenuButtonJSONRequestBody) (*http.Request, error)
- func NewSetChatMenuButtonRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetChatPermissionsRequest(server string, body SetChatPermissionsJSONRequestBody) (*http.Request, error)
- func NewSetChatPermissionsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetChatPhotoRequest(server string, body SetChatPhotoJSONRequestBody) (*http.Request, error)
- func NewSetChatPhotoRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetChatStickerSetRequest(server string, body SetChatStickerSetJSONRequestBody) (*http.Request, error)
- func NewSetChatStickerSetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetChatTitleRequest(server string, body SetChatTitleJSONRequestBody) (*http.Request, error)
- func NewSetChatTitleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetCustomEmojiStickerSetThumbnailRequest(server string, body SetCustomEmojiStickerSetThumbnailJSONRequestBody) (*http.Request, error)
- func NewSetCustomEmojiStickerSetThumbnailRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetGameScoreRequest(server string, body SetGameScoreJSONRequestBody) (*http.Request, error)
- func NewSetGameScoreRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetMessageReactionRequest(server string, body SetMessageReactionJSONRequestBody) (*http.Request, error)
- func NewSetMessageReactionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetMyCommandsRequest(server string, body SetMyCommandsJSONRequestBody) (*http.Request, error)
- func NewSetMyCommandsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetMyDefaultAdministratorRightsRequest(server string, body SetMyDefaultAdministratorRightsJSONRequestBody) (*http.Request, error)
- func NewSetMyDefaultAdministratorRightsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetMyDescriptionRequest(server string, body SetMyDescriptionJSONRequestBody) (*http.Request, error)
- func NewSetMyDescriptionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetMyNameRequest(server string, body SetMyNameJSONRequestBody) (*http.Request, error)
- func NewSetMyNameRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetMyShortDescriptionRequest(server string, body SetMyShortDescriptionJSONRequestBody) (*http.Request, error)
- func NewSetMyShortDescriptionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetPassportDataErrorsRequest(server string, body SetPassportDataErrorsJSONRequestBody) (*http.Request, error)
- func NewSetPassportDataErrorsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetStickerEmojiListRequest(server string, body SetStickerEmojiListJSONRequestBody) (*http.Request, error)
- func NewSetStickerEmojiListRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetStickerKeywordsRequest(server string, body SetStickerKeywordsJSONRequestBody) (*http.Request, error)
- func NewSetStickerKeywordsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetStickerMaskPositionRequest(server string, body SetStickerMaskPositionJSONRequestBody) (*http.Request, error)
- func NewSetStickerMaskPositionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetStickerPositionInSetRequest(server string, body SetStickerPositionInSetJSONRequestBody) (*http.Request, error)
- func NewSetStickerPositionInSetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetStickerSetThumbnailRequest(server string, body SetStickerSetThumbnailJSONRequestBody) (*http.Request, error)
- func NewSetStickerSetThumbnailRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetStickerSetTitleRequest(server string, body SetStickerSetTitleJSONRequestBody) (*http.Request, error)
- func NewSetStickerSetTitleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetUserEmojiStatusRequest(server string, body SetUserEmojiStatusJSONRequestBody) (*http.Request, error)
- func NewSetUserEmojiStatusRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetWebhookRequest(server string, body SetWebhookJSONRequestBody) (*http.Request, error)
- func NewSetWebhookRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewStopMessageLiveLocationRequest(server string, body StopMessageLiveLocationJSONRequestBody) (*http.Request, error)
- func NewStopMessageLiveLocationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewStopPollRequest(server string, body StopPollJSONRequestBody) (*http.Request, error)
- func NewStopPollRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewTransferBusinessAccountStarsRequest(server string, body TransferBusinessAccountStarsJSONRequestBody) (*http.Request, error)
- func NewTransferBusinessAccountStarsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewTransferGiftRequest(server string, body TransferGiftJSONRequestBody) (*http.Request, error)
- func NewTransferGiftRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUnbanChatMemberRequest(server string, body UnbanChatMemberJSONRequestBody) (*http.Request, error)
- func NewUnbanChatMemberRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUnbanChatSenderChatRequest(server string, body UnbanChatSenderChatJSONRequestBody) (*http.Request, error)
- func NewUnbanChatSenderChatRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUnhideGeneralForumTopicRequest(server string, body UnhideGeneralForumTopicJSONRequestBody) (*http.Request, error)
- func NewUnhideGeneralForumTopicRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUnpinAllChatMessagesRequest(server string, body UnpinAllChatMessagesJSONRequestBody) (*http.Request, error)
- func NewUnpinAllChatMessagesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUnpinAllForumTopicMessagesRequest(server string, body UnpinAllForumTopicMessagesJSONRequestBody) (*http.Request, error)
- func NewUnpinAllForumTopicMessagesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUnpinAllGeneralForumTopicMessagesRequest(server string, body UnpinAllGeneralForumTopicMessagesJSONRequestBody) (*http.Request, error)
- func NewUnpinAllGeneralForumTopicMessagesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUnpinChatMessageRequest(server string, body UnpinChatMessageJSONRequestBody) (*http.Request, error)
- func NewUnpinChatMessageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpgradeGiftRequest(server string, body UpgradeGiftJSONRequestBody) (*http.Request, error)
- func NewUpgradeGiftRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUploadStickerFileRequest(server string, body UploadStickerFileJSONRequestBody) (*http.Request, error)
- func NewUploadStickerFileRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewVerifyChatRequest(server string, body VerifyChatJSONRequestBody) (*http.Request, error)
- func NewVerifyChatRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewVerifyUserRequest(server string, body VerifyUserJSONRequestBody) (*http.Request, error)
- func NewVerifyUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- type AcceptedGiftTypes
- type AddStickerToSet200Ok
- type AddStickerToSetJSONBody
- type AddStickerToSetJSONRequestBody
- type AddStickerToSetMultipartBody
- type AddStickerToSetMultipartRequestBody
- type AddStickerToSetResponse
- type Animation
- type AnswerCallbackQuery200Ok
- type AnswerCallbackQueryJSONBody
- type AnswerCallbackQueryJSONRequestBody
- type AnswerCallbackQueryResponse
- type AnswerInlineQuery200Ok
- type AnswerInlineQueryJSONBody
- type AnswerInlineQueryJSONRequestBody
- type AnswerInlineQueryResponse
- type AnswerPreCheckoutQuery200Ok
- type AnswerPreCheckoutQueryJSONBody
- type AnswerPreCheckoutQueryJSONRequestBody
- type AnswerPreCheckoutQueryResponse
- type AnswerShippingQuery200Ok
- type AnswerShippingQueryJSONBody
- type AnswerShippingQueryJSONRequestBody
- type AnswerShippingQueryResponse
- type AnswerWebAppQuery200Ok
- type AnswerWebAppQueryJSONBody
- type AnswerWebAppQueryJSONRequestBody
- type AnswerWebAppQueryResponse
- type ApproveChatJoinRequest200Ok
- type ApproveChatJoinRequestJSONBody
- type ApproveChatJoinRequestJSONRequestBody
- type ApproveChatJoinRequestResponse
- type ApproveSuggestedPost200Ok
- type ApproveSuggestedPostJSONBody
- type ApproveSuggestedPostJSONRequestBody
- type ApproveSuggestedPostResponse
- type Audio
- type BackgroundType
- type BanChatMember200Ok
- type BanChatMemberJSONBody
- type BanChatMemberJSONRequestBody
- type BanChatMemberResponse
- type BanChatSenderChat200Ok
- type BanChatSenderChatJSONBody
- type BanChatSenderChatJSONRequestBody
- type BanChatSenderChatResponse
- type Birthdate
- type BotCommand
- type BotCommandScope
- type BotDescription
- type BotName
- type BotShortDescription
- type BusinessBotRights
- type BusinessConnection
- type BusinessIntro
- type BusinessLocation
- type BusinessMessagesDeleted
- type BusinessOpeningHours
- type BusinessOpeningHoursInterval
- type CallbackGame
- type CallbackQuery
- type Chat
- type ChatAdministratorRights
- type ChatBackground
- type ChatBoost
- type ChatBoostAdded
- type ChatBoostRemoved
- type ChatBoostSource
- type ChatBoostUpdated
- type ChatFullInfo
- type ChatInviteLink
- type ChatJoinRequest
- type ChatLocation
- type ChatMember
- type ChatMemberUpdated
- type ChatPermissions
- type ChatPhoto
- type ChatShared
- type Checklist
- type ChecklistTask
- type ChecklistTasksAdded
- type ChecklistTasksDone
- type ChosenInlineResult
- type Client
- func (c *Client) AddStickerToSet(ctx context.Context, body AddStickerToSetJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AddStickerToSetWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AnswerCallbackQuery(ctx context.Context, body AnswerCallbackQueryJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AnswerCallbackQueryWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AnswerInlineQuery(ctx context.Context, body AnswerInlineQueryJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AnswerInlineQueryWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AnswerPreCheckoutQuery(ctx context.Context, body AnswerPreCheckoutQueryJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AnswerPreCheckoutQueryWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AnswerShippingQuery(ctx context.Context, body AnswerShippingQueryJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AnswerShippingQueryWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AnswerWebAppQuery(ctx context.Context, body AnswerWebAppQueryJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AnswerWebAppQueryWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ApproveChatJoinRequest(ctx context.Context, body ApproveChatJoinRequestJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ApproveChatJoinRequestWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ApproveSuggestedPost(ctx context.Context, body ApproveSuggestedPostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ApproveSuggestedPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) BanChatMember(ctx context.Context, body BanChatMemberJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) BanChatMemberWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) BanChatSenderChat(ctx context.Context, body BanChatSenderChatJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) BanChatSenderChatWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) Close(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CloseForumTopic(ctx context.Context, body CloseForumTopicJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CloseForumTopicWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CloseGeneralForumTopic(ctx context.Context, body CloseGeneralForumTopicJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CloseGeneralForumTopicWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ConvertGiftToStars(ctx context.Context, body ConvertGiftToStarsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ConvertGiftToStarsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CopyMessage(ctx context.Context, body CopyMessageJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CopyMessageWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CopyMessages(ctx context.Context, body CopyMessagesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CopyMessagesWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateChatInviteLink(ctx context.Context, body CreateChatInviteLinkJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateChatInviteLinkWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateChatSubscriptionInviteLink(ctx context.Context, body CreateChatSubscriptionInviteLinkJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateChatSubscriptionInviteLinkWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateForumTopic(ctx context.Context, body CreateForumTopicJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateForumTopicWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateInvoiceLink(ctx context.Context, body CreateInvoiceLinkJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateInvoiceLinkWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateNewStickerSet(ctx context.Context, body CreateNewStickerSetJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateNewStickerSetWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeclineChatJoinRequest(ctx context.Context, body DeclineChatJoinRequestJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DeclineChatJoinRequestWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeclineSuggestedPost(ctx context.Context, body DeclineSuggestedPostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DeclineSuggestedPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteBusinessMessages(ctx context.Context, body DeleteBusinessMessagesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DeleteBusinessMessagesWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteChatPhoto(ctx context.Context, body DeleteChatPhotoJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DeleteChatPhotoWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteChatStickerSet(ctx context.Context, body DeleteChatStickerSetJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DeleteChatStickerSetWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteForumTopic(ctx context.Context, body DeleteForumTopicJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DeleteForumTopicWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteMessage(ctx context.Context, body DeleteMessageJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DeleteMessageWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteMessages(ctx context.Context, body DeleteMessagesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DeleteMessagesWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteMyCommands(ctx context.Context, body DeleteMyCommandsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DeleteMyCommandsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteStickerFromSet(ctx context.Context, body DeleteStickerFromSetJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DeleteStickerFromSetWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteStickerSet(ctx context.Context, body DeleteStickerSetJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DeleteStickerSetWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteStory(ctx context.Context, body DeleteStoryJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DeleteStoryWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteWebhook(ctx context.Context, body DeleteWebhookJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DeleteWebhookWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) EditChatInviteLink(ctx context.Context, body EditChatInviteLinkJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) EditChatInviteLinkWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) EditChatSubscriptionInviteLink(ctx context.Context, body EditChatSubscriptionInviteLinkJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) EditChatSubscriptionInviteLinkWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) EditForumTopic(ctx context.Context, body EditForumTopicJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) EditForumTopicWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) EditGeneralForumTopic(ctx context.Context, body EditGeneralForumTopicJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) EditGeneralForumTopicWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) EditMessageCaption(ctx context.Context, body EditMessageCaptionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) EditMessageCaptionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) EditMessageChecklist(ctx context.Context, body EditMessageChecklistJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) EditMessageChecklistWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) EditMessageLiveLocation(ctx context.Context, body EditMessageLiveLocationJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) EditMessageLiveLocationWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) EditMessageMedia(ctx context.Context, body EditMessageMediaJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) EditMessageMediaWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) EditMessageReplyMarkup(ctx context.Context, body EditMessageReplyMarkupJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) EditMessageReplyMarkupWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) EditMessageText(ctx context.Context, body EditMessageTextJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) EditMessageTextWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) EditStory(ctx context.Context, body EditStoryJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) EditStoryWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) EditUserStarSubscription(ctx context.Context, body EditUserStarSubscriptionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) EditUserStarSubscriptionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ExportChatInviteLink(ctx context.Context, body ExportChatInviteLinkJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ExportChatInviteLinkWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ForwardMessage(ctx context.Context, body ForwardMessageJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ForwardMessageWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ForwardMessages(ctx context.Context, body ForwardMessagesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ForwardMessagesWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetAvailableGifts(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetBusinessAccountGifts(ctx context.Context, body GetBusinessAccountGiftsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetBusinessAccountGiftsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetBusinessAccountStarBalance(ctx context.Context, body GetBusinessAccountStarBalanceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetBusinessAccountStarBalanceWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetBusinessConnection(ctx context.Context, body GetBusinessConnectionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetBusinessConnectionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetChat(ctx context.Context, body GetChatJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetChatAdministrators(ctx context.Context, body GetChatAdministratorsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetChatAdministratorsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetChatGifts(ctx context.Context, body GetChatGiftsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetChatGiftsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetChatMember(ctx context.Context, body GetChatMemberJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetChatMemberCount(ctx context.Context, body GetChatMemberCountJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetChatMemberCountWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetChatMemberWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetChatMenuButton(ctx context.Context, body GetChatMenuButtonJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetChatMenuButtonWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetChatWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetCustomEmojiStickers(ctx context.Context, body GetCustomEmojiStickersJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetCustomEmojiStickersWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetFile(ctx context.Context, body GetFileJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetFileWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetForumTopicIconStickers(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetGameHighScores(ctx context.Context, body GetGameHighScoresJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetGameHighScoresWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetMe(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetMyCommands(ctx context.Context, body GetMyCommandsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetMyCommandsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetMyDefaultAdministratorRights(ctx context.Context, body GetMyDefaultAdministratorRightsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetMyDefaultAdministratorRightsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetMyDescription(ctx context.Context, body GetMyDescriptionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetMyDescriptionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetMyName(ctx context.Context, body GetMyNameJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetMyNameWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetMyShortDescription(ctx context.Context, body GetMyShortDescriptionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetMyShortDescriptionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetMyStarBalance(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetStarTransactions(ctx context.Context, body GetStarTransactionsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetStarTransactionsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetStickerSet(ctx context.Context, body GetStickerSetJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetStickerSetWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetUpdates(ctx context.Context, body GetUpdatesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetUpdatesWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetUserChatBoosts(ctx context.Context, body GetUserChatBoostsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetUserChatBoostsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetUserGifts(ctx context.Context, body GetUserGiftsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetUserGiftsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetUserProfilePhotos(ctx context.Context, body GetUserProfilePhotosJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GetUserProfilePhotosWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetWebhookInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GiftPremiumSubscription(ctx context.Context, body GiftPremiumSubscriptionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) GiftPremiumSubscriptionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) HideGeneralForumTopic(ctx context.Context, body HideGeneralForumTopicJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) HideGeneralForumTopicWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) LeaveChat(ctx context.Context, body LeaveChatJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) LeaveChatWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) LogOut(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PinChatMessage(ctx context.Context, body PinChatMessageJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PinChatMessageWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostStory(ctx context.Context, body PostStoryJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostStoryWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PromoteChatMember(ctx context.Context, body PromoteChatMemberJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PromoteChatMemberWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ReadBusinessMessage(ctx context.Context, body ReadBusinessMessageJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ReadBusinessMessageWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RefundStarPayment(ctx context.Context, body RefundStarPaymentJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RefundStarPaymentWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RemoveBusinessAccountProfilePhoto(ctx context.Context, body RemoveBusinessAccountProfilePhotoJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RemoveBusinessAccountProfilePhotoWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RemoveChatVerification(ctx context.Context, body RemoveChatVerificationJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RemoveChatVerificationWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RemoveUserVerification(ctx context.Context, body RemoveUserVerificationJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RemoveUserVerificationWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ReopenForumTopic(ctx context.Context, body ReopenForumTopicJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ReopenForumTopicWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ReopenGeneralForumTopic(ctx context.Context, body ReopenGeneralForumTopicJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ReopenGeneralForumTopicWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ReplaceStickerInSet(ctx context.Context, body ReplaceStickerInSetJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ReplaceStickerInSetWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RepostStory(ctx context.Context, body RepostStoryJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RepostStoryWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RestrictChatMember(ctx context.Context, body RestrictChatMemberJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RestrictChatMemberWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RevokeChatInviteLink(ctx context.Context, body RevokeChatInviteLinkJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RevokeChatInviteLinkWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SavePreparedInlineMessage(ctx context.Context, body SavePreparedInlineMessageJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SavePreparedInlineMessageWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SendAnimation(ctx context.Context, body SendAnimationJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SendAnimationWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SendAudio(ctx context.Context, body SendAudioJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SendAudioWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SendChatAction(ctx context.Context, body SendChatActionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SendChatActionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SendChecklist(ctx context.Context, body SendChecklistJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SendChecklistWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SendContact(ctx context.Context, body SendContactJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SendContactWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SendDice(ctx context.Context, body SendDiceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SendDiceWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SendDocument(ctx context.Context, body SendDocumentJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SendDocumentWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SendGame(ctx context.Context, body SendGameJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SendGameWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SendGift(ctx context.Context, body SendGiftJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SendGiftWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SendInvoice(ctx context.Context, body SendInvoiceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SendInvoiceWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SendLocation(ctx context.Context, body SendLocationJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SendLocationWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SendMediaGroup(ctx context.Context, body SendMediaGroupJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SendMediaGroupWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SendMessage(ctx context.Context, body SendMessageJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SendMessageDraft(ctx context.Context, body SendMessageDraftJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SendMessageDraftWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SendMessageWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SendPaidMedia(ctx context.Context, body SendPaidMediaJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SendPaidMediaWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SendPhoto(ctx context.Context, body SendPhotoJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SendPhotoWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SendPoll(ctx context.Context, body SendPollJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SendPollWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SendSticker(ctx context.Context, body SendStickerJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SendStickerWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SendVenue(ctx context.Context, body SendVenueJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SendVenueWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SendVideo(ctx context.Context, body SendVideoJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SendVideoNote(ctx context.Context, body SendVideoNoteJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SendVideoNoteWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SendVideoWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SendVoice(ctx context.Context, body SendVoiceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SendVoiceWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetBusinessAccountBio(ctx context.Context, body SetBusinessAccountBioJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetBusinessAccountBioWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetBusinessAccountGiftSettings(ctx context.Context, body SetBusinessAccountGiftSettingsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetBusinessAccountGiftSettingsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetBusinessAccountName(ctx context.Context, body SetBusinessAccountNameJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetBusinessAccountNameWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetBusinessAccountProfilePhoto(ctx context.Context, body SetBusinessAccountProfilePhotoJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetBusinessAccountProfilePhotoWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetBusinessAccountUsername(ctx context.Context, body SetBusinessAccountUsernameJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetBusinessAccountUsernameWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetChatAdministratorCustomTitle(ctx context.Context, body SetChatAdministratorCustomTitleJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetChatAdministratorCustomTitleWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetChatDescription(ctx context.Context, body SetChatDescriptionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetChatDescriptionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetChatMenuButton(ctx context.Context, body SetChatMenuButtonJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetChatMenuButtonWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetChatPermissions(ctx context.Context, body SetChatPermissionsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetChatPermissionsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetChatPhoto(ctx context.Context, body SetChatPhotoJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetChatPhotoWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetChatStickerSet(ctx context.Context, body SetChatStickerSetJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetChatStickerSetWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetChatTitle(ctx context.Context, body SetChatTitleJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetChatTitleWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetCustomEmojiStickerSetThumbnail(ctx context.Context, body SetCustomEmojiStickerSetThumbnailJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetCustomEmojiStickerSetThumbnailWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetGameScore(ctx context.Context, body SetGameScoreJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetGameScoreWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetMessageReaction(ctx context.Context, body SetMessageReactionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetMessageReactionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetMyCommands(ctx context.Context, body SetMyCommandsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetMyCommandsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetMyDefaultAdministratorRights(ctx context.Context, body SetMyDefaultAdministratorRightsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetMyDefaultAdministratorRightsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetMyDescription(ctx context.Context, body SetMyDescriptionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetMyDescriptionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetMyName(ctx context.Context, body SetMyNameJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetMyNameWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetMyShortDescription(ctx context.Context, body SetMyShortDescriptionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetMyShortDescriptionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetPassportDataErrors(ctx context.Context, body SetPassportDataErrorsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetPassportDataErrorsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetStickerEmojiList(ctx context.Context, body SetStickerEmojiListJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetStickerEmojiListWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetStickerKeywords(ctx context.Context, body SetStickerKeywordsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetStickerKeywordsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetStickerMaskPosition(ctx context.Context, body SetStickerMaskPositionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetStickerMaskPositionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetStickerPositionInSet(ctx context.Context, body SetStickerPositionInSetJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetStickerPositionInSetWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetStickerSetThumbnail(ctx context.Context, body SetStickerSetThumbnailJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetStickerSetThumbnailWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetStickerSetTitle(ctx context.Context, body SetStickerSetTitleJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetStickerSetTitleWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetUserEmojiStatus(ctx context.Context, body SetUserEmojiStatusJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetUserEmojiStatusWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetWebhook(ctx context.Context, body SetWebhookJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SetWebhookWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) StopMessageLiveLocation(ctx context.Context, body StopMessageLiveLocationJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) StopMessageLiveLocationWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) StopPoll(ctx context.Context, body StopPollJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) StopPollWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) TransferBusinessAccountStars(ctx context.Context, body TransferBusinessAccountStarsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) TransferBusinessAccountStarsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) TransferGift(ctx context.Context, body TransferGiftJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) TransferGiftWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UnbanChatMember(ctx context.Context, body UnbanChatMemberJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UnbanChatMemberWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UnbanChatSenderChat(ctx context.Context, body UnbanChatSenderChatJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UnbanChatSenderChatWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UnhideGeneralForumTopic(ctx context.Context, body UnhideGeneralForumTopicJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UnhideGeneralForumTopicWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UnpinAllChatMessages(ctx context.Context, body UnpinAllChatMessagesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UnpinAllChatMessagesWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UnpinAllForumTopicMessages(ctx context.Context, body UnpinAllForumTopicMessagesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UnpinAllForumTopicMessagesWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UnpinAllGeneralForumTopicMessages(ctx context.Context, body UnpinAllGeneralForumTopicMessagesJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UnpinAllGeneralForumTopicMessagesWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UnpinChatMessage(ctx context.Context, body UnpinChatMessageJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UnpinChatMessageWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpgradeGift(ctx context.Context, body UpgradeGiftJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpgradeGiftWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UploadStickerFile(ctx context.Context, body UploadStickerFileJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UploadStickerFileWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) VerifyChat(ctx context.Context, body VerifyChatJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) VerifyChatWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) VerifyUser(ctx context.Context, body VerifyUserJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) VerifyUserWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AddStickerToSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AddStickerToSetResponse, error)
- func (c *ClientWithResponses) AddStickerToSetWithResponse(ctx context.Context, body AddStickerToSetJSONRequestBody, ...) (*AddStickerToSetResponse, error)
- func (c *ClientWithResponses) AnswerCallbackQueryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AnswerCallbackQueryResponse, error)
- func (c *ClientWithResponses) AnswerCallbackQueryWithResponse(ctx context.Context, body AnswerCallbackQueryJSONRequestBody, ...) (*AnswerCallbackQueryResponse, error)
- func (c *ClientWithResponses) AnswerInlineQueryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AnswerInlineQueryResponse, error)
- func (c *ClientWithResponses) AnswerInlineQueryWithResponse(ctx context.Context, body AnswerInlineQueryJSONRequestBody, ...) (*AnswerInlineQueryResponse, error)
- func (c *ClientWithResponses) AnswerPreCheckoutQueryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AnswerPreCheckoutQueryResponse, error)
- func (c *ClientWithResponses) AnswerPreCheckoutQueryWithResponse(ctx context.Context, body AnswerPreCheckoutQueryJSONRequestBody, ...) (*AnswerPreCheckoutQueryResponse, error)
- func (c *ClientWithResponses) AnswerShippingQueryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AnswerShippingQueryResponse, error)
- func (c *ClientWithResponses) AnswerShippingQueryWithResponse(ctx context.Context, body AnswerShippingQueryJSONRequestBody, ...) (*AnswerShippingQueryResponse, error)
- func (c *ClientWithResponses) AnswerWebAppQueryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AnswerWebAppQueryResponse, error)
- func (c *ClientWithResponses) AnswerWebAppQueryWithResponse(ctx context.Context, body AnswerWebAppQueryJSONRequestBody, ...) (*AnswerWebAppQueryResponse, error)
- func (c *ClientWithResponses) ApproveChatJoinRequestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ApproveChatJoinRequestResponse, error)
- func (c *ClientWithResponses) ApproveChatJoinRequestWithResponse(ctx context.Context, body ApproveChatJoinRequestJSONRequestBody, ...) (*ApproveChatJoinRequestResponse, error)
- func (c *ClientWithResponses) ApproveSuggestedPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ApproveSuggestedPostResponse, error)
- func (c *ClientWithResponses) ApproveSuggestedPostWithResponse(ctx context.Context, body ApproveSuggestedPostJSONRequestBody, ...) (*ApproveSuggestedPostResponse, error)
- func (c *ClientWithResponses) BanChatMemberWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*BanChatMemberResponse, error)
- func (c *ClientWithResponses) BanChatMemberWithResponse(ctx context.Context, body BanChatMemberJSONRequestBody, ...) (*BanChatMemberResponse, error)
- func (c *ClientWithResponses) BanChatSenderChatWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*BanChatSenderChatResponse, error)
- func (c *ClientWithResponses) BanChatSenderChatWithResponse(ctx context.Context, body BanChatSenderChatJSONRequestBody, ...) (*BanChatSenderChatResponse, error)
- func (c *ClientWithResponses) CloseForumTopicWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CloseForumTopicResponse, error)
- func (c *ClientWithResponses) CloseForumTopicWithResponse(ctx context.Context, body CloseForumTopicJSONRequestBody, ...) (*CloseForumTopicResponse, error)
- func (c *ClientWithResponses) CloseGeneralForumTopicWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CloseGeneralForumTopicResponse, error)
- func (c *ClientWithResponses) CloseGeneralForumTopicWithResponse(ctx context.Context, body CloseGeneralForumTopicJSONRequestBody, ...) (*CloseGeneralForumTopicResponse, error)
- func (c *ClientWithResponses) CloseWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CloseResponse, error)
- func (c *ClientWithResponses) ConvertGiftToStarsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ConvertGiftToStarsResponse, error)
- func (c *ClientWithResponses) ConvertGiftToStarsWithResponse(ctx context.Context, body ConvertGiftToStarsJSONRequestBody, ...) (*ConvertGiftToStarsResponse, error)
- func (c *ClientWithResponses) CopyMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CopyMessageResponse, error)
- func (c *ClientWithResponses) CopyMessageWithResponse(ctx context.Context, body CopyMessageJSONRequestBody, ...) (*CopyMessageResponse, error)
- func (c *ClientWithResponses) CopyMessagesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CopyMessagesResponse, error)
- func (c *ClientWithResponses) CopyMessagesWithResponse(ctx context.Context, body CopyMessagesJSONRequestBody, ...) (*CopyMessagesResponse, error)
- func (c *ClientWithResponses) CreateChatInviteLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateChatInviteLinkResponse, error)
- func (c *ClientWithResponses) CreateChatInviteLinkWithResponse(ctx context.Context, body CreateChatInviteLinkJSONRequestBody, ...) (*CreateChatInviteLinkResponse, error)
- func (c *ClientWithResponses) CreateChatSubscriptionInviteLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateChatSubscriptionInviteLinkResponse, error)
- func (c *ClientWithResponses) CreateChatSubscriptionInviteLinkWithResponse(ctx context.Context, body CreateChatSubscriptionInviteLinkJSONRequestBody, ...) (*CreateChatSubscriptionInviteLinkResponse, error)
- func (c *ClientWithResponses) CreateForumTopicWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateForumTopicResponse, error)
- func (c *ClientWithResponses) CreateForumTopicWithResponse(ctx context.Context, body CreateForumTopicJSONRequestBody, ...) (*CreateForumTopicResponse, error)
- func (c *ClientWithResponses) CreateInvoiceLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateInvoiceLinkResponse, error)
- func (c *ClientWithResponses) CreateInvoiceLinkWithResponse(ctx context.Context, body CreateInvoiceLinkJSONRequestBody, ...) (*CreateInvoiceLinkResponse, error)
- func (c *ClientWithResponses) CreateNewStickerSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateNewStickerSetResponse, error)
- func (c *ClientWithResponses) CreateNewStickerSetWithResponse(ctx context.Context, body CreateNewStickerSetJSONRequestBody, ...) (*CreateNewStickerSetResponse, error)
- func (c *ClientWithResponses) DeclineChatJoinRequestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeclineChatJoinRequestResponse, error)
- func (c *ClientWithResponses) DeclineChatJoinRequestWithResponse(ctx context.Context, body DeclineChatJoinRequestJSONRequestBody, ...) (*DeclineChatJoinRequestResponse, error)
- func (c *ClientWithResponses) DeclineSuggestedPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeclineSuggestedPostResponse, error)
- func (c *ClientWithResponses) DeclineSuggestedPostWithResponse(ctx context.Context, body DeclineSuggestedPostJSONRequestBody, ...) (*DeclineSuggestedPostResponse, error)
- func (c *ClientWithResponses) DeleteBusinessMessagesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeleteBusinessMessagesResponse, error)
- func (c *ClientWithResponses) DeleteBusinessMessagesWithResponse(ctx context.Context, body DeleteBusinessMessagesJSONRequestBody, ...) (*DeleteBusinessMessagesResponse, error)
- func (c *ClientWithResponses) DeleteChatPhotoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeleteChatPhotoResponse, error)
- func (c *ClientWithResponses) DeleteChatPhotoWithResponse(ctx context.Context, body DeleteChatPhotoJSONRequestBody, ...) (*DeleteChatPhotoResponse, error)
- func (c *ClientWithResponses) DeleteChatStickerSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeleteChatStickerSetResponse, error)
- func (c *ClientWithResponses) DeleteChatStickerSetWithResponse(ctx context.Context, body DeleteChatStickerSetJSONRequestBody, ...) (*DeleteChatStickerSetResponse, error)
- func (c *ClientWithResponses) DeleteForumTopicWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeleteForumTopicResponse, error)
- func (c *ClientWithResponses) DeleteForumTopicWithResponse(ctx context.Context, body DeleteForumTopicJSONRequestBody, ...) (*DeleteForumTopicResponse, error)
- func (c *ClientWithResponses) DeleteMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeleteMessageResponse, error)
- func (c *ClientWithResponses) DeleteMessageWithResponse(ctx context.Context, body DeleteMessageJSONRequestBody, ...) (*DeleteMessageResponse, error)
- func (c *ClientWithResponses) DeleteMessagesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeleteMessagesResponse, error)
- func (c *ClientWithResponses) DeleteMessagesWithResponse(ctx context.Context, body DeleteMessagesJSONRequestBody, ...) (*DeleteMessagesResponse, error)
- func (c *ClientWithResponses) DeleteMyCommandsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeleteMyCommandsResponse, error)
- func (c *ClientWithResponses) DeleteMyCommandsWithResponse(ctx context.Context, body DeleteMyCommandsJSONRequestBody, ...) (*DeleteMyCommandsResponse, error)
- func (c *ClientWithResponses) DeleteStickerFromSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeleteStickerFromSetResponse, error)
- func (c *ClientWithResponses) DeleteStickerFromSetWithResponse(ctx context.Context, body DeleteStickerFromSetJSONRequestBody, ...) (*DeleteStickerFromSetResponse, error)
- func (c *ClientWithResponses) DeleteStickerSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeleteStickerSetResponse, error)
- func (c *ClientWithResponses) DeleteStickerSetWithResponse(ctx context.Context, body DeleteStickerSetJSONRequestBody, ...) (*DeleteStickerSetResponse, error)
- func (c *ClientWithResponses) DeleteStoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeleteStoryResponse, error)
- func (c *ClientWithResponses) DeleteStoryWithResponse(ctx context.Context, body DeleteStoryJSONRequestBody, ...) (*DeleteStoryResponse, error)
- func (c *ClientWithResponses) DeleteWebhookWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeleteWebhookResponse, error)
- func (c *ClientWithResponses) DeleteWebhookWithResponse(ctx context.Context, body DeleteWebhookJSONRequestBody, ...) (*DeleteWebhookResponse, error)
- func (c *ClientWithResponses) EditChatInviteLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*EditChatInviteLinkResponse, error)
- func (c *ClientWithResponses) EditChatInviteLinkWithResponse(ctx context.Context, body EditChatInviteLinkJSONRequestBody, ...) (*EditChatInviteLinkResponse, error)
- func (c *ClientWithResponses) EditChatSubscriptionInviteLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*EditChatSubscriptionInviteLinkResponse, error)
- func (c *ClientWithResponses) EditChatSubscriptionInviteLinkWithResponse(ctx context.Context, body EditChatSubscriptionInviteLinkJSONRequestBody, ...) (*EditChatSubscriptionInviteLinkResponse, error)
- func (c *ClientWithResponses) EditForumTopicWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*EditForumTopicResponse, error)
- func (c *ClientWithResponses) EditForumTopicWithResponse(ctx context.Context, body EditForumTopicJSONRequestBody, ...) (*EditForumTopicResponse, error)
- func (c *ClientWithResponses) EditGeneralForumTopicWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*EditGeneralForumTopicResponse, error)
- func (c *ClientWithResponses) EditGeneralForumTopicWithResponse(ctx context.Context, body EditGeneralForumTopicJSONRequestBody, ...) (*EditGeneralForumTopicResponse, error)
- func (c *ClientWithResponses) EditMessageCaptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*EditMessageCaptionResponse, error)
- func (c *ClientWithResponses) EditMessageCaptionWithResponse(ctx context.Context, body EditMessageCaptionJSONRequestBody, ...) (*EditMessageCaptionResponse, error)
- func (c *ClientWithResponses) EditMessageChecklistWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*EditMessageChecklistResponse, error)
- func (c *ClientWithResponses) EditMessageChecklistWithResponse(ctx context.Context, body EditMessageChecklistJSONRequestBody, ...) (*EditMessageChecklistResponse, error)
- func (c *ClientWithResponses) EditMessageLiveLocationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*EditMessageLiveLocationResponse, error)
- func (c *ClientWithResponses) EditMessageLiveLocationWithResponse(ctx context.Context, body EditMessageLiveLocationJSONRequestBody, ...) (*EditMessageLiveLocationResponse, error)
- func (c *ClientWithResponses) EditMessageMediaWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*EditMessageMediaResponse, error)
- func (c *ClientWithResponses) EditMessageMediaWithResponse(ctx context.Context, body EditMessageMediaJSONRequestBody, ...) (*EditMessageMediaResponse, error)
- func (c *ClientWithResponses) EditMessageReplyMarkupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*EditMessageReplyMarkupResponse, error)
- func (c *ClientWithResponses) EditMessageReplyMarkupWithResponse(ctx context.Context, body EditMessageReplyMarkupJSONRequestBody, ...) (*EditMessageReplyMarkupResponse, error)
- func (c *ClientWithResponses) EditMessageTextWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*EditMessageTextResponse, error)
- func (c *ClientWithResponses) EditMessageTextWithResponse(ctx context.Context, body EditMessageTextJSONRequestBody, ...) (*EditMessageTextResponse, error)
- func (c *ClientWithResponses) EditStoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*EditStoryResponse, error)
- func (c *ClientWithResponses) EditStoryWithResponse(ctx context.Context, body EditStoryJSONRequestBody, ...) (*EditStoryResponse, error)
- func (c *ClientWithResponses) EditUserStarSubscriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*EditUserStarSubscriptionResponse, error)
- func (c *ClientWithResponses) EditUserStarSubscriptionWithResponse(ctx context.Context, body EditUserStarSubscriptionJSONRequestBody, ...) (*EditUserStarSubscriptionResponse, error)
- func (c *ClientWithResponses) ExportChatInviteLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ExportChatInviteLinkResponse, error)
- func (c *ClientWithResponses) ExportChatInviteLinkWithResponse(ctx context.Context, body ExportChatInviteLinkJSONRequestBody, ...) (*ExportChatInviteLinkResponse, error)
- func (c *ClientWithResponses) ForwardMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ForwardMessageResponse, error)
- func (c *ClientWithResponses) ForwardMessageWithResponse(ctx context.Context, body ForwardMessageJSONRequestBody, ...) (*ForwardMessageResponse, error)
- func (c *ClientWithResponses) ForwardMessagesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ForwardMessagesResponse, error)
- func (c *ClientWithResponses) ForwardMessagesWithResponse(ctx context.Context, body ForwardMessagesJSONRequestBody, ...) (*ForwardMessagesResponse, error)
- func (c *ClientWithResponses) GetAvailableGiftsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAvailableGiftsResponse, error)
- func (c *ClientWithResponses) GetBusinessAccountGiftsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetBusinessAccountGiftsResponse, error)
- func (c *ClientWithResponses) GetBusinessAccountGiftsWithResponse(ctx context.Context, body GetBusinessAccountGiftsJSONRequestBody, ...) (*GetBusinessAccountGiftsResponse, error)
- func (c *ClientWithResponses) GetBusinessAccountStarBalanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetBusinessAccountStarBalanceResponse, error)
- func (c *ClientWithResponses) GetBusinessAccountStarBalanceWithResponse(ctx context.Context, body GetBusinessAccountStarBalanceJSONRequestBody, ...) (*GetBusinessAccountStarBalanceResponse, error)
- func (c *ClientWithResponses) GetBusinessConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetBusinessConnectionResponse, error)
- func (c *ClientWithResponses) GetBusinessConnectionWithResponse(ctx context.Context, body GetBusinessConnectionJSONRequestBody, ...) (*GetBusinessConnectionResponse, error)
- func (c *ClientWithResponses) GetChatAdministratorsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetChatAdministratorsResponse, error)
- func (c *ClientWithResponses) GetChatAdministratorsWithResponse(ctx context.Context, body GetChatAdministratorsJSONRequestBody, ...) (*GetChatAdministratorsResponse, error)
- func (c *ClientWithResponses) GetChatGiftsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetChatGiftsResponse, error)
- func (c *ClientWithResponses) GetChatGiftsWithResponse(ctx context.Context, body GetChatGiftsJSONRequestBody, ...) (*GetChatGiftsResponse, error)
- func (c *ClientWithResponses) GetChatMemberCountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetChatMemberCountResponse, error)
- func (c *ClientWithResponses) GetChatMemberCountWithResponse(ctx context.Context, body GetChatMemberCountJSONRequestBody, ...) (*GetChatMemberCountResponse, error)
- func (c *ClientWithResponses) GetChatMemberWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetChatMemberResponse, error)
- func (c *ClientWithResponses) GetChatMemberWithResponse(ctx context.Context, body GetChatMemberJSONRequestBody, ...) (*GetChatMemberResponse, error)
- func (c *ClientWithResponses) GetChatMenuButtonWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetChatMenuButtonResponse, error)
- func (c *ClientWithResponses) GetChatMenuButtonWithResponse(ctx context.Context, body GetChatMenuButtonJSONRequestBody, ...) (*GetChatMenuButtonResponse, error)
- func (c *ClientWithResponses) GetChatWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetChatResponse, error)
- func (c *ClientWithResponses) GetChatWithResponse(ctx context.Context, body GetChatJSONRequestBody, ...) (*GetChatResponse, error)
- func (c *ClientWithResponses) GetCustomEmojiStickersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetCustomEmojiStickersResponse, error)
- func (c *ClientWithResponses) GetCustomEmojiStickersWithResponse(ctx context.Context, body GetCustomEmojiStickersJSONRequestBody, ...) (*GetCustomEmojiStickersResponse, error)
- func (c *ClientWithResponses) GetFileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetFileResponse, error)
- func (c *ClientWithResponses) GetFileWithResponse(ctx context.Context, body GetFileJSONRequestBody, ...) (*GetFileResponse, error)
- func (c *ClientWithResponses) GetForumTopicIconStickersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetForumTopicIconStickersResponse, error)
- func (c *ClientWithResponses) GetGameHighScoresWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetGameHighScoresResponse, error)
- func (c *ClientWithResponses) GetGameHighScoresWithResponse(ctx context.Context, body GetGameHighScoresJSONRequestBody, ...) (*GetGameHighScoresResponse, error)
- func (c *ClientWithResponses) GetMeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMeResponse, error)
- func (c *ClientWithResponses) GetMyCommandsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetMyCommandsResponse, error)
- func (c *ClientWithResponses) GetMyCommandsWithResponse(ctx context.Context, body GetMyCommandsJSONRequestBody, ...) (*GetMyCommandsResponse, error)
- func (c *ClientWithResponses) GetMyDefaultAdministratorRightsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetMyDefaultAdministratorRightsResponse, error)
- func (c *ClientWithResponses) GetMyDefaultAdministratorRightsWithResponse(ctx context.Context, body GetMyDefaultAdministratorRightsJSONRequestBody, ...) (*GetMyDefaultAdministratorRightsResponse, error)
- func (c *ClientWithResponses) GetMyDescriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetMyDescriptionResponse, error)
- func (c *ClientWithResponses) GetMyDescriptionWithResponse(ctx context.Context, body GetMyDescriptionJSONRequestBody, ...) (*GetMyDescriptionResponse, error)
- func (c *ClientWithResponses) GetMyNameWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetMyNameResponse, error)
- func (c *ClientWithResponses) GetMyNameWithResponse(ctx context.Context, body GetMyNameJSONRequestBody, ...) (*GetMyNameResponse, error)
- func (c *ClientWithResponses) GetMyShortDescriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetMyShortDescriptionResponse, error)
- func (c *ClientWithResponses) GetMyShortDescriptionWithResponse(ctx context.Context, body GetMyShortDescriptionJSONRequestBody, ...) (*GetMyShortDescriptionResponse, error)
- func (c *ClientWithResponses) GetMyStarBalanceWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMyStarBalanceResponse, error)
- func (c *ClientWithResponses) GetStarTransactionsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetStarTransactionsResponse, error)
- func (c *ClientWithResponses) GetStarTransactionsWithResponse(ctx context.Context, body GetStarTransactionsJSONRequestBody, ...) (*GetStarTransactionsResponse, error)
- func (c *ClientWithResponses) GetStickerSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetStickerSetResponse, error)
- func (c *ClientWithResponses) GetStickerSetWithResponse(ctx context.Context, body GetStickerSetJSONRequestBody, ...) (*GetStickerSetResponse, error)
- func (c *ClientWithResponses) GetUpdatesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetUpdatesResponse, error)
- func (c *ClientWithResponses) GetUpdatesWithResponse(ctx context.Context, body GetUpdatesJSONRequestBody, ...) (*GetUpdatesResponse, error)
- func (c *ClientWithResponses) GetUserChatBoostsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetUserChatBoostsResponse, error)
- func (c *ClientWithResponses) GetUserChatBoostsWithResponse(ctx context.Context, body GetUserChatBoostsJSONRequestBody, ...) (*GetUserChatBoostsResponse, error)
- func (c *ClientWithResponses) GetUserGiftsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetUserGiftsResponse, error)
- func (c *ClientWithResponses) GetUserGiftsWithResponse(ctx context.Context, body GetUserGiftsJSONRequestBody, ...) (*GetUserGiftsResponse, error)
- func (c *ClientWithResponses) GetUserProfilePhotosWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GetUserProfilePhotosResponse, error)
- func (c *ClientWithResponses) GetUserProfilePhotosWithResponse(ctx context.Context, body GetUserProfilePhotosJSONRequestBody, ...) (*GetUserProfilePhotosResponse, error)
- func (c *ClientWithResponses) GetWebhookInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWebhookInfoResponse, error)
- func (c *ClientWithResponses) GiftPremiumSubscriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*GiftPremiumSubscriptionResponse, error)
- func (c *ClientWithResponses) GiftPremiumSubscriptionWithResponse(ctx context.Context, body GiftPremiumSubscriptionJSONRequestBody, ...) (*GiftPremiumSubscriptionResponse, error)
- func (c *ClientWithResponses) HideGeneralForumTopicWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*HideGeneralForumTopicResponse, error)
- func (c *ClientWithResponses) HideGeneralForumTopicWithResponse(ctx context.Context, body HideGeneralForumTopicJSONRequestBody, ...) (*HideGeneralForumTopicResponse, error)
- func (c *ClientWithResponses) LeaveChatWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*LeaveChatResponse, error)
- func (c *ClientWithResponses) LeaveChatWithResponse(ctx context.Context, body LeaveChatJSONRequestBody, ...) (*LeaveChatResponse, error)
- func (c *ClientWithResponses) LogOutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogOutResponse, error)
- func (c *ClientWithResponses) PinChatMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PinChatMessageResponse, error)
- func (c *ClientWithResponses) PinChatMessageWithResponse(ctx context.Context, body PinChatMessageJSONRequestBody, ...) (*PinChatMessageResponse, error)
- func (c *ClientWithResponses) PostStoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostStoryResponse, error)
- func (c *ClientWithResponses) PostStoryWithResponse(ctx context.Context, body PostStoryJSONRequestBody, ...) (*PostStoryResponse, error)
- func (c *ClientWithResponses) PromoteChatMemberWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PromoteChatMemberResponse, error)
- func (c *ClientWithResponses) PromoteChatMemberWithResponse(ctx context.Context, body PromoteChatMemberJSONRequestBody, ...) (*PromoteChatMemberResponse, error)
- func (c *ClientWithResponses) ReadBusinessMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ReadBusinessMessageResponse, error)
- func (c *ClientWithResponses) ReadBusinessMessageWithResponse(ctx context.Context, body ReadBusinessMessageJSONRequestBody, ...) (*ReadBusinessMessageResponse, error)
- func (c *ClientWithResponses) RefundStarPaymentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RefundStarPaymentResponse, error)
- func (c *ClientWithResponses) RefundStarPaymentWithResponse(ctx context.Context, body RefundStarPaymentJSONRequestBody, ...) (*RefundStarPaymentResponse, error)
- func (c *ClientWithResponses) RemoveBusinessAccountProfilePhotoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RemoveBusinessAccountProfilePhotoResponse, error)
- func (c *ClientWithResponses) RemoveBusinessAccountProfilePhotoWithResponse(ctx context.Context, body RemoveBusinessAccountProfilePhotoJSONRequestBody, ...) (*RemoveBusinessAccountProfilePhotoResponse, error)
- func (c *ClientWithResponses) RemoveChatVerificationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RemoveChatVerificationResponse, error)
- func (c *ClientWithResponses) RemoveChatVerificationWithResponse(ctx context.Context, body RemoveChatVerificationJSONRequestBody, ...) (*RemoveChatVerificationResponse, error)
- func (c *ClientWithResponses) RemoveUserVerificationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RemoveUserVerificationResponse, error)
- func (c *ClientWithResponses) RemoveUserVerificationWithResponse(ctx context.Context, body RemoveUserVerificationJSONRequestBody, ...) (*RemoveUserVerificationResponse, error)
- func (c *ClientWithResponses) ReopenForumTopicWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ReopenForumTopicResponse, error)
- func (c *ClientWithResponses) ReopenForumTopicWithResponse(ctx context.Context, body ReopenForumTopicJSONRequestBody, ...) (*ReopenForumTopicResponse, error)
- func (c *ClientWithResponses) ReopenGeneralForumTopicWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ReopenGeneralForumTopicResponse, error)
- func (c *ClientWithResponses) ReopenGeneralForumTopicWithResponse(ctx context.Context, body ReopenGeneralForumTopicJSONRequestBody, ...) (*ReopenGeneralForumTopicResponse, error)
- func (c *ClientWithResponses) ReplaceStickerInSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ReplaceStickerInSetResponse, error)
- func (c *ClientWithResponses) ReplaceStickerInSetWithResponse(ctx context.Context, body ReplaceStickerInSetJSONRequestBody, ...) (*ReplaceStickerInSetResponse, error)
- func (c *ClientWithResponses) RepostStoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RepostStoryResponse, error)
- func (c *ClientWithResponses) RepostStoryWithResponse(ctx context.Context, body RepostStoryJSONRequestBody, ...) (*RepostStoryResponse, error)
- func (c *ClientWithResponses) RestrictChatMemberWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RestrictChatMemberResponse, error)
- func (c *ClientWithResponses) RestrictChatMemberWithResponse(ctx context.Context, body RestrictChatMemberJSONRequestBody, ...) (*RestrictChatMemberResponse, error)
- func (c *ClientWithResponses) RevokeChatInviteLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RevokeChatInviteLinkResponse, error)
- func (c *ClientWithResponses) RevokeChatInviteLinkWithResponse(ctx context.Context, body RevokeChatInviteLinkJSONRequestBody, ...) (*RevokeChatInviteLinkResponse, error)
- func (c *ClientWithResponses) SavePreparedInlineMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SavePreparedInlineMessageResponse, error)
- func (c *ClientWithResponses) SavePreparedInlineMessageWithResponse(ctx context.Context, body SavePreparedInlineMessageJSONRequestBody, ...) (*SavePreparedInlineMessageResponse, error)
- func (c *ClientWithResponses) SendAnimationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SendAnimationResponse, error)
- func (c *ClientWithResponses) SendAnimationWithResponse(ctx context.Context, body SendAnimationJSONRequestBody, ...) (*SendAnimationResponse, error)
- func (c *ClientWithResponses) SendAudioWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SendAudioResponse, error)
- func (c *ClientWithResponses) SendAudioWithResponse(ctx context.Context, body SendAudioJSONRequestBody, ...) (*SendAudioResponse, error)
- func (c *ClientWithResponses) SendChatActionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SendChatActionResponse, error)
- func (c *ClientWithResponses) SendChatActionWithResponse(ctx context.Context, body SendChatActionJSONRequestBody, ...) (*SendChatActionResponse, error)
- func (c *ClientWithResponses) SendChecklistWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SendChecklistResponse, error)
- func (c *ClientWithResponses) SendChecklistWithResponse(ctx context.Context, body SendChecklistJSONRequestBody, ...) (*SendChecklistResponse, error)
- func (c *ClientWithResponses) SendContactWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SendContactResponse, error)
- func (c *ClientWithResponses) SendContactWithResponse(ctx context.Context, body SendContactJSONRequestBody, ...) (*SendContactResponse, error)
- func (c *ClientWithResponses) SendDiceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SendDiceResponse, error)
- func (c *ClientWithResponses) SendDiceWithResponse(ctx context.Context, body SendDiceJSONRequestBody, ...) (*SendDiceResponse, error)
- func (c *ClientWithResponses) SendDocumentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SendDocumentResponse, error)
- func (c *ClientWithResponses) SendDocumentWithResponse(ctx context.Context, body SendDocumentJSONRequestBody, ...) (*SendDocumentResponse, error)
- func (c *ClientWithResponses) SendGameWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SendGameResponse, error)
- func (c *ClientWithResponses) SendGameWithResponse(ctx context.Context, body SendGameJSONRequestBody, ...) (*SendGameResponse, error)
- func (c *ClientWithResponses) SendGiftWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SendGiftResponse, error)
- func (c *ClientWithResponses) SendGiftWithResponse(ctx context.Context, body SendGiftJSONRequestBody, ...) (*SendGiftResponse, error)
- func (c *ClientWithResponses) SendInvoiceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SendInvoiceResponse, error)
- func (c *ClientWithResponses) SendInvoiceWithResponse(ctx context.Context, body SendInvoiceJSONRequestBody, ...) (*SendInvoiceResponse, error)
- func (c *ClientWithResponses) SendLocationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SendLocationResponse, error)
- func (c *ClientWithResponses) SendLocationWithResponse(ctx context.Context, body SendLocationJSONRequestBody, ...) (*SendLocationResponse, error)
- func (c *ClientWithResponses) SendMediaGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SendMediaGroupResponse, error)
- func (c *ClientWithResponses) SendMediaGroupWithResponse(ctx context.Context, body SendMediaGroupJSONRequestBody, ...) (*SendMediaGroupResponse, error)
- func (c *ClientWithResponses) SendMessageDraftWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SendMessageDraftResponse, error)
- func (c *ClientWithResponses) SendMessageDraftWithResponse(ctx context.Context, body SendMessageDraftJSONRequestBody, ...) (*SendMessageDraftResponse, error)
- func (c *ClientWithResponses) SendMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SendMessageResponse, error)
- func (c *ClientWithResponses) SendMessageWithResponse(ctx context.Context, body SendMessageJSONRequestBody, ...) (*SendMessageResponse, error)
- func (c *ClientWithResponses) SendPaidMediaWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SendPaidMediaResponse, error)
- func (c *ClientWithResponses) SendPaidMediaWithResponse(ctx context.Context, body SendPaidMediaJSONRequestBody, ...) (*SendPaidMediaResponse, error)
- func (c *ClientWithResponses) SendPhotoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SendPhotoResponse, error)
- func (c *ClientWithResponses) SendPhotoWithResponse(ctx context.Context, body SendPhotoJSONRequestBody, ...) (*SendPhotoResponse, error)
- func (c *ClientWithResponses) SendPollWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SendPollResponse, error)
- func (c *ClientWithResponses) SendPollWithResponse(ctx context.Context, body SendPollJSONRequestBody, ...) (*SendPollResponse, error)
- func (c *ClientWithResponses) SendStickerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SendStickerResponse, error)
- func (c *ClientWithResponses) SendStickerWithResponse(ctx context.Context, body SendStickerJSONRequestBody, ...) (*SendStickerResponse, error)
- func (c *ClientWithResponses) SendVenueWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SendVenueResponse, error)
- func (c *ClientWithResponses) SendVenueWithResponse(ctx context.Context, body SendVenueJSONRequestBody, ...) (*SendVenueResponse, error)
- func (c *ClientWithResponses) SendVideoNoteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SendVideoNoteResponse, error)
- func (c *ClientWithResponses) SendVideoNoteWithResponse(ctx context.Context, body SendVideoNoteJSONRequestBody, ...) (*SendVideoNoteResponse, error)
- func (c *ClientWithResponses) SendVideoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SendVideoResponse, error)
- func (c *ClientWithResponses) SendVideoWithResponse(ctx context.Context, body SendVideoJSONRequestBody, ...) (*SendVideoResponse, error)
- func (c *ClientWithResponses) SendVoiceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SendVoiceResponse, error)
- func (c *ClientWithResponses) SendVoiceWithResponse(ctx context.Context, body SendVoiceJSONRequestBody, ...) (*SendVoiceResponse, error)
- func (c *ClientWithResponses) SetBusinessAccountBioWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetBusinessAccountBioResponse, error)
- func (c *ClientWithResponses) SetBusinessAccountBioWithResponse(ctx context.Context, body SetBusinessAccountBioJSONRequestBody, ...) (*SetBusinessAccountBioResponse, error)
- func (c *ClientWithResponses) SetBusinessAccountGiftSettingsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetBusinessAccountGiftSettingsResponse, error)
- func (c *ClientWithResponses) SetBusinessAccountGiftSettingsWithResponse(ctx context.Context, body SetBusinessAccountGiftSettingsJSONRequestBody, ...) (*SetBusinessAccountGiftSettingsResponse, error)
- func (c *ClientWithResponses) SetBusinessAccountNameWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetBusinessAccountNameResponse, error)
- func (c *ClientWithResponses) SetBusinessAccountNameWithResponse(ctx context.Context, body SetBusinessAccountNameJSONRequestBody, ...) (*SetBusinessAccountNameResponse, error)
- func (c *ClientWithResponses) SetBusinessAccountProfilePhotoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetBusinessAccountProfilePhotoResponse, error)
- func (c *ClientWithResponses) SetBusinessAccountProfilePhotoWithResponse(ctx context.Context, body SetBusinessAccountProfilePhotoJSONRequestBody, ...) (*SetBusinessAccountProfilePhotoResponse, error)
- func (c *ClientWithResponses) SetBusinessAccountUsernameWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetBusinessAccountUsernameResponse, error)
- func (c *ClientWithResponses) SetBusinessAccountUsernameWithResponse(ctx context.Context, body SetBusinessAccountUsernameJSONRequestBody, ...) (*SetBusinessAccountUsernameResponse, error)
- func (c *ClientWithResponses) SetChatAdministratorCustomTitleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetChatAdministratorCustomTitleResponse, error)
- func (c *ClientWithResponses) SetChatAdministratorCustomTitleWithResponse(ctx context.Context, body SetChatAdministratorCustomTitleJSONRequestBody, ...) (*SetChatAdministratorCustomTitleResponse, error)
- func (c *ClientWithResponses) SetChatDescriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetChatDescriptionResponse, error)
- func (c *ClientWithResponses) SetChatDescriptionWithResponse(ctx context.Context, body SetChatDescriptionJSONRequestBody, ...) (*SetChatDescriptionResponse, error)
- func (c *ClientWithResponses) SetChatMenuButtonWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetChatMenuButtonResponse, error)
- func (c *ClientWithResponses) SetChatMenuButtonWithResponse(ctx context.Context, body SetChatMenuButtonJSONRequestBody, ...) (*SetChatMenuButtonResponse, error)
- func (c *ClientWithResponses) SetChatPermissionsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetChatPermissionsResponse, error)
- func (c *ClientWithResponses) SetChatPermissionsWithResponse(ctx context.Context, body SetChatPermissionsJSONRequestBody, ...) (*SetChatPermissionsResponse, error)
- func (c *ClientWithResponses) SetChatPhotoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetChatPhotoResponse, error)
- func (c *ClientWithResponses) SetChatPhotoWithResponse(ctx context.Context, body SetChatPhotoJSONRequestBody, ...) (*SetChatPhotoResponse, error)
- func (c *ClientWithResponses) SetChatStickerSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetChatStickerSetResponse, error)
- func (c *ClientWithResponses) SetChatStickerSetWithResponse(ctx context.Context, body SetChatStickerSetJSONRequestBody, ...) (*SetChatStickerSetResponse, error)
- func (c *ClientWithResponses) SetChatTitleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetChatTitleResponse, error)
- func (c *ClientWithResponses) SetChatTitleWithResponse(ctx context.Context, body SetChatTitleJSONRequestBody, ...) (*SetChatTitleResponse, error)
- func (c *ClientWithResponses) SetCustomEmojiStickerSetThumbnailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetCustomEmojiStickerSetThumbnailResponse, error)
- func (c *ClientWithResponses) SetCustomEmojiStickerSetThumbnailWithResponse(ctx context.Context, body SetCustomEmojiStickerSetThumbnailJSONRequestBody, ...) (*SetCustomEmojiStickerSetThumbnailResponse, error)
- func (c *ClientWithResponses) SetGameScoreWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetGameScoreResponse, error)
- func (c *ClientWithResponses) SetGameScoreWithResponse(ctx context.Context, body SetGameScoreJSONRequestBody, ...) (*SetGameScoreResponse, error)
- func (c *ClientWithResponses) SetMessageReactionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetMessageReactionResponse, error)
- func (c *ClientWithResponses) SetMessageReactionWithResponse(ctx context.Context, body SetMessageReactionJSONRequestBody, ...) (*SetMessageReactionResponse, error)
- func (c *ClientWithResponses) SetMyCommandsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetMyCommandsResponse, error)
- func (c *ClientWithResponses) SetMyCommandsWithResponse(ctx context.Context, body SetMyCommandsJSONRequestBody, ...) (*SetMyCommandsResponse, error)
- func (c *ClientWithResponses) SetMyDefaultAdministratorRightsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetMyDefaultAdministratorRightsResponse, error)
- func (c *ClientWithResponses) SetMyDefaultAdministratorRightsWithResponse(ctx context.Context, body SetMyDefaultAdministratorRightsJSONRequestBody, ...) (*SetMyDefaultAdministratorRightsResponse, error)
- func (c *ClientWithResponses) SetMyDescriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetMyDescriptionResponse, error)
- func (c *ClientWithResponses) SetMyDescriptionWithResponse(ctx context.Context, body SetMyDescriptionJSONRequestBody, ...) (*SetMyDescriptionResponse, error)
- func (c *ClientWithResponses) SetMyNameWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetMyNameResponse, error)
- func (c *ClientWithResponses) SetMyNameWithResponse(ctx context.Context, body SetMyNameJSONRequestBody, ...) (*SetMyNameResponse, error)
- func (c *ClientWithResponses) SetMyShortDescriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetMyShortDescriptionResponse, error)
- func (c *ClientWithResponses) SetMyShortDescriptionWithResponse(ctx context.Context, body SetMyShortDescriptionJSONRequestBody, ...) (*SetMyShortDescriptionResponse, error)
- func (c *ClientWithResponses) SetPassportDataErrorsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetPassportDataErrorsResponse, error)
- func (c *ClientWithResponses) SetPassportDataErrorsWithResponse(ctx context.Context, body SetPassportDataErrorsJSONRequestBody, ...) (*SetPassportDataErrorsResponse, error)
- func (c *ClientWithResponses) SetStickerEmojiListWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetStickerEmojiListResponse, error)
- func (c *ClientWithResponses) SetStickerEmojiListWithResponse(ctx context.Context, body SetStickerEmojiListJSONRequestBody, ...) (*SetStickerEmojiListResponse, error)
- func (c *ClientWithResponses) SetStickerKeywordsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetStickerKeywordsResponse, error)
- func (c *ClientWithResponses) SetStickerKeywordsWithResponse(ctx context.Context, body SetStickerKeywordsJSONRequestBody, ...) (*SetStickerKeywordsResponse, error)
- func (c *ClientWithResponses) SetStickerMaskPositionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetStickerMaskPositionResponse, error)
- func (c *ClientWithResponses) SetStickerMaskPositionWithResponse(ctx context.Context, body SetStickerMaskPositionJSONRequestBody, ...) (*SetStickerMaskPositionResponse, error)
- func (c *ClientWithResponses) SetStickerPositionInSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetStickerPositionInSetResponse, error)
- func (c *ClientWithResponses) SetStickerPositionInSetWithResponse(ctx context.Context, body SetStickerPositionInSetJSONRequestBody, ...) (*SetStickerPositionInSetResponse, error)
- func (c *ClientWithResponses) SetStickerSetThumbnailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetStickerSetThumbnailResponse, error)
- func (c *ClientWithResponses) SetStickerSetThumbnailWithResponse(ctx context.Context, body SetStickerSetThumbnailJSONRequestBody, ...) (*SetStickerSetThumbnailResponse, error)
- func (c *ClientWithResponses) SetStickerSetTitleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetStickerSetTitleResponse, error)
- func (c *ClientWithResponses) SetStickerSetTitleWithResponse(ctx context.Context, body SetStickerSetTitleJSONRequestBody, ...) (*SetStickerSetTitleResponse, error)
- func (c *ClientWithResponses) SetUserEmojiStatusWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetUserEmojiStatusResponse, error)
- func (c *ClientWithResponses) SetUserEmojiStatusWithResponse(ctx context.Context, body SetUserEmojiStatusJSONRequestBody, ...) (*SetUserEmojiStatusResponse, error)
- func (c *ClientWithResponses) SetWebhookWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetWebhookResponse, error)
- func (c *ClientWithResponses) SetWebhookWithResponse(ctx context.Context, body SetWebhookJSONRequestBody, ...) (*SetWebhookResponse, error)
- func (c *ClientWithResponses) StopMessageLiveLocationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*StopMessageLiveLocationResponse, error)
- func (c *ClientWithResponses) StopMessageLiveLocationWithResponse(ctx context.Context, body StopMessageLiveLocationJSONRequestBody, ...) (*StopMessageLiveLocationResponse, error)
- func (c *ClientWithResponses) StopPollWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*StopPollResponse, error)
- func (c *ClientWithResponses) StopPollWithResponse(ctx context.Context, body StopPollJSONRequestBody, ...) (*StopPollResponse, error)
- func (c *ClientWithResponses) TransferBusinessAccountStarsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*TransferBusinessAccountStarsResponse, error)
- func (c *ClientWithResponses) TransferBusinessAccountStarsWithResponse(ctx context.Context, body TransferBusinessAccountStarsJSONRequestBody, ...) (*TransferBusinessAccountStarsResponse, error)
- func (c *ClientWithResponses) TransferGiftWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*TransferGiftResponse, error)
- func (c *ClientWithResponses) TransferGiftWithResponse(ctx context.Context, body TransferGiftJSONRequestBody, ...) (*TransferGiftResponse, error)
- func (c *ClientWithResponses) UnbanChatMemberWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UnbanChatMemberResponse, error)
- func (c *ClientWithResponses) UnbanChatMemberWithResponse(ctx context.Context, body UnbanChatMemberJSONRequestBody, ...) (*UnbanChatMemberResponse, error)
- func (c *ClientWithResponses) UnbanChatSenderChatWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UnbanChatSenderChatResponse, error)
- func (c *ClientWithResponses) UnbanChatSenderChatWithResponse(ctx context.Context, body UnbanChatSenderChatJSONRequestBody, ...) (*UnbanChatSenderChatResponse, error)
- func (c *ClientWithResponses) UnhideGeneralForumTopicWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UnhideGeneralForumTopicResponse, error)
- func (c *ClientWithResponses) UnhideGeneralForumTopicWithResponse(ctx context.Context, body UnhideGeneralForumTopicJSONRequestBody, ...) (*UnhideGeneralForumTopicResponse, error)
- func (c *ClientWithResponses) UnpinAllChatMessagesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UnpinAllChatMessagesResponse, error)
- func (c *ClientWithResponses) UnpinAllChatMessagesWithResponse(ctx context.Context, body UnpinAllChatMessagesJSONRequestBody, ...) (*UnpinAllChatMessagesResponse, error)
- func (c *ClientWithResponses) UnpinAllForumTopicMessagesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UnpinAllForumTopicMessagesResponse, error)
- func (c *ClientWithResponses) UnpinAllForumTopicMessagesWithResponse(ctx context.Context, body UnpinAllForumTopicMessagesJSONRequestBody, ...) (*UnpinAllForumTopicMessagesResponse, error)
- func (c *ClientWithResponses) UnpinAllGeneralForumTopicMessagesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UnpinAllGeneralForumTopicMessagesResponse, error)
- func (c *ClientWithResponses) UnpinAllGeneralForumTopicMessagesWithResponse(ctx context.Context, body UnpinAllGeneralForumTopicMessagesJSONRequestBody, ...) (*UnpinAllGeneralForumTopicMessagesResponse, error)
- func (c *ClientWithResponses) UnpinChatMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UnpinChatMessageResponse, error)
- func (c *ClientWithResponses) UnpinChatMessageWithResponse(ctx context.Context, body UnpinChatMessageJSONRequestBody, ...) (*UnpinChatMessageResponse, error)
- func (c *ClientWithResponses) UpgradeGiftWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UpgradeGiftResponse, error)
- func (c *ClientWithResponses) UpgradeGiftWithResponse(ctx context.Context, body UpgradeGiftJSONRequestBody, ...) (*UpgradeGiftResponse, error)
- func (c *ClientWithResponses) UploadStickerFileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UploadStickerFileResponse, error)
- func (c *ClientWithResponses) UploadStickerFileWithResponse(ctx context.Context, body UploadStickerFileJSONRequestBody, ...) (*UploadStickerFileResponse, error)
- func (c *ClientWithResponses) VerifyChatWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*VerifyChatResponse, error)
- func (c *ClientWithResponses) VerifyChatWithResponse(ctx context.Context, body VerifyChatJSONRequestBody, ...) (*VerifyChatResponse, error)
- func (c *ClientWithResponses) VerifyUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*VerifyUserResponse, error)
- func (c *ClientWithResponses) VerifyUserWithResponse(ctx context.Context, body VerifyUserJSONRequestBody, ...) (*VerifyUserResponse, error)
- type ClientWithResponsesInterface
- type Close200Ok
- type CloseForumTopic200Ok
- type CloseForumTopicJSONBody
- type CloseForumTopicJSONRequestBody
- type CloseForumTopicResponse
- type CloseGeneralForumTopic200Ok
- type CloseGeneralForumTopicJSONBody
- type CloseGeneralForumTopicJSONRequestBody
- type CloseGeneralForumTopicResponse
- type CloseResponse
- type Contact
- type ConvertGiftToStars200Ok
- type ConvertGiftToStarsJSONBody
- type ConvertGiftToStarsJSONRequestBody
- type ConvertGiftToStarsResponse
- type CopyMessage200Ok
- type CopyMessageJSONBody
- type CopyMessageJSONRequestBody
- type CopyMessageResponse
- type CopyMessages200Ok
- type CopyMessagesJSONBody
- type CopyMessagesJSONRequestBody
- type CopyMessagesResponse
- type CopyTextButton
- type CreateChatInviteLink200Ok
- type CreateChatInviteLinkJSONBody
- type CreateChatInviteLinkJSONRequestBody
- type CreateChatInviteLinkResponse
- type CreateChatSubscriptionInviteLink200Ok
- type CreateChatSubscriptionInviteLinkJSONBody
- type CreateChatSubscriptionInviteLinkJSONRequestBody
- type CreateChatSubscriptionInviteLinkResponse
- type CreateForumTopic200Ok
- type CreateForumTopicJSONBody
- type CreateForumTopicJSONRequestBody
- type CreateForumTopicResponse
- type CreateInvoiceLink200Ok
- type CreateInvoiceLinkJSONBody
- type CreateInvoiceLinkJSONRequestBody
- type CreateInvoiceLinkResponse
- type CreateNewStickerSet200Ok
- type CreateNewStickerSetJSONBody
- type CreateNewStickerSetJSONRequestBody
- type CreateNewStickerSetMultipartBody
- type CreateNewStickerSetMultipartRequestBody
- type CreateNewStickerSetResponse
- type DeclineChatJoinRequest200Ok
- type DeclineChatJoinRequestJSONBody
- type DeclineChatJoinRequestJSONRequestBody
- type DeclineChatJoinRequestResponse
- type DeclineSuggestedPost200Ok
- type DeclineSuggestedPostJSONBody
- type DeclineSuggestedPostJSONRequestBody
- type DeclineSuggestedPostResponse
- type DeleteBusinessMessages200Ok
- type DeleteBusinessMessagesJSONBody
- type DeleteBusinessMessagesJSONRequestBody
- type DeleteBusinessMessagesResponse
- type DeleteChatPhoto200Ok
- type DeleteChatPhotoJSONBody
- type DeleteChatPhotoJSONRequestBody
- type DeleteChatPhotoResponse
- type DeleteChatStickerSet200Ok
- type DeleteChatStickerSetJSONBody
- type DeleteChatStickerSetJSONRequestBody
- type DeleteChatStickerSetResponse
- type DeleteForumTopic200Ok
- type DeleteForumTopicJSONBody
- type DeleteForumTopicJSONRequestBody
- type DeleteForumTopicResponse
- type DeleteMessage200Ok
- type DeleteMessageJSONBody
- type DeleteMessageJSONRequestBody
- type DeleteMessageResponse
- type DeleteMessages200Ok
- type DeleteMessagesJSONBody
- type DeleteMessagesJSONRequestBody
- type DeleteMessagesResponse
- type DeleteMyCommands200Ok
- type DeleteMyCommandsJSONBody
- type DeleteMyCommandsJSONRequestBody
- type DeleteMyCommandsResponse
- type DeleteStickerFromSet200Ok
- type DeleteStickerFromSetJSONBody
- type DeleteStickerFromSetJSONRequestBody
- type DeleteStickerFromSetResponse
- type DeleteStickerSet200Ok
- type DeleteStickerSetJSONBody
- type DeleteStickerSetJSONRequestBody
- type DeleteStickerSetResponse
- type DeleteStory200Ok
- type DeleteStoryJSONBody
- type DeleteStoryJSONRequestBody
- type DeleteStoryResponse
- type DeleteWebhook200Ok
- type DeleteWebhookJSONBody
- type DeleteWebhookJSONRequestBody
- type DeleteWebhookResponse
- type Dice
- type DirectMessagePriceChanged
- type DirectMessagesTopic
- type Document
- type EditChatInviteLink200Ok
- type EditChatInviteLinkJSONBody
- type EditChatInviteLinkJSONRequestBody
- type EditChatInviteLinkResponse
- type EditChatSubscriptionInviteLink200Ok
- type EditChatSubscriptionInviteLinkJSONBody
- type EditChatSubscriptionInviteLinkJSONRequestBody
- type EditChatSubscriptionInviteLinkResponse
- type EditForumTopic200Ok
- type EditForumTopicJSONBody
- type EditForumTopicJSONRequestBody
- type EditForumTopicResponse
- type EditGeneralForumTopic200Ok
- type EditGeneralForumTopicJSONBody
- type EditGeneralForumTopicJSONRequestBody
- type EditGeneralForumTopicResponse
- type EditMessageCaption200Ok
- type EditMessageCaption200Result1
- type EditMessageCaptionJSONBody
- type EditMessageCaptionJSONRequestBody
- type EditMessageCaptionResponse
- type EditMessageCaption_200_Result
- type EditMessageChecklist200Ok
- type EditMessageChecklistJSONBody
- type EditMessageChecklistJSONRequestBody
- type EditMessageChecklistResponse
- type EditMessageLiveLocation200Ok
- type EditMessageLiveLocation200Result1
- type EditMessageLiveLocationJSONBody
- type EditMessageLiveLocationJSONRequestBody
- type EditMessageLiveLocationResponse
- type EditMessageLiveLocation_200_Result
- type EditMessageMedia200Ok
- type EditMessageMedia200Result1
- type EditMessageMediaJSONBody
- type EditMessageMediaJSONRequestBody
- type EditMessageMediaMultipartBody
- type EditMessageMediaMultipartRequestBody
- type EditMessageMediaResponse
- type EditMessageMedia_200_Result
- type EditMessageReplyMarkup200Ok
- type EditMessageReplyMarkup200Result1
- type EditMessageReplyMarkupJSONBody
- type EditMessageReplyMarkupJSONRequestBody
- type EditMessageReplyMarkupResponse
- type EditMessageReplyMarkup_200_Result
- type EditMessageText200Ok
- type EditMessageText200Result1
- type EditMessageTextJSONBody
- type EditMessageTextJSONRequestBody
- type EditMessageTextResponse
- type EditMessageText_200_Result
- type EditStory200Ok
- type EditStoryJSONBody
- type EditStoryJSONRequestBody
- type EditStoryResponse
- type EditUserStarSubscription200Ok
- type EditUserStarSubscriptionJSONBody
- type EditUserStarSubscriptionJSONRequestBody
- type EditUserStarSubscriptionResponse
- type EncryptedCredentials
- type EncryptedPassportElement
- type ErrorResponse
- type ErrorResponseOk
- type ExportChatInviteLink200Ok
- type ExportChatInviteLinkJSONBody
- type ExportChatInviteLinkJSONRequestBody
- type ExportChatInviteLinkResponse
- type ExternalReplyInfo
- type File
- type ForumTopic
- type ForumTopicClosed
- type ForumTopicCreated
- type ForumTopicEdited
- type ForumTopicReopened
- type ForwardMessage200Ok
- type ForwardMessageJSONBody
- type ForwardMessageJSONRequestBody
- type ForwardMessageResponse
- type ForwardMessages200Ok
- type ForwardMessagesJSONBody
- type ForwardMessagesJSONRequestBody
- type ForwardMessagesResponse
- type Game
- type GameHighScore
- type GeneralForumTopicHidden
- type GeneralForumTopicUnhidden
- type GetAvailableGifts200Ok
- type GetAvailableGiftsResponse
- type GetBusinessAccountGifts200Ok
- type GetBusinessAccountGiftsJSONBody
- type GetBusinessAccountGiftsJSONRequestBody
- type GetBusinessAccountGiftsResponse
- type GetBusinessAccountStarBalance200Ok
- type GetBusinessAccountStarBalanceJSONBody
- type GetBusinessAccountStarBalanceJSONRequestBody
- type GetBusinessAccountStarBalanceResponse
- type GetBusinessConnection200Ok
- type GetBusinessConnectionJSONBody
- type GetBusinessConnectionJSONRequestBody
- type GetBusinessConnectionResponse
- type GetChat200Ok
- type GetChatAdministrators200Ok
- type GetChatAdministratorsJSONBody
- type GetChatAdministratorsJSONRequestBody
- type GetChatAdministratorsResponse
- type GetChatGifts200Ok
- type GetChatGiftsJSONBody
- type GetChatGiftsJSONRequestBody
- type GetChatGiftsResponse
- type GetChatJSONBody
- type GetChatJSONRequestBody
- type GetChatMember200Ok
- type GetChatMemberCount200Ok
- type GetChatMemberCountJSONBody
- type GetChatMemberCountJSONRequestBody
- type GetChatMemberCountResponse
- type GetChatMemberJSONBody
- type GetChatMemberJSONRequestBody
- type GetChatMemberResponse
- type GetChatMenuButton200Ok
- type GetChatMenuButtonJSONBody
- type GetChatMenuButtonJSONRequestBody
- type GetChatMenuButtonResponse
- type GetChatResponse
- type GetCustomEmojiStickers200Ok
- type GetCustomEmojiStickersJSONBody
- type GetCustomEmojiStickersJSONRequestBody
- type GetCustomEmojiStickersResponse
- type GetFile200Ok
- type GetFileJSONBody
- type GetFileJSONRequestBody
- type GetFileResponse
- type GetForumTopicIconStickers200Ok
- type GetForumTopicIconStickersResponse
- type GetGameHighScores200Ok
- type GetGameHighScoresJSONBody
- type GetGameHighScoresJSONRequestBody
- type GetGameHighScoresResponse
- type GetMe200Ok
- type GetMeResponse
- type GetMyCommands200Ok
- type GetMyCommandsJSONBody
- type GetMyCommandsJSONRequestBody
- type GetMyCommandsResponse
- type GetMyDefaultAdministratorRights200Ok
- type GetMyDefaultAdministratorRightsJSONBody
- type GetMyDefaultAdministratorRightsJSONRequestBody
- type GetMyDefaultAdministratorRightsResponse
- type GetMyDescription200Ok
- type GetMyDescriptionJSONBody
- type GetMyDescriptionJSONRequestBody
- type GetMyDescriptionResponse
- type GetMyName200Ok
- type GetMyNameJSONBody
- type GetMyNameJSONRequestBody
- type GetMyNameResponse
- type GetMyShortDescription200Ok
- type GetMyShortDescriptionJSONBody
- type GetMyShortDescriptionJSONRequestBody
- type GetMyShortDescriptionResponse
- type GetMyStarBalance200Ok
- type GetMyStarBalanceResponse
- type GetStarTransactions200Ok
- type GetStarTransactionsJSONBody
- type GetStarTransactionsJSONRequestBody
- type GetStarTransactionsResponse
- type GetStickerSet200Ok
- type GetStickerSetJSONBody
- type GetStickerSetJSONRequestBody
- type GetStickerSetResponse
- type GetUpdates200Ok
- type GetUpdatesJSONBody
- type GetUpdatesJSONRequestBody
- type GetUpdatesResponse
- type GetUserChatBoosts200Ok
- type GetUserChatBoostsJSONBody
- type GetUserChatBoostsJSONRequestBody
- type GetUserChatBoostsResponse
- type GetUserGifts200Ok
- type GetUserGiftsJSONBody
- type GetUserGiftsJSONRequestBody
- type GetUserGiftsResponse
- type GetUserProfilePhotos200Ok
- type GetUserProfilePhotosJSONBody
- type GetUserProfilePhotosJSONRequestBody
- type GetUserProfilePhotosResponse
- type GetWebhookInfo200Ok
- type GetWebhookInfoResponse
- type Gift
- type GiftBackground
- type GiftInfo
- type GiftPremiumSubscription200Ok
- type GiftPremiumSubscriptionJSONBody
- type GiftPremiumSubscriptionJSONRequestBody
- type GiftPremiumSubscriptionResponse
- type Gifts
- type Giveaway
- type GiveawayCompleted
- type GiveawayCreated
- type GiveawayWinners
- type HideGeneralForumTopic200Ok
- type HideGeneralForumTopicJSONBody
- type HideGeneralForumTopicJSONRequestBody
- type HideGeneralForumTopicResponse
- type HttpRequestDoer
- type InlineKeyboardButton
- type InlineKeyboardMarkup
- type InlineQuery
- type InlineQueryResult
- type InlineQueryResultsButton
- type InputChecklist
- type InputChecklistTask
- type InputMedia
- type InputPaidMedia
- type InputPollOption
- type InputProfilePhoto
- type InputSticker
- type InputStoryContent
- type Invoice
- type KeyboardButton
- type KeyboardButtonPollType
- type KeyboardButtonRequestChat
- type KeyboardButtonRequestUsers
- type LabeledPrice
- type LeaveChat200Ok
- type LeaveChatJSONBody
- type LeaveChatJSONRequestBody
- type LeaveChatResponse
- type LinkPreviewOptions
- type Location
- type LogOut200Ok
- type LogOutResponse
- type LoginUrl
- type MaskPosition
- type MaybeInaccessibleMessage
- type MenuButton
- type Message
- type MessageAutoDeleteTimerChanged
- type MessageEntity
- type MessageId
- type MessageOrigin
- type MessageReactionCountUpdated
- type MessageReactionUpdated
- type OkResponse
- type OkResponseOk
- type OrderInfo
- type OwnedGift
- type OwnedGifts
- type PaidMedia
- type PaidMediaInfo
- type PaidMediaPurchased
- type PaidMessagePriceChanged
- type PassportData
- type PassportElementError
- type PassportFile
- type PhotoSize
- type PinChatMessage200Ok
- type PinChatMessageJSONBody
- type PinChatMessageJSONRequestBody
- type PinChatMessageResponse
- type Poll
- type PollAnswer
- type PollOption
- type PostStory200Ok
- type PostStoryJSONBody
- type PostStoryJSONRequestBody
- type PostStoryResponse
- type PreCheckoutQuery
- type PreparedInlineMessage
- type PromoteChatMember200Ok
- type PromoteChatMemberJSONBody
- type PromoteChatMemberJSONRequestBody
- type PromoteChatMemberResponse
- type ProximityAlertTriggered
- type ReactionCount
- type ReactionType
- type ReadBusinessMessage200Ok
- type ReadBusinessMessageJSONBody
- type ReadBusinessMessageJSONRequestBody
- type ReadBusinessMessageResponse
- type RefundStarPayment200Ok
- type RefundStarPaymentJSONBody
- type RefundStarPaymentJSONRequestBody
- type RefundStarPaymentResponse
- type RefundedPayment
- type RemoveBusinessAccountProfilePhoto200Ok
- type RemoveBusinessAccountProfilePhotoJSONBody
- type RemoveBusinessAccountProfilePhotoJSONRequestBody
- type RemoveBusinessAccountProfilePhotoResponse
- type RemoveChatVerification200Ok
- type RemoveChatVerificationJSONBody
- type RemoveChatVerificationJSONRequestBody
- type RemoveChatVerificationResponse
- type RemoveUserVerification200Ok
- type RemoveUserVerificationJSONBody
- type RemoveUserVerificationJSONRequestBody
- type RemoveUserVerificationResponse
- type ReopenForumTopic200Ok
- type ReopenForumTopicJSONBody
- type ReopenForumTopicJSONRequestBody
- type ReopenForumTopicResponse
- type ReopenGeneralForumTopic200Ok
- type ReopenGeneralForumTopicJSONBody
- type ReopenGeneralForumTopicJSONRequestBody
- type ReopenGeneralForumTopicResponse
- type ReplaceStickerInSet200Ok
- type ReplaceStickerInSetJSONBody
- type ReplaceStickerInSetJSONRequestBody
- type ReplaceStickerInSetMultipartBody
- type ReplaceStickerInSetMultipartRequestBody
- type ReplaceStickerInSetResponse
- type ReplyParameters
- type RepostStory200Ok
- type RepostStoryJSONBody
- type RepostStoryJSONRequestBody
- type RepostStoryResponse
- type RequestEditorFn
- type ResponseParameters
- type RestrictChatMember200Ok
- type RestrictChatMemberJSONBody
- type RestrictChatMemberJSONRequestBody
- type RestrictChatMemberResponse
- type RevokeChatInviteLink200Ok
- type RevokeChatInviteLinkJSONBody
- type RevokeChatInviteLinkJSONRequestBody
- type RevokeChatInviteLinkResponse
- type SavePreparedInlineMessage200Ok
- type SavePreparedInlineMessageJSONBody
- type SavePreparedInlineMessageJSONRequestBody
- type SavePreparedInlineMessageResponse
- type SendAnimation200Ok
- type SendAnimationJSONBody
- type SendAnimationJSONRequestBody
- type SendAnimationMultipartBody
- type SendAnimationMultipartRequestBody
- type SendAnimationResponse
- type SendAudio200Ok
- type SendAudioJSONBody
- type SendAudioJSONRequestBody
- type SendAudioMultipartBody
- type SendAudioMultipartRequestBody
- type SendAudioResponse
- type SendChatAction200Ok
- type SendChatActionJSONBody
- type SendChatActionJSONRequestBody
- type SendChatActionResponse
- type SendChecklist200Ok
- type SendChecklistJSONBody
- type SendChecklistJSONRequestBody
- type SendChecklistResponse
- type SendContact200Ok
- type SendContactJSONBody
- type SendContactJSONRequestBody
- type SendContactResponse
- type SendDice200Ok
- type SendDiceJSONBody
- type SendDiceJSONRequestBody
- type SendDiceResponse
- type SendDocument200Ok
- type SendDocumentJSONBody
- type SendDocumentJSONRequestBody
- type SendDocumentMultipartBody
- type SendDocumentMultipartRequestBody
- type SendDocumentResponse
- type SendGame200Ok
- type SendGameJSONBody
- type SendGameJSONRequestBody
- type SendGameResponse
- type SendGift200Ok
- type SendGiftJSONBody
- type SendGiftJSONRequestBody
- type SendGiftResponse
- type SendInvoice200Ok
- type SendInvoiceJSONBody
- type SendInvoiceJSONRequestBody
- type SendInvoiceResponse
- type SendLocation200Ok
- type SendLocationJSONBody
- type SendLocationJSONRequestBody
- type SendLocationResponse
- type SendMediaGroup200Ok
- type SendMediaGroupJSONBody
- type SendMediaGroupJSONRequestBody
- type SendMediaGroupMultipartBody
- type SendMediaGroupMultipartRequestBody
- type SendMediaGroupResponse
- type SendMessage200Ok
- type SendMessageDraft200Ok
- type SendMessageDraftJSONBody
- type SendMessageDraftJSONRequestBody
- type SendMessageDraftResponse
- type SendMessageJSONBody
- type SendMessageJSONRequestBody
- type SendMessageResponse
- type SendPaidMedia200Ok
- type SendPaidMediaJSONBody
- type SendPaidMediaJSONRequestBody
- type SendPaidMediaResponse
- type SendPhoto200Ok
- type SendPhotoJSONBody
- type SendPhotoJSONRequestBody
- type SendPhotoMultipartBody
- type SendPhotoMultipartRequestBody
- type SendPhotoResponse
- type SendPoll200Ok
- type SendPollJSONBody
- type SendPollJSONRequestBody
- type SendPollResponse
- type SendSticker200Ok
- type SendStickerJSONBody
- type SendStickerJSONRequestBody
- type SendStickerMultipartBody
- type SendStickerMultipartRequestBody
- type SendStickerResponse
- type SendVenue200Ok
- type SendVenueJSONBody
- type SendVenueJSONRequestBody
- type SendVenueResponse
- type SendVideo200Ok
- type SendVideoJSONBody
- type SendVideoJSONRequestBody
- type SendVideoMultipartBody
- type SendVideoMultipartRequestBody
- type SendVideoNote200Ok
- type SendVideoNoteJSONBody
- type SendVideoNoteJSONRequestBody
- type SendVideoNoteMultipartBody
- type SendVideoNoteMultipartRequestBody
- type SendVideoNoteResponse
- type SendVideoResponse
- type SendVoice200Ok
- type SendVoiceJSONBody
- type SendVoiceJSONRequestBody
- type SendVoiceMultipartBody
- type SendVoiceMultipartRequestBody
- type SendVoiceResponse
- type SentWebAppMessage
- type ServerUrlTelegramBotAPIEndpointSubstituteBotTokenWithYourBotTokenBotTokenVariable
- type SetBusinessAccountBio200Ok
- type SetBusinessAccountBioJSONBody
- type SetBusinessAccountBioJSONRequestBody
- type SetBusinessAccountBioResponse
- type SetBusinessAccountGiftSettings200Ok
- type SetBusinessAccountGiftSettingsJSONBody
- type SetBusinessAccountGiftSettingsJSONRequestBody
- type SetBusinessAccountGiftSettingsResponse
- type SetBusinessAccountName200Ok
- type SetBusinessAccountNameJSONBody
- type SetBusinessAccountNameJSONRequestBody
- type SetBusinessAccountNameResponse
- type SetBusinessAccountProfilePhoto200Ok
- type SetBusinessAccountProfilePhotoJSONBody
- type SetBusinessAccountProfilePhotoJSONRequestBody
- type SetBusinessAccountProfilePhotoResponse
- type SetBusinessAccountUsername200Ok
- type SetBusinessAccountUsernameJSONBody
- type SetBusinessAccountUsernameJSONRequestBody
- type SetBusinessAccountUsernameResponse
- type SetChatAdministratorCustomTitle200Ok
- type SetChatAdministratorCustomTitleJSONBody
- type SetChatAdministratorCustomTitleJSONRequestBody
- type SetChatAdministratorCustomTitleResponse
- type SetChatDescription200Ok
- type SetChatDescriptionJSONBody
- type SetChatDescriptionJSONRequestBody
- type SetChatDescriptionResponse
- type SetChatMenuButton200Ok
- type SetChatMenuButtonJSONBody
- type SetChatMenuButtonJSONRequestBody
- type SetChatMenuButtonResponse
- type SetChatPermissions200Ok
- type SetChatPermissionsJSONBody
- type SetChatPermissionsJSONRequestBody
- type SetChatPermissionsResponse
- type SetChatPhoto200Ok
- type SetChatPhotoJSONBody
- type SetChatPhotoJSONRequestBody
- type SetChatPhotoMultipartBody
- type SetChatPhotoMultipartRequestBody
- type SetChatPhotoResponse
- type SetChatStickerSet200Ok
- type SetChatStickerSetJSONBody
- type SetChatStickerSetJSONRequestBody
- type SetChatStickerSetResponse
- type SetChatTitle200Ok
- type SetChatTitleJSONBody
- type SetChatTitleJSONRequestBody
- type SetChatTitleResponse
- type SetCustomEmojiStickerSetThumbnail200Ok
- type SetCustomEmojiStickerSetThumbnailJSONBody
- type SetCustomEmojiStickerSetThumbnailJSONRequestBody
- type SetCustomEmojiStickerSetThumbnailResponse
- type SetGameScore200Ok
- type SetGameScore200Result1
- type SetGameScoreJSONBody
- type SetGameScoreJSONRequestBody
- type SetGameScoreResponse
- type SetGameScore_200_Result
- type SetMessageReaction200Ok
- type SetMessageReactionJSONBody
- type SetMessageReactionJSONRequestBody
- type SetMessageReactionResponse
- type SetMyCommands200Ok
- type SetMyCommandsJSONBody
- type SetMyCommandsJSONRequestBody
- type SetMyCommandsResponse
- type SetMyDefaultAdministratorRights200Ok
- type SetMyDefaultAdministratorRightsJSONBody
- type SetMyDefaultAdministratorRightsJSONRequestBody
- type SetMyDefaultAdministratorRightsResponse
- type SetMyDescription200Ok
- type SetMyDescriptionJSONBody
- type SetMyDescriptionJSONRequestBody
- type SetMyDescriptionResponse
- type SetMyName200Ok
- type SetMyNameJSONBody
- type SetMyNameJSONRequestBody
- type SetMyNameResponse
- type SetMyShortDescription200Ok
- type SetMyShortDescriptionJSONBody
- type SetMyShortDescriptionJSONRequestBody
- type SetMyShortDescriptionResponse
- type SetPassportDataErrors200Ok
- type SetPassportDataErrorsJSONBody
- type SetPassportDataErrorsJSONRequestBody
- type SetPassportDataErrorsResponse
- type SetStickerEmojiList200Ok
- type SetStickerEmojiListJSONBody
- type SetStickerEmojiListJSONRequestBody
- type SetStickerEmojiListResponse
- type SetStickerKeywords200Ok
- type SetStickerKeywordsJSONBody
- type SetStickerKeywordsJSONRequestBody
- type SetStickerKeywordsResponse
- type SetStickerMaskPosition200Ok
- type SetStickerMaskPositionJSONBody
- type SetStickerMaskPositionJSONRequestBody
- type SetStickerMaskPositionResponse
- type SetStickerPositionInSet200Ok
- type SetStickerPositionInSetJSONBody
- type SetStickerPositionInSetJSONRequestBody
- type SetStickerPositionInSetResponse
- type SetStickerSetThumbnail200Ok
- type SetStickerSetThumbnailJSONBody
- type SetStickerSetThumbnailJSONRequestBody
- type SetStickerSetThumbnailMultipartBody
- type SetStickerSetThumbnailMultipartRequestBody
- type SetStickerSetThumbnailResponse
- type SetStickerSetTitle200Ok
- type SetStickerSetTitleJSONBody
- type SetStickerSetTitleJSONRequestBody
- type SetStickerSetTitleResponse
- type SetUserEmojiStatus200Ok
- type SetUserEmojiStatusJSONBody
- type SetUserEmojiStatusJSONRequestBody
- type SetUserEmojiStatusResponse
- type SetWebhook200Ok
- type SetWebhookJSONBody
- type SetWebhookJSONRequestBody
- type SetWebhookMultipartBody
- type SetWebhookMultipartRequestBody
- type SetWebhookResponse
- type SharedUser
- type ShippingAddress
- type ShippingOption
- type ShippingQuery
- type StarAmount
- type StarTransaction
- type StarTransactions
- type Sticker
- type StickerSet
- type StopMessageLiveLocation200Ok
- type StopMessageLiveLocation200Result1
- type StopMessageLiveLocationJSONBody
- type StopMessageLiveLocationJSONRequestBody
- type StopMessageLiveLocationResponse
- type StopMessageLiveLocation_200_Result
- type StopPoll200Ok
- type StopPollJSONBody
- type StopPollJSONRequestBody
- type StopPollResponse
- type Story
- type StoryArea
- type StoryAreaPosition
- type StoryAreaType
- type SuccessfulPayment
- type SuggestedPostApprovalFailed
- type SuggestedPostApproved
- type SuggestedPostDeclined
- type SuggestedPostInfo
- type SuggestedPostPaid
- type SuggestedPostParameters
- type SuggestedPostPrice
- type SuggestedPostRefunded
- type SwitchInlineQueryChosenChat
- type TextQuote
- type TransactionPartner
- type TransferBusinessAccountStars200Ok
- type TransferBusinessAccountStarsJSONBody
- type TransferBusinessAccountStarsJSONRequestBody
- type TransferBusinessAccountStarsResponse
- type TransferGift200Ok
- type TransferGiftJSONBody
- type TransferGiftJSONRequestBody
- type TransferGiftResponse
- type UnbanChatMember200Ok
- type UnbanChatMemberJSONBody
- type UnbanChatMemberJSONRequestBody
- type UnbanChatMemberResponse
- type UnbanChatSenderChat200Ok
- type UnbanChatSenderChatJSONBody
- type UnbanChatSenderChatJSONRequestBody
- type UnbanChatSenderChatResponse
- type UnhideGeneralForumTopic200Ok
- type UnhideGeneralForumTopicJSONBody
- type UnhideGeneralForumTopicJSONRequestBody
- type UnhideGeneralForumTopicResponse
- type UniqueGift
- type UniqueGiftBackdrop
- type UniqueGiftBackdropColors
- type UniqueGiftColors
- type UniqueGiftInfo
- type UniqueGiftModel
- type UniqueGiftSymbol
- type UnpinAllChatMessages200Ok
- type UnpinAllChatMessagesJSONBody
- type UnpinAllChatMessagesJSONRequestBody
- type UnpinAllChatMessagesResponse
- type UnpinAllForumTopicMessages200Ok
- type UnpinAllForumTopicMessagesJSONBody
- type UnpinAllForumTopicMessagesJSONRequestBody
- type UnpinAllForumTopicMessagesResponse
- type UnpinAllGeneralForumTopicMessages200Ok
- type UnpinAllGeneralForumTopicMessagesJSONBody
- type UnpinAllGeneralForumTopicMessagesJSONRequestBody
- type UnpinAllGeneralForumTopicMessagesResponse
- type UnpinChatMessage200Ok
- type UnpinChatMessageJSONBody
- type UnpinChatMessageJSONRequestBody
- type UnpinChatMessageResponse
- type Update
- type UpgradeGift200Ok
- type UpgradeGiftJSONBody
- type UpgradeGiftJSONRequestBody
- type UpgradeGiftResponse
- type UploadStickerFile200Ok
- type UploadStickerFileJSONBody
- type UploadStickerFileJSONRequestBody
- type UploadStickerFileMultipartBody
- type UploadStickerFileMultipartRequestBody
- type UploadStickerFileResponse
- type User
- type UserChatBoosts
- type UserProfilePhotos
- type UserRating
- type UsersShared
- type Venue
- type VerifyChat200Ok
- type VerifyChatJSONBody
- type VerifyChatJSONRequestBody
- type VerifyChatResponse
- type VerifyUser200Ok
- type VerifyUserJSONBody
- type VerifyUserJSONRequestBody
- type VerifyUserResponse
- type Video
- type VideoChatEnded
- type VideoChatParticipantsInvited
- type VideoChatScheduled
- type VideoChatStarted
- type VideoNote
- type Voice
- type WebAppData
- type WebAppInfo
- type WebhookInfo
- type WriteAccessAllowed
Examples ¶
Constants ¶
const ServerUrlTelegramBotAPIEndpointSubstituteBotTokenWithYourBotTokenBotTokenVariableDefault = "<bot_token>"
ServerUrlTelegramBotAPIEndpointSubstituteBotTokenWithYourBotTokenBotTokenVariableDefault is the default value for the `botToken` variable for ServerUrlTelegramBotAPIEndpointSubstituteBotTokenWithYourBotToken
const (
TelegramBotTokenScopes = "TelegramBotToken.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewAddStickerToSetRequest ¶
func NewAddStickerToSetRequest(server string, body AddStickerToSetJSONRequestBody) (*http.Request, error)
NewAddStickerToSetRequest calls the generic AddStickerToSet builder with application/json body
func NewAddStickerToSetRequestWithBody ¶
func NewAddStickerToSetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAddStickerToSetRequestWithBody generates requests for AddStickerToSet with any type of body
func NewAnswerCallbackQueryRequest ¶
func NewAnswerCallbackQueryRequest(server string, body AnswerCallbackQueryJSONRequestBody) (*http.Request, error)
NewAnswerCallbackQueryRequest calls the generic AnswerCallbackQuery builder with application/json body
func NewAnswerCallbackQueryRequestWithBody ¶
func NewAnswerCallbackQueryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAnswerCallbackQueryRequestWithBody generates requests for AnswerCallbackQuery with any type of body
func NewAnswerInlineQueryRequest ¶
func NewAnswerInlineQueryRequest(server string, body AnswerInlineQueryJSONRequestBody) (*http.Request, error)
NewAnswerInlineQueryRequest calls the generic AnswerInlineQuery builder with application/json body
func NewAnswerInlineQueryRequestWithBody ¶
func NewAnswerInlineQueryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAnswerInlineQueryRequestWithBody generates requests for AnswerInlineQuery with any type of body
func NewAnswerPreCheckoutQueryRequest ¶
func NewAnswerPreCheckoutQueryRequest(server string, body AnswerPreCheckoutQueryJSONRequestBody) (*http.Request, error)
NewAnswerPreCheckoutQueryRequest calls the generic AnswerPreCheckoutQuery builder with application/json body
func NewAnswerPreCheckoutQueryRequestWithBody ¶
func NewAnswerPreCheckoutQueryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAnswerPreCheckoutQueryRequestWithBody generates requests for AnswerPreCheckoutQuery with any type of body
func NewAnswerShippingQueryRequest ¶
func NewAnswerShippingQueryRequest(server string, body AnswerShippingQueryJSONRequestBody) (*http.Request, error)
NewAnswerShippingQueryRequest calls the generic AnswerShippingQuery builder with application/json body
func NewAnswerShippingQueryRequestWithBody ¶
func NewAnswerShippingQueryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAnswerShippingQueryRequestWithBody generates requests for AnswerShippingQuery with any type of body
func NewAnswerWebAppQueryRequest ¶
func NewAnswerWebAppQueryRequest(server string, body AnswerWebAppQueryJSONRequestBody) (*http.Request, error)
NewAnswerWebAppQueryRequest calls the generic AnswerWebAppQuery builder with application/json body
func NewAnswerWebAppQueryRequestWithBody ¶
func NewAnswerWebAppQueryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAnswerWebAppQueryRequestWithBody generates requests for AnswerWebAppQuery with any type of body
func NewApproveChatJoinRequestRequest ¶
func NewApproveChatJoinRequestRequest(server string, body ApproveChatJoinRequestJSONRequestBody) (*http.Request, error)
NewApproveChatJoinRequestRequest calls the generic ApproveChatJoinRequest builder with application/json body
func NewApproveChatJoinRequestRequestWithBody ¶
func NewApproveChatJoinRequestRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewApproveChatJoinRequestRequestWithBody generates requests for ApproveChatJoinRequest with any type of body
func NewApproveSuggestedPostRequest ¶
func NewApproveSuggestedPostRequest(server string, body ApproveSuggestedPostJSONRequestBody) (*http.Request, error)
NewApproveSuggestedPostRequest calls the generic ApproveSuggestedPost builder with application/json body
func NewApproveSuggestedPostRequestWithBody ¶
func NewApproveSuggestedPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewApproveSuggestedPostRequestWithBody generates requests for ApproveSuggestedPost with any type of body
func NewBanChatMemberRequest ¶
func NewBanChatMemberRequest(server string, body BanChatMemberJSONRequestBody) (*http.Request, error)
NewBanChatMemberRequest calls the generic BanChatMember builder with application/json body
func NewBanChatMemberRequestWithBody ¶
func NewBanChatMemberRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewBanChatMemberRequestWithBody generates requests for BanChatMember with any type of body
func NewBanChatSenderChatRequest ¶
func NewBanChatSenderChatRequest(server string, body BanChatSenderChatJSONRequestBody) (*http.Request, error)
NewBanChatSenderChatRequest calls the generic BanChatSenderChat builder with application/json body
func NewBanChatSenderChatRequestWithBody ¶
func NewBanChatSenderChatRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewBanChatSenderChatRequestWithBody generates requests for BanChatSenderChat with any type of body
func NewCloseForumTopicRequest ¶
func NewCloseForumTopicRequest(server string, body CloseForumTopicJSONRequestBody) (*http.Request, error)
NewCloseForumTopicRequest calls the generic CloseForumTopic builder with application/json body
func NewCloseForumTopicRequestWithBody ¶
func NewCloseForumTopicRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCloseForumTopicRequestWithBody generates requests for CloseForumTopic with any type of body
func NewCloseGeneralForumTopicRequest ¶
func NewCloseGeneralForumTopicRequest(server string, body CloseGeneralForumTopicJSONRequestBody) (*http.Request, error)
NewCloseGeneralForumTopicRequest calls the generic CloseGeneralForumTopic builder with application/json body
func NewCloseGeneralForumTopicRequestWithBody ¶
func NewCloseGeneralForumTopicRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCloseGeneralForumTopicRequestWithBody generates requests for CloseGeneralForumTopic with any type of body
func NewCloseRequest ¶
NewCloseRequest generates requests for Close
func NewConvertGiftToStarsRequest ¶
func NewConvertGiftToStarsRequest(server string, body ConvertGiftToStarsJSONRequestBody) (*http.Request, error)
NewConvertGiftToStarsRequest calls the generic ConvertGiftToStars builder with application/json body
func NewConvertGiftToStarsRequestWithBody ¶
func NewConvertGiftToStarsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewConvertGiftToStarsRequestWithBody generates requests for ConvertGiftToStars with any type of body
func NewCopyMessageRequest ¶
func NewCopyMessageRequest(server string, body CopyMessageJSONRequestBody) (*http.Request, error)
NewCopyMessageRequest calls the generic CopyMessage builder with application/json body
func NewCopyMessageRequestWithBody ¶
func NewCopyMessageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCopyMessageRequestWithBody generates requests for CopyMessage with any type of body
func NewCopyMessagesRequest ¶
func NewCopyMessagesRequest(server string, body CopyMessagesJSONRequestBody) (*http.Request, error)
NewCopyMessagesRequest calls the generic CopyMessages builder with application/json body
func NewCopyMessagesRequestWithBody ¶
func NewCopyMessagesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCopyMessagesRequestWithBody generates requests for CopyMessages with any type of body
func NewCreateChatInviteLinkRequest ¶
func NewCreateChatInviteLinkRequest(server string, body CreateChatInviteLinkJSONRequestBody) (*http.Request, error)
NewCreateChatInviteLinkRequest calls the generic CreateChatInviteLink builder with application/json body
func NewCreateChatInviteLinkRequestWithBody ¶
func NewCreateChatInviteLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateChatInviteLinkRequestWithBody generates requests for CreateChatInviteLink with any type of body
func NewCreateChatSubscriptionInviteLinkRequest ¶
func NewCreateChatSubscriptionInviteLinkRequest(server string, body CreateChatSubscriptionInviteLinkJSONRequestBody) (*http.Request, error)
NewCreateChatSubscriptionInviteLinkRequest calls the generic CreateChatSubscriptionInviteLink builder with application/json body
func NewCreateChatSubscriptionInviteLinkRequestWithBody ¶
func NewCreateChatSubscriptionInviteLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateChatSubscriptionInviteLinkRequestWithBody generates requests for CreateChatSubscriptionInviteLink with any type of body
func NewCreateForumTopicRequest ¶
func NewCreateForumTopicRequest(server string, body CreateForumTopicJSONRequestBody) (*http.Request, error)
NewCreateForumTopicRequest calls the generic CreateForumTopic builder with application/json body
func NewCreateForumTopicRequestWithBody ¶
func NewCreateForumTopicRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateForumTopicRequestWithBody generates requests for CreateForumTopic with any type of body
func NewCreateInvoiceLinkRequest ¶
func NewCreateInvoiceLinkRequest(server string, body CreateInvoiceLinkJSONRequestBody) (*http.Request, error)
NewCreateInvoiceLinkRequest calls the generic CreateInvoiceLink builder with application/json body
func NewCreateInvoiceLinkRequestWithBody ¶
func NewCreateInvoiceLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateInvoiceLinkRequestWithBody generates requests for CreateInvoiceLink with any type of body
func NewCreateNewStickerSetRequest ¶
func NewCreateNewStickerSetRequest(server string, body CreateNewStickerSetJSONRequestBody) (*http.Request, error)
NewCreateNewStickerSetRequest calls the generic CreateNewStickerSet builder with application/json body
func NewCreateNewStickerSetRequestWithBody ¶
func NewCreateNewStickerSetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateNewStickerSetRequestWithBody generates requests for CreateNewStickerSet with any type of body
func NewDeclineChatJoinRequestRequest ¶
func NewDeclineChatJoinRequestRequest(server string, body DeclineChatJoinRequestJSONRequestBody) (*http.Request, error)
NewDeclineChatJoinRequestRequest calls the generic DeclineChatJoinRequest builder with application/json body
func NewDeclineChatJoinRequestRequestWithBody ¶
func NewDeclineChatJoinRequestRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDeclineChatJoinRequestRequestWithBody generates requests for DeclineChatJoinRequest with any type of body
func NewDeclineSuggestedPostRequest ¶
func NewDeclineSuggestedPostRequest(server string, body DeclineSuggestedPostJSONRequestBody) (*http.Request, error)
NewDeclineSuggestedPostRequest calls the generic DeclineSuggestedPost builder with application/json body
func NewDeclineSuggestedPostRequestWithBody ¶
func NewDeclineSuggestedPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDeclineSuggestedPostRequestWithBody generates requests for DeclineSuggestedPost with any type of body
func NewDeleteBusinessMessagesRequest ¶
func NewDeleteBusinessMessagesRequest(server string, body DeleteBusinessMessagesJSONRequestBody) (*http.Request, error)
NewDeleteBusinessMessagesRequest calls the generic DeleteBusinessMessages builder with application/json body
func NewDeleteBusinessMessagesRequestWithBody ¶
func NewDeleteBusinessMessagesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDeleteBusinessMessagesRequestWithBody generates requests for DeleteBusinessMessages with any type of body
func NewDeleteChatPhotoRequest ¶
func NewDeleteChatPhotoRequest(server string, body DeleteChatPhotoJSONRequestBody) (*http.Request, error)
NewDeleteChatPhotoRequest calls the generic DeleteChatPhoto builder with application/json body
func NewDeleteChatPhotoRequestWithBody ¶
func NewDeleteChatPhotoRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDeleteChatPhotoRequestWithBody generates requests for DeleteChatPhoto with any type of body
func NewDeleteChatStickerSetRequest ¶
func NewDeleteChatStickerSetRequest(server string, body DeleteChatStickerSetJSONRequestBody) (*http.Request, error)
NewDeleteChatStickerSetRequest calls the generic DeleteChatStickerSet builder with application/json body
func NewDeleteChatStickerSetRequestWithBody ¶
func NewDeleteChatStickerSetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDeleteChatStickerSetRequestWithBody generates requests for DeleteChatStickerSet with any type of body
func NewDeleteForumTopicRequest ¶
func NewDeleteForumTopicRequest(server string, body DeleteForumTopicJSONRequestBody) (*http.Request, error)
NewDeleteForumTopicRequest calls the generic DeleteForumTopic builder with application/json body
func NewDeleteForumTopicRequestWithBody ¶
func NewDeleteForumTopicRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDeleteForumTopicRequestWithBody generates requests for DeleteForumTopic with any type of body
func NewDeleteMessageRequest ¶
func NewDeleteMessageRequest(server string, body DeleteMessageJSONRequestBody) (*http.Request, error)
NewDeleteMessageRequest calls the generic DeleteMessage builder with application/json body
func NewDeleteMessageRequestWithBody ¶
func NewDeleteMessageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDeleteMessageRequestWithBody generates requests for DeleteMessage with any type of body
func NewDeleteMessagesRequest ¶
func NewDeleteMessagesRequest(server string, body DeleteMessagesJSONRequestBody) (*http.Request, error)
NewDeleteMessagesRequest calls the generic DeleteMessages builder with application/json body
func NewDeleteMessagesRequestWithBody ¶
func NewDeleteMessagesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDeleteMessagesRequestWithBody generates requests for DeleteMessages with any type of body
func NewDeleteMyCommandsRequest ¶
func NewDeleteMyCommandsRequest(server string, body DeleteMyCommandsJSONRequestBody) (*http.Request, error)
NewDeleteMyCommandsRequest calls the generic DeleteMyCommands builder with application/json body
func NewDeleteMyCommandsRequestWithBody ¶
func NewDeleteMyCommandsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDeleteMyCommandsRequestWithBody generates requests for DeleteMyCommands with any type of body
func NewDeleteStickerFromSetRequest ¶
func NewDeleteStickerFromSetRequest(server string, body DeleteStickerFromSetJSONRequestBody) (*http.Request, error)
NewDeleteStickerFromSetRequest calls the generic DeleteStickerFromSet builder with application/json body
func NewDeleteStickerFromSetRequestWithBody ¶
func NewDeleteStickerFromSetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDeleteStickerFromSetRequestWithBody generates requests for DeleteStickerFromSet with any type of body
func NewDeleteStickerSetRequest ¶
func NewDeleteStickerSetRequest(server string, body DeleteStickerSetJSONRequestBody) (*http.Request, error)
NewDeleteStickerSetRequest calls the generic DeleteStickerSet builder with application/json body
func NewDeleteStickerSetRequestWithBody ¶
func NewDeleteStickerSetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDeleteStickerSetRequestWithBody generates requests for DeleteStickerSet with any type of body
func NewDeleteStoryRequest ¶
func NewDeleteStoryRequest(server string, body DeleteStoryJSONRequestBody) (*http.Request, error)
NewDeleteStoryRequest calls the generic DeleteStory builder with application/json body
func NewDeleteStoryRequestWithBody ¶
func NewDeleteStoryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDeleteStoryRequestWithBody generates requests for DeleteStory with any type of body
func NewDeleteWebhookRequest ¶
func NewDeleteWebhookRequest(server string, body DeleteWebhookJSONRequestBody) (*http.Request, error)
NewDeleteWebhookRequest calls the generic DeleteWebhook builder with application/json body
func NewDeleteWebhookRequestWithBody ¶
func NewDeleteWebhookRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDeleteWebhookRequestWithBody generates requests for DeleteWebhook with any type of body
func NewEditChatInviteLinkRequest ¶
func NewEditChatInviteLinkRequest(server string, body EditChatInviteLinkJSONRequestBody) (*http.Request, error)
NewEditChatInviteLinkRequest calls the generic EditChatInviteLink builder with application/json body
func NewEditChatInviteLinkRequestWithBody ¶
func NewEditChatInviteLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewEditChatInviteLinkRequestWithBody generates requests for EditChatInviteLink with any type of body
func NewEditChatSubscriptionInviteLinkRequest ¶
func NewEditChatSubscriptionInviteLinkRequest(server string, body EditChatSubscriptionInviteLinkJSONRequestBody) (*http.Request, error)
NewEditChatSubscriptionInviteLinkRequest calls the generic EditChatSubscriptionInviteLink builder with application/json body
func NewEditChatSubscriptionInviteLinkRequestWithBody ¶
func NewEditChatSubscriptionInviteLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewEditChatSubscriptionInviteLinkRequestWithBody generates requests for EditChatSubscriptionInviteLink with any type of body
func NewEditForumTopicRequest ¶
func NewEditForumTopicRequest(server string, body EditForumTopicJSONRequestBody) (*http.Request, error)
NewEditForumTopicRequest calls the generic EditForumTopic builder with application/json body
func NewEditForumTopicRequestWithBody ¶
func NewEditForumTopicRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewEditForumTopicRequestWithBody generates requests for EditForumTopic with any type of body
func NewEditGeneralForumTopicRequest ¶
func NewEditGeneralForumTopicRequest(server string, body EditGeneralForumTopicJSONRequestBody) (*http.Request, error)
NewEditGeneralForumTopicRequest calls the generic EditGeneralForumTopic builder with application/json body
func NewEditGeneralForumTopicRequestWithBody ¶
func NewEditGeneralForumTopicRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewEditGeneralForumTopicRequestWithBody generates requests for EditGeneralForumTopic with any type of body
func NewEditMessageCaptionRequest ¶
func NewEditMessageCaptionRequest(server string, body EditMessageCaptionJSONRequestBody) (*http.Request, error)
NewEditMessageCaptionRequest calls the generic EditMessageCaption builder with application/json body
func NewEditMessageCaptionRequestWithBody ¶
func NewEditMessageCaptionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewEditMessageCaptionRequestWithBody generates requests for EditMessageCaption with any type of body
func NewEditMessageChecklistRequest ¶
func NewEditMessageChecklistRequest(server string, body EditMessageChecklistJSONRequestBody) (*http.Request, error)
NewEditMessageChecklistRequest calls the generic EditMessageChecklist builder with application/json body
func NewEditMessageChecklistRequestWithBody ¶
func NewEditMessageChecklistRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewEditMessageChecklistRequestWithBody generates requests for EditMessageChecklist with any type of body
func NewEditMessageLiveLocationRequest ¶
func NewEditMessageLiveLocationRequest(server string, body EditMessageLiveLocationJSONRequestBody) (*http.Request, error)
NewEditMessageLiveLocationRequest calls the generic EditMessageLiveLocation builder with application/json body
func NewEditMessageLiveLocationRequestWithBody ¶
func NewEditMessageLiveLocationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewEditMessageLiveLocationRequestWithBody generates requests for EditMessageLiveLocation with any type of body
func NewEditMessageMediaRequest ¶
func NewEditMessageMediaRequest(server string, body EditMessageMediaJSONRequestBody) (*http.Request, error)
NewEditMessageMediaRequest calls the generic EditMessageMedia builder with application/json body
func NewEditMessageMediaRequestWithBody ¶
func NewEditMessageMediaRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewEditMessageMediaRequestWithBody generates requests for EditMessageMedia with any type of body
func NewEditMessageReplyMarkupRequest ¶
func NewEditMessageReplyMarkupRequest(server string, body EditMessageReplyMarkupJSONRequestBody) (*http.Request, error)
NewEditMessageReplyMarkupRequest calls the generic EditMessageReplyMarkup builder with application/json body
func NewEditMessageReplyMarkupRequestWithBody ¶
func NewEditMessageReplyMarkupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewEditMessageReplyMarkupRequestWithBody generates requests for EditMessageReplyMarkup with any type of body
func NewEditMessageTextRequest ¶
func NewEditMessageTextRequest(server string, body EditMessageTextJSONRequestBody) (*http.Request, error)
NewEditMessageTextRequest calls the generic EditMessageText builder with application/json body
func NewEditMessageTextRequestWithBody ¶
func NewEditMessageTextRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewEditMessageTextRequestWithBody generates requests for EditMessageText with any type of body
func NewEditStoryRequest ¶
func NewEditStoryRequest(server string, body EditStoryJSONRequestBody) (*http.Request, error)
NewEditStoryRequest calls the generic EditStory builder with application/json body
func NewEditStoryRequestWithBody ¶
func NewEditStoryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewEditStoryRequestWithBody generates requests for EditStory with any type of body
func NewEditUserStarSubscriptionRequest ¶
func NewEditUserStarSubscriptionRequest(server string, body EditUserStarSubscriptionJSONRequestBody) (*http.Request, error)
NewEditUserStarSubscriptionRequest calls the generic EditUserStarSubscription builder with application/json body
func NewEditUserStarSubscriptionRequestWithBody ¶
func NewEditUserStarSubscriptionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewEditUserStarSubscriptionRequestWithBody generates requests for EditUserStarSubscription with any type of body
func NewExportChatInviteLinkRequest ¶
func NewExportChatInviteLinkRequest(server string, body ExportChatInviteLinkJSONRequestBody) (*http.Request, error)
NewExportChatInviteLinkRequest calls the generic ExportChatInviteLink builder with application/json body
func NewExportChatInviteLinkRequestWithBody ¶
func NewExportChatInviteLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewExportChatInviteLinkRequestWithBody generates requests for ExportChatInviteLink with any type of body
func NewForwardMessageRequest ¶
func NewForwardMessageRequest(server string, body ForwardMessageJSONRequestBody) (*http.Request, error)
NewForwardMessageRequest calls the generic ForwardMessage builder with application/json body
func NewForwardMessageRequestWithBody ¶
func NewForwardMessageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewForwardMessageRequestWithBody generates requests for ForwardMessage with any type of body
func NewForwardMessagesRequest ¶
func NewForwardMessagesRequest(server string, body ForwardMessagesJSONRequestBody) (*http.Request, error)
NewForwardMessagesRequest calls the generic ForwardMessages builder with application/json body
func NewForwardMessagesRequestWithBody ¶
func NewForwardMessagesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewForwardMessagesRequestWithBody generates requests for ForwardMessages with any type of body
func NewGetAvailableGiftsRequest ¶
NewGetAvailableGiftsRequest generates requests for GetAvailableGifts
func NewGetBusinessAccountGiftsRequest ¶
func NewGetBusinessAccountGiftsRequest(server string, body GetBusinessAccountGiftsJSONRequestBody) (*http.Request, error)
NewGetBusinessAccountGiftsRequest calls the generic GetBusinessAccountGifts builder with application/json body
func NewGetBusinessAccountGiftsRequestWithBody ¶
func NewGetBusinessAccountGiftsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetBusinessAccountGiftsRequestWithBody generates requests for GetBusinessAccountGifts with any type of body
func NewGetBusinessAccountStarBalanceRequest ¶
func NewGetBusinessAccountStarBalanceRequest(server string, body GetBusinessAccountStarBalanceJSONRequestBody) (*http.Request, error)
NewGetBusinessAccountStarBalanceRequest calls the generic GetBusinessAccountStarBalance builder with application/json body
func NewGetBusinessAccountStarBalanceRequestWithBody ¶
func NewGetBusinessAccountStarBalanceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetBusinessAccountStarBalanceRequestWithBody generates requests for GetBusinessAccountStarBalance with any type of body
func NewGetBusinessConnectionRequest ¶
func NewGetBusinessConnectionRequest(server string, body GetBusinessConnectionJSONRequestBody) (*http.Request, error)
NewGetBusinessConnectionRequest calls the generic GetBusinessConnection builder with application/json body
func NewGetBusinessConnectionRequestWithBody ¶
func NewGetBusinessConnectionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetBusinessConnectionRequestWithBody generates requests for GetBusinessConnection with any type of body
func NewGetChatAdministratorsRequest ¶
func NewGetChatAdministratorsRequest(server string, body GetChatAdministratorsJSONRequestBody) (*http.Request, error)
NewGetChatAdministratorsRequest calls the generic GetChatAdministrators builder with application/json body
func NewGetChatAdministratorsRequestWithBody ¶
func NewGetChatAdministratorsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetChatAdministratorsRequestWithBody generates requests for GetChatAdministrators with any type of body
func NewGetChatGiftsRequest ¶ added in v0.3.0
func NewGetChatGiftsRequest(server string, body GetChatGiftsJSONRequestBody) (*http.Request, error)
NewGetChatGiftsRequest calls the generic GetChatGifts builder with application/json body
func NewGetChatGiftsRequestWithBody ¶ added in v0.3.0
func NewGetChatGiftsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetChatGiftsRequestWithBody generates requests for GetChatGifts with any type of body
func NewGetChatMemberCountRequest ¶
func NewGetChatMemberCountRequest(server string, body GetChatMemberCountJSONRequestBody) (*http.Request, error)
NewGetChatMemberCountRequest calls the generic GetChatMemberCount builder with application/json body
func NewGetChatMemberCountRequestWithBody ¶
func NewGetChatMemberCountRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetChatMemberCountRequestWithBody generates requests for GetChatMemberCount with any type of body
func NewGetChatMemberRequest ¶
func NewGetChatMemberRequest(server string, body GetChatMemberJSONRequestBody) (*http.Request, error)
NewGetChatMemberRequest calls the generic GetChatMember builder with application/json body
func NewGetChatMemberRequestWithBody ¶
func NewGetChatMemberRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetChatMemberRequestWithBody generates requests for GetChatMember with any type of body
func NewGetChatMenuButtonRequest ¶
func NewGetChatMenuButtonRequest(server string, body GetChatMenuButtonJSONRequestBody) (*http.Request, error)
NewGetChatMenuButtonRequest calls the generic GetChatMenuButton builder with application/json body
func NewGetChatMenuButtonRequestWithBody ¶
func NewGetChatMenuButtonRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetChatMenuButtonRequestWithBody generates requests for GetChatMenuButton with any type of body
func NewGetChatRequest ¶
func NewGetChatRequest(server string, body GetChatJSONRequestBody) (*http.Request, error)
NewGetChatRequest calls the generic GetChat builder with application/json body
func NewGetChatRequestWithBody ¶
func NewGetChatRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetChatRequestWithBody generates requests for GetChat with any type of body
func NewGetCustomEmojiStickersRequest ¶
func NewGetCustomEmojiStickersRequest(server string, body GetCustomEmojiStickersJSONRequestBody) (*http.Request, error)
NewGetCustomEmojiStickersRequest calls the generic GetCustomEmojiStickers builder with application/json body
func NewGetCustomEmojiStickersRequestWithBody ¶
func NewGetCustomEmojiStickersRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetCustomEmojiStickersRequestWithBody generates requests for GetCustomEmojiStickers with any type of body
func NewGetFileRequest ¶
func NewGetFileRequest(server string, body GetFileJSONRequestBody) (*http.Request, error)
NewGetFileRequest calls the generic GetFile builder with application/json body
func NewGetFileRequestWithBody ¶
func NewGetFileRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetFileRequestWithBody generates requests for GetFile with any type of body
func NewGetForumTopicIconStickersRequest ¶
NewGetForumTopicIconStickersRequest generates requests for GetForumTopicIconStickers
func NewGetGameHighScoresRequest ¶
func NewGetGameHighScoresRequest(server string, body GetGameHighScoresJSONRequestBody) (*http.Request, error)
NewGetGameHighScoresRequest calls the generic GetGameHighScores builder with application/json body
func NewGetGameHighScoresRequestWithBody ¶
func NewGetGameHighScoresRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetGameHighScoresRequestWithBody generates requests for GetGameHighScores with any type of body
func NewGetMeRequest ¶
NewGetMeRequest generates requests for GetMe
func NewGetMyCommandsRequest ¶
func NewGetMyCommandsRequest(server string, body GetMyCommandsJSONRequestBody) (*http.Request, error)
NewGetMyCommandsRequest calls the generic GetMyCommands builder with application/json body
func NewGetMyCommandsRequestWithBody ¶
func NewGetMyCommandsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetMyCommandsRequestWithBody generates requests for GetMyCommands with any type of body
func NewGetMyDefaultAdministratorRightsRequest ¶
func NewGetMyDefaultAdministratorRightsRequest(server string, body GetMyDefaultAdministratorRightsJSONRequestBody) (*http.Request, error)
NewGetMyDefaultAdministratorRightsRequest calls the generic GetMyDefaultAdministratorRights builder with application/json body
func NewGetMyDefaultAdministratorRightsRequestWithBody ¶
func NewGetMyDefaultAdministratorRightsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetMyDefaultAdministratorRightsRequestWithBody generates requests for GetMyDefaultAdministratorRights with any type of body
func NewGetMyDescriptionRequest ¶
func NewGetMyDescriptionRequest(server string, body GetMyDescriptionJSONRequestBody) (*http.Request, error)
NewGetMyDescriptionRequest calls the generic GetMyDescription builder with application/json body
func NewGetMyDescriptionRequestWithBody ¶
func NewGetMyDescriptionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetMyDescriptionRequestWithBody generates requests for GetMyDescription with any type of body
func NewGetMyNameRequest ¶
func NewGetMyNameRequest(server string, body GetMyNameJSONRequestBody) (*http.Request, error)
NewGetMyNameRequest calls the generic GetMyName builder with application/json body
func NewGetMyNameRequestWithBody ¶
func NewGetMyNameRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetMyNameRequestWithBody generates requests for GetMyName with any type of body
func NewGetMyShortDescriptionRequest ¶
func NewGetMyShortDescriptionRequest(server string, body GetMyShortDescriptionJSONRequestBody) (*http.Request, error)
NewGetMyShortDescriptionRequest calls the generic GetMyShortDescription builder with application/json body
func NewGetMyShortDescriptionRequestWithBody ¶
func NewGetMyShortDescriptionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetMyShortDescriptionRequestWithBody generates requests for GetMyShortDescription with any type of body
func NewGetMyStarBalanceRequest ¶
NewGetMyStarBalanceRequest generates requests for GetMyStarBalance
func NewGetStarTransactionsRequest ¶
func NewGetStarTransactionsRequest(server string, body GetStarTransactionsJSONRequestBody) (*http.Request, error)
NewGetStarTransactionsRequest calls the generic GetStarTransactions builder with application/json body
func NewGetStarTransactionsRequestWithBody ¶
func NewGetStarTransactionsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetStarTransactionsRequestWithBody generates requests for GetStarTransactions with any type of body
func NewGetStickerSetRequest ¶
func NewGetStickerSetRequest(server string, body GetStickerSetJSONRequestBody) (*http.Request, error)
NewGetStickerSetRequest calls the generic GetStickerSet builder with application/json body
func NewGetStickerSetRequestWithBody ¶
func NewGetStickerSetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetStickerSetRequestWithBody generates requests for GetStickerSet with any type of body
func NewGetUpdatesRequest ¶
func NewGetUpdatesRequest(server string, body GetUpdatesJSONRequestBody) (*http.Request, error)
NewGetUpdatesRequest calls the generic GetUpdates builder with application/json body
func NewGetUpdatesRequestWithBody ¶
func NewGetUpdatesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetUpdatesRequestWithBody generates requests for GetUpdates with any type of body
func NewGetUserChatBoostsRequest ¶
func NewGetUserChatBoostsRequest(server string, body GetUserChatBoostsJSONRequestBody) (*http.Request, error)
NewGetUserChatBoostsRequest calls the generic GetUserChatBoosts builder with application/json body
func NewGetUserChatBoostsRequestWithBody ¶
func NewGetUserChatBoostsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetUserChatBoostsRequestWithBody generates requests for GetUserChatBoosts with any type of body
func NewGetUserGiftsRequest ¶ added in v0.3.0
func NewGetUserGiftsRequest(server string, body GetUserGiftsJSONRequestBody) (*http.Request, error)
NewGetUserGiftsRequest calls the generic GetUserGifts builder with application/json body
func NewGetUserGiftsRequestWithBody ¶ added in v0.3.0
func NewGetUserGiftsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetUserGiftsRequestWithBody generates requests for GetUserGifts with any type of body
func NewGetUserProfilePhotosRequest ¶
func NewGetUserProfilePhotosRequest(server string, body GetUserProfilePhotosJSONRequestBody) (*http.Request, error)
NewGetUserProfilePhotosRequest calls the generic GetUserProfilePhotos builder with application/json body
func NewGetUserProfilePhotosRequestWithBody ¶
func NewGetUserProfilePhotosRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGetUserProfilePhotosRequestWithBody generates requests for GetUserProfilePhotos with any type of body
func NewGetWebhookInfoRequest ¶
NewGetWebhookInfoRequest generates requests for GetWebhookInfo
func NewGiftPremiumSubscriptionRequest ¶
func NewGiftPremiumSubscriptionRequest(server string, body GiftPremiumSubscriptionJSONRequestBody) (*http.Request, error)
NewGiftPremiumSubscriptionRequest calls the generic GiftPremiumSubscription builder with application/json body
func NewGiftPremiumSubscriptionRequestWithBody ¶
func NewGiftPremiumSubscriptionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewGiftPremiumSubscriptionRequestWithBody generates requests for GiftPremiumSubscription with any type of body
func NewHideGeneralForumTopicRequest ¶
func NewHideGeneralForumTopicRequest(server string, body HideGeneralForumTopicJSONRequestBody) (*http.Request, error)
NewHideGeneralForumTopicRequest calls the generic HideGeneralForumTopic builder with application/json body
func NewHideGeneralForumTopicRequestWithBody ¶
func NewHideGeneralForumTopicRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewHideGeneralForumTopicRequestWithBody generates requests for HideGeneralForumTopic with any type of body
func NewLeaveChatRequest ¶
func NewLeaveChatRequest(server string, body LeaveChatJSONRequestBody) (*http.Request, error)
NewLeaveChatRequest calls the generic LeaveChat builder with application/json body
func NewLeaveChatRequestWithBody ¶
func NewLeaveChatRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewLeaveChatRequestWithBody generates requests for LeaveChat with any type of body
func NewLogOutRequest ¶
NewLogOutRequest generates requests for LogOut
func NewPinChatMessageRequest ¶
func NewPinChatMessageRequest(server string, body PinChatMessageJSONRequestBody) (*http.Request, error)
NewPinChatMessageRequest calls the generic PinChatMessage builder with application/json body
func NewPinChatMessageRequestWithBody ¶
func NewPinChatMessageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPinChatMessageRequestWithBody generates requests for PinChatMessage with any type of body
func NewPostStoryRequest ¶
func NewPostStoryRequest(server string, body PostStoryJSONRequestBody) (*http.Request, error)
NewPostStoryRequest calls the generic PostStory builder with application/json body
func NewPostStoryRequestWithBody ¶
func NewPostStoryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPostStoryRequestWithBody generates requests for PostStory with any type of body
func NewPromoteChatMemberRequest ¶
func NewPromoteChatMemberRequest(server string, body PromoteChatMemberJSONRequestBody) (*http.Request, error)
NewPromoteChatMemberRequest calls the generic PromoteChatMember builder with application/json body
func NewPromoteChatMemberRequestWithBody ¶
func NewPromoteChatMemberRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPromoteChatMemberRequestWithBody generates requests for PromoteChatMember with any type of body
func NewReadBusinessMessageRequest ¶
func NewReadBusinessMessageRequest(server string, body ReadBusinessMessageJSONRequestBody) (*http.Request, error)
NewReadBusinessMessageRequest calls the generic ReadBusinessMessage builder with application/json body
func NewReadBusinessMessageRequestWithBody ¶
func NewReadBusinessMessageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewReadBusinessMessageRequestWithBody generates requests for ReadBusinessMessage with any type of body
func NewRefundStarPaymentRequest ¶
func NewRefundStarPaymentRequest(server string, body RefundStarPaymentJSONRequestBody) (*http.Request, error)
NewRefundStarPaymentRequest calls the generic RefundStarPayment builder with application/json body
func NewRefundStarPaymentRequestWithBody ¶
func NewRefundStarPaymentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRefundStarPaymentRequestWithBody generates requests for RefundStarPayment with any type of body
func NewRemoveBusinessAccountProfilePhotoRequest ¶
func NewRemoveBusinessAccountProfilePhotoRequest(server string, body RemoveBusinessAccountProfilePhotoJSONRequestBody) (*http.Request, error)
NewRemoveBusinessAccountProfilePhotoRequest calls the generic RemoveBusinessAccountProfilePhoto builder with application/json body
func NewRemoveBusinessAccountProfilePhotoRequestWithBody ¶
func NewRemoveBusinessAccountProfilePhotoRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRemoveBusinessAccountProfilePhotoRequestWithBody generates requests for RemoveBusinessAccountProfilePhoto with any type of body
func NewRemoveChatVerificationRequest ¶
func NewRemoveChatVerificationRequest(server string, body RemoveChatVerificationJSONRequestBody) (*http.Request, error)
NewRemoveChatVerificationRequest calls the generic RemoveChatVerification builder with application/json body
func NewRemoveChatVerificationRequestWithBody ¶
func NewRemoveChatVerificationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRemoveChatVerificationRequestWithBody generates requests for RemoveChatVerification with any type of body
func NewRemoveUserVerificationRequest ¶
func NewRemoveUserVerificationRequest(server string, body RemoveUserVerificationJSONRequestBody) (*http.Request, error)
NewRemoveUserVerificationRequest calls the generic RemoveUserVerification builder with application/json body
func NewRemoveUserVerificationRequestWithBody ¶
func NewRemoveUserVerificationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRemoveUserVerificationRequestWithBody generates requests for RemoveUserVerification with any type of body
func NewReopenForumTopicRequest ¶
func NewReopenForumTopicRequest(server string, body ReopenForumTopicJSONRequestBody) (*http.Request, error)
NewReopenForumTopicRequest calls the generic ReopenForumTopic builder with application/json body
func NewReopenForumTopicRequestWithBody ¶
func NewReopenForumTopicRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewReopenForumTopicRequestWithBody generates requests for ReopenForumTopic with any type of body
func NewReopenGeneralForumTopicRequest ¶
func NewReopenGeneralForumTopicRequest(server string, body ReopenGeneralForumTopicJSONRequestBody) (*http.Request, error)
NewReopenGeneralForumTopicRequest calls the generic ReopenGeneralForumTopic builder with application/json body
func NewReopenGeneralForumTopicRequestWithBody ¶
func NewReopenGeneralForumTopicRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewReopenGeneralForumTopicRequestWithBody generates requests for ReopenGeneralForumTopic with any type of body
func NewReplaceStickerInSetRequest ¶
func NewReplaceStickerInSetRequest(server string, body ReplaceStickerInSetJSONRequestBody) (*http.Request, error)
NewReplaceStickerInSetRequest calls the generic ReplaceStickerInSet builder with application/json body
func NewReplaceStickerInSetRequestWithBody ¶
func NewReplaceStickerInSetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewReplaceStickerInSetRequestWithBody generates requests for ReplaceStickerInSet with any type of body
func NewRepostStoryRequest ¶ added in v0.3.0
func NewRepostStoryRequest(server string, body RepostStoryJSONRequestBody) (*http.Request, error)
NewRepostStoryRequest calls the generic RepostStory builder with application/json body
func NewRepostStoryRequestWithBody ¶ added in v0.3.0
func NewRepostStoryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRepostStoryRequestWithBody generates requests for RepostStory with any type of body
func NewRestrictChatMemberRequest ¶
func NewRestrictChatMemberRequest(server string, body RestrictChatMemberJSONRequestBody) (*http.Request, error)
NewRestrictChatMemberRequest calls the generic RestrictChatMember builder with application/json body
func NewRestrictChatMemberRequestWithBody ¶
func NewRestrictChatMemberRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRestrictChatMemberRequestWithBody generates requests for RestrictChatMember with any type of body
func NewRevokeChatInviteLinkRequest ¶
func NewRevokeChatInviteLinkRequest(server string, body RevokeChatInviteLinkJSONRequestBody) (*http.Request, error)
NewRevokeChatInviteLinkRequest calls the generic RevokeChatInviteLink builder with application/json body
func NewRevokeChatInviteLinkRequestWithBody ¶
func NewRevokeChatInviteLinkRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRevokeChatInviteLinkRequestWithBody generates requests for RevokeChatInviteLink with any type of body
func NewSavePreparedInlineMessageRequest ¶
func NewSavePreparedInlineMessageRequest(server string, body SavePreparedInlineMessageJSONRequestBody) (*http.Request, error)
NewSavePreparedInlineMessageRequest calls the generic SavePreparedInlineMessage builder with application/json body
func NewSavePreparedInlineMessageRequestWithBody ¶
func NewSavePreparedInlineMessageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSavePreparedInlineMessageRequestWithBody generates requests for SavePreparedInlineMessage with any type of body
func NewSendAnimationRequest ¶
func NewSendAnimationRequest(server string, body SendAnimationJSONRequestBody) (*http.Request, error)
NewSendAnimationRequest calls the generic SendAnimation builder with application/json body
func NewSendAnimationRequestWithBody ¶
func NewSendAnimationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSendAnimationRequestWithBody generates requests for SendAnimation with any type of body
func NewSendAudioRequest ¶
func NewSendAudioRequest(server string, body SendAudioJSONRequestBody) (*http.Request, error)
NewSendAudioRequest calls the generic SendAudio builder with application/json body
func NewSendAudioRequestWithBody ¶
func NewSendAudioRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSendAudioRequestWithBody generates requests for SendAudio with any type of body
func NewSendChatActionRequest ¶
func NewSendChatActionRequest(server string, body SendChatActionJSONRequestBody) (*http.Request, error)
NewSendChatActionRequest calls the generic SendChatAction builder with application/json body
func NewSendChatActionRequestWithBody ¶
func NewSendChatActionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSendChatActionRequestWithBody generates requests for SendChatAction with any type of body
func NewSendChecklistRequest ¶
func NewSendChecklistRequest(server string, body SendChecklistJSONRequestBody) (*http.Request, error)
NewSendChecklistRequest calls the generic SendChecklist builder with application/json body
func NewSendChecklistRequestWithBody ¶
func NewSendChecklistRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSendChecklistRequestWithBody generates requests for SendChecklist with any type of body
func NewSendContactRequest ¶
func NewSendContactRequest(server string, body SendContactJSONRequestBody) (*http.Request, error)
NewSendContactRequest calls the generic SendContact builder with application/json body
func NewSendContactRequestWithBody ¶
func NewSendContactRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSendContactRequestWithBody generates requests for SendContact with any type of body
func NewSendDiceRequest ¶
func NewSendDiceRequest(server string, body SendDiceJSONRequestBody) (*http.Request, error)
NewSendDiceRequest calls the generic SendDice builder with application/json body
func NewSendDiceRequestWithBody ¶
func NewSendDiceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSendDiceRequestWithBody generates requests for SendDice with any type of body
func NewSendDocumentRequest ¶
func NewSendDocumentRequest(server string, body SendDocumentJSONRequestBody) (*http.Request, error)
NewSendDocumentRequest calls the generic SendDocument builder with application/json body
func NewSendDocumentRequestWithBody ¶
func NewSendDocumentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSendDocumentRequestWithBody generates requests for SendDocument with any type of body
func NewSendGameRequest ¶
func NewSendGameRequest(server string, body SendGameJSONRequestBody) (*http.Request, error)
NewSendGameRequest calls the generic SendGame builder with application/json body
func NewSendGameRequestWithBody ¶
func NewSendGameRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSendGameRequestWithBody generates requests for SendGame with any type of body
func NewSendGiftRequest ¶
func NewSendGiftRequest(server string, body SendGiftJSONRequestBody) (*http.Request, error)
NewSendGiftRequest calls the generic SendGift builder with application/json body
func NewSendGiftRequestWithBody ¶
func NewSendGiftRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSendGiftRequestWithBody generates requests for SendGift with any type of body
func NewSendInvoiceRequest ¶
func NewSendInvoiceRequest(server string, body SendInvoiceJSONRequestBody) (*http.Request, error)
NewSendInvoiceRequest calls the generic SendInvoice builder with application/json body
func NewSendInvoiceRequestWithBody ¶
func NewSendInvoiceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSendInvoiceRequestWithBody generates requests for SendInvoice with any type of body
func NewSendLocationRequest ¶
func NewSendLocationRequest(server string, body SendLocationJSONRequestBody) (*http.Request, error)
NewSendLocationRequest calls the generic SendLocation builder with application/json body
func NewSendLocationRequestWithBody ¶
func NewSendLocationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSendLocationRequestWithBody generates requests for SendLocation with any type of body
func NewSendMediaGroupRequest ¶
func NewSendMediaGroupRequest(server string, body SendMediaGroupJSONRequestBody) (*http.Request, error)
NewSendMediaGroupRequest calls the generic SendMediaGroup builder with application/json body
func NewSendMediaGroupRequestWithBody ¶
func NewSendMediaGroupRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSendMediaGroupRequestWithBody generates requests for SendMediaGroup with any type of body
func NewSendMessageDraftRequest ¶ added in v0.3.0
func NewSendMessageDraftRequest(server string, body SendMessageDraftJSONRequestBody) (*http.Request, error)
NewSendMessageDraftRequest calls the generic SendMessageDraft builder with application/json body
func NewSendMessageDraftRequestWithBody ¶ added in v0.3.0
func NewSendMessageDraftRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSendMessageDraftRequestWithBody generates requests for SendMessageDraft with any type of body
func NewSendMessageRequest ¶
func NewSendMessageRequest(server string, body SendMessageJSONRequestBody) (*http.Request, error)
NewSendMessageRequest calls the generic SendMessage builder with application/json body
func NewSendMessageRequestWithBody ¶
func NewSendMessageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSendMessageRequestWithBody generates requests for SendMessage with any type of body
func NewSendPaidMediaRequest ¶
func NewSendPaidMediaRequest(server string, body SendPaidMediaJSONRequestBody) (*http.Request, error)
NewSendPaidMediaRequest calls the generic SendPaidMedia builder with application/json body
func NewSendPaidMediaRequestWithBody ¶
func NewSendPaidMediaRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSendPaidMediaRequestWithBody generates requests for SendPaidMedia with any type of body
func NewSendPhotoRequest ¶
func NewSendPhotoRequest(server string, body SendPhotoJSONRequestBody) (*http.Request, error)
NewSendPhotoRequest calls the generic SendPhoto builder with application/json body
func NewSendPhotoRequestWithBody ¶
func NewSendPhotoRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSendPhotoRequestWithBody generates requests for SendPhoto with any type of body
func NewSendPollRequest ¶
func NewSendPollRequest(server string, body SendPollJSONRequestBody) (*http.Request, error)
NewSendPollRequest calls the generic SendPoll builder with application/json body
func NewSendPollRequestWithBody ¶
func NewSendPollRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSendPollRequestWithBody generates requests for SendPoll with any type of body
func NewSendStickerRequest ¶
func NewSendStickerRequest(server string, body SendStickerJSONRequestBody) (*http.Request, error)
NewSendStickerRequest calls the generic SendSticker builder with application/json body
func NewSendStickerRequestWithBody ¶
func NewSendStickerRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSendStickerRequestWithBody generates requests for SendSticker with any type of body
func NewSendVenueRequest ¶
func NewSendVenueRequest(server string, body SendVenueJSONRequestBody) (*http.Request, error)
NewSendVenueRequest calls the generic SendVenue builder with application/json body
func NewSendVenueRequestWithBody ¶
func NewSendVenueRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSendVenueRequestWithBody generates requests for SendVenue with any type of body
func NewSendVideoNoteRequest ¶
func NewSendVideoNoteRequest(server string, body SendVideoNoteJSONRequestBody) (*http.Request, error)
NewSendVideoNoteRequest calls the generic SendVideoNote builder with application/json body
func NewSendVideoNoteRequestWithBody ¶
func NewSendVideoNoteRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSendVideoNoteRequestWithBody generates requests for SendVideoNote with any type of body
func NewSendVideoRequest ¶
func NewSendVideoRequest(server string, body SendVideoJSONRequestBody) (*http.Request, error)
NewSendVideoRequest calls the generic SendVideo builder with application/json body
func NewSendVideoRequestWithBody ¶
func NewSendVideoRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSendVideoRequestWithBody generates requests for SendVideo with any type of body
func NewSendVoiceRequest ¶
func NewSendVoiceRequest(server string, body SendVoiceJSONRequestBody) (*http.Request, error)
NewSendVoiceRequest calls the generic SendVoice builder with application/json body
func NewSendVoiceRequestWithBody ¶
func NewSendVoiceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSendVoiceRequestWithBody generates requests for SendVoice with any type of body
func NewServerUrlTelegramBotAPIEndpointSubstituteBotTokenWithYourBotToken ¶
func NewServerUrlTelegramBotAPIEndpointSubstituteBotTokenWithYourBotToken(botToken ServerUrlTelegramBotAPIEndpointSubstituteBotTokenWithYourBotTokenBotTokenVariable) (string, error)
NewServerUrlTelegramBotAPIEndpointSubstituteBotTokenWithYourBotToken constructs the Server URL for Telegram Bot API endpoint; substitute {botToken} with your bot token., with the provided variables.
func NewSetBusinessAccountBioRequest ¶
func NewSetBusinessAccountBioRequest(server string, body SetBusinessAccountBioJSONRequestBody) (*http.Request, error)
NewSetBusinessAccountBioRequest calls the generic SetBusinessAccountBio builder with application/json body
func NewSetBusinessAccountBioRequestWithBody ¶
func NewSetBusinessAccountBioRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetBusinessAccountBioRequestWithBody generates requests for SetBusinessAccountBio with any type of body
func NewSetBusinessAccountGiftSettingsRequest ¶
func NewSetBusinessAccountGiftSettingsRequest(server string, body SetBusinessAccountGiftSettingsJSONRequestBody) (*http.Request, error)
NewSetBusinessAccountGiftSettingsRequest calls the generic SetBusinessAccountGiftSettings builder with application/json body
func NewSetBusinessAccountGiftSettingsRequestWithBody ¶
func NewSetBusinessAccountGiftSettingsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetBusinessAccountGiftSettingsRequestWithBody generates requests for SetBusinessAccountGiftSettings with any type of body
func NewSetBusinessAccountNameRequest ¶
func NewSetBusinessAccountNameRequest(server string, body SetBusinessAccountNameJSONRequestBody) (*http.Request, error)
NewSetBusinessAccountNameRequest calls the generic SetBusinessAccountName builder with application/json body
func NewSetBusinessAccountNameRequestWithBody ¶
func NewSetBusinessAccountNameRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetBusinessAccountNameRequestWithBody generates requests for SetBusinessAccountName with any type of body
func NewSetBusinessAccountProfilePhotoRequest ¶
func NewSetBusinessAccountProfilePhotoRequest(server string, body SetBusinessAccountProfilePhotoJSONRequestBody) (*http.Request, error)
NewSetBusinessAccountProfilePhotoRequest calls the generic SetBusinessAccountProfilePhoto builder with application/json body
func NewSetBusinessAccountProfilePhotoRequestWithBody ¶
func NewSetBusinessAccountProfilePhotoRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetBusinessAccountProfilePhotoRequestWithBody generates requests for SetBusinessAccountProfilePhoto with any type of body
func NewSetBusinessAccountUsernameRequest ¶
func NewSetBusinessAccountUsernameRequest(server string, body SetBusinessAccountUsernameJSONRequestBody) (*http.Request, error)
NewSetBusinessAccountUsernameRequest calls the generic SetBusinessAccountUsername builder with application/json body
func NewSetBusinessAccountUsernameRequestWithBody ¶
func NewSetBusinessAccountUsernameRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetBusinessAccountUsernameRequestWithBody generates requests for SetBusinessAccountUsername with any type of body
func NewSetChatAdministratorCustomTitleRequest ¶
func NewSetChatAdministratorCustomTitleRequest(server string, body SetChatAdministratorCustomTitleJSONRequestBody) (*http.Request, error)
NewSetChatAdministratorCustomTitleRequest calls the generic SetChatAdministratorCustomTitle builder with application/json body
func NewSetChatAdministratorCustomTitleRequestWithBody ¶
func NewSetChatAdministratorCustomTitleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetChatAdministratorCustomTitleRequestWithBody generates requests for SetChatAdministratorCustomTitle with any type of body
func NewSetChatDescriptionRequest ¶
func NewSetChatDescriptionRequest(server string, body SetChatDescriptionJSONRequestBody) (*http.Request, error)
NewSetChatDescriptionRequest calls the generic SetChatDescription builder with application/json body
func NewSetChatDescriptionRequestWithBody ¶
func NewSetChatDescriptionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetChatDescriptionRequestWithBody generates requests for SetChatDescription with any type of body
func NewSetChatMenuButtonRequest ¶
func NewSetChatMenuButtonRequest(server string, body SetChatMenuButtonJSONRequestBody) (*http.Request, error)
NewSetChatMenuButtonRequest calls the generic SetChatMenuButton builder with application/json body
func NewSetChatMenuButtonRequestWithBody ¶
func NewSetChatMenuButtonRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetChatMenuButtonRequestWithBody generates requests for SetChatMenuButton with any type of body
func NewSetChatPermissionsRequest ¶
func NewSetChatPermissionsRequest(server string, body SetChatPermissionsJSONRequestBody) (*http.Request, error)
NewSetChatPermissionsRequest calls the generic SetChatPermissions builder with application/json body
func NewSetChatPermissionsRequestWithBody ¶
func NewSetChatPermissionsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetChatPermissionsRequestWithBody generates requests for SetChatPermissions with any type of body
func NewSetChatPhotoRequest ¶
func NewSetChatPhotoRequest(server string, body SetChatPhotoJSONRequestBody) (*http.Request, error)
NewSetChatPhotoRequest calls the generic SetChatPhoto builder with application/json body
func NewSetChatPhotoRequestWithBody ¶
func NewSetChatPhotoRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetChatPhotoRequestWithBody generates requests for SetChatPhoto with any type of body
func NewSetChatStickerSetRequest ¶
func NewSetChatStickerSetRequest(server string, body SetChatStickerSetJSONRequestBody) (*http.Request, error)
NewSetChatStickerSetRequest calls the generic SetChatStickerSet builder with application/json body
func NewSetChatStickerSetRequestWithBody ¶
func NewSetChatStickerSetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetChatStickerSetRequestWithBody generates requests for SetChatStickerSet with any type of body
func NewSetChatTitleRequest ¶
func NewSetChatTitleRequest(server string, body SetChatTitleJSONRequestBody) (*http.Request, error)
NewSetChatTitleRequest calls the generic SetChatTitle builder with application/json body
func NewSetChatTitleRequestWithBody ¶
func NewSetChatTitleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetChatTitleRequestWithBody generates requests for SetChatTitle with any type of body
func NewSetCustomEmojiStickerSetThumbnailRequest ¶
func NewSetCustomEmojiStickerSetThumbnailRequest(server string, body SetCustomEmojiStickerSetThumbnailJSONRequestBody) (*http.Request, error)
NewSetCustomEmojiStickerSetThumbnailRequest calls the generic SetCustomEmojiStickerSetThumbnail builder with application/json body
func NewSetCustomEmojiStickerSetThumbnailRequestWithBody ¶
func NewSetCustomEmojiStickerSetThumbnailRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetCustomEmojiStickerSetThumbnailRequestWithBody generates requests for SetCustomEmojiStickerSetThumbnail with any type of body
func NewSetGameScoreRequest ¶
func NewSetGameScoreRequest(server string, body SetGameScoreJSONRequestBody) (*http.Request, error)
NewSetGameScoreRequest calls the generic SetGameScore builder with application/json body
func NewSetGameScoreRequestWithBody ¶
func NewSetGameScoreRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetGameScoreRequestWithBody generates requests for SetGameScore with any type of body
func NewSetMessageReactionRequest ¶
func NewSetMessageReactionRequest(server string, body SetMessageReactionJSONRequestBody) (*http.Request, error)
NewSetMessageReactionRequest calls the generic SetMessageReaction builder with application/json body
func NewSetMessageReactionRequestWithBody ¶
func NewSetMessageReactionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetMessageReactionRequestWithBody generates requests for SetMessageReaction with any type of body
func NewSetMyCommandsRequest ¶
func NewSetMyCommandsRequest(server string, body SetMyCommandsJSONRequestBody) (*http.Request, error)
NewSetMyCommandsRequest calls the generic SetMyCommands builder with application/json body
func NewSetMyCommandsRequestWithBody ¶
func NewSetMyCommandsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetMyCommandsRequestWithBody generates requests for SetMyCommands with any type of body
func NewSetMyDefaultAdministratorRightsRequest ¶
func NewSetMyDefaultAdministratorRightsRequest(server string, body SetMyDefaultAdministratorRightsJSONRequestBody) (*http.Request, error)
NewSetMyDefaultAdministratorRightsRequest calls the generic SetMyDefaultAdministratorRights builder with application/json body
func NewSetMyDefaultAdministratorRightsRequestWithBody ¶
func NewSetMyDefaultAdministratorRightsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetMyDefaultAdministratorRightsRequestWithBody generates requests for SetMyDefaultAdministratorRights with any type of body
func NewSetMyDescriptionRequest ¶
func NewSetMyDescriptionRequest(server string, body SetMyDescriptionJSONRequestBody) (*http.Request, error)
NewSetMyDescriptionRequest calls the generic SetMyDescription builder with application/json body
func NewSetMyDescriptionRequestWithBody ¶
func NewSetMyDescriptionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetMyDescriptionRequestWithBody generates requests for SetMyDescription with any type of body
func NewSetMyNameRequest ¶
func NewSetMyNameRequest(server string, body SetMyNameJSONRequestBody) (*http.Request, error)
NewSetMyNameRequest calls the generic SetMyName builder with application/json body
func NewSetMyNameRequestWithBody ¶
func NewSetMyNameRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetMyNameRequestWithBody generates requests for SetMyName with any type of body
func NewSetMyShortDescriptionRequest ¶
func NewSetMyShortDescriptionRequest(server string, body SetMyShortDescriptionJSONRequestBody) (*http.Request, error)
NewSetMyShortDescriptionRequest calls the generic SetMyShortDescription builder with application/json body
func NewSetMyShortDescriptionRequestWithBody ¶
func NewSetMyShortDescriptionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetMyShortDescriptionRequestWithBody generates requests for SetMyShortDescription with any type of body
func NewSetPassportDataErrorsRequest ¶
func NewSetPassportDataErrorsRequest(server string, body SetPassportDataErrorsJSONRequestBody) (*http.Request, error)
NewSetPassportDataErrorsRequest calls the generic SetPassportDataErrors builder with application/json body
func NewSetPassportDataErrorsRequestWithBody ¶
func NewSetPassportDataErrorsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetPassportDataErrorsRequestWithBody generates requests for SetPassportDataErrors with any type of body
func NewSetStickerEmojiListRequest ¶
func NewSetStickerEmojiListRequest(server string, body SetStickerEmojiListJSONRequestBody) (*http.Request, error)
NewSetStickerEmojiListRequest calls the generic SetStickerEmojiList builder with application/json body
func NewSetStickerEmojiListRequestWithBody ¶
func NewSetStickerEmojiListRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetStickerEmojiListRequestWithBody generates requests for SetStickerEmojiList with any type of body
func NewSetStickerKeywordsRequest ¶
func NewSetStickerKeywordsRequest(server string, body SetStickerKeywordsJSONRequestBody) (*http.Request, error)
NewSetStickerKeywordsRequest calls the generic SetStickerKeywords builder with application/json body
func NewSetStickerKeywordsRequestWithBody ¶
func NewSetStickerKeywordsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetStickerKeywordsRequestWithBody generates requests for SetStickerKeywords with any type of body
func NewSetStickerMaskPositionRequest ¶
func NewSetStickerMaskPositionRequest(server string, body SetStickerMaskPositionJSONRequestBody) (*http.Request, error)
NewSetStickerMaskPositionRequest calls the generic SetStickerMaskPosition builder with application/json body
func NewSetStickerMaskPositionRequestWithBody ¶
func NewSetStickerMaskPositionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetStickerMaskPositionRequestWithBody generates requests for SetStickerMaskPosition with any type of body
func NewSetStickerPositionInSetRequest ¶
func NewSetStickerPositionInSetRequest(server string, body SetStickerPositionInSetJSONRequestBody) (*http.Request, error)
NewSetStickerPositionInSetRequest calls the generic SetStickerPositionInSet builder with application/json body
func NewSetStickerPositionInSetRequestWithBody ¶
func NewSetStickerPositionInSetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetStickerPositionInSetRequestWithBody generates requests for SetStickerPositionInSet with any type of body
func NewSetStickerSetThumbnailRequest ¶
func NewSetStickerSetThumbnailRequest(server string, body SetStickerSetThumbnailJSONRequestBody) (*http.Request, error)
NewSetStickerSetThumbnailRequest calls the generic SetStickerSetThumbnail builder with application/json body
func NewSetStickerSetThumbnailRequestWithBody ¶
func NewSetStickerSetThumbnailRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetStickerSetThumbnailRequestWithBody generates requests for SetStickerSetThumbnail with any type of body
func NewSetStickerSetTitleRequest ¶
func NewSetStickerSetTitleRequest(server string, body SetStickerSetTitleJSONRequestBody) (*http.Request, error)
NewSetStickerSetTitleRequest calls the generic SetStickerSetTitle builder with application/json body
func NewSetStickerSetTitleRequestWithBody ¶
func NewSetStickerSetTitleRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetStickerSetTitleRequestWithBody generates requests for SetStickerSetTitle with any type of body
func NewSetUserEmojiStatusRequest ¶
func NewSetUserEmojiStatusRequest(server string, body SetUserEmojiStatusJSONRequestBody) (*http.Request, error)
NewSetUserEmojiStatusRequest calls the generic SetUserEmojiStatus builder with application/json body
func NewSetUserEmojiStatusRequestWithBody ¶
func NewSetUserEmojiStatusRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetUserEmojiStatusRequestWithBody generates requests for SetUserEmojiStatus with any type of body
func NewSetWebhookRequest ¶
func NewSetWebhookRequest(server string, body SetWebhookJSONRequestBody) (*http.Request, error)
NewSetWebhookRequest calls the generic SetWebhook builder with application/json body
func NewSetWebhookRequestWithBody ¶
func NewSetWebhookRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetWebhookRequestWithBody generates requests for SetWebhook with any type of body
func NewStopMessageLiveLocationRequest ¶
func NewStopMessageLiveLocationRequest(server string, body StopMessageLiveLocationJSONRequestBody) (*http.Request, error)
NewStopMessageLiveLocationRequest calls the generic StopMessageLiveLocation builder with application/json body
func NewStopMessageLiveLocationRequestWithBody ¶
func NewStopMessageLiveLocationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewStopMessageLiveLocationRequestWithBody generates requests for StopMessageLiveLocation with any type of body
func NewStopPollRequest ¶
func NewStopPollRequest(server string, body StopPollJSONRequestBody) (*http.Request, error)
NewStopPollRequest calls the generic StopPoll builder with application/json body
func NewStopPollRequestWithBody ¶
func NewStopPollRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewStopPollRequestWithBody generates requests for StopPoll with any type of body
func NewTransferBusinessAccountStarsRequest ¶
func NewTransferBusinessAccountStarsRequest(server string, body TransferBusinessAccountStarsJSONRequestBody) (*http.Request, error)
NewTransferBusinessAccountStarsRequest calls the generic TransferBusinessAccountStars builder with application/json body
func NewTransferBusinessAccountStarsRequestWithBody ¶
func NewTransferBusinessAccountStarsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewTransferBusinessAccountStarsRequestWithBody generates requests for TransferBusinessAccountStars with any type of body
func NewTransferGiftRequest ¶
func NewTransferGiftRequest(server string, body TransferGiftJSONRequestBody) (*http.Request, error)
NewTransferGiftRequest calls the generic TransferGift builder with application/json body
func NewTransferGiftRequestWithBody ¶
func NewTransferGiftRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewTransferGiftRequestWithBody generates requests for TransferGift with any type of body
func NewUnbanChatMemberRequest ¶
func NewUnbanChatMemberRequest(server string, body UnbanChatMemberJSONRequestBody) (*http.Request, error)
NewUnbanChatMemberRequest calls the generic UnbanChatMember builder with application/json body
func NewUnbanChatMemberRequestWithBody ¶
func NewUnbanChatMemberRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUnbanChatMemberRequestWithBody generates requests for UnbanChatMember with any type of body
func NewUnbanChatSenderChatRequest ¶
func NewUnbanChatSenderChatRequest(server string, body UnbanChatSenderChatJSONRequestBody) (*http.Request, error)
NewUnbanChatSenderChatRequest calls the generic UnbanChatSenderChat builder with application/json body
func NewUnbanChatSenderChatRequestWithBody ¶
func NewUnbanChatSenderChatRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUnbanChatSenderChatRequestWithBody generates requests for UnbanChatSenderChat with any type of body
func NewUnhideGeneralForumTopicRequest ¶
func NewUnhideGeneralForumTopicRequest(server string, body UnhideGeneralForumTopicJSONRequestBody) (*http.Request, error)
NewUnhideGeneralForumTopicRequest calls the generic UnhideGeneralForumTopic builder with application/json body
func NewUnhideGeneralForumTopicRequestWithBody ¶
func NewUnhideGeneralForumTopicRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUnhideGeneralForumTopicRequestWithBody generates requests for UnhideGeneralForumTopic with any type of body
func NewUnpinAllChatMessagesRequest ¶
func NewUnpinAllChatMessagesRequest(server string, body UnpinAllChatMessagesJSONRequestBody) (*http.Request, error)
NewUnpinAllChatMessagesRequest calls the generic UnpinAllChatMessages builder with application/json body
func NewUnpinAllChatMessagesRequestWithBody ¶
func NewUnpinAllChatMessagesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUnpinAllChatMessagesRequestWithBody generates requests for UnpinAllChatMessages with any type of body
func NewUnpinAllForumTopicMessagesRequest ¶
func NewUnpinAllForumTopicMessagesRequest(server string, body UnpinAllForumTopicMessagesJSONRequestBody) (*http.Request, error)
NewUnpinAllForumTopicMessagesRequest calls the generic UnpinAllForumTopicMessages builder with application/json body
func NewUnpinAllForumTopicMessagesRequestWithBody ¶
func NewUnpinAllForumTopicMessagesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUnpinAllForumTopicMessagesRequestWithBody generates requests for UnpinAllForumTopicMessages with any type of body
func NewUnpinAllGeneralForumTopicMessagesRequest ¶
func NewUnpinAllGeneralForumTopicMessagesRequest(server string, body UnpinAllGeneralForumTopicMessagesJSONRequestBody) (*http.Request, error)
NewUnpinAllGeneralForumTopicMessagesRequest calls the generic UnpinAllGeneralForumTopicMessages builder with application/json body
func NewUnpinAllGeneralForumTopicMessagesRequestWithBody ¶
func NewUnpinAllGeneralForumTopicMessagesRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUnpinAllGeneralForumTopicMessagesRequestWithBody generates requests for UnpinAllGeneralForumTopicMessages with any type of body
func NewUnpinChatMessageRequest ¶
func NewUnpinChatMessageRequest(server string, body UnpinChatMessageJSONRequestBody) (*http.Request, error)
NewUnpinChatMessageRequest calls the generic UnpinChatMessage builder with application/json body
func NewUnpinChatMessageRequestWithBody ¶
func NewUnpinChatMessageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUnpinChatMessageRequestWithBody generates requests for UnpinChatMessage with any type of body
func NewUpgradeGiftRequest ¶
func NewUpgradeGiftRequest(server string, body UpgradeGiftJSONRequestBody) (*http.Request, error)
NewUpgradeGiftRequest calls the generic UpgradeGift builder with application/json body
func NewUpgradeGiftRequestWithBody ¶
func NewUpgradeGiftRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUpgradeGiftRequestWithBody generates requests for UpgradeGift with any type of body
func NewUploadStickerFileRequest ¶
func NewUploadStickerFileRequest(server string, body UploadStickerFileJSONRequestBody) (*http.Request, error)
NewUploadStickerFileRequest calls the generic UploadStickerFile builder with application/json body
func NewUploadStickerFileRequestWithBody ¶
func NewUploadStickerFileRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUploadStickerFileRequestWithBody generates requests for UploadStickerFile with any type of body
func NewVerifyChatRequest ¶
func NewVerifyChatRequest(server string, body VerifyChatJSONRequestBody) (*http.Request, error)
NewVerifyChatRequest calls the generic VerifyChat builder with application/json body
func NewVerifyChatRequestWithBody ¶
func NewVerifyChatRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewVerifyChatRequestWithBody generates requests for VerifyChat with any type of body
func NewVerifyUserRequest ¶
func NewVerifyUserRequest(server string, body VerifyUserJSONRequestBody) (*http.Request, error)
NewVerifyUserRequest calls the generic VerifyUser builder with application/json body
Types ¶
type AcceptedGiftTypes ¶
type AcceptedGiftTypes struct {
// GiftsFromChannels True, if transfers of unique gifts from channels are accepted
GiftsFromChannels bool `json:"gifts_from_channels"`
// LimitedGifts True, if limited regular gifts are accepted
LimitedGifts bool `json:"limited_gifts"`
// PremiumSubscription True, if a Telegram Premium subscription is accepted
PremiumSubscription bool `json:"premium_subscription"`
// UniqueGifts True, if unique gifts or gifts that can be upgraded to unique for free are accepted
UniqueGifts bool `json:"unique_gifts"`
// UnlimitedGifts True, if unlimited regular gifts are accepted
UnlimitedGifts bool `json:"unlimited_gifts"`
}
AcceptedGiftTypes This object describes the types of gifts that can be gifted to a user or a chat.
type AddStickerToSet200Ok ¶
type AddStickerToSet200Ok bool
type AddStickerToSetJSONBody ¶
type AddStickerToSetJSONBody struct {
// Name Sticker set name
Name string `json:"name"`
// Sticker A JSON-serialized object with information about the added sticker. If exactly the same sticker had already been added to the set, then the set isn't changed.
Sticker InputSticker `json:"sticker"`
// UserId User identifier of sticker set owner
UserId int `json:"user_id"`
}
AddStickerToSetJSONBody defines parameters for AddStickerToSet.
type AddStickerToSetJSONRequestBody ¶
type AddStickerToSetJSONRequestBody AddStickerToSetJSONBody
AddStickerToSetJSONRequestBody defines body for AddStickerToSet for application/json ContentType.
type AddStickerToSetMultipartBody ¶ added in v0.2.0
type AddStickerToSetMultipartBody struct {
// Name Sticker set name
Name string `json:"name"`
// Sticker A JSON-serialized object with information about the added sticker. If exactly the same sticker had already been added to the set, then the set isn't changed.
Sticker InputSticker `json:"sticker"`
// UserId User identifier of sticker set owner
UserId int `json:"user_id"`
}
AddStickerToSetMultipartBody defines parameters for AddStickerToSet.
type AddStickerToSetMultipartRequestBody ¶ added in v0.2.0
type AddStickerToSetMultipartRequestBody AddStickerToSetMultipartBody
AddStickerToSetMultipartRequestBody defines body for AddStickerToSet for multipart/form-data ContentType.
type AddStickerToSetResponse ¶
type AddStickerToSetResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok AddStickerToSet200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseAddStickerToSetResponse ¶
func ParseAddStickerToSetResponse(rsp *http.Response) (*AddStickerToSetResponse, error)
ParseAddStickerToSetResponse parses an HTTP response from a AddStickerToSetWithResponse call
func (AddStickerToSetResponse) Status ¶
func (r AddStickerToSetResponse) Status() string
Status returns HTTPResponse.Status
func (AddStickerToSetResponse) StatusCode ¶
func (r AddStickerToSetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Animation ¶
type Animation struct {
// Duration Duration of the video in seconds as defined by the sender
Duration int `json:"duration"`
// FileId Identifier for this file, which can be used to download or reuse the file
FileId string `json:"file_id"`
// FileName Optional. Original animation filename as defined by the sender
FileName *string `json:"file_name,omitempty"`
// FileSize Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value.
FileSize *int64 `json:"file_size,omitempty"`
// FileUniqueId Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
FileUniqueId string `json:"file_unique_id"`
// Height Video height as defined by the sender
Height int `json:"height"`
// MimeType Optional. MIME type of the file as defined by the sender
MimeType *string `json:"mime_type,omitempty"`
// Thumbnail Optional. Animation thumbnail as defined by the sender
Thumbnail *PhotoSize `json:"thumbnail,omitempty"`
// Width Video width as defined by the sender
Width int `json:"width"`
}
Animation This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).
type AnswerCallbackQuery200Ok ¶
type AnswerCallbackQuery200Ok bool
type AnswerCallbackQueryJSONBody ¶
type AnswerCallbackQueryJSONBody struct {
// CacheTime The maximum amount of time in seconds that the result of the callback query may be cached client-side. Telegram apps will support caching starting in version 3.14. Defaults to 0.
CacheTime *int `json:"cache_time,omitempty"`
// CallbackQueryId Unique identifier for the query to be answered
CallbackQueryId string `json:"callback_query_id"`
// ShowAlert If True, an alert will be shown by the client instead of a notification at the top of the chat screen. Defaults to false.
ShowAlert *bool `json:"show_alert,omitempty"`
// Text Text of the notification. If not specified, nothing will be shown to the user, 0-200 characters
Text *string `json:"text,omitempty"`
// Url URL that will be opened by the user's client. If you have created a Game and accepted the conditions via @BotFather, specify the URL that opens your game - note that this will only work if the query comes from a callback_game button.Otherwise, you may use links like t.me/your_bot?start=XXXX that open your bot with a parameter.
Url *string `json:"url,omitempty"`
}
AnswerCallbackQueryJSONBody defines parameters for AnswerCallbackQuery.
type AnswerCallbackQueryJSONRequestBody ¶
type AnswerCallbackQueryJSONRequestBody AnswerCallbackQueryJSONBody
AnswerCallbackQueryJSONRequestBody defines body for AnswerCallbackQuery for application/json ContentType.
type AnswerCallbackQueryResponse ¶
type AnswerCallbackQueryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok AnswerCallbackQuery200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseAnswerCallbackQueryResponse ¶
func ParseAnswerCallbackQueryResponse(rsp *http.Response) (*AnswerCallbackQueryResponse, error)
ParseAnswerCallbackQueryResponse parses an HTTP response from a AnswerCallbackQueryWithResponse call
func (AnswerCallbackQueryResponse) Status ¶
func (r AnswerCallbackQueryResponse) Status() string
Status returns HTTPResponse.Status
func (AnswerCallbackQueryResponse) StatusCode ¶
func (r AnswerCallbackQueryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AnswerInlineQuery200Ok ¶
type AnswerInlineQuery200Ok bool
type AnswerInlineQueryJSONBody ¶
type AnswerInlineQueryJSONBody struct {
// Button A JSON-serialized object describing a button to be shown above inline query results
Button *InlineQueryResultsButton `json:"button,omitempty"`
// CacheTime The maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300.
CacheTime *int `json:"cache_time,omitempty"`
// InlineQueryId Unique identifier for the answered query
InlineQueryId string `json:"inline_query_id"`
// IsPersonal Pass True if results may be cached on the server side only for the user that sent the query. By default, results may be returned to any user who sends the same query.
IsPersonal *bool `json:"is_personal,omitempty"`
// NextOffset Pass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you don't support pagination. Offset length can't exceed 64 bytes.
NextOffset *string `json:"next_offset,omitempty"`
// Results A JSON-serialized array of results for the inline query
Results []InlineQueryResult `json:"results"`
}
AnswerInlineQueryJSONBody defines parameters for AnswerInlineQuery.
type AnswerInlineQueryJSONRequestBody ¶
type AnswerInlineQueryJSONRequestBody AnswerInlineQueryJSONBody
AnswerInlineQueryJSONRequestBody defines body for AnswerInlineQuery for application/json ContentType.
type AnswerInlineQueryResponse ¶
type AnswerInlineQueryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok AnswerInlineQuery200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseAnswerInlineQueryResponse ¶
func ParseAnswerInlineQueryResponse(rsp *http.Response) (*AnswerInlineQueryResponse, error)
ParseAnswerInlineQueryResponse parses an HTTP response from a AnswerInlineQueryWithResponse call
func (AnswerInlineQueryResponse) Status ¶
func (r AnswerInlineQueryResponse) Status() string
Status returns HTTPResponse.Status
func (AnswerInlineQueryResponse) StatusCode ¶
func (r AnswerInlineQueryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AnswerPreCheckoutQuery200Ok ¶
type AnswerPreCheckoutQuery200Ok bool
type AnswerPreCheckoutQueryJSONBody ¶
type AnswerPreCheckoutQueryJSONBody struct {
// ErrorMessage Required if ok is False. Error message in human readable form that explains the reason for failure to proceed with the checkout (e.g. "Sorry, somebody just bought the last of our amazing black T-shirts while you were busy filling out your payment details. Please choose a different color or garment!"). Telegram will display this message to the user.
ErrorMessage *string `json:"error_message,omitempty"`
// Ok Specify True if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order. Use False if there are any problems.
Ok bool `json:"ok"`
// PreCheckoutQueryId Unique identifier for the query to be answered
PreCheckoutQueryId string `json:"pre_checkout_query_id"`
}
AnswerPreCheckoutQueryJSONBody defines parameters for AnswerPreCheckoutQuery.
type AnswerPreCheckoutQueryJSONRequestBody ¶
type AnswerPreCheckoutQueryJSONRequestBody AnswerPreCheckoutQueryJSONBody
AnswerPreCheckoutQueryJSONRequestBody defines body for AnswerPreCheckoutQuery for application/json ContentType.
type AnswerPreCheckoutQueryResponse ¶
type AnswerPreCheckoutQueryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok AnswerPreCheckoutQuery200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseAnswerPreCheckoutQueryResponse ¶
func ParseAnswerPreCheckoutQueryResponse(rsp *http.Response) (*AnswerPreCheckoutQueryResponse, error)
ParseAnswerPreCheckoutQueryResponse parses an HTTP response from a AnswerPreCheckoutQueryWithResponse call
func (AnswerPreCheckoutQueryResponse) Status ¶
func (r AnswerPreCheckoutQueryResponse) Status() string
Status returns HTTPResponse.Status
func (AnswerPreCheckoutQueryResponse) StatusCode ¶
func (r AnswerPreCheckoutQueryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AnswerShippingQuery200Ok ¶
type AnswerShippingQuery200Ok bool
type AnswerShippingQueryJSONBody ¶
type AnswerShippingQueryJSONBody struct {
// ErrorMessage Required if ok is False. Error message in human readable form that explains why it is impossible to complete the order (e.g. “Sorry, delivery to your desired address is unavailable”). Telegram will display this message to the user.
ErrorMessage *string `json:"error_message,omitempty"`
// Ok Pass True if delivery to the specified address is possible and False if there are any problems (for example, if delivery to the specified address is not possible)
Ok bool `json:"ok"`
// ShippingOptions Required if ok is True. A JSON-serialized array of available shipping options.
ShippingOptions *[]ShippingOption `json:"shipping_options,omitempty"`
// ShippingQueryId Unique identifier for the query to be answered
ShippingQueryId string `json:"shipping_query_id"`
}
AnswerShippingQueryJSONBody defines parameters for AnswerShippingQuery.
type AnswerShippingQueryJSONRequestBody ¶
type AnswerShippingQueryJSONRequestBody AnswerShippingQueryJSONBody
AnswerShippingQueryJSONRequestBody defines body for AnswerShippingQuery for application/json ContentType.
type AnswerShippingQueryResponse ¶
type AnswerShippingQueryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok AnswerShippingQuery200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseAnswerShippingQueryResponse ¶
func ParseAnswerShippingQueryResponse(rsp *http.Response) (*AnswerShippingQueryResponse, error)
ParseAnswerShippingQueryResponse parses an HTTP response from a AnswerShippingQueryWithResponse call
func (AnswerShippingQueryResponse) Status ¶
func (r AnswerShippingQueryResponse) Status() string
Status returns HTTPResponse.Status
func (AnswerShippingQueryResponse) StatusCode ¶
func (r AnswerShippingQueryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AnswerWebAppQuery200Ok ¶
type AnswerWebAppQuery200Ok bool
type AnswerWebAppQueryJSONBody ¶
type AnswerWebAppQueryJSONBody struct {
// Result A JSON-serialized object describing the message to be sent
Result InlineQueryResult `json:"result"`
// WebAppQueryId Unique identifier for the query to be answered
WebAppQueryId string `json:"web_app_query_id"`
}
AnswerWebAppQueryJSONBody defines parameters for AnswerWebAppQuery.
type AnswerWebAppQueryJSONRequestBody ¶
type AnswerWebAppQueryJSONRequestBody AnswerWebAppQueryJSONBody
AnswerWebAppQueryJSONRequestBody defines body for AnswerWebAppQuery for application/json ContentType.
type AnswerWebAppQueryResponse ¶
type AnswerWebAppQueryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok AnswerWebAppQuery200Ok `json:"ok"`
// Result Describes an inline message sent by a Web App on behalf of a user.
Result SentWebAppMessage `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseAnswerWebAppQueryResponse ¶
func ParseAnswerWebAppQueryResponse(rsp *http.Response) (*AnswerWebAppQueryResponse, error)
ParseAnswerWebAppQueryResponse parses an HTTP response from a AnswerWebAppQueryWithResponse call
func (AnswerWebAppQueryResponse) Status ¶
func (r AnswerWebAppQueryResponse) Status() string
Status returns HTTPResponse.Status
func (AnswerWebAppQueryResponse) StatusCode ¶
func (r AnswerWebAppQueryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ApproveChatJoinRequest200Ok ¶
type ApproveChatJoinRequest200Ok bool
type ApproveChatJoinRequestJSONBody ¶
type ApproveChatJoinRequestJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// UserId Unique identifier of the target user
UserId int `json:"user_id"`
}
ApproveChatJoinRequestJSONBody defines parameters for ApproveChatJoinRequest.
type ApproveChatJoinRequestJSONRequestBody ¶
type ApproveChatJoinRequestJSONRequestBody ApproveChatJoinRequestJSONBody
ApproveChatJoinRequestJSONRequestBody defines body for ApproveChatJoinRequest for application/json ContentType.
type ApproveChatJoinRequestResponse ¶
type ApproveChatJoinRequestResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok ApproveChatJoinRequest200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseApproveChatJoinRequestResponse ¶
func ParseApproveChatJoinRequestResponse(rsp *http.Response) (*ApproveChatJoinRequestResponse, error)
ParseApproveChatJoinRequestResponse parses an HTTP response from a ApproveChatJoinRequestWithResponse call
func (ApproveChatJoinRequestResponse) Status ¶
func (r ApproveChatJoinRequestResponse) Status() string
Status returns HTTPResponse.Status
func (ApproveChatJoinRequestResponse) StatusCode ¶
func (r ApproveChatJoinRequestResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ApproveSuggestedPost200Ok ¶
type ApproveSuggestedPost200Ok bool
type ApproveSuggestedPostJSONBody ¶
type ApproveSuggestedPostJSONBody struct {
// ChatId Unique identifier for the target direct messages chat
ChatId int64 `json:"chat_id"`
// MessageId Identifier of a suggested post message to approve
MessageId int `json:"message_id"`
// SendDate Point in time (Unix timestamp) when the post is expected to be published; omit if the date has already been specified when the suggested post was created. If specified, then the date must be not more than 2678400 seconds (30 days) in the future
SendDate *int `json:"send_date,omitempty"`
}
ApproveSuggestedPostJSONBody defines parameters for ApproveSuggestedPost.
type ApproveSuggestedPostJSONRequestBody ¶
type ApproveSuggestedPostJSONRequestBody ApproveSuggestedPostJSONBody
ApproveSuggestedPostJSONRequestBody defines body for ApproveSuggestedPost for application/json ContentType.
type ApproveSuggestedPostResponse ¶
type ApproveSuggestedPostResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok ApproveSuggestedPost200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseApproveSuggestedPostResponse ¶
func ParseApproveSuggestedPostResponse(rsp *http.Response) (*ApproveSuggestedPostResponse, error)
ParseApproveSuggestedPostResponse parses an HTTP response from a ApproveSuggestedPostWithResponse call
func (ApproveSuggestedPostResponse) Status ¶
func (r ApproveSuggestedPostResponse) Status() string
Status returns HTTPResponse.Status
func (ApproveSuggestedPostResponse) StatusCode ¶
func (r ApproveSuggestedPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Audio ¶
type Audio struct {
// Duration Duration of the audio in seconds as defined by the sender
Duration int `json:"duration"`
// FileId Identifier for this file, which can be used to download or reuse the file
FileId string `json:"file_id"`
// FileName Optional. Original filename as defined by the sender
FileName *string `json:"file_name,omitempty"`
// FileSize Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value.
FileSize *int64 `json:"file_size,omitempty"`
// FileUniqueId Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
FileUniqueId string `json:"file_unique_id"`
// MimeType Optional. MIME type of the file as defined by the sender
MimeType *string `json:"mime_type,omitempty"`
// Performer Optional. Performer of the audio as defined by the sender or by audio tags
Performer *string `json:"performer,omitempty"`
// Thumbnail Optional. Thumbnail of the album cover to which the music file belongs
Thumbnail *PhotoSize `json:"thumbnail,omitempty"`
// Title Optional. Title of the audio as defined by the sender or by audio tags
Title *string `json:"title,omitempty"`
}
Audio This object represents an audio file to be treated as music by the Telegram clients.
type BackgroundType ¶
type BackgroundType = map[string]interface{}
BackgroundType This object describes the type of a background. Currently, it can be one of BackgroundTypeFill BackgroundTypeWallpaper BackgroundTypePattern BackgroundTypeChatTheme
type BanChatMember200Ok ¶
type BanChatMember200Ok bool
type BanChatMemberJSONBody ¶
type BanChatMemberJSONBody struct {
// ChatId Unique identifier for the target group or username of the target supergroup or channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// RevokeMessages Pass True to delete all messages from the chat for the user that is being removed. If False, the user will be able to see messages in the group that were sent before the user was removed. Always True for supergroups and channels.
RevokeMessages *bool `json:"revoke_messages,omitempty"`
// UntilDate Date when the user will be unbanned; Unix time. If user is banned for more than 366 days or less than 30 seconds from the current time they are considered to be banned forever. Applied for supergroups and channels only.
UntilDate *int `json:"until_date,omitempty"`
// UserId Unique identifier of the target user
UserId int `json:"user_id"`
}
BanChatMemberJSONBody defines parameters for BanChatMember.
type BanChatMemberJSONRequestBody ¶
type BanChatMemberJSONRequestBody BanChatMemberJSONBody
BanChatMemberJSONRequestBody defines body for BanChatMember for application/json ContentType.
type BanChatMemberResponse ¶
type BanChatMemberResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok BanChatMember200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseBanChatMemberResponse ¶
func ParseBanChatMemberResponse(rsp *http.Response) (*BanChatMemberResponse, error)
ParseBanChatMemberResponse parses an HTTP response from a BanChatMemberWithResponse call
func (BanChatMemberResponse) Status ¶
func (r BanChatMemberResponse) Status() string
Status returns HTTPResponse.Status
func (BanChatMemberResponse) StatusCode ¶
func (r BanChatMemberResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type BanChatSenderChat200Ok ¶
type BanChatSenderChat200Ok bool
type BanChatSenderChatJSONBody ¶
type BanChatSenderChatJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// SenderChatId Unique identifier of the target sender chat
SenderChatId int64 `json:"sender_chat_id"`
}
BanChatSenderChatJSONBody defines parameters for BanChatSenderChat.
type BanChatSenderChatJSONRequestBody ¶
type BanChatSenderChatJSONRequestBody BanChatSenderChatJSONBody
BanChatSenderChatJSONRequestBody defines body for BanChatSenderChat for application/json ContentType.
type BanChatSenderChatResponse ¶
type BanChatSenderChatResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok BanChatSenderChat200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseBanChatSenderChatResponse ¶
func ParseBanChatSenderChatResponse(rsp *http.Response) (*BanChatSenderChatResponse, error)
ParseBanChatSenderChatResponse parses an HTTP response from a BanChatSenderChatWithResponse call
func (BanChatSenderChatResponse) Status ¶
func (r BanChatSenderChatResponse) Status() string
Status returns HTTPResponse.Status
func (BanChatSenderChatResponse) StatusCode ¶
func (r BanChatSenderChatResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Birthdate ¶
type Birthdate struct {
// Day Day of the user's birth; 1-31
Day int `json:"day"`
// Month Month of the user's birth; 1-12
Month int `json:"month"`
// Year Optional. Year of the user's birth
Year *int `json:"year,omitempty"`
}
Birthdate Describes the birthdate of a user.
type BotCommand ¶
type BotCommand struct {
// Command Text of the command; 1-32 characters. Can contain only lowercase English letters, digits and underscores.
Command string `json:"command"`
// Description Description of the command; 1-256 characters.
Description string `json:"description"`
}
BotCommand This object represents a bot command.
type BotCommandScope ¶ added in v0.2.0
type BotCommandScope = map[string]interface{}
BotCommandScope This object represents the scope to which bot commands are applied. Currently, the following 7 scopes are supported: BotCommandScopeDefault BotCommandScopeAllPrivateChats BotCommandScopeAllGroupChats BotCommandScopeAllChatAdministrators BotCommandScopeChat BotCommandScopeChatAdministrators BotCommandScopeChatMember
type BotDescription ¶
type BotDescription struct {
// Description The bot's description
Description string `json:"description"`
}
BotDescription This object represents the bot's description.
type BotName ¶
type BotName struct {
// Name The bot's name
Name string `json:"name"`
}
BotName This object represents the bot's name.
type BotShortDescription ¶
type BotShortDescription struct {
// ShortDescription The bot's short description
ShortDescription string `json:"short_description"`
}
BotShortDescription This object represents the bot's short description.
type BusinessBotRights ¶
type BusinessBotRights struct {
// CanChangeGiftSettings Optional. True, if the bot can change the privacy settings pertaining to gifts for the business account
CanChangeGiftSettings *bool `json:"can_change_gift_settings,omitempty"`
// CanConvertGiftsToStars Optional. True, if the bot can convert regular gifts owned by the business account to Telegram Stars
CanConvertGiftsToStars *bool `json:"can_convert_gifts_to_stars,omitempty"`
// CanDeleteAllMessages Optional. True, if the bot can delete all private messages in managed chats
CanDeleteAllMessages *bool `json:"can_delete_all_messages,omitempty"`
// CanDeleteSentMessages Optional. True, if the bot can delete messages sent by the bot
CanDeleteSentMessages *bool `json:"can_delete_sent_messages,omitempty"`
// CanEditBio Optional. True, if the bot can edit the bio of the business account
CanEditBio *bool `json:"can_edit_bio,omitempty"`
// CanEditName Optional. True, if the bot can edit the first and last name of the business account
CanEditName *bool `json:"can_edit_name,omitempty"`
// CanEditProfilePhoto Optional. True, if the bot can edit the profile photo of the business account
CanEditProfilePhoto *bool `json:"can_edit_profile_photo,omitempty"`
// CanEditUsername Optional. True, if the bot can edit the username of the business account
CanEditUsername *bool `json:"can_edit_username,omitempty"`
// CanManageStories Optional. True, if the bot can post, edit and delete stories on behalf of the business account
CanManageStories *bool `json:"can_manage_stories,omitempty"`
// CanReadMessages Optional. True, if the bot can mark incoming private messages as read
CanReadMessages *bool `json:"can_read_messages,omitempty"`
// CanReply Optional. True, if the bot can send and edit messages in the private chats that had incoming messages in the last 24 hours
CanReply *bool `json:"can_reply,omitempty"`
// CanTransferAndUpgradeGifts Optional. True, if the bot can transfer and upgrade gifts owned by the business account
CanTransferAndUpgradeGifts *bool `json:"can_transfer_and_upgrade_gifts,omitempty"`
// CanTransferStars Optional. True, if the bot can transfer Telegram Stars received by the business account to its own account, or use them to upgrade and transfer gifts
CanTransferStars *bool `json:"can_transfer_stars,omitempty"`
// CanViewGiftsAndStars Optional. True, if the bot can view gifts and the amount of Telegram Stars owned by the business account
CanViewGiftsAndStars *bool `json:"can_view_gifts_and_stars,omitempty"`
}
BusinessBotRights Represents the rights of a business bot.
type BusinessConnection ¶
type BusinessConnection struct {
// Date Date the connection was established in Unix time
Date int `json:"date"`
// Id Unique identifier of the business connection
Id string `json:"id"`
// IsEnabled True, if the connection is active
IsEnabled bool `json:"is_enabled"`
// Rights Optional. Rights of the business bot
Rights *BusinessBotRights `json:"rights,omitempty"`
// User Business account user that created the business connection
User User `json:"user"`
// UserChatId Identifier of a private chat with the user who created the business connection. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.
UserChatId int64 `json:"user_chat_id"`
}
BusinessConnection Describes the connection of the bot with a business account.
type BusinessIntro ¶
type BusinessIntro struct {
// Message Optional. Message text of the business intro
Message *string `json:"message,omitempty"`
// Sticker Optional. Sticker of the business intro
Sticker *Sticker `json:"sticker,omitempty"`
// Title Optional. Title text of the business intro
Title *string `json:"title,omitempty"`
}
BusinessIntro Contains information about the start page settings of a Telegram Business account.
type BusinessLocation ¶
type BusinessLocation struct {
// Address Address of the business
Address string `json:"address"`
// Location Optional. Location of the business
Location *Location `json:"location,omitempty"`
}
BusinessLocation Contains information about the location of a Telegram Business account.
type BusinessMessagesDeleted ¶
type BusinessMessagesDeleted struct {
// BusinessConnectionId Unique identifier of the business connection
BusinessConnectionId string `json:"business_connection_id"`
// Chat Information about a chat in the business account. The bot may not have access to the chat or the corresponding user.
Chat Chat `json:"chat"`
// MessageIds The list of identifiers of deleted messages in the chat of the business account
MessageIds []int `json:"message_ids"`
}
BusinessMessagesDeleted This object is received when messages are deleted from a connected business account.
type BusinessOpeningHours ¶
type BusinessOpeningHours struct {
// OpeningHours List of time intervals describing business opening hours
OpeningHours []BusinessOpeningHoursInterval `json:"opening_hours"`
// TimeZoneName Unique name of the time zone for which the opening hours are defined
TimeZoneName string `json:"time_zone_name"`
}
BusinessOpeningHours Describes the opening hours of a business.
type BusinessOpeningHoursInterval ¶
type BusinessOpeningHoursInterval struct {
// ClosingMinute The minute's sequence number in a week, starting on Monday, marking the end of the time interval during which the business is open; 0 - 8 * 24 * 60
ClosingMinute int `json:"closing_minute"`
// OpeningMinute The minute's sequence number in a week, starting on Monday, marking the start of the time interval during which the business is open; 0 - 7 * 24 * 60
OpeningMinute int `json:"opening_minute"`
}
BusinessOpeningHoursInterval Describes an interval of time during which a business is open.
type CallbackGame ¶
type CallbackGame = map[string]interface{}
CallbackGame A placeholder, currently holds no information. Use BotFather to set up your game.
type CallbackQuery ¶
type CallbackQuery struct {
// ChatInstance Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.
ChatInstance string `json:"chat_instance"`
// Data Optional. Data associated with the callback button. Be aware that the message originated the query can contain no callback buttons with this data.
Data *string `json:"data,omitempty"`
// From Sender
From User `json:"from"`
// GameShortName Optional. Short name of a Game to be returned, serves as the unique identifier for the game
GameShortName *string `json:"game_short_name,omitempty"`
// Id Unique identifier for this query
Id string `json:"id"`
// InlineMessageId Optional. Identifier of the message sent via the bot in inline mode, that originated the query.
InlineMessageId *string `json:"inline_message_id,omitempty"`
// Message Optional. Message sent by the bot with the callback button that originated the query
Message *MaybeInaccessibleMessage `json:"message,omitempty"`
}
CallbackQuery This object represents an incoming callback query from a callback button in an inline keyboard. If the button that originated the query was attached to a message sent by the bot, the field message will be present. If the button was attached to a message sent via the bot (in inline mode), the field inline_message_id will be present. Exactly one of the fields data or game_short_name will be present.
type Chat ¶
type Chat struct {
// FirstName Optional. First name of the other party in a private chat
FirstName *string `json:"first_name,omitempty"`
// Id Unique identifier for this chat. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.
Id int64 `json:"id"`
// IsDirectMessages Optional. True, if the chat is the direct messages chat of a channel
IsDirectMessages *bool `json:"is_direct_messages,omitempty"`
// IsForum Optional. True, if the supergroup chat is a forum (has topics enabled)
IsForum *bool `json:"is_forum,omitempty"`
// LastName Optional. Last name of the other party in a private chat
LastName *string `json:"last_name,omitempty"`
// Title Optional. Title, for supergroups, channels and group chats
Title *string `json:"title,omitempty"`
// Type Type of the chat, can be either “private”, “group”, “supergroup” or “channel”
Type string `json:"type"`
// Username Optional. Username, for private chats, supergroups and channels if available
Username *string `json:"username,omitempty"`
}
Chat This object represents a chat.
type ChatAdministratorRights ¶
type ChatAdministratorRights struct {
// CanChangeInfo True, if the user is allowed to change the chat title, photo and other settings
CanChangeInfo bool `json:"can_change_info"`
// CanDeleteMessages True, if the administrator can delete messages of other users
CanDeleteMessages bool `json:"can_delete_messages"`
// CanDeleteStories True, if the administrator can delete stories posted by other users
CanDeleteStories bool `json:"can_delete_stories"`
// CanEditMessages Optional. True, if the administrator can edit messages of other users and can pin messages; for channels only
CanEditMessages *bool `json:"can_edit_messages,omitempty"`
// CanEditStories True, if the administrator can edit stories posted by other users, post stories to the chat page, pin chat stories, and access the chat's story archive
CanEditStories bool `json:"can_edit_stories"`
// CanInviteUsers True, if the user is allowed to invite new users to the chat
CanInviteUsers bool `json:"can_invite_users"`
// CanManageChat True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages, ignore slow mode, and send messages to the chat without paying Telegram Stars. Implied by any other administrator privilege.
CanManageChat bool `json:"can_manage_chat"`
// CanManageDirectMessages Optional. True, if the administrator can manage direct messages of the channel and decline suggested posts; for channels only
CanManageDirectMessages *bool `json:"can_manage_direct_messages,omitempty"`
// CanManageTopics Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; for supergroups only
CanManageTopics *bool `json:"can_manage_topics,omitempty"`
// CanManageVideoChats True, if the administrator can manage video chats
CanManageVideoChats bool `json:"can_manage_video_chats"`
// CanPinMessages Optional. True, if the user is allowed to pin messages; for groups and supergroups only
CanPinMessages *bool `json:"can_pin_messages,omitempty"`
// CanPostMessages Optional. True, if the administrator can post messages in the channel, approve suggested posts, or access channel statistics; for channels only
CanPostMessages *bool `json:"can_post_messages,omitempty"`
// CanPostStories True, if the administrator can post stories to the chat
CanPostStories bool `json:"can_post_stories"`
// CanPromoteMembers True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that they have promoted, directly or indirectly (promoted by administrators that were appointed by the user)
CanPromoteMembers bool `json:"can_promote_members"`
// CanRestrictMembers True, if the administrator can restrict, ban or unban chat members, or access supergroup statistics
CanRestrictMembers bool `json:"can_restrict_members"`
// IsAnonymous True, if the user's presence in the chat is hidden
IsAnonymous bool `json:"is_anonymous"`
}
ChatAdministratorRights Represents the rights of an administrator in a chat.
type ChatBackground ¶
type ChatBackground struct {
// Type Type of the background
Type BackgroundType `json:"type"`
}
ChatBackground This object represents a chat background.
type ChatBoost ¶
type ChatBoost struct {
// AddDate Point in time (Unix timestamp) when the chat was boosted
AddDate int `json:"add_date"`
// BoostId Unique identifier of the boost
BoostId string `json:"boost_id"`
// ExpirationDate Point in time (Unix timestamp) when the boost will automatically expire, unless the booster's Telegram Premium subscription is prolonged
ExpirationDate int `json:"expiration_date"`
// Source Source of the added boost
Source ChatBoostSource `json:"source"`
}
ChatBoost This object contains information about a chat boost.
type ChatBoostAdded ¶
type ChatBoostAdded struct {
// BoostCount Number of boosts added by the user
BoostCount int `json:"boost_count"`
}
ChatBoostAdded This object represents a service message about a user boosting a chat.
type ChatBoostRemoved ¶
type ChatBoostRemoved struct {
// BoostId Unique identifier of the boost
BoostId string `json:"boost_id"`
// Chat Chat which was boosted
Chat Chat `json:"chat"`
// RemoveDate Point in time (Unix timestamp) when the boost was removed
RemoveDate int `json:"remove_date"`
// Source Source of the removed boost
Source ChatBoostSource `json:"source"`
}
ChatBoostRemoved This object represents a boost removed from a chat.
type ChatBoostSource ¶
type ChatBoostSource = map[string]interface{}
ChatBoostSource This object describes the source of a chat boost. It can be one of ChatBoostSourcePremium ChatBoostSourceGiftCode ChatBoostSourceGiveaway
type ChatBoostUpdated ¶
type ChatBoostUpdated struct {
// Boost Information about the chat boost
Boost ChatBoost `json:"boost"`
// Chat Chat which was boosted
Chat Chat `json:"chat"`
}
ChatBoostUpdated This object represents a boost added to a chat or changed.
type ChatFullInfo ¶
type ChatFullInfo struct {
// AccentColorId Identifier of the accent color for the chat name and backgrounds of the chat photo, reply header, and link preview. See accent colors for more details.
AccentColorId int `json:"accent_color_id"`
// AcceptedGiftTypes Information about types of gifts that are accepted by the chat or by the corresponding user for private chats
AcceptedGiftTypes AcceptedGiftTypes `json:"accepted_gift_types"`
// ActiveUsernames Optional. If non-empty, the list of all active chat usernames; for private chats, supergroups and channels
ActiveUsernames *[]string `json:"active_usernames,omitempty"`
// AvailableReactions Optional. List of available reactions allowed in the chat. If omitted, then all emoji reactions are allowed.
AvailableReactions *[]ReactionType `json:"available_reactions,omitempty"`
// BackgroundCustomEmojiId Optional. Custom emoji identifier of the emoji chosen by the chat for the reply header and link preview background
BackgroundCustomEmojiId *string `json:"background_custom_emoji_id,omitempty"`
// Bio Optional. Bio of the other party in a private chat
Bio *string `json:"bio,omitempty"`
// Birthdate Optional. For private chats, the date of birth of the user
Birthdate *Birthdate `json:"birthdate,omitempty"`
// BusinessIntro Optional. For private chats with business accounts, the intro of the business
BusinessIntro *BusinessIntro `json:"business_intro,omitempty"`
// BusinessLocation Optional. For private chats with business accounts, the location of the business
BusinessLocation *BusinessLocation `json:"business_location,omitempty"`
// BusinessOpeningHours Optional. For private chats with business accounts, the opening hours of the business
BusinessOpeningHours *BusinessOpeningHours `json:"business_opening_hours,omitempty"`
// CanSendPaidMedia Optional. True, if paid media messages can be sent or forwarded to the channel chat. The field is available only for channel chats.
CanSendPaidMedia *bool `json:"can_send_paid_media,omitempty"`
// CanSetStickerSet Optional. True, if the bot can change the group sticker set
CanSetStickerSet *bool `json:"can_set_sticker_set,omitempty"`
// CustomEmojiStickerSetName Optional. For supergroups, the name of the group's custom emoji sticker set. Custom emoji from this set can be used by all users and bots in the group.
CustomEmojiStickerSetName *string `json:"custom_emoji_sticker_set_name,omitempty"`
// Description Optional. Description, for groups, supergroups and channel chats
Description *string `json:"description,omitempty"`
// EmojiStatusCustomEmojiId Optional. Custom emoji identifier of the emoji status of the chat or the other party in a private chat
EmojiStatusCustomEmojiId *string `json:"emoji_status_custom_emoji_id,omitempty"`
// EmojiStatusExpirationDate Optional. Expiration date of the emoji status of the chat or the other party in a private chat, in Unix time, if any
EmojiStatusExpirationDate *int `json:"emoji_status_expiration_date,omitempty"`
// FirstName Optional. First name of the other party in a private chat
FirstName *string `json:"first_name,omitempty"`
// HasAggressiveAntiSpamEnabled Optional. True, if aggressive anti-spam checks are enabled in the supergroup. The field is only available to chat administrators.
HasAggressiveAntiSpamEnabled *bool `json:"has_aggressive_anti_spam_enabled,omitempty"`
// HasHiddenMembers Optional. True, if non-administrators can only get the list of bots and administrators in the chat
HasHiddenMembers *bool `json:"has_hidden_members,omitempty"`
// HasPrivateForwards Optional. True, if privacy settings of the other party in the private chat allows to use tg://user?id=<user_id> links only in chats with the user
HasPrivateForwards *bool `json:"has_private_forwards,omitempty"`
// HasProtectedContent Optional. True, if messages from the chat can't be forwarded to other chats
HasProtectedContent *bool `json:"has_protected_content,omitempty"`
// HasRestrictedVoiceAndVideoMessages Optional. True, if the privacy settings of the other party restrict sending voice and video note messages in the private chat
HasRestrictedVoiceAndVideoMessages *bool `json:"has_restricted_voice_and_video_messages,omitempty"`
// HasVisibleHistory Optional. True, if new chat members will have access to old messages; available only to chat administrators
HasVisibleHistory *bool `json:"has_visible_history,omitempty"`
// Id Unique identifier for this chat. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.
Id int64 `json:"id"`
// InviteLink Optional. Primary invite link, for groups, supergroups and channel chats
InviteLink *string `json:"invite_link,omitempty"`
// IsDirectMessages Optional. True, if the chat is the direct messages chat of a channel
IsDirectMessages *bool `json:"is_direct_messages,omitempty"`
// IsForum Optional. True, if the supergroup chat is a forum (has topics enabled)
IsForum *bool `json:"is_forum,omitempty"`
// JoinByRequest Optional. True, if all users directly joining the supergroup without using an invite link need to be approved by supergroup administrators
JoinByRequest *bool `json:"join_by_request,omitempty"`
// JoinToSendMessages Optional. True, if users need to join the supergroup before they can send messages
JoinToSendMessages *bool `json:"join_to_send_messages,omitempty"`
// LastName Optional. Last name of the other party in a private chat
LastName *string `json:"last_name,omitempty"`
// LinkedChatId Optional. Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice versa; for supergroups and channel chats. This identifier may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.
LinkedChatId *int64 `json:"linked_chat_id,omitempty"`
// Location Optional. For supergroups, the location to which the supergroup is connected
Location *ChatLocation `json:"location,omitempty"`
// MaxReactionCount The maximum number of reactions that can be set on a message in the chat
MaxReactionCount int `json:"max_reaction_count"`
// MessageAutoDeleteTime Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds
MessageAutoDeleteTime *int `json:"message_auto_delete_time,omitempty"`
// PaidMessageStarCount Optional. The number of Telegram Stars a general user have to pay to send a message to the chat
PaidMessageStarCount *int `json:"paid_message_star_count,omitempty"`
// ParentChat Optional. Information about the corresponding channel chat; for direct messages chats only
ParentChat *Chat `json:"parent_chat,omitempty"`
// Permissions Optional. Default chat member permissions, for groups and supergroups
Permissions *ChatPermissions `json:"permissions,omitempty"`
// PersonalChat Optional. For private chats, the personal channel of the user
PersonalChat *Chat `json:"personal_chat,omitempty"`
// Photo Optional. Chat photo
Photo *ChatPhoto `json:"photo,omitempty"`
// PinnedMessage Optional. The most recent pinned message (by sending date)
PinnedMessage *Message `json:"pinned_message,omitempty"`
// ProfileAccentColorId Optional. Identifier of the accent color for the chat's profile background. See profile accent colors for more details.
ProfileAccentColorId *int `json:"profile_accent_color_id,omitempty"`
// ProfileBackgroundCustomEmojiId Optional. Custom emoji identifier of the emoji chosen by the chat for its profile background
ProfileBackgroundCustomEmojiId *string `json:"profile_background_custom_emoji_id,omitempty"`
// Rating Optional. For private chats, the rating of the user if any
Rating *UserRating `json:"rating,omitempty"`
// SlowModeDelay Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged user; in seconds
SlowModeDelay *int `json:"slow_mode_delay,omitempty"`
// StickerSetName Optional. For supergroups, name of the group sticker set
StickerSetName *string `json:"sticker_set_name,omitempty"`
// Title Optional. Title, for supergroups, channels and group chats
Title *string `json:"title,omitempty"`
// Type Type of the chat, can be either “private”, “group”, “supergroup” or “channel”
Type string `json:"type"`
// UniqueGiftColors Optional. The color scheme based on a unique gift that must be used for the chat's name, message replies and link previews
UniqueGiftColors *UniqueGiftColors `json:"unique_gift_colors,omitempty"`
// UnrestrictBoostCount Optional. For supergroups, the minimum number of boosts that a non-administrator user needs to add in order to ignore slow mode and chat permissions
UnrestrictBoostCount *int `json:"unrestrict_boost_count,omitempty"`
// Username Optional. Username, for private chats, supergroups and channels if available
Username *string `json:"username,omitempty"`
}
ChatFullInfo This object contains full information about a chat.
type ChatInviteLink ¶
type ChatInviteLink struct {
// CreatesJoinRequest True, if users joining the chat via the link need to be approved by chat administrators
CreatesJoinRequest bool `json:"creates_join_request"`
// Creator Creator of the link
Creator User `json:"creator"`
// ExpireDate Optional. Point in time (Unix timestamp) when the link will expire or has been expired
ExpireDate *int `json:"expire_date,omitempty"`
// InviteLink The invite link. If the link was created by another chat administrator, then the second part of the link will be replaced with “…”.
InviteLink string `json:"invite_link"`
// IsPrimary True, if the link is primary
IsPrimary bool `json:"is_primary"`
// IsRevoked True, if the link is revoked
IsRevoked bool `json:"is_revoked"`
// MemberLimit Optional. The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999
MemberLimit *int `json:"member_limit,omitempty"`
// Name Optional. Invite link name
Name *string `json:"name,omitempty"`
// PendingJoinRequestCount Optional. Number of pending join requests created using this link
PendingJoinRequestCount *int `json:"pending_join_request_count,omitempty"`
// SubscriptionPeriod Optional. The number of seconds the subscription will be active for before the next payment
SubscriptionPeriod *int `json:"subscription_period,omitempty"`
// SubscriptionPrice Optional. The amount of Telegram Stars a user must pay initially and after each subsequent subscription period to be a member of the chat using the link
SubscriptionPrice *int `json:"subscription_price,omitempty"`
}
ChatInviteLink Represents an invite link for a chat.
type ChatJoinRequest ¶
type ChatJoinRequest struct {
// Bio Optional. Bio of the user.
Bio *string `json:"bio,omitempty"`
// Chat Chat to which the request was sent
Chat Chat `json:"chat"`
// Date Date the request was sent in Unix time
Date int `json:"date"`
// From User that sent the join request
From User `json:"from"`
// InviteLink Optional. Chat invite link that was used by the user to send the join request
InviteLink *ChatInviteLink `json:"invite_link,omitempty"`
// UserChatId Identifier of a private chat with the user who sent the join request. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. The bot can use this identifier for 5 minutes to send messages until the join request is processed, assuming no other administrator contacted the user.
UserChatId int64 `json:"user_chat_id"`
}
ChatJoinRequest Represents a join request sent to a chat.
type ChatLocation ¶
type ChatLocation struct {
// Address Location address; 1-64 characters, as defined by the chat owner
Address string `json:"address"`
// Location The location to which the supergroup is connected. Can't be a live location.
Location Location `json:"location"`
}
ChatLocation Represents a location to which a chat is connected.
type ChatMember ¶
type ChatMember = map[string]interface{}
ChatMember This object contains information about one member of a chat. Currently, the following 6 types of chat members are supported: ChatMemberOwner ChatMemberAdministrator ChatMemberMember ChatMemberRestricted ChatMemberLeft ChatMemberBanned
type ChatMemberUpdated ¶
type ChatMemberUpdated struct {
// Chat Chat the user belongs to
Chat Chat `json:"chat"`
// Date Date the change was done in Unix time
Date int `json:"date"`
// From Performer of the action, which resulted in the change
From User `json:"from"`
// InviteLink Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link events only.
InviteLink *ChatInviteLink `json:"invite_link,omitempty"`
// NewChatMember New information about the chat member
NewChatMember ChatMember `json:"new_chat_member"`
// OldChatMember Previous information about the chat member
OldChatMember ChatMember `json:"old_chat_member"`
// ViaChatFolderInviteLink Optional. True, if the user joined the chat via a chat folder invite link
ViaChatFolderInviteLink *bool `json:"via_chat_folder_invite_link,omitempty"`
// ViaJoinRequest Optional. True, if the user joined the chat after sending a direct join request without using an invite link and being approved by an administrator
ViaJoinRequest *bool `json:"via_join_request,omitempty"`
}
ChatMemberUpdated This object represents changes in the status of a chat member.
type ChatPermissions ¶
type ChatPermissions struct {
// CanAddWebPagePreviews Optional. True, if the user is allowed to add web page previews to their messages
CanAddWebPagePreviews *bool `json:"can_add_web_page_previews,omitempty"`
// CanChangeInfo Optional. True, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups
CanChangeInfo *bool `json:"can_change_info,omitempty"`
// CanInviteUsers Optional. True, if the user is allowed to invite new users to the chat
CanInviteUsers *bool `json:"can_invite_users,omitempty"`
// CanManageTopics Optional. True, if the user is allowed to create forum topics. If omitted defaults to the value of can_pin_messages
CanManageTopics *bool `json:"can_manage_topics,omitempty"`
// CanPinMessages Optional. True, if the user is allowed to pin messages. Ignored in public supergroups
CanPinMessages *bool `json:"can_pin_messages,omitempty"`
// CanSendAudios Optional. True, if the user is allowed to send audios
CanSendAudios *bool `json:"can_send_audios,omitempty"`
// CanSendDocuments Optional. True, if the user is allowed to send documents
CanSendDocuments *bool `json:"can_send_documents,omitempty"`
// CanSendMessages Optional. True, if the user is allowed to send text messages, contacts, giveaways, giveaway winners, invoices, locations and venues
CanSendMessages *bool `json:"can_send_messages,omitempty"`
// CanSendOtherMessages Optional. True, if the user is allowed to send animations, games, stickers and use inline bots
CanSendOtherMessages *bool `json:"can_send_other_messages,omitempty"`
// CanSendPhotos Optional. True, if the user is allowed to send photos
CanSendPhotos *bool `json:"can_send_photos,omitempty"`
// CanSendPolls Optional. True, if the user is allowed to send polls and checklists
CanSendPolls *bool `json:"can_send_polls,omitempty"`
// CanSendVideoNotes Optional. True, if the user is allowed to send video notes
CanSendVideoNotes *bool `json:"can_send_video_notes,omitempty"`
// CanSendVideos Optional. True, if the user is allowed to send videos
CanSendVideos *bool `json:"can_send_videos,omitempty"`
// CanSendVoiceNotes Optional. True, if the user is allowed to send voice notes
CanSendVoiceNotes *bool `json:"can_send_voice_notes,omitempty"`
}
ChatPermissions Describes actions that a non-administrator user is allowed to take in a chat.
type ChatPhoto ¶
type ChatPhoto struct {
// BigFileId File identifier of big (640x640) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed.
BigFileId string `json:"big_file_id"`
// BigFileUniqueId Unique file identifier of big (640x640) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
BigFileUniqueId string `json:"big_file_unique_id"`
// SmallFileId File identifier of small (160x160) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed.
SmallFileId string `json:"small_file_id"`
// SmallFileUniqueId Unique file identifier of small (160x160) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
SmallFileUniqueId string `json:"small_file_unique_id"`
}
ChatPhoto This object represents a chat photo.
type ChatShared ¶
type ChatShared struct {
ChatId int64 `json:"chat_id"`
Photo *[]PhotoSize `json:"photo,omitempty"`
RequestId int `json:"request_id"`
Title *string `json:"title,omitempty"`
Username *string `json:"username,omitempty"`
}
ChatShared This object contains information about a chat that was shared with the bot using a KeyboardButtonRequestChat button.
type Checklist ¶
type Checklist struct {
// OthersCanAddTasks Optional. True, if users other than the creator of the list can add tasks to the list
OthersCanAddTasks *bool `json:"others_can_add_tasks,omitempty"`
// OthersCanMarkTasksAsDone Optional. True, if users other than the creator of the list can mark tasks as done or not done
OthersCanMarkTasksAsDone *bool `json:"others_can_mark_tasks_as_done,omitempty"`
// Tasks List of tasks in the checklist
Tasks []ChecklistTask `json:"tasks"`
// Title Title of the checklist
Title string `json:"title"`
// TitleEntities Optional. Special entities that appear in the checklist title
TitleEntities *[]MessageEntity `json:"title_entities,omitempty"`
}
Checklist Describes a checklist.
type ChecklistTask ¶
type ChecklistTask struct {
// CompletedByChat Optional. Chat that completed the task; omitted if the task wasn't completed by a chat
CompletedByChat *Chat `json:"completed_by_chat,omitempty"`
// CompletedByUser Optional. User that completed the task; omitted if the task wasn't completed by a user
CompletedByUser *User `json:"completed_by_user,omitempty"`
// CompletionDate Optional. Point in time (Unix timestamp) when the task was completed; 0 if the task wasn't completed
CompletionDate *int `json:"completion_date,omitempty"`
// Id Unique identifier of the task
Id int `json:"id"`
// Text Text of the task
Text string `json:"text"`
// TextEntities Optional. Special entities that appear in the task text
TextEntities *[]MessageEntity `json:"text_entities,omitempty"`
}
ChecklistTask Describes a task in a checklist.
type ChecklistTasksAdded ¶
type ChecklistTasksAdded struct {
// ChecklistMessage Optional. Message containing the checklist to which the tasks were added. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply.
ChecklistMessage *Message `json:"checklist_message,omitempty"`
// Tasks List of tasks added to the checklist
Tasks []ChecklistTask `json:"tasks"`
}
ChecklistTasksAdded Describes a service message about tasks added to a checklist.
type ChecklistTasksDone ¶
type ChecklistTasksDone struct {
// ChecklistMessage Optional. Message containing the checklist whose tasks were marked as done or not done. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply.
ChecklistMessage *Message `json:"checklist_message,omitempty"`
// MarkedAsDoneTaskIds Optional. Identifiers of the tasks that were marked as done
MarkedAsDoneTaskIds *[]int `json:"marked_as_done_task_ids,omitempty"`
// MarkedAsNotDoneTaskIds Optional. Identifiers of the tasks that were marked as not done
MarkedAsNotDoneTaskIds *[]int `json:"marked_as_not_done_task_ids,omitempty"`
}
ChecklistTasksDone Describes a service message about checklist tasks marked as done or not done.
type ChosenInlineResult ¶
type ChosenInlineResult struct {
// From The user that chose the result
From User `json:"from"`
// InlineMessageId Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message. Will be also received in callback queries and can be used to edit the message.
InlineMessageId *string `json:"inline_message_id,omitempty"`
// Location Optional. Sender location, only for bots that require user location
Location *Location `json:"location,omitempty"`
// Query The query that was used to obtain the result
Query string `json:"query"`
// ResultId The unique identifier for the result that was chosen
ResultId string `json:"result_id"`
}
ChosenInlineResult Represents a result of an inline query that was chosen by the user and sent to their chat partner.
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
Example ¶
package main
import (
"context"
"net/http"
"github.com/tgbotkit/client"
)
func main() {
serverURL, err := client.NewServerUrlTelegramBotAPIEndpointSubstituteBotTokenWithYourBotToken(
client.ServerUrlTelegramBotAPIEndpointSubstituteBotTokenWithYourBotTokenBotTokenVariable("<bot_token>"),
)
if err != nil {
return
}
c, err := client.NewClient(
serverURL,
client.WithHTTPClient(&http.Client{}),
client.WithRequestEditorFn(func(ctx context.Context, req *http.Request) error {
req.Header.Set("X-Request-Id", "example")
return nil
}),
)
if err != nil {
return
}
_ = c
}
func (*Client) AddStickerToSet ¶
func (c *Client) AddStickerToSet(ctx context.Context, body AddStickerToSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AddStickerToSetWithBody ¶
func (*Client) AnswerCallbackQuery ¶
func (c *Client) AnswerCallbackQuery(ctx context.Context, body AnswerCallbackQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AnswerCallbackQueryWithBody ¶
func (*Client) AnswerInlineQuery ¶
func (c *Client) AnswerInlineQuery(ctx context.Context, body AnswerInlineQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AnswerInlineQueryWithBody ¶
func (*Client) AnswerPreCheckoutQuery ¶
func (c *Client) AnswerPreCheckoutQuery(ctx context.Context, body AnswerPreCheckoutQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AnswerPreCheckoutQueryWithBody ¶
func (*Client) AnswerShippingQuery ¶
func (c *Client) AnswerShippingQuery(ctx context.Context, body AnswerShippingQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AnswerShippingQueryWithBody ¶
func (*Client) AnswerWebAppQuery ¶
func (c *Client) AnswerWebAppQuery(ctx context.Context, body AnswerWebAppQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AnswerWebAppQueryWithBody ¶
func (*Client) ApproveChatJoinRequest ¶
func (c *Client) ApproveChatJoinRequest(ctx context.Context, body ApproveChatJoinRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ApproveChatJoinRequestWithBody ¶
func (*Client) ApproveSuggestedPost ¶
func (c *Client) ApproveSuggestedPost(ctx context.Context, body ApproveSuggestedPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ApproveSuggestedPostWithBody ¶
func (*Client) BanChatMember ¶
func (c *Client) BanChatMember(ctx context.Context, body BanChatMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) BanChatMemberWithBody ¶
func (*Client) BanChatSenderChat ¶
func (c *Client) BanChatSenderChat(ctx context.Context, body BanChatSenderChatJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) BanChatSenderChatWithBody ¶
func (*Client) CloseForumTopic ¶
func (c *Client) CloseForumTopic(ctx context.Context, body CloseForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CloseForumTopicWithBody ¶
func (*Client) CloseGeneralForumTopic ¶
func (c *Client) CloseGeneralForumTopic(ctx context.Context, body CloseGeneralForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CloseGeneralForumTopicWithBody ¶
func (*Client) ConvertGiftToStars ¶
func (c *Client) ConvertGiftToStars(ctx context.Context, body ConvertGiftToStarsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ConvertGiftToStarsWithBody ¶
func (*Client) CopyMessage ¶
func (c *Client) CopyMessage(ctx context.Context, body CopyMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CopyMessageWithBody ¶
func (*Client) CopyMessages ¶
func (c *Client) CopyMessages(ctx context.Context, body CopyMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CopyMessagesWithBody ¶
func (*Client) CreateChatInviteLink ¶
func (c *Client) CreateChatInviteLink(ctx context.Context, body CreateChatInviteLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateChatInviteLinkWithBody ¶
func (*Client) CreateChatSubscriptionInviteLink ¶
func (c *Client) CreateChatSubscriptionInviteLink(ctx context.Context, body CreateChatSubscriptionInviteLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateChatSubscriptionInviteLinkWithBody ¶
func (*Client) CreateForumTopic ¶
func (c *Client) CreateForumTopic(ctx context.Context, body CreateForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateForumTopicWithBody ¶
func (*Client) CreateInvoiceLink ¶
func (c *Client) CreateInvoiceLink(ctx context.Context, body CreateInvoiceLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateInvoiceLinkWithBody ¶
func (*Client) CreateNewStickerSet ¶
func (c *Client) CreateNewStickerSet(ctx context.Context, body CreateNewStickerSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateNewStickerSetWithBody ¶
func (*Client) DeclineChatJoinRequest ¶
func (c *Client) DeclineChatJoinRequest(ctx context.Context, body DeclineChatJoinRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeclineChatJoinRequestWithBody ¶
func (*Client) DeclineSuggestedPost ¶
func (c *Client) DeclineSuggestedPost(ctx context.Context, body DeclineSuggestedPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeclineSuggestedPostWithBody ¶
func (*Client) DeleteBusinessMessages ¶
func (c *Client) DeleteBusinessMessages(ctx context.Context, body DeleteBusinessMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteBusinessMessagesWithBody ¶
func (*Client) DeleteChatPhoto ¶
func (c *Client) DeleteChatPhoto(ctx context.Context, body DeleteChatPhotoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteChatPhotoWithBody ¶
func (*Client) DeleteChatStickerSet ¶
func (c *Client) DeleteChatStickerSet(ctx context.Context, body DeleteChatStickerSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteChatStickerSetWithBody ¶
func (*Client) DeleteForumTopic ¶
func (c *Client) DeleteForumTopic(ctx context.Context, body DeleteForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteForumTopicWithBody ¶
func (*Client) DeleteMessage ¶
func (c *Client) DeleteMessage(ctx context.Context, body DeleteMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteMessageWithBody ¶
func (*Client) DeleteMessages ¶
func (c *Client) DeleteMessages(ctx context.Context, body DeleteMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteMessagesWithBody ¶
func (*Client) DeleteMyCommands ¶
func (c *Client) DeleteMyCommands(ctx context.Context, body DeleteMyCommandsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteMyCommandsWithBody ¶
func (*Client) DeleteStickerFromSet ¶
func (c *Client) DeleteStickerFromSet(ctx context.Context, body DeleteStickerFromSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteStickerFromSetWithBody ¶
func (*Client) DeleteStickerSet ¶
func (c *Client) DeleteStickerSet(ctx context.Context, body DeleteStickerSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteStickerSetWithBody ¶
func (*Client) DeleteStory ¶
func (c *Client) DeleteStory(ctx context.Context, body DeleteStoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteStoryWithBody ¶
func (*Client) DeleteWebhook ¶
func (c *Client) DeleteWebhook(ctx context.Context, body DeleteWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteWebhookWithBody ¶
func (*Client) EditChatInviteLink ¶
func (c *Client) EditChatInviteLink(ctx context.Context, body EditChatInviteLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EditChatInviteLinkWithBody ¶
func (*Client) EditChatSubscriptionInviteLink ¶
func (c *Client) EditChatSubscriptionInviteLink(ctx context.Context, body EditChatSubscriptionInviteLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EditChatSubscriptionInviteLinkWithBody ¶
func (*Client) EditForumTopic ¶
func (c *Client) EditForumTopic(ctx context.Context, body EditForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EditForumTopicWithBody ¶
func (*Client) EditGeneralForumTopic ¶
func (c *Client) EditGeneralForumTopic(ctx context.Context, body EditGeneralForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EditGeneralForumTopicWithBody ¶
func (*Client) EditMessageCaption ¶
func (c *Client) EditMessageCaption(ctx context.Context, body EditMessageCaptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EditMessageCaptionWithBody ¶
func (*Client) EditMessageChecklist ¶
func (c *Client) EditMessageChecklist(ctx context.Context, body EditMessageChecklistJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EditMessageChecklistWithBody ¶
func (*Client) EditMessageLiveLocation ¶
func (c *Client) EditMessageLiveLocation(ctx context.Context, body EditMessageLiveLocationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EditMessageLiveLocationWithBody ¶
func (*Client) EditMessageMedia ¶
func (c *Client) EditMessageMedia(ctx context.Context, body EditMessageMediaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EditMessageMediaWithBody ¶
func (*Client) EditMessageReplyMarkup ¶
func (c *Client) EditMessageReplyMarkup(ctx context.Context, body EditMessageReplyMarkupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EditMessageReplyMarkupWithBody ¶
func (*Client) EditMessageText ¶
func (c *Client) EditMessageText(ctx context.Context, body EditMessageTextJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EditMessageTextWithBody ¶
func (*Client) EditStory ¶
func (c *Client) EditStory(ctx context.Context, body EditStoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EditStoryWithBody ¶
func (*Client) EditUserStarSubscription ¶
func (c *Client) EditUserStarSubscription(ctx context.Context, body EditUserStarSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EditUserStarSubscriptionWithBody ¶
func (*Client) ExportChatInviteLink ¶
func (c *Client) ExportChatInviteLink(ctx context.Context, body ExportChatInviteLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ExportChatInviteLinkWithBody ¶
func (*Client) ForwardMessage ¶
func (c *Client) ForwardMessage(ctx context.Context, body ForwardMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ForwardMessageWithBody ¶
func (*Client) ForwardMessages ¶
func (c *Client) ForwardMessages(ctx context.Context, body ForwardMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ForwardMessagesWithBody ¶
func (*Client) GetAvailableGifts ¶
func (*Client) GetBusinessAccountGifts ¶
func (c *Client) GetBusinessAccountGifts(ctx context.Context, body GetBusinessAccountGiftsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetBusinessAccountGiftsWithBody ¶
func (*Client) GetBusinessAccountStarBalance ¶
func (c *Client) GetBusinessAccountStarBalance(ctx context.Context, body GetBusinessAccountStarBalanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetBusinessAccountStarBalanceWithBody ¶
func (*Client) GetBusinessConnection ¶
func (c *Client) GetBusinessConnection(ctx context.Context, body GetBusinessConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetBusinessConnectionWithBody ¶
func (*Client) GetChat ¶
func (c *Client) GetChat(ctx context.Context, body GetChatJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetChatAdministrators ¶
func (c *Client) GetChatAdministrators(ctx context.Context, body GetChatAdministratorsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetChatAdministratorsWithBody ¶
func (*Client) GetChatGifts ¶ added in v0.3.0
func (c *Client) GetChatGifts(ctx context.Context, body GetChatGiftsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetChatGiftsWithBody ¶ added in v0.3.0
func (*Client) GetChatMember ¶
func (c *Client) GetChatMember(ctx context.Context, body GetChatMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetChatMemberCount ¶
func (c *Client) GetChatMemberCount(ctx context.Context, body GetChatMemberCountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetChatMemberCountWithBody ¶
func (*Client) GetChatMemberWithBody ¶
func (*Client) GetChatMenuButton ¶
func (c *Client) GetChatMenuButton(ctx context.Context, body GetChatMenuButtonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetChatMenuButtonWithBody ¶
func (*Client) GetChatWithBody ¶
func (*Client) GetCustomEmojiStickers ¶
func (c *Client) GetCustomEmojiStickers(ctx context.Context, body GetCustomEmojiStickersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCustomEmojiStickersWithBody ¶
func (*Client) GetFile ¶
func (c *Client) GetFile(ctx context.Context, body GetFileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetFileWithBody ¶
func (*Client) GetForumTopicIconStickers ¶
func (*Client) GetGameHighScores ¶
func (c *Client) GetGameHighScores(ctx context.Context, body GetGameHighScoresJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetGameHighScoresWithBody ¶
func (*Client) GetMyCommands ¶
func (c *Client) GetMyCommands(ctx context.Context, body GetMyCommandsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetMyCommandsWithBody ¶
func (*Client) GetMyDefaultAdministratorRights ¶
func (c *Client) GetMyDefaultAdministratorRights(ctx context.Context, body GetMyDefaultAdministratorRightsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetMyDefaultAdministratorRightsWithBody ¶
func (*Client) GetMyDescription ¶
func (c *Client) GetMyDescription(ctx context.Context, body GetMyDescriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetMyDescriptionWithBody ¶
func (*Client) GetMyName ¶
func (c *Client) GetMyName(ctx context.Context, body GetMyNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetMyNameWithBody ¶
func (*Client) GetMyShortDescription ¶
func (c *Client) GetMyShortDescription(ctx context.Context, body GetMyShortDescriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetMyShortDescriptionWithBody ¶
func (*Client) GetMyStarBalance ¶
func (*Client) GetStarTransactions ¶
func (c *Client) GetStarTransactions(ctx context.Context, body GetStarTransactionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetStarTransactionsWithBody ¶
func (*Client) GetStickerSet ¶
func (c *Client) GetStickerSet(ctx context.Context, body GetStickerSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetStickerSetWithBody ¶
func (*Client) GetUpdates ¶
func (c *Client) GetUpdates(ctx context.Context, body GetUpdatesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetUpdatesWithBody ¶
func (*Client) GetUserChatBoosts ¶
func (c *Client) GetUserChatBoosts(ctx context.Context, body GetUserChatBoostsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetUserChatBoostsWithBody ¶
func (*Client) GetUserGifts ¶ added in v0.3.0
func (c *Client) GetUserGifts(ctx context.Context, body GetUserGiftsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetUserGiftsWithBody ¶ added in v0.3.0
func (*Client) GetUserProfilePhotos ¶
func (c *Client) GetUserProfilePhotos(ctx context.Context, body GetUserProfilePhotosJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetUserProfilePhotosWithBody ¶
func (*Client) GetWebhookInfo ¶
func (*Client) GiftPremiumSubscription ¶
func (c *Client) GiftPremiumSubscription(ctx context.Context, body GiftPremiumSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GiftPremiumSubscriptionWithBody ¶
func (*Client) HideGeneralForumTopic ¶
func (c *Client) HideGeneralForumTopic(ctx context.Context, body HideGeneralForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) HideGeneralForumTopicWithBody ¶
func (*Client) LeaveChat ¶
func (c *Client) LeaveChat(ctx context.Context, body LeaveChatJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) LeaveChatWithBody ¶
func (*Client) PinChatMessage ¶
func (c *Client) PinChatMessage(ctx context.Context, body PinChatMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PinChatMessageWithBody ¶
func (*Client) PostStory ¶
func (c *Client) PostStory(ctx context.Context, body PostStoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostStoryWithBody ¶
func (*Client) PromoteChatMember ¶
func (c *Client) PromoteChatMember(ctx context.Context, body PromoteChatMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PromoteChatMemberWithBody ¶
func (*Client) ReadBusinessMessage ¶
func (c *Client) ReadBusinessMessage(ctx context.Context, body ReadBusinessMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ReadBusinessMessageWithBody ¶
func (*Client) RefundStarPayment ¶
func (c *Client) RefundStarPayment(ctx context.Context, body RefundStarPaymentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RefundStarPaymentWithBody ¶
func (*Client) RemoveBusinessAccountProfilePhoto ¶
func (c *Client) RemoveBusinessAccountProfilePhoto(ctx context.Context, body RemoveBusinessAccountProfilePhotoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RemoveBusinessAccountProfilePhotoWithBody ¶
func (*Client) RemoveChatVerification ¶
func (c *Client) RemoveChatVerification(ctx context.Context, body RemoveChatVerificationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RemoveChatVerificationWithBody ¶
func (*Client) RemoveUserVerification ¶
func (c *Client) RemoveUserVerification(ctx context.Context, body RemoveUserVerificationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RemoveUserVerificationWithBody ¶
func (*Client) ReopenForumTopic ¶
func (c *Client) ReopenForumTopic(ctx context.Context, body ReopenForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ReopenForumTopicWithBody ¶
func (*Client) ReopenGeneralForumTopic ¶
func (c *Client) ReopenGeneralForumTopic(ctx context.Context, body ReopenGeneralForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ReopenGeneralForumTopicWithBody ¶
func (*Client) ReplaceStickerInSet ¶
func (c *Client) ReplaceStickerInSet(ctx context.Context, body ReplaceStickerInSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ReplaceStickerInSetWithBody ¶
func (*Client) RepostStory ¶ added in v0.3.0
func (c *Client) RepostStory(ctx context.Context, body RepostStoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RepostStoryWithBody ¶ added in v0.3.0
func (*Client) RestrictChatMember ¶
func (c *Client) RestrictChatMember(ctx context.Context, body RestrictChatMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RestrictChatMemberWithBody ¶
func (*Client) RevokeChatInviteLink ¶
func (c *Client) RevokeChatInviteLink(ctx context.Context, body RevokeChatInviteLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RevokeChatInviteLinkWithBody ¶
func (*Client) SavePreparedInlineMessage ¶
func (c *Client) SavePreparedInlineMessage(ctx context.Context, body SavePreparedInlineMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SavePreparedInlineMessageWithBody ¶
func (*Client) SendAnimation ¶
func (c *Client) SendAnimation(ctx context.Context, body SendAnimationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendAnimationWithBody ¶
func (*Client) SendAudio ¶
func (c *Client) SendAudio(ctx context.Context, body SendAudioJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendAudioWithBody ¶
func (*Client) SendChatAction ¶
func (c *Client) SendChatAction(ctx context.Context, body SendChatActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendChatActionWithBody ¶
func (*Client) SendChecklist ¶
func (c *Client) SendChecklist(ctx context.Context, body SendChecklistJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendChecklistWithBody ¶
func (*Client) SendContact ¶
func (c *Client) SendContact(ctx context.Context, body SendContactJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendContactWithBody ¶
func (*Client) SendDice ¶
func (c *Client) SendDice(ctx context.Context, body SendDiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendDiceWithBody ¶
func (*Client) SendDocument ¶
func (c *Client) SendDocument(ctx context.Context, body SendDocumentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendDocumentWithBody ¶
func (*Client) SendGame ¶
func (c *Client) SendGame(ctx context.Context, body SendGameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendGameWithBody ¶
func (*Client) SendGift ¶
func (c *Client) SendGift(ctx context.Context, body SendGiftJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendGiftWithBody ¶
func (*Client) SendInvoice ¶
func (c *Client) SendInvoice(ctx context.Context, body SendInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendInvoiceWithBody ¶
func (*Client) SendLocation ¶
func (c *Client) SendLocation(ctx context.Context, body SendLocationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendLocationWithBody ¶
func (*Client) SendMediaGroup ¶
func (c *Client) SendMediaGroup(ctx context.Context, body SendMediaGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendMediaGroupWithBody ¶
func (*Client) SendMessage ¶
func (c *Client) SendMessage(ctx context.Context, body SendMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendMessageDraft ¶ added in v0.3.0
func (c *Client) SendMessageDraft(ctx context.Context, body SendMessageDraftJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendMessageDraftWithBody ¶ added in v0.3.0
func (*Client) SendMessageWithBody ¶
func (*Client) SendPaidMedia ¶
func (c *Client) SendPaidMedia(ctx context.Context, body SendPaidMediaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendPaidMediaWithBody ¶
func (*Client) SendPhoto ¶
func (c *Client) SendPhoto(ctx context.Context, body SendPhotoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendPhotoWithBody ¶
func (*Client) SendPoll ¶
func (c *Client) SendPoll(ctx context.Context, body SendPollJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendPollWithBody ¶
func (*Client) SendSticker ¶
func (c *Client) SendSticker(ctx context.Context, body SendStickerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendStickerWithBody ¶
func (*Client) SendVenue ¶
func (c *Client) SendVenue(ctx context.Context, body SendVenueJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendVenueWithBody ¶
func (*Client) SendVideo ¶
func (c *Client) SendVideo(ctx context.Context, body SendVideoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendVideoNote ¶
func (c *Client) SendVideoNote(ctx context.Context, body SendVideoNoteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendVideoNoteWithBody ¶
func (*Client) SendVideoWithBody ¶
func (*Client) SendVoice ¶
func (c *Client) SendVoice(ctx context.Context, body SendVoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendVoiceWithBody ¶
func (*Client) SetBusinessAccountBio ¶
func (c *Client) SetBusinessAccountBio(ctx context.Context, body SetBusinessAccountBioJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetBusinessAccountBioWithBody ¶
func (*Client) SetBusinessAccountGiftSettings ¶
func (c *Client) SetBusinessAccountGiftSettings(ctx context.Context, body SetBusinessAccountGiftSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetBusinessAccountGiftSettingsWithBody ¶
func (*Client) SetBusinessAccountName ¶
func (c *Client) SetBusinessAccountName(ctx context.Context, body SetBusinessAccountNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetBusinessAccountNameWithBody ¶
func (*Client) SetBusinessAccountProfilePhoto ¶
func (c *Client) SetBusinessAccountProfilePhoto(ctx context.Context, body SetBusinessAccountProfilePhotoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetBusinessAccountProfilePhotoWithBody ¶
func (*Client) SetBusinessAccountUsername ¶
func (c *Client) SetBusinessAccountUsername(ctx context.Context, body SetBusinessAccountUsernameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetBusinessAccountUsernameWithBody ¶
func (*Client) SetChatAdministratorCustomTitle ¶
func (c *Client) SetChatAdministratorCustomTitle(ctx context.Context, body SetChatAdministratorCustomTitleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetChatAdministratorCustomTitleWithBody ¶
func (*Client) SetChatDescription ¶
func (c *Client) SetChatDescription(ctx context.Context, body SetChatDescriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetChatDescriptionWithBody ¶
func (*Client) SetChatMenuButton ¶
func (c *Client) SetChatMenuButton(ctx context.Context, body SetChatMenuButtonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetChatMenuButtonWithBody ¶
func (*Client) SetChatPermissions ¶
func (c *Client) SetChatPermissions(ctx context.Context, body SetChatPermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetChatPermissionsWithBody ¶
func (*Client) SetChatPhoto ¶
func (c *Client) SetChatPhoto(ctx context.Context, body SetChatPhotoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetChatPhotoWithBody ¶
func (*Client) SetChatStickerSet ¶
func (c *Client) SetChatStickerSet(ctx context.Context, body SetChatStickerSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetChatStickerSetWithBody ¶
func (*Client) SetChatTitle ¶
func (c *Client) SetChatTitle(ctx context.Context, body SetChatTitleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetChatTitleWithBody ¶
func (*Client) SetCustomEmojiStickerSetThumbnail ¶
func (c *Client) SetCustomEmojiStickerSetThumbnail(ctx context.Context, body SetCustomEmojiStickerSetThumbnailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetCustomEmojiStickerSetThumbnailWithBody ¶
func (*Client) SetGameScore ¶
func (c *Client) SetGameScore(ctx context.Context, body SetGameScoreJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetGameScoreWithBody ¶
func (*Client) SetMessageReaction ¶
func (c *Client) SetMessageReaction(ctx context.Context, body SetMessageReactionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetMessageReactionWithBody ¶
func (*Client) SetMyCommands ¶
func (c *Client) SetMyCommands(ctx context.Context, body SetMyCommandsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetMyCommandsWithBody ¶
func (*Client) SetMyDefaultAdministratorRights ¶
func (c *Client) SetMyDefaultAdministratorRights(ctx context.Context, body SetMyDefaultAdministratorRightsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetMyDefaultAdministratorRightsWithBody ¶
func (*Client) SetMyDescription ¶
func (c *Client) SetMyDescription(ctx context.Context, body SetMyDescriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetMyDescriptionWithBody ¶
func (*Client) SetMyName ¶
func (c *Client) SetMyName(ctx context.Context, body SetMyNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetMyNameWithBody ¶
func (*Client) SetMyShortDescription ¶
func (c *Client) SetMyShortDescription(ctx context.Context, body SetMyShortDescriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetMyShortDescriptionWithBody ¶
func (*Client) SetPassportDataErrors ¶
func (c *Client) SetPassportDataErrors(ctx context.Context, body SetPassportDataErrorsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetPassportDataErrorsWithBody ¶
func (*Client) SetStickerEmojiList ¶
func (c *Client) SetStickerEmojiList(ctx context.Context, body SetStickerEmojiListJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetStickerEmojiListWithBody ¶
func (*Client) SetStickerKeywords ¶
func (c *Client) SetStickerKeywords(ctx context.Context, body SetStickerKeywordsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetStickerKeywordsWithBody ¶
func (*Client) SetStickerMaskPosition ¶
func (c *Client) SetStickerMaskPosition(ctx context.Context, body SetStickerMaskPositionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetStickerMaskPositionWithBody ¶
func (*Client) SetStickerPositionInSet ¶
func (c *Client) SetStickerPositionInSet(ctx context.Context, body SetStickerPositionInSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetStickerPositionInSetWithBody ¶
func (*Client) SetStickerSetThumbnail ¶
func (c *Client) SetStickerSetThumbnail(ctx context.Context, body SetStickerSetThumbnailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetStickerSetThumbnailWithBody ¶
func (*Client) SetStickerSetTitle ¶
func (c *Client) SetStickerSetTitle(ctx context.Context, body SetStickerSetTitleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetStickerSetTitleWithBody ¶
func (*Client) SetUserEmojiStatus ¶
func (c *Client) SetUserEmojiStatus(ctx context.Context, body SetUserEmojiStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetUserEmojiStatusWithBody ¶
func (*Client) SetWebhook ¶
func (c *Client) SetWebhook(ctx context.Context, body SetWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetWebhookWithBody ¶
func (*Client) StopMessageLiveLocation ¶
func (c *Client) StopMessageLiveLocation(ctx context.Context, body StopMessageLiveLocationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) StopMessageLiveLocationWithBody ¶
func (*Client) StopPoll ¶
func (c *Client) StopPoll(ctx context.Context, body StopPollJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) StopPollWithBody ¶
func (*Client) TransferBusinessAccountStars ¶
func (c *Client) TransferBusinessAccountStars(ctx context.Context, body TransferBusinessAccountStarsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TransferBusinessAccountStarsWithBody ¶
func (*Client) TransferGift ¶
func (c *Client) TransferGift(ctx context.Context, body TransferGiftJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TransferGiftWithBody ¶
func (*Client) UnbanChatMember ¶
func (c *Client) UnbanChatMember(ctx context.Context, body UnbanChatMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UnbanChatMemberWithBody ¶
func (*Client) UnbanChatSenderChat ¶
func (c *Client) UnbanChatSenderChat(ctx context.Context, body UnbanChatSenderChatJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UnbanChatSenderChatWithBody ¶
func (*Client) UnhideGeneralForumTopic ¶
func (c *Client) UnhideGeneralForumTopic(ctx context.Context, body UnhideGeneralForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UnhideGeneralForumTopicWithBody ¶
func (*Client) UnpinAllChatMessages ¶
func (c *Client) UnpinAllChatMessages(ctx context.Context, body UnpinAllChatMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UnpinAllChatMessagesWithBody ¶
func (*Client) UnpinAllForumTopicMessages ¶
func (c *Client) UnpinAllForumTopicMessages(ctx context.Context, body UnpinAllForumTopicMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UnpinAllForumTopicMessagesWithBody ¶
func (*Client) UnpinAllGeneralForumTopicMessages ¶
func (c *Client) UnpinAllGeneralForumTopicMessages(ctx context.Context, body UnpinAllGeneralForumTopicMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UnpinAllGeneralForumTopicMessagesWithBody ¶
func (*Client) UnpinChatMessage ¶
func (c *Client) UnpinChatMessage(ctx context.Context, body UnpinChatMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UnpinChatMessageWithBody ¶
func (*Client) UpgradeGift ¶
func (c *Client) UpgradeGift(ctx context.Context, body UpgradeGiftJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpgradeGiftWithBody ¶
func (*Client) UploadStickerFile ¶
func (c *Client) UploadStickerFile(ctx context.Context, body UploadStickerFileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UploadStickerFileWithBody ¶
func (*Client) VerifyChat ¶
func (c *Client) VerifyChat(ctx context.Context, body VerifyChatJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) VerifyChatWithBody ¶
func (*Client) VerifyUser ¶
func (c *Client) VerifyUser(ctx context.Context, body VerifyUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// AddStickerToSetWithBody request with any body
AddStickerToSetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddStickerToSet(ctx context.Context, body AddStickerToSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AnswerCallbackQueryWithBody request with any body
AnswerCallbackQueryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AnswerCallbackQuery(ctx context.Context, body AnswerCallbackQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AnswerInlineQueryWithBody request with any body
AnswerInlineQueryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AnswerInlineQuery(ctx context.Context, body AnswerInlineQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AnswerPreCheckoutQueryWithBody request with any body
AnswerPreCheckoutQueryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AnswerPreCheckoutQuery(ctx context.Context, body AnswerPreCheckoutQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AnswerShippingQueryWithBody request with any body
AnswerShippingQueryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AnswerShippingQuery(ctx context.Context, body AnswerShippingQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AnswerWebAppQueryWithBody request with any body
AnswerWebAppQueryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AnswerWebAppQuery(ctx context.Context, body AnswerWebAppQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ApproveChatJoinRequestWithBody request with any body
ApproveChatJoinRequestWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ApproveChatJoinRequest(ctx context.Context, body ApproveChatJoinRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ApproveSuggestedPostWithBody request with any body
ApproveSuggestedPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ApproveSuggestedPost(ctx context.Context, body ApproveSuggestedPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// BanChatMemberWithBody request with any body
BanChatMemberWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
BanChatMember(ctx context.Context, body BanChatMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// BanChatSenderChatWithBody request with any body
BanChatSenderChatWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
BanChatSenderChat(ctx context.Context, body BanChatSenderChatJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// Close request
Close(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CloseForumTopicWithBody request with any body
CloseForumTopicWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CloseForumTopic(ctx context.Context, body CloseForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CloseGeneralForumTopicWithBody request with any body
CloseGeneralForumTopicWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CloseGeneralForumTopic(ctx context.Context, body CloseGeneralForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ConvertGiftToStarsWithBody request with any body
ConvertGiftToStarsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ConvertGiftToStars(ctx context.Context, body ConvertGiftToStarsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CopyMessageWithBody request with any body
CopyMessageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CopyMessage(ctx context.Context, body CopyMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CopyMessagesWithBody request with any body
CopyMessagesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CopyMessages(ctx context.Context, body CopyMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateChatInviteLinkWithBody request with any body
CreateChatInviteLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateChatInviteLink(ctx context.Context, body CreateChatInviteLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateChatSubscriptionInviteLinkWithBody request with any body
CreateChatSubscriptionInviteLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateChatSubscriptionInviteLink(ctx context.Context, body CreateChatSubscriptionInviteLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateForumTopicWithBody request with any body
CreateForumTopicWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateForumTopic(ctx context.Context, body CreateForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateInvoiceLinkWithBody request with any body
CreateInvoiceLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateInvoiceLink(ctx context.Context, body CreateInvoiceLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateNewStickerSetWithBody request with any body
CreateNewStickerSetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateNewStickerSet(ctx context.Context, body CreateNewStickerSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeclineChatJoinRequestWithBody request with any body
DeclineChatJoinRequestWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeclineChatJoinRequest(ctx context.Context, body DeclineChatJoinRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeclineSuggestedPostWithBody request with any body
DeclineSuggestedPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeclineSuggestedPost(ctx context.Context, body DeclineSuggestedPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteBusinessMessagesWithBody request with any body
DeleteBusinessMessagesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteBusinessMessages(ctx context.Context, body DeleteBusinessMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteChatPhotoWithBody request with any body
DeleteChatPhotoWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteChatPhoto(ctx context.Context, body DeleteChatPhotoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteChatStickerSetWithBody request with any body
DeleteChatStickerSetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteChatStickerSet(ctx context.Context, body DeleteChatStickerSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteForumTopicWithBody request with any body
DeleteForumTopicWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteForumTopic(ctx context.Context, body DeleteForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteMessageWithBody request with any body
DeleteMessageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteMessage(ctx context.Context, body DeleteMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteMessagesWithBody request with any body
DeleteMessagesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteMessages(ctx context.Context, body DeleteMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteMyCommandsWithBody request with any body
DeleteMyCommandsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteMyCommands(ctx context.Context, body DeleteMyCommandsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteStickerFromSetWithBody request with any body
DeleteStickerFromSetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteStickerFromSet(ctx context.Context, body DeleteStickerFromSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteStickerSetWithBody request with any body
DeleteStickerSetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteStickerSet(ctx context.Context, body DeleteStickerSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteStoryWithBody request with any body
DeleteStoryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteStory(ctx context.Context, body DeleteStoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteWebhookWithBody request with any body
DeleteWebhookWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteWebhook(ctx context.Context, body DeleteWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// EditChatInviteLinkWithBody request with any body
EditChatInviteLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
EditChatInviteLink(ctx context.Context, body EditChatInviteLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// EditChatSubscriptionInviteLinkWithBody request with any body
EditChatSubscriptionInviteLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
EditChatSubscriptionInviteLink(ctx context.Context, body EditChatSubscriptionInviteLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// EditForumTopicWithBody request with any body
EditForumTopicWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
EditForumTopic(ctx context.Context, body EditForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// EditGeneralForumTopicWithBody request with any body
EditGeneralForumTopicWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
EditGeneralForumTopic(ctx context.Context, body EditGeneralForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// EditMessageCaptionWithBody request with any body
EditMessageCaptionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
EditMessageCaption(ctx context.Context, body EditMessageCaptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// EditMessageChecklistWithBody request with any body
EditMessageChecklistWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
EditMessageChecklist(ctx context.Context, body EditMessageChecklistJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// EditMessageLiveLocationWithBody request with any body
EditMessageLiveLocationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
EditMessageLiveLocation(ctx context.Context, body EditMessageLiveLocationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// EditMessageMediaWithBody request with any body
EditMessageMediaWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
EditMessageMedia(ctx context.Context, body EditMessageMediaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// EditMessageReplyMarkupWithBody request with any body
EditMessageReplyMarkupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
EditMessageReplyMarkup(ctx context.Context, body EditMessageReplyMarkupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// EditMessageTextWithBody request with any body
EditMessageTextWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
EditMessageText(ctx context.Context, body EditMessageTextJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// EditStoryWithBody request with any body
EditStoryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
EditStory(ctx context.Context, body EditStoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// EditUserStarSubscriptionWithBody request with any body
EditUserStarSubscriptionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
EditUserStarSubscription(ctx context.Context, body EditUserStarSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExportChatInviteLinkWithBody request with any body
ExportChatInviteLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ExportChatInviteLink(ctx context.Context, body ExportChatInviteLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ForwardMessageWithBody request with any body
ForwardMessageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ForwardMessage(ctx context.Context, body ForwardMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ForwardMessagesWithBody request with any body
ForwardMessagesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ForwardMessages(ctx context.Context, body ForwardMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAvailableGifts request
GetAvailableGifts(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetBusinessAccountGiftsWithBody request with any body
GetBusinessAccountGiftsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetBusinessAccountGifts(ctx context.Context, body GetBusinessAccountGiftsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetBusinessAccountStarBalanceWithBody request with any body
GetBusinessAccountStarBalanceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetBusinessAccountStarBalance(ctx context.Context, body GetBusinessAccountStarBalanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetBusinessConnectionWithBody request with any body
GetBusinessConnectionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetBusinessConnection(ctx context.Context, body GetBusinessConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetChatWithBody request with any body
GetChatWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetChat(ctx context.Context, body GetChatJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetChatAdministratorsWithBody request with any body
GetChatAdministratorsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetChatAdministrators(ctx context.Context, body GetChatAdministratorsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetChatGiftsWithBody request with any body
GetChatGiftsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetChatGifts(ctx context.Context, body GetChatGiftsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetChatMemberWithBody request with any body
GetChatMemberWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetChatMember(ctx context.Context, body GetChatMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetChatMemberCountWithBody request with any body
GetChatMemberCountWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetChatMemberCount(ctx context.Context, body GetChatMemberCountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetChatMenuButtonWithBody request with any body
GetChatMenuButtonWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetChatMenuButton(ctx context.Context, body GetChatMenuButtonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCustomEmojiStickersWithBody request with any body
GetCustomEmojiStickersWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetCustomEmojiStickers(ctx context.Context, body GetCustomEmojiStickersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFileWithBody request with any body
GetFileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetFile(ctx context.Context, body GetFileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetForumTopicIconStickers request
GetForumTopicIconStickers(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetGameHighScoresWithBody request with any body
GetGameHighScoresWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetGameHighScores(ctx context.Context, body GetGameHighScoresJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetMe request
GetMe(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetMyCommandsWithBody request with any body
GetMyCommandsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetMyCommands(ctx context.Context, body GetMyCommandsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetMyDefaultAdministratorRightsWithBody request with any body
GetMyDefaultAdministratorRightsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetMyDefaultAdministratorRights(ctx context.Context, body GetMyDefaultAdministratorRightsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetMyDescriptionWithBody request with any body
GetMyDescriptionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetMyDescription(ctx context.Context, body GetMyDescriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetMyNameWithBody request with any body
GetMyNameWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetMyName(ctx context.Context, body GetMyNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetMyShortDescriptionWithBody request with any body
GetMyShortDescriptionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetMyShortDescription(ctx context.Context, body GetMyShortDescriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetMyStarBalance request
GetMyStarBalance(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetStarTransactionsWithBody request with any body
GetStarTransactionsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetStarTransactions(ctx context.Context, body GetStarTransactionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetStickerSetWithBody request with any body
GetStickerSetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetStickerSet(ctx context.Context, body GetStickerSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetUpdatesWithBody request with any body
GetUpdatesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetUpdates(ctx context.Context, body GetUpdatesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetUserChatBoostsWithBody request with any body
GetUserChatBoostsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetUserChatBoosts(ctx context.Context, body GetUserChatBoostsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetUserGiftsWithBody request with any body
GetUserGiftsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetUserGifts(ctx context.Context, body GetUserGiftsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetUserProfilePhotosWithBody request with any body
GetUserProfilePhotosWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GetUserProfilePhotos(ctx context.Context, body GetUserProfilePhotosJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetWebhookInfo request
GetWebhookInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GiftPremiumSubscriptionWithBody request with any body
GiftPremiumSubscriptionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
GiftPremiumSubscription(ctx context.Context, body GiftPremiumSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// HideGeneralForumTopicWithBody request with any body
HideGeneralForumTopicWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
HideGeneralForumTopic(ctx context.Context, body HideGeneralForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// LeaveChatWithBody request with any body
LeaveChatWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
LeaveChat(ctx context.Context, body LeaveChatJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// LogOut request
LogOut(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PinChatMessageWithBody request with any body
PinChatMessageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PinChatMessage(ctx context.Context, body PinChatMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostStoryWithBody request with any body
PostStoryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostStory(ctx context.Context, body PostStoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PromoteChatMemberWithBody request with any body
PromoteChatMemberWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PromoteChatMember(ctx context.Context, body PromoteChatMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReadBusinessMessageWithBody request with any body
ReadBusinessMessageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ReadBusinessMessage(ctx context.Context, body ReadBusinessMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RefundStarPaymentWithBody request with any body
RefundStarPaymentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RefundStarPayment(ctx context.Context, body RefundStarPaymentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RemoveBusinessAccountProfilePhotoWithBody request with any body
RemoveBusinessAccountProfilePhotoWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RemoveBusinessAccountProfilePhoto(ctx context.Context, body RemoveBusinessAccountProfilePhotoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RemoveChatVerificationWithBody request with any body
RemoveChatVerificationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RemoveChatVerification(ctx context.Context, body RemoveChatVerificationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RemoveUserVerificationWithBody request with any body
RemoveUserVerificationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RemoveUserVerification(ctx context.Context, body RemoveUserVerificationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReopenForumTopicWithBody request with any body
ReopenForumTopicWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ReopenForumTopic(ctx context.Context, body ReopenForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReopenGeneralForumTopicWithBody request with any body
ReopenGeneralForumTopicWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ReopenGeneralForumTopic(ctx context.Context, body ReopenGeneralForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReplaceStickerInSetWithBody request with any body
ReplaceStickerInSetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ReplaceStickerInSet(ctx context.Context, body ReplaceStickerInSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RepostStoryWithBody request with any body
RepostStoryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RepostStory(ctx context.Context, body RepostStoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RestrictChatMemberWithBody request with any body
RestrictChatMemberWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RestrictChatMember(ctx context.Context, body RestrictChatMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RevokeChatInviteLinkWithBody request with any body
RevokeChatInviteLinkWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RevokeChatInviteLink(ctx context.Context, body RevokeChatInviteLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SavePreparedInlineMessageWithBody request with any body
SavePreparedInlineMessageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SavePreparedInlineMessage(ctx context.Context, body SavePreparedInlineMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendAnimationWithBody request with any body
SendAnimationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SendAnimation(ctx context.Context, body SendAnimationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendAudioWithBody request with any body
SendAudioWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SendAudio(ctx context.Context, body SendAudioJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendChatActionWithBody request with any body
SendChatActionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SendChatAction(ctx context.Context, body SendChatActionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendChecklistWithBody request with any body
SendChecklistWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SendChecklist(ctx context.Context, body SendChecklistJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendContactWithBody request with any body
SendContactWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SendContact(ctx context.Context, body SendContactJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendDiceWithBody request with any body
SendDiceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SendDice(ctx context.Context, body SendDiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendDocumentWithBody request with any body
SendDocumentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SendDocument(ctx context.Context, body SendDocumentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendGameWithBody request with any body
SendGameWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SendGame(ctx context.Context, body SendGameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendGiftWithBody request with any body
SendGiftWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SendGift(ctx context.Context, body SendGiftJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendInvoiceWithBody request with any body
SendInvoiceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SendInvoice(ctx context.Context, body SendInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendLocationWithBody request with any body
SendLocationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SendLocation(ctx context.Context, body SendLocationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendMediaGroupWithBody request with any body
SendMediaGroupWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SendMediaGroup(ctx context.Context, body SendMediaGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendMessageWithBody request with any body
SendMessageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SendMessage(ctx context.Context, body SendMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendMessageDraftWithBody request with any body
SendMessageDraftWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SendMessageDraft(ctx context.Context, body SendMessageDraftJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendPaidMediaWithBody request with any body
SendPaidMediaWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SendPaidMedia(ctx context.Context, body SendPaidMediaJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendPhotoWithBody request with any body
SendPhotoWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SendPhoto(ctx context.Context, body SendPhotoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendPollWithBody request with any body
SendPollWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SendPoll(ctx context.Context, body SendPollJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendStickerWithBody request with any body
SendStickerWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SendSticker(ctx context.Context, body SendStickerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendVenueWithBody request with any body
SendVenueWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SendVenue(ctx context.Context, body SendVenueJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendVideoWithBody request with any body
SendVideoWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SendVideo(ctx context.Context, body SendVideoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendVideoNoteWithBody request with any body
SendVideoNoteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SendVideoNote(ctx context.Context, body SendVideoNoteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendVoiceWithBody request with any body
SendVoiceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SendVoice(ctx context.Context, body SendVoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetBusinessAccountBioWithBody request with any body
SetBusinessAccountBioWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetBusinessAccountBio(ctx context.Context, body SetBusinessAccountBioJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetBusinessAccountGiftSettingsWithBody request with any body
SetBusinessAccountGiftSettingsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetBusinessAccountGiftSettings(ctx context.Context, body SetBusinessAccountGiftSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetBusinessAccountNameWithBody request with any body
SetBusinessAccountNameWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetBusinessAccountName(ctx context.Context, body SetBusinessAccountNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetBusinessAccountProfilePhotoWithBody request with any body
SetBusinessAccountProfilePhotoWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetBusinessAccountProfilePhoto(ctx context.Context, body SetBusinessAccountProfilePhotoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetBusinessAccountUsernameWithBody request with any body
SetBusinessAccountUsernameWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetBusinessAccountUsername(ctx context.Context, body SetBusinessAccountUsernameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetChatAdministratorCustomTitleWithBody request with any body
SetChatAdministratorCustomTitleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetChatAdministratorCustomTitle(ctx context.Context, body SetChatAdministratorCustomTitleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetChatDescriptionWithBody request with any body
SetChatDescriptionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetChatDescription(ctx context.Context, body SetChatDescriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetChatMenuButtonWithBody request with any body
SetChatMenuButtonWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetChatMenuButton(ctx context.Context, body SetChatMenuButtonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetChatPermissionsWithBody request with any body
SetChatPermissionsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetChatPermissions(ctx context.Context, body SetChatPermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetChatPhotoWithBody request with any body
SetChatPhotoWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetChatPhoto(ctx context.Context, body SetChatPhotoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetChatStickerSetWithBody request with any body
SetChatStickerSetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetChatStickerSet(ctx context.Context, body SetChatStickerSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetChatTitleWithBody request with any body
SetChatTitleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetChatTitle(ctx context.Context, body SetChatTitleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetCustomEmojiStickerSetThumbnailWithBody request with any body
SetCustomEmojiStickerSetThumbnailWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetCustomEmojiStickerSetThumbnail(ctx context.Context, body SetCustomEmojiStickerSetThumbnailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetGameScoreWithBody request with any body
SetGameScoreWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetGameScore(ctx context.Context, body SetGameScoreJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetMessageReactionWithBody request with any body
SetMessageReactionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetMessageReaction(ctx context.Context, body SetMessageReactionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetMyCommandsWithBody request with any body
SetMyCommandsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetMyCommands(ctx context.Context, body SetMyCommandsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetMyDefaultAdministratorRightsWithBody request with any body
SetMyDefaultAdministratorRightsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetMyDefaultAdministratorRights(ctx context.Context, body SetMyDefaultAdministratorRightsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetMyDescriptionWithBody request with any body
SetMyDescriptionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetMyDescription(ctx context.Context, body SetMyDescriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetMyNameWithBody request with any body
SetMyNameWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetMyName(ctx context.Context, body SetMyNameJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetMyShortDescriptionWithBody request with any body
SetMyShortDescriptionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetMyShortDescription(ctx context.Context, body SetMyShortDescriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetPassportDataErrorsWithBody request with any body
SetPassportDataErrorsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetPassportDataErrors(ctx context.Context, body SetPassportDataErrorsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetStickerEmojiListWithBody request with any body
SetStickerEmojiListWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetStickerEmojiList(ctx context.Context, body SetStickerEmojiListJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetStickerKeywordsWithBody request with any body
SetStickerKeywordsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetStickerKeywords(ctx context.Context, body SetStickerKeywordsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetStickerMaskPositionWithBody request with any body
SetStickerMaskPositionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetStickerMaskPosition(ctx context.Context, body SetStickerMaskPositionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetStickerPositionInSetWithBody request with any body
SetStickerPositionInSetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetStickerPositionInSet(ctx context.Context, body SetStickerPositionInSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetStickerSetThumbnailWithBody request with any body
SetStickerSetThumbnailWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetStickerSetThumbnail(ctx context.Context, body SetStickerSetThumbnailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetStickerSetTitleWithBody request with any body
SetStickerSetTitleWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetStickerSetTitle(ctx context.Context, body SetStickerSetTitleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetUserEmojiStatusWithBody request with any body
SetUserEmojiStatusWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetUserEmojiStatus(ctx context.Context, body SetUserEmojiStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetWebhookWithBody request with any body
SetWebhookWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetWebhook(ctx context.Context, body SetWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// StopMessageLiveLocationWithBody request with any body
StopMessageLiveLocationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
StopMessageLiveLocation(ctx context.Context, body StopMessageLiveLocationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// StopPollWithBody request with any body
StopPollWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
StopPoll(ctx context.Context, body StopPollJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// TransferBusinessAccountStarsWithBody request with any body
TransferBusinessAccountStarsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
TransferBusinessAccountStars(ctx context.Context, body TransferBusinessAccountStarsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// TransferGiftWithBody request with any body
TransferGiftWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
TransferGift(ctx context.Context, body TransferGiftJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UnbanChatMemberWithBody request with any body
UnbanChatMemberWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UnbanChatMember(ctx context.Context, body UnbanChatMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UnbanChatSenderChatWithBody request with any body
UnbanChatSenderChatWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UnbanChatSenderChat(ctx context.Context, body UnbanChatSenderChatJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UnhideGeneralForumTopicWithBody request with any body
UnhideGeneralForumTopicWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UnhideGeneralForumTopic(ctx context.Context, body UnhideGeneralForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UnpinAllChatMessagesWithBody request with any body
UnpinAllChatMessagesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UnpinAllChatMessages(ctx context.Context, body UnpinAllChatMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UnpinAllForumTopicMessagesWithBody request with any body
UnpinAllForumTopicMessagesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UnpinAllForumTopicMessages(ctx context.Context, body UnpinAllForumTopicMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UnpinAllGeneralForumTopicMessagesWithBody request with any body
UnpinAllGeneralForumTopicMessagesWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UnpinAllGeneralForumTopicMessages(ctx context.Context, body UnpinAllGeneralForumTopicMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UnpinChatMessageWithBody request with any body
UnpinChatMessageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UnpinChatMessage(ctx context.Context, body UnpinChatMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpgradeGiftWithBody request with any body
UpgradeGiftWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpgradeGift(ctx context.Context, body UpgradeGiftJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UploadStickerFileWithBody request with any body
UploadStickerFileWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UploadStickerFile(ctx context.Context, body UploadStickerFileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// VerifyChatWithBody request with any body
VerifyChatWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
VerifyChat(ctx context.Context, body VerifyChatJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// VerifyUserWithBody request with any body
VerifyUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
VerifyUser(ctx context.Context, body VerifyUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) AddStickerToSetWithBodyWithResponse ¶
func (c *ClientWithResponses) AddStickerToSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddStickerToSetResponse, error)
AddStickerToSetWithBodyWithResponse request with arbitrary body returning *AddStickerToSetResponse
func (*ClientWithResponses) AddStickerToSetWithResponse ¶
func (c *ClientWithResponses) AddStickerToSetWithResponse(ctx context.Context, body AddStickerToSetJSONRequestBody, reqEditors ...RequestEditorFn) (*AddStickerToSetResponse, error)
func (*ClientWithResponses) AnswerCallbackQueryWithBodyWithResponse ¶
func (c *ClientWithResponses) AnswerCallbackQueryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AnswerCallbackQueryResponse, error)
AnswerCallbackQueryWithBodyWithResponse request with arbitrary body returning *AnswerCallbackQueryResponse
func (*ClientWithResponses) AnswerCallbackQueryWithResponse ¶
func (c *ClientWithResponses) AnswerCallbackQueryWithResponse(ctx context.Context, body AnswerCallbackQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*AnswerCallbackQueryResponse, error)
func (*ClientWithResponses) AnswerInlineQueryWithBodyWithResponse ¶
func (c *ClientWithResponses) AnswerInlineQueryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AnswerInlineQueryResponse, error)
AnswerInlineQueryWithBodyWithResponse request with arbitrary body returning *AnswerInlineQueryResponse
func (*ClientWithResponses) AnswerInlineQueryWithResponse ¶
func (c *ClientWithResponses) AnswerInlineQueryWithResponse(ctx context.Context, body AnswerInlineQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*AnswerInlineQueryResponse, error)
func (*ClientWithResponses) AnswerPreCheckoutQueryWithBodyWithResponse ¶
func (c *ClientWithResponses) AnswerPreCheckoutQueryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AnswerPreCheckoutQueryResponse, error)
AnswerPreCheckoutQueryWithBodyWithResponse request with arbitrary body returning *AnswerPreCheckoutQueryResponse
func (*ClientWithResponses) AnswerPreCheckoutQueryWithResponse ¶
func (c *ClientWithResponses) AnswerPreCheckoutQueryWithResponse(ctx context.Context, body AnswerPreCheckoutQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*AnswerPreCheckoutQueryResponse, error)
func (*ClientWithResponses) AnswerShippingQueryWithBodyWithResponse ¶
func (c *ClientWithResponses) AnswerShippingQueryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AnswerShippingQueryResponse, error)
AnswerShippingQueryWithBodyWithResponse request with arbitrary body returning *AnswerShippingQueryResponse
func (*ClientWithResponses) AnswerShippingQueryWithResponse ¶
func (c *ClientWithResponses) AnswerShippingQueryWithResponse(ctx context.Context, body AnswerShippingQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*AnswerShippingQueryResponse, error)
func (*ClientWithResponses) AnswerWebAppQueryWithBodyWithResponse ¶
func (c *ClientWithResponses) AnswerWebAppQueryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AnswerWebAppQueryResponse, error)
AnswerWebAppQueryWithBodyWithResponse request with arbitrary body returning *AnswerWebAppQueryResponse
func (*ClientWithResponses) AnswerWebAppQueryWithResponse ¶
func (c *ClientWithResponses) AnswerWebAppQueryWithResponse(ctx context.Context, body AnswerWebAppQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*AnswerWebAppQueryResponse, error)
func (*ClientWithResponses) ApproveChatJoinRequestWithBodyWithResponse ¶
func (c *ClientWithResponses) ApproveChatJoinRequestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApproveChatJoinRequestResponse, error)
ApproveChatJoinRequestWithBodyWithResponse request with arbitrary body returning *ApproveChatJoinRequestResponse
func (*ClientWithResponses) ApproveChatJoinRequestWithResponse ¶
func (c *ClientWithResponses) ApproveChatJoinRequestWithResponse(ctx context.Context, body ApproveChatJoinRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*ApproveChatJoinRequestResponse, error)
func (*ClientWithResponses) ApproveSuggestedPostWithBodyWithResponse ¶
func (c *ClientWithResponses) ApproveSuggestedPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApproveSuggestedPostResponse, error)
ApproveSuggestedPostWithBodyWithResponse request with arbitrary body returning *ApproveSuggestedPostResponse
func (*ClientWithResponses) ApproveSuggestedPostWithResponse ¶
func (c *ClientWithResponses) ApproveSuggestedPostWithResponse(ctx context.Context, body ApproveSuggestedPostJSONRequestBody, reqEditors ...RequestEditorFn) (*ApproveSuggestedPostResponse, error)
func (*ClientWithResponses) BanChatMemberWithBodyWithResponse ¶
func (c *ClientWithResponses) BanChatMemberWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BanChatMemberResponse, error)
BanChatMemberWithBodyWithResponse request with arbitrary body returning *BanChatMemberResponse
func (*ClientWithResponses) BanChatMemberWithResponse ¶
func (c *ClientWithResponses) BanChatMemberWithResponse(ctx context.Context, body BanChatMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*BanChatMemberResponse, error)
func (*ClientWithResponses) BanChatSenderChatWithBodyWithResponse ¶
func (c *ClientWithResponses) BanChatSenderChatWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BanChatSenderChatResponse, error)
BanChatSenderChatWithBodyWithResponse request with arbitrary body returning *BanChatSenderChatResponse
func (*ClientWithResponses) BanChatSenderChatWithResponse ¶
func (c *ClientWithResponses) BanChatSenderChatWithResponse(ctx context.Context, body BanChatSenderChatJSONRequestBody, reqEditors ...RequestEditorFn) (*BanChatSenderChatResponse, error)
func (*ClientWithResponses) CloseForumTopicWithBodyWithResponse ¶
func (c *ClientWithResponses) CloseForumTopicWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CloseForumTopicResponse, error)
CloseForumTopicWithBodyWithResponse request with arbitrary body returning *CloseForumTopicResponse
func (*ClientWithResponses) CloseForumTopicWithResponse ¶
func (c *ClientWithResponses) CloseForumTopicWithResponse(ctx context.Context, body CloseForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*CloseForumTopicResponse, error)
func (*ClientWithResponses) CloseGeneralForumTopicWithBodyWithResponse ¶
func (c *ClientWithResponses) CloseGeneralForumTopicWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CloseGeneralForumTopicResponse, error)
CloseGeneralForumTopicWithBodyWithResponse request with arbitrary body returning *CloseGeneralForumTopicResponse
func (*ClientWithResponses) CloseGeneralForumTopicWithResponse ¶
func (c *ClientWithResponses) CloseGeneralForumTopicWithResponse(ctx context.Context, body CloseGeneralForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*CloseGeneralForumTopicResponse, error)
func (*ClientWithResponses) CloseWithResponse ¶
func (c *ClientWithResponses) CloseWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CloseResponse, error)
CloseWithResponse request returning *CloseResponse
func (*ClientWithResponses) ConvertGiftToStarsWithBodyWithResponse ¶
func (c *ClientWithResponses) ConvertGiftToStarsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConvertGiftToStarsResponse, error)
ConvertGiftToStarsWithBodyWithResponse request with arbitrary body returning *ConvertGiftToStarsResponse
func (*ClientWithResponses) ConvertGiftToStarsWithResponse ¶
func (c *ClientWithResponses) ConvertGiftToStarsWithResponse(ctx context.Context, body ConvertGiftToStarsJSONRequestBody, reqEditors ...RequestEditorFn) (*ConvertGiftToStarsResponse, error)
func (*ClientWithResponses) CopyMessageWithBodyWithResponse ¶
func (c *ClientWithResponses) CopyMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CopyMessageResponse, error)
CopyMessageWithBodyWithResponse request with arbitrary body returning *CopyMessageResponse
func (*ClientWithResponses) CopyMessageWithResponse ¶
func (c *ClientWithResponses) CopyMessageWithResponse(ctx context.Context, body CopyMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*CopyMessageResponse, error)
func (*ClientWithResponses) CopyMessagesWithBodyWithResponse ¶
func (c *ClientWithResponses) CopyMessagesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CopyMessagesResponse, error)
CopyMessagesWithBodyWithResponse request with arbitrary body returning *CopyMessagesResponse
func (*ClientWithResponses) CopyMessagesWithResponse ¶
func (c *ClientWithResponses) CopyMessagesWithResponse(ctx context.Context, body CopyMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*CopyMessagesResponse, error)
func (*ClientWithResponses) CreateChatInviteLinkWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateChatInviteLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateChatInviteLinkResponse, error)
CreateChatInviteLinkWithBodyWithResponse request with arbitrary body returning *CreateChatInviteLinkResponse
func (*ClientWithResponses) CreateChatInviteLinkWithResponse ¶
func (c *ClientWithResponses) CreateChatInviteLinkWithResponse(ctx context.Context, body CreateChatInviteLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateChatInviteLinkResponse, error)
func (*ClientWithResponses) CreateChatSubscriptionInviteLinkWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateChatSubscriptionInviteLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateChatSubscriptionInviteLinkResponse, error)
CreateChatSubscriptionInviteLinkWithBodyWithResponse request with arbitrary body returning *CreateChatSubscriptionInviteLinkResponse
func (*ClientWithResponses) CreateChatSubscriptionInviteLinkWithResponse ¶
func (c *ClientWithResponses) CreateChatSubscriptionInviteLinkWithResponse(ctx context.Context, body CreateChatSubscriptionInviteLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateChatSubscriptionInviteLinkResponse, error)
func (*ClientWithResponses) CreateForumTopicWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateForumTopicWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateForumTopicResponse, error)
CreateForumTopicWithBodyWithResponse request with arbitrary body returning *CreateForumTopicResponse
func (*ClientWithResponses) CreateForumTopicWithResponse ¶
func (c *ClientWithResponses) CreateForumTopicWithResponse(ctx context.Context, body CreateForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateForumTopicResponse, error)
func (*ClientWithResponses) CreateInvoiceLinkWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateInvoiceLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInvoiceLinkResponse, error)
CreateInvoiceLinkWithBodyWithResponse request with arbitrary body returning *CreateInvoiceLinkResponse
func (*ClientWithResponses) CreateInvoiceLinkWithResponse ¶
func (c *ClientWithResponses) CreateInvoiceLinkWithResponse(ctx context.Context, body CreateInvoiceLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInvoiceLinkResponse, error)
func (*ClientWithResponses) CreateNewStickerSetWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateNewStickerSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNewStickerSetResponse, error)
CreateNewStickerSetWithBodyWithResponse request with arbitrary body returning *CreateNewStickerSetResponse
func (*ClientWithResponses) CreateNewStickerSetWithResponse ¶
func (c *ClientWithResponses) CreateNewStickerSetWithResponse(ctx context.Context, body CreateNewStickerSetJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNewStickerSetResponse, error)
func (*ClientWithResponses) DeclineChatJoinRequestWithBodyWithResponse ¶
func (c *ClientWithResponses) DeclineChatJoinRequestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeclineChatJoinRequestResponse, error)
DeclineChatJoinRequestWithBodyWithResponse request with arbitrary body returning *DeclineChatJoinRequestResponse
func (*ClientWithResponses) DeclineChatJoinRequestWithResponse ¶
func (c *ClientWithResponses) DeclineChatJoinRequestWithResponse(ctx context.Context, body DeclineChatJoinRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*DeclineChatJoinRequestResponse, error)
func (*ClientWithResponses) DeclineSuggestedPostWithBodyWithResponse ¶
func (c *ClientWithResponses) DeclineSuggestedPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeclineSuggestedPostResponse, error)
DeclineSuggestedPostWithBodyWithResponse request with arbitrary body returning *DeclineSuggestedPostResponse
func (*ClientWithResponses) DeclineSuggestedPostWithResponse ¶
func (c *ClientWithResponses) DeclineSuggestedPostWithResponse(ctx context.Context, body DeclineSuggestedPostJSONRequestBody, reqEditors ...RequestEditorFn) (*DeclineSuggestedPostResponse, error)
func (*ClientWithResponses) DeleteBusinessMessagesWithBodyWithResponse ¶
func (c *ClientWithResponses) DeleteBusinessMessagesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteBusinessMessagesResponse, error)
DeleteBusinessMessagesWithBodyWithResponse request with arbitrary body returning *DeleteBusinessMessagesResponse
func (*ClientWithResponses) DeleteBusinessMessagesWithResponse ¶
func (c *ClientWithResponses) DeleteBusinessMessagesWithResponse(ctx context.Context, body DeleteBusinessMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteBusinessMessagesResponse, error)
func (*ClientWithResponses) DeleteChatPhotoWithBodyWithResponse ¶
func (c *ClientWithResponses) DeleteChatPhotoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteChatPhotoResponse, error)
DeleteChatPhotoWithBodyWithResponse request with arbitrary body returning *DeleteChatPhotoResponse
func (*ClientWithResponses) DeleteChatPhotoWithResponse ¶
func (c *ClientWithResponses) DeleteChatPhotoWithResponse(ctx context.Context, body DeleteChatPhotoJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteChatPhotoResponse, error)
func (*ClientWithResponses) DeleteChatStickerSetWithBodyWithResponse ¶
func (c *ClientWithResponses) DeleteChatStickerSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteChatStickerSetResponse, error)
DeleteChatStickerSetWithBodyWithResponse request with arbitrary body returning *DeleteChatStickerSetResponse
func (*ClientWithResponses) DeleteChatStickerSetWithResponse ¶
func (c *ClientWithResponses) DeleteChatStickerSetWithResponse(ctx context.Context, body DeleteChatStickerSetJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteChatStickerSetResponse, error)
func (*ClientWithResponses) DeleteForumTopicWithBodyWithResponse ¶
func (c *ClientWithResponses) DeleteForumTopicWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteForumTopicResponse, error)
DeleteForumTopicWithBodyWithResponse request with arbitrary body returning *DeleteForumTopicResponse
func (*ClientWithResponses) DeleteForumTopicWithResponse ¶
func (c *ClientWithResponses) DeleteForumTopicWithResponse(ctx context.Context, body DeleteForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteForumTopicResponse, error)
func (*ClientWithResponses) DeleteMessageWithBodyWithResponse ¶
func (c *ClientWithResponses) DeleteMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteMessageResponse, error)
DeleteMessageWithBodyWithResponse request with arbitrary body returning *DeleteMessageResponse
func (*ClientWithResponses) DeleteMessageWithResponse ¶
func (c *ClientWithResponses) DeleteMessageWithResponse(ctx context.Context, body DeleteMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteMessageResponse, error)
func (*ClientWithResponses) DeleteMessagesWithBodyWithResponse ¶
func (c *ClientWithResponses) DeleteMessagesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteMessagesResponse, error)
DeleteMessagesWithBodyWithResponse request with arbitrary body returning *DeleteMessagesResponse
func (*ClientWithResponses) DeleteMessagesWithResponse ¶
func (c *ClientWithResponses) DeleteMessagesWithResponse(ctx context.Context, body DeleteMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteMessagesResponse, error)
func (*ClientWithResponses) DeleteMyCommandsWithBodyWithResponse ¶
func (c *ClientWithResponses) DeleteMyCommandsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteMyCommandsResponse, error)
DeleteMyCommandsWithBodyWithResponse request with arbitrary body returning *DeleteMyCommandsResponse
func (*ClientWithResponses) DeleteMyCommandsWithResponse ¶
func (c *ClientWithResponses) DeleteMyCommandsWithResponse(ctx context.Context, body DeleteMyCommandsJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteMyCommandsResponse, error)
func (*ClientWithResponses) DeleteStickerFromSetWithBodyWithResponse ¶
func (c *ClientWithResponses) DeleteStickerFromSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteStickerFromSetResponse, error)
DeleteStickerFromSetWithBodyWithResponse request with arbitrary body returning *DeleteStickerFromSetResponse
func (*ClientWithResponses) DeleteStickerFromSetWithResponse ¶
func (c *ClientWithResponses) DeleteStickerFromSetWithResponse(ctx context.Context, body DeleteStickerFromSetJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteStickerFromSetResponse, error)
func (*ClientWithResponses) DeleteStickerSetWithBodyWithResponse ¶
func (c *ClientWithResponses) DeleteStickerSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteStickerSetResponse, error)
DeleteStickerSetWithBodyWithResponse request with arbitrary body returning *DeleteStickerSetResponse
func (*ClientWithResponses) DeleteStickerSetWithResponse ¶
func (c *ClientWithResponses) DeleteStickerSetWithResponse(ctx context.Context, body DeleteStickerSetJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteStickerSetResponse, error)
func (*ClientWithResponses) DeleteStoryWithBodyWithResponse ¶
func (c *ClientWithResponses) DeleteStoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteStoryResponse, error)
DeleteStoryWithBodyWithResponse request with arbitrary body returning *DeleteStoryResponse
func (*ClientWithResponses) DeleteStoryWithResponse ¶
func (c *ClientWithResponses) DeleteStoryWithResponse(ctx context.Context, body DeleteStoryJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteStoryResponse, error)
func (*ClientWithResponses) DeleteWebhookWithBodyWithResponse ¶
func (c *ClientWithResponses) DeleteWebhookWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteWebhookResponse, error)
DeleteWebhookWithBodyWithResponse request with arbitrary body returning *DeleteWebhookResponse
func (*ClientWithResponses) DeleteWebhookWithResponse ¶
func (c *ClientWithResponses) DeleteWebhookWithResponse(ctx context.Context, body DeleteWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteWebhookResponse, error)
func (*ClientWithResponses) EditChatInviteLinkWithBodyWithResponse ¶
func (c *ClientWithResponses) EditChatInviteLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditChatInviteLinkResponse, error)
EditChatInviteLinkWithBodyWithResponse request with arbitrary body returning *EditChatInviteLinkResponse
func (*ClientWithResponses) EditChatInviteLinkWithResponse ¶
func (c *ClientWithResponses) EditChatInviteLinkWithResponse(ctx context.Context, body EditChatInviteLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*EditChatInviteLinkResponse, error)
func (*ClientWithResponses) EditChatSubscriptionInviteLinkWithBodyWithResponse ¶
func (c *ClientWithResponses) EditChatSubscriptionInviteLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditChatSubscriptionInviteLinkResponse, error)
EditChatSubscriptionInviteLinkWithBodyWithResponse request with arbitrary body returning *EditChatSubscriptionInviteLinkResponse
func (*ClientWithResponses) EditChatSubscriptionInviteLinkWithResponse ¶
func (c *ClientWithResponses) EditChatSubscriptionInviteLinkWithResponse(ctx context.Context, body EditChatSubscriptionInviteLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*EditChatSubscriptionInviteLinkResponse, error)
func (*ClientWithResponses) EditForumTopicWithBodyWithResponse ¶
func (c *ClientWithResponses) EditForumTopicWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditForumTopicResponse, error)
EditForumTopicWithBodyWithResponse request with arbitrary body returning *EditForumTopicResponse
func (*ClientWithResponses) EditForumTopicWithResponse ¶
func (c *ClientWithResponses) EditForumTopicWithResponse(ctx context.Context, body EditForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*EditForumTopicResponse, error)
func (*ClientWithResponses) EditGeneralForumTopicWithBodyWithResponse ¶
func (c *ClientWithResponses) EditGeneralForumTopicWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditGeneralForumTopicResponse, error)
EditGeneralForumTopicWithBodyWithResponse request with arbitrary body returning *EditGeneralForumTopicResponse
func (*ClientWithResponses) EditGeneralForumTopicWithResponse ¶
func (c *ClientWithResponses) EditGeneralForumTopicWithResponse(ctx context.Context, body EditGeneralForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*EditGeneralForumTopicResponse, error)
func (*ClientWithResponses) EditMessageCaptionWithBodyWithResponse ¶
func (c *ClientWithResponses) EditMessageCaptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditMessageCaptionResponse, error)
EditMessageCaptionWithBodyWithResponse request with arbitrary body returning *EditMessageCaptionResponse
func (*ClientWithResponses) EditMessageCaptionWithResponse ¶
func (c *ClientWithResponses) EditMessageCaptionWithResponse(ctx context.Context, body EditMessageCaptionJSONRequestBody, reqEditors ...RequestEditorFn) (*EditMessageCaptionResponse, error)
func (*ClientWithResponses) EditMessageChecklistWithBodyWithResponse ¶
func (c *ClientWithResponses) EditMessageChecklistWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditMessageChecklistResponse, error)
EditMessageChecklistWithBodyWithResponse request with arbitrary body returning *EditMessageChecklistResponse
func (*ClientWithResponses) EditMessageChecklistWithResponse ¶
func (c *ClientWithResponses) EditMessageChecklistWithResponse(ctx context.Context, body EditMessageChecklistJSONRequestBody, reqEditors ...RequestEditorFn) (*EditMessageChecklistResponse, error)
func (*ClientWithResponses) EditMessageLiveLocationWithBodyWithResponse ¶
func (c *ClientWithResponses) EditMessageLiveLocationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditMessageLiveLocationResponse, error)
EditMessageLiveLocationWithBodyWithResponse request with arbitrary body returning *EditMessageLiveLocationResponse
func (*ClientWithResponses) EditMessageLiveLocationWithResponse ¶
func (c *ClientWithResponses) EditMessageLiveLocationWithResponse(ctx context.Context, body EditMessageLiveLocationJSONRequestBody, reqEditors ...RequestEditorFn) (*EditMessageLiveLocationResponse, error)
func (*ClientWithResponses) EditMessageMediaWithBodyWithResponse ¶
func (c *ClientWithResponses) EditMessageMediaWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditMessageMediaResponse, error)
EditMessageMediaWithBodyWithResponse request with arbitrary body returning *EditMessageMediaResponse
func (*ClientWithResponses) EditMessageMediaWithResponse ¶
func (c *ClientWithResponses) EditMessageMediaWithResponse(ctx context.Context, body EditMessageMediaJSONRequestBody, reqEditors ...RequestEditorFn) (*EditMessageMediaResponse, error)
func (*ClientWithResponses) EditMessageReplyMarkupWithBodyWithResponse ¶
func (c *ClientWithResponses) EditMessageReplyMarkupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditMessageReplyMarkupResponse, error)
EditMessageReplyMarkupWithBodyWithResponse request with arbitrary body returning *EditMessageReplyMarkupResponse
func (*ClientWithResponses) EditMessageReplyMarkupWithResponse ¶
func (c *ClientWithResponses) EditMessageReplyMarkupWithResponse(ctx context.Context, body EditMessageReplyMarkupJSONRequestBody, reqEditors ...RequestEditorFn) (*EditMessageReplyMarkupResponse, error)
func (*ClientWithResponses) EditMessageTextWithBodyWithResponse ¶
func (c *ClientWithResponses) EditMessageTextWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditMessageTextResponse, error)
EditMessageTextWithBodyWithResponse request with arbitrary body returning *EditMessageTextResponse
func (*ClientWithResponses) EditMessageTextWithResponse ¶
func (c *ClientWithResponses) EditMessageTextWithResponse(ctx context.Context, body EditMessageTextJSONRequestBody, reqEditors ...RequestEditorFn) (*EditMessageTextResponse, error)
func (*ClientWithResponses) EditStoryWithBodyWithResponse ¶
func (c *ClientWithResponses) EditStoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditStoryResponse, error)
EditStoryWithBodyWithResponse request with arbitrary body returning *EditStoryResponse
func (*ClientWithResponses) EditStoryWithResponse ¶
func (c *ClientWithResponses) EditStoryWithResponse(ctx context.Context, body EditStoryJSONRequestBody, reqEditors ...RequestEditorFn) (*EditStoryResponse, error)
func (*ClientWithResponses) EditUserStarSubscriptionWithBodyWithResponse ¶
func (c *ClientWithResponses) EditUserStarSubscriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditUserStarSubscriptionResponse, error)
EditUserStarSubscriptionWithBodyWithResponse request with arbitrary body returning *EditUserStarSubscriptionResponse
func (*ClientWithResponses) EditUserStarSubscriptionWithResponse ¶
func (c *ClientWithResponses) EditUserStarSubscriptionWithResponse(ctx context.Context, body EditUserStarSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*EditUserStarSubscriptionResponse, error)
func (*ClientWithResponses) ExportChatInviteLinkWithBodyWithResponse ¶
func (c *ClientWithResponses) ExportChatInviteLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExportChatInviteLinkResponse, error)
ExportChatInviteLinkWithBodyWithResponse request with arbitrary body returning *ExportChatInviteLinkResponse
func (*ClientWithResponses) ExportChatInviteLinkWithResponse ¶
func (c *ClientWithResponses) ExportChatInviteLinkWithResponse(ctx context.Context, body ExportChatInviteLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*ExportChatInviteLinkResponse, error)
func (*ClientWithResponses) ForwardMessageWithBodyWithResponse ¶
func (c *ClientWithResponses) ForwardMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ForwardMessageResponse, error)
ForwardMessageWithBodyWithResponse request with arbitrary body returning *ForwardMessageResponse
func (*ClientWithResponses) ForwardMessageWithResponse ¶
func (c *ClientWithResponses) ForwardMessageWithResponse(ctx context.Context, body ForwardMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*ForwardMessageResponse, error)
func (*ClientWithResponses) ForwardMessagesWithBodyWithResponse ¶
func (c *ClientWithResponses) ForwardMessagesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ForwardMessagesResponse, error)
ForwardMessagesWithBodyWithResponse request with arbitrary body returning *ForwardMessagesResponse
func (*ClientWithResponses) ForwardMessagesWithResponse ¶
func (c *ClientWithResponses) ForwardMessagesWithResponse(ctx context.Context, body ForwardMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*ForwardMessagesResponse, error)
func (*ClientWithResponses) GetAvailableGiftsWithResponse ¶
func (c *ClientWithResponses) GetAvailableGiftsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAvailableGiftsResponse, error)
GetAvailableGiftsWithResponse request returning *GetAvailableGiftsResponse
func (*ClientWithResponses) GetBusinessAccountGiftsWithBodyWithResponse ¶
func (c *ClientWithResponses) GetBusinessAccountGiftsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetBusinessAccountGiftsResponse, error)
GetBusinessAccountGiftsWithBodyWithResponse request with arbitrary body returning *GetBusinessAccountGiftsResponse
func (*ClientWithResponses) GetBusinessAccountGiftsWithResponse ¶
func (c *ClientWithResponses) GetBusinessAccountGiftsWithResponse(ctx context.Context, body GetBusinessAccountGiftsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetBusinessAccountGiftsResponse, error)
func (*ClientWithResponses) GetBusinessAccountStarBalanceWithBodyWithResponse ¶
func (c *ClientWithResponses) GetBusinessAccountStarBalanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetBusinessAccountStarBalanceResponse, error)
GetBusinessAccountStarBalanceWithBodyWithResponse request with arbitrary body returning *GetBusinessAccountStarBalanceResponse
func (*ClientWithResponses) GetBusinessAccountStarBalanceWithResponse ¶
func (c *ClientWithResponses) GetBusinessAccountStarBalanceWithResponse(ctx context.Context, body GetBusinessAccountStarBalanceJSONRequestBody, reqEditors ...RequestEditorFn) (*GetBusinessAccountStarBalanceResponse, error)
func (*ClientWithResponses) GetBusinessConnectionWithBodyWithResponse ¶
func (c *ClientWithResponses) GetBusinessConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetBusinessConnectionResponse, error)
GetBusinessConnectionWithBodyWithResponse request with arbitrary body returning *GetBusinessConnectionResponse
func (*ClientWithResponses) GetBusinessConnectionWithResponse ¶
func (c *ClientWithResponses) GetBusinessConnectionWithResponse(ctx context.Context, body GetBusinessConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*GetBusinessConnectionResponse, error)
func (*ClientWithResponses) GetChatAdministratorsWithBodyWithResponse ¶
func (c *ClientWithResponses) GetChatAdministratorsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetChatAdministratorsResponse, error)
GetChatAdministratorsWithBodyWithResponse request with arbitrary body returning *GetChatAdministratorsResponse
func (*ClientWithResponses) GetChatAdministratorsWithResponse ¶
func (c *ClientWithResponses) GetChatAdministratorsWithResponse(ctx context.Context, body GetChatAdministratorsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetChatAdministratorsResponse, error)
func (*ClientWithResponses) GetChatGiftsWithBodyWithResponse ¶ added in v0.3.0
func (c *ClientWithResponses) GetChatGiftsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetChatGiftsResponse, error)
GetChatGiftsWithBodyWithResponse request with arbitrary body returning *GetChatGiftsResponse
func (*ClientWithResponses) GetChatGiftsWithResponse ¶ added in v0.3.0
func (c *ClientWithResponses) GetChatGiftsWithResponse(ctx context.Context, body GetChatGiftsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetChatGiftsResponse, error)
func (*ClientWithResponses) GetChatMemberCountWithBodyWithResponse ¶
func (c *ClientWithResponses) GetChatMemberCountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetChatMemberCountResponse, error)
GetChatMemberCountWithBodyWithResponse request with arbitrary body returning *GetChatMemberCountResponse
func (*ClientWithResponses) GetChatMemberCountWithResponse ¶
func (c *ClientWithResponses) GetChatMemberCountWithResponse(ctx context.Context, body GetChatMemberCountJSONRequestBody, reqEditors ...RequestEditorFn) (*GetChatMemberCountResponse, error)
func (*ClientWithResponses) GetChatMemberWithBodyWithResponse ¶
func (c *ClientWithResponses) GetChatMemberWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetChatMemberResponse, error)
GetChatMemberWithBodyWithResponse request with arbitrary body returning *GetChatMemberResponse
func (*ClientWithResponses) GetChatMemberWithResponse ¶
func (c *ClientWithResponses) GetChatMemberWithResponse(ctx context.Context, body GetChatMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*GetChatMemberResponse, error)
func (*ClientWithResponses) GetChatMenuButtonWithBodyWithResponse ¶
func (c *ClientWithResponses) GetChatMenuButtonWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetChatMenuButtonResponse, error)
GetChatMenuButtonWithBodyWithResponse request with arbitrary body returning *GetChatMenuButtonResponse
func (*ClientWithResponses) GetChatMenuButtonWithResponse ¶
func (c *ClientWithResponses) GetChatMenuButtonWithResponse(ctx context.Context, body GetChatMenuButtonJSONRequestBody, reqEditors ...RequestEditorFn) (*GetChatMenuButtonResponse, error)
func (*ClientWithResponses) GetChatWithBodyWithResponse ¶
func (c *ClientWithResponses) GetChatWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetChatResponse, error)
GetChatWithBodyWithResponse request with arbitrary body returning *GetChatResponse
func (*ClientWithResponses) GetChatWithResponse ¶
func (c *ClientWithResponses) GetChatWithResponse(ctx context.Context, body GetChatJSONRequestBody, reqEditors ...RequestEditorFn) (*GetChatResponse, error)
func (*ClientWithResponses) GetCustomEmojiStickersWithBodyWithResponse ¶
func (c *ClientWithResponses) GetCustomEmojiStickersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetCustomEmojiStickersResponse, error)
GetCustomEmojiStickersWithBodyWithResponse request with arbitrary body returning *GetCustomEmojiStickersResponse
func (*ClientWithResponses) GetCustomEmojiStickersWithResponse ¶
func (c *ClientWithResponses) GetCustomEmojiStickersWithResponse(ctx context.Context, body GetCustomEmojiStickersJSONRequestBody, reqEditors ...RequestEditorFn) (*GetCustomEmojiStickersResponse, error)
func (*ClientWithResponses) GetFileWithBodyWithResponse ¶
func (c *ClientWithResponses) GetFileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetFileResponse, error)
GetFileWithBodyWithResponse request with arbitrary body returning *GetFileResponse
func (*ClientWithResponses) GetFileWithResponse ¶
func (c *ClientWithResponses) GetFileWithResponse(ctx context.Context, body GetFileJSONRequestBody, reqEditors ...RequestEditorFn) (*GetFileResponse, error)
func (*ClientWithResponses) GetForumTopicIconStickersWithResponse ¶
func (c *ClientWithResponses) GetForumTopicIconStickersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetForumTopicIconStickersResponse, error)
GetForumTopicIconStickersWithResponse request returning *GetForumTopicIconStickersResponse
func (*ClientWithResponses) GetGameHighScoresWithBodyWithResponse ¶
func (c *ClientWithResponses) GetGameHighScoresWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetGameHighScoresResponse, error)
GetGameHighScoresWithBodyWithResponse request with arbitrary body returning *GetGameHighScoresResponse
func (*ClientWithResponses) GetGameHighScoresWithResponse ¶
func (c *ClientWithResponses) GetGameHighScoresWithResponse(ctx context.Context, body GetGameHighScoresJSONRequestBody, reqEditors ...RequestEditorFn) (*GetGameHighScoresResponse, error)
func (*ClientWithResponses) GetMeWithResponse ¶
func (c *ClientWithResponses) GetMeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMeResponse, error)
GetMeWithResponse request returning *GetMeResponse
Example ¶
package main
import (
"context"
"fmt"
"net/http"
"net/http/httptest"
"net/url"
"github.com/tgbotkit/client"
)
func main() {
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
if r.Method != http.MethodPost || r.URL.Path != "/bot<bot_token>/getMe" {
http.NotFound(w, r)
return
}
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
_, _ = w.Write([]byte(`{"ok":true,"result":{"id":123,"is_bot":true,"first_name":"TgBotKit"}}`))
}))
defer ts.Close()
serverURL, err := client.NewServerUrlTelegramBotAPIEndpointSubstituteBotTokenWithYourBotToken(
client.ServerUrlTelegramBotAPIEndpointSubstituteBotTokenWithYourBotTokenBotTokenVariable("<bot_token>"),
)
if err != nil {
return
}
baseURL, err := url.Parse(serverURL)
if err != nil {
return
}
testURL, err := url.Parse(ts.URL)
if err != nil {
return
}
baseURL.Scheme = testURL.Scheme
baseURL.Host = testURL.Host
c, err := client.NewClientWithResponses(
baseURL.String(),
client.WithHTTPClient(ts.Client()),
)
if err != nil {
return
}
resp, err := c.GetMeWithResponse(context.Background())
if err != nil {
return
}
if resp.JSON200 != nil {
fmt.Println(resp.JSON200.Result.FirstName)
}
}
Output: TgBotKit
func (*ClientWithResponses) GetMyCommandsWithBodyWithResponse ¶
func (c *ClientWithResponses) GetMyCommandsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetMyCommandsResponse, error)
GetMyCommandsWithBodyWithResponse request with arbitrary body returning *GetMyCommandsResponse
func (*ClientWithResponses) GetMyCommandsWithResponse ¶
func (c *ClientWithResponses) GetMyCommandsWithResponse(ctx context.Context, body GetMyCommandsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetMyCommandsResponse, error)
func (*ClientWithResponses) GetMyDefaultAdministratorRightsWithBodyWithResponse ¶
func (c *ClientWithResponses) GetMyDefaultAdministratorRightsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetMyDefaultAdministratorRightsResponse, error)
GetMyDefaultAdministratorRightsWithBodyWithResponse request with arbitrary body returning *GetMyDefaultAdministratorRightsResponse
func (*ClientWithResponses) GetMyDefaultAdministratorRightsWithResponse ¶
func (c *ClientWithResponses) GetMyDefaultAdministratorRightsWithResponse(ctx context.Context, body GetMyDefaultAdministratorRightsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetMyDefaultAdministratorRightsResponse, error)
func (*ClientWithResponses) GetMyDescriptionWithBodyWithResponse ¶
func (c *ClientWithResponses) GetMyDescriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetMyDescriptionResponse, error)
GetMyDescriptionWithBodyWithResponse request with arbitrary body returning *GetMyDescriptionResponse
func (*ClientWithResponses) GetMyDescriptionWithResponse ¶
func (c *ClientWithResponses) GetMyDescriptionWithResponse(ctx context.Context, body GetMyDescriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*GetMyDescriptionResponse, error)
func (*ClientWithResponses) GetMyNameWithBodyWithResponse ¶
func (c *ClientWithResponses) GetMyNameWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetMyNameResponse, error)
GetMyNameWithBodyWithResponse request with arbitrary body returning *GetMyNameResponse
func (*ClientWithResponses) GetMyNameWithResponse ¶
func (c *ClientWithResponses) GetMyNameWithResponse(ctx context.Context, body GetMyNameJSONRequestBody, reqEditors ...RequestEditorFn) (*GetMyNameResponse, error)
func (*ClientWithResponses) GetMyShortDescriptionWithBodyWithResponse ¶
func (c *ClientWithResponses) GetMyShortDescriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetMyShortDescriptionResponse, error)
GetMyShortDescriptionWithBodyWithResponse request with arbitrary body returning *GetMyShortDescriptionResponse
func (*ClientWithResponses) GetMyShortDescriptionWithResponse ¶
func (c *ClientWithResponses) GetMyShortDescriptionWithResponse(ctx context.Context, body GetMyShortDescriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*GetMyShortDescriptionResponse, error)
func (*ClientWithResponses) GetMyStarBalanceWithResponse ¶
func (c *ClientWithResponses) GetMyStarBalanceWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMyStarBalanceResponse, error)
GetMyStarBalanceWithResponse request returning *GetMyStarBalanceResponse
func (*ClientWithResponses) GetStarTransactionsWithBodyWithResponse ¶
func (c *ClientWithResponses) GetStarTransactionsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetStarTransactionsResponse, error)
GetStarTransactionsWithBodyWithResponse request with arbitrary body returning *GetStarTransactionsResponse
func (*ClientWithResponses) GetStarTransactionsWithResponse ¶
func (c *ClientWithResponses) GetStarTransactionsWithResponse(ctx context.Context, body GetStarTransactionsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetStarTransactionsResponse, error)
func (*ClientWithResponses) GetStickerSetWithBodyWithResponse ¶
func (c *ClientWithResponses) GetStickerSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetStickerSetResponse, error)
GetStickerSetWithBodyWithResponse request with arbitrary body returning *GetStickerSetResponse
func (*ClientWithResponses) GetStickerSetWithResponse ¶
func (c *ClientWithResponses) GetStickerSetWithResponse(ctx context.Context, body GetStickerSetJSONRequestBody, reqEditors ...RequestEditorFn) (*GetStickerSetResponse, error)
func (*ClientWithResponses) GetUpdatesWithBodyWithResponse ¶
func (c *ClientWithResponses) GetUpdatesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUpdatesResponse, error)
GetUpdatesWithBodyWithResponse request with arbitrary body returning *GetUpdatesResponse
func (*ClientWithResponses) GetUpdatesWithResponse ¶
func (c *ClientWithResponses) GetUpdatesWithResponse(ctx context.Context, body GetUpdatesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUpdatesResponse, error)
func (*ClientWithResponses) GetUserChatBoostsWithBodyWithResponse ¶
func (c *ClientWithResponses) GetUserChatBoostsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserChatBoostsResponse, error)
GetUserChatBoostsWithBodyWithResponse request with arbitrary body returning *GetUserChatBoostsResponse
func (*ClientWithResponses) GetUserChatBoostsWithResponse ¶
func (c *ClientWithResponses) GetUserChatBoostsWithResponse(ctx context.Context, body GetUserChatBoostsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserChatBoostsResponse, error)
func (*ClientWithResponses) GetUserGiftsWithBodyWithResponse ¶ added in v0.3.0
func (c *ClientWithResponses) GetUserGiftsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserGiftsResponse, error)
GetUserGiftsWithBodyWithResponse request with arbitrary body returning *GetUserGiftsResponse
func (*ClientWithResponses) GetUserGiftsWithResponse ¶ added in v0.3.0
func (c *ClientWithResponses) GetUserGiftsWithResponse(ctx context.Context, body GetUserGiftsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserGiftsResponse, error)
func (*ClientWithResponses) GetUserProfilePhotosWithBodyWithResponse ¶
func (c *ClientWithResponses) GetUserProfilePhotosWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserProfilePhotosResponse, error)
GetUserProfilePhotosWithBodyWithResponse request with arbitrary body returning *GetUserProfilePhotosResponse
func (*ClientWithResponses) GetUserProfilePhotosWithResponse ¶
func (c *ClientWithResponses) GetUserProfilePhotosWithResponse(ctx context.Context, body GetUserProfilePhotosJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserProfilePhotosResponse, error)
func (*ClientWithResponses) GetWebhookInfoWithResponse ¶
func (c *ClientWithResponses) GetWebhookInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWebhookInfoResponse, error)
GetWebhookInfoWithResponse request returning *GetWebhookInfoResponse
func (*ClientWithResponses) GiftPremiumSubscriptionWithBodyWithResponse ¶
func (c *ClientWithResponses) GiftPremiumSubscriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GiftPremiumSubscriptionResponse, error)
GiftPremiumSubscriptionWithBodyWithResponse request with arbitrary body returning *GiftPremiumSubscriptionResponse
func (*ClientWithResponses) GiftPremiumSubscriptionWithResponse ¶
func (c *ClientWithResponses) GiftPremiumSubscriptionWithResponse(ctx context.Context, body GiftPremiumSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*GiftPremiumSubscriptionResponse, error)
func (*ClientWithResponses) HideGeneralForumTopicWithBodyWithResponse ¶
func (c *ClientWithResponses) HideGeneralForumTopicWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HideGeneralForumTopicResponse, error)
HideGeneralForumTopicWithBodyWithResponse request with arbitrary body returning *HideGeneralForumTopicResponse
func (*ClientWithResponses) HideGeneralForumTopicWithResponse ¶
func (c *ClientWithResponses) HideGeneralForumTopicWithResponse(ctx context.Context, body HideGeneralForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*HideGeneralForumTopicResponse, error)
func (*ClientWithResponses) LeaveChatWithBodyWithResponse ¶
func (c *ClientWithResponses) LeaveChatWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LeaveChatResponse, error)
LeaveChatWithBodyWithResponse request with arbitrary body returning *LeaveChatResponse
func (*ClientWithResponses) LeaveChatWithResponse ¶
func (c *ClientWithResponses) LeaveChatWithResponse(ctx context.Context, body LeaveChatJSONRequestBody, reqEditors ...RequestEditorFn) (*LeaveChatResponse, error)
func (*ClientWithResponses) LogOutWithResponse ¶
func (c *ClientWithResponses) LogOutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogOutResponse, error)
LogOutWithResponse request returning *LogOutResponse
func (*ClientWithResponses) PinChatMessageWithBodyWithResponse ¶
func (c *ClientWithResponses) PinChatMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PinChatMessageResponse, error)
PinChatMessageWithBodyWithResponse request with arbitrary body returning *PinChatMessageResponse
func (*ClientWithResponses) PinChatMessageWithResponse ¶
func (c *ClientWithResponses) PinChatMessageWithResponse(ctx context.Context, body PinChatMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*PinChatMessageResponse, error)
func (*ClientWithResponses) PostStoryWithBodyWithResponse ¶
func (c *ClientWithResponses) PostStoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostStoryResponse, error)
PostStoryWithBodyWithResponse request with arbitrary body returning *PostStoryResponse
func (*ClientWithResponses) PostStoryWithResponse ¶
func (c *ClientWithResponses) PostStoryWithResponse(ctx context.Context, body PostStoryJSONRequestBody, reqEditors ...RequestEditorFn) (*PostStoryResponse, error)
func (*ClientWithResponses) PromoteChatMemberWithBodyWithResponse ¶
func (c *ClientWithResponses) PromoteChatMemberWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PromoteChatMemberResponse, error)
PromoteChatMemberWithBodyWithResponse request with arbitrary body returning *PromoteChatMemberResponse
func (*ClientWithResponses) PromoteChatMemberWithResponse ¶
func (c *ClientWithResponses) PromoteChatMemberWithResponse(ctx context.Context, body PromoteChatMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*PromoteChatMemberResponse, error)
func (*ClientWithResponses) ReadBusinessMessageWithBodyWithResponse ¶
func (c *ClientWithResponses) ReadBusinessMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReadBusinessMessageResponse, error)
ReadBusinessMessageWithBodyWithResponse request with arbitrary body returning *ReadBusinessMessageResponse
func (*ClientWithResponses) ReadBusinessMessageWithResponse ¶
func (c *ClientWithResponses) ReadBusinessMessageWithResponse(ctx context.Context, body ReadBusinessMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*ReadBusinessMessageResponse, error)
func (*ClientWithResponses) RefundStarPaymentWithBodyWithResponse ¶
func (c *ClientWithResponses) RefundStarPaymentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RefundStarPaymentResponse, error)
RefundStarPaymentWithBodyWithResponse request with arbitrary body returning *RefundStarPaymentResponse
func (*ClientWithResponses) RefundStarPaymentWithResponse ¶
func (c *ClientWithResponses) RefundStarPaymentWithResponse(ctx context.Context, body RefundStarPaymentJSONRequestBody, reqEditors ...RequestEditorFn) (*RefundStarPaymentResponse, error)
func (*ClientWithResponses) RemoveBusinessAccountProfilePhotoWithBodyWithResponse ¶
func (c *ClientWithResponses) RemoveBusinessAccountProfilePhotoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveBusinessAccountProfilePhotoResponse, error)
RemoveBusinessAccountProfilePhotoWithBodyWithResponse request with arbitrary body returning *RemoveBusinessAccountProfilePhotoResponse
func (*ClientWithResponses) RemoveBusinessAccountProfilePhotoWithResponse ¶
func (c *ClientWithResponses) RemoveBusinessAccountProfilePhotoWithResponse(ctx context.Context, body RemoveBusinessAccountProfilePhotoJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveBusinessAccountProfilePhotoResponse, error)
func (*ClientWithResponses) RemoveChatVerificationWithBodyWithResponse ¶
func (c *ClientWithResponses) RemoveChatVerificationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveChatVerificationResponse, error)
RemoveChatVerificationWithBodyWithResponse request with arbitrary body returning *RemoveChatVerificationResponse
func (*ClientWithResponses) RemoveChatVerificationWithResponse ¶
func (c *ClientWithResponses) RemoveChatVerificationWithResponse(ctx context.Context, body RemoveChatVerificationJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveChatVerificationResponse, error)
func (*ClientWithResponses) RemoveUserVerificationWithBodyWithResponse ¶
func (c *ClientWithResponses) RemoveUserVerificationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveUserVerificationResponse, error)
RemoveUserVerificationWithBodyWithResponse request with arbitrary body returning *RemoveUserVerificationResponse
func (*ClientWithResponses) RemoveUserVerificationWithResponse ¶
func (c *ClientWithResponses) RemoveUserVerificationWithResponse(ctx context.Context, body RemoveUserVerificationJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveUserVerificationResponse, error)
func (*ClientWithResponses) ReopenForumTopicWithBodyWithResponse ¶
func (c *ClientWithResponses) ReopenForumTopicWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReopenForumTopicResponse, error)
ReopenForumTopicWithBodyWithResponse request with arbitrary body returning *ReopenForumTopicResponse
func (*ClientWithResponses) ReopenForumTopicWithResponse ¶
func (c *ClientWithResponses) ReopenForumTopicWithResponse(ctx context.Context, body ReopenForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*ReopenForumTopicResponse, error)
func (*ClientWithResponses) ReopenGeneralForumTopicWithBodyWithResponse ¶
func (c *ClientWithResponses) ReopenGeneralForumTopicWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReopenGeneralForumTopicResponse, error)
ReopenGeneralForumTopicWithBodyWithResponse request with arbitrary body returning *ReopenGeneralForumTopicResponse
func (*ClientWithResponses) ReopenGeneralForumTopicWithResponse ¶
func (c *ClientWithResponses) ReopenGeneralForumTopicWithResponse(ctx context.Context, body ReopenGeneralForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*ReopenGeneralForumTopicResponse, error)
func (*ClientWithResponses) ReplaceStickerInSetWithBodyWithResponse ¶
func (c *ClientWithResponses) ReplaceStickerInSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceStickerInSetResponse, error)
ReplaceStickerInSetWithBodyWithResponse request with arbitrary body returning *ReplaceStickerInSetResponse
func (*ClientWithResponses) ReplaceStickerInSetWithResponse ¶
func (c *ClientWithResponses) ReplaceStickerInSetWithResponse(ctx context.Context, body ReplaceStickerInSetJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceStickerInSetResponse, error)
func (*ClientWithResponses) RepostStoryWithBodyWithResponse ¶ added in v0.3.0
func (c *ClientWithResponses) RepostStoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RepostStoryResponse, error)
RepostStoryWithBodyWithResponse request with arbitrary body returning *RepostStoryResponse
func (*ClientWithResponses) RepostStoryWithResponse ¶ added in v0.3.0
func (c *ClientWithResponses) RepostStoryWithResponse(ctx context.Context, body RepostStoryJSONRequestBody, reqEditors ...RequestEditorFn) (*RepostStoryResponse, error)
func (*ClientWithResponses) RestrictChatMemberWithBodyWithResponse ¶
func (c *ClientWithResponses) RestrictChatMemberWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RestrictChatMemberResponse, error)
RestrictChatMemberWithBodyWithResponse request with arbitrary body returning *RestrictChatMemberResponse
func (*ClientWithResponses) RestrictChatMemberWithResponse ¶
func (c *ClientWithResponses) RestrictChatMemberWithResponse(ctx context.Context, body RestrictChatMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*RestrictChatMemberResponse, error)
func (*ClientWithResponses) RevokeChatInviteLinkWithBodyWithResponse ¶
func (c *ClientWithResponses) RevokeChatInviteLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RevokeChatInviteLinkResponse, error)
RevokeChatInviteLinkWithBodyWithResponse request with arbitrary body returning *RevokeChatInviteLinkResponse
func (*ClientWithResponses) RevokeChatInviteLinkWithResponse ¶
func (c *ClientWithResponses) RevokeChatInviteLinkWithResponse(ctx context.Context, body RevokeChatInviteLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*RevokeChatInviteLinkResponse, error)
func (*ClientWithResponses) SavePreparedInlineMessageWithBodyWithResponse ¶
func (c *ClientWithResponses) SavePreparedInlineMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SavePreparedInlineMessageResponse, error)
SavePreparedInlineMessageWithBodyWithResponse request with arbitrary body returning *SavePreparedInlineMessageResponse
func (*ClientWithResponses) SavePreparedInlineMessageWithResponse ¶
func (c *ClientWithResponses) SavePreparedInlineMessageWithResponse(ctx context.Context, body SavePreparedInlineMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*SavePreparedInlineMessageResponse, error)
func (*ClientWithResponses) SendAnimationWithBodyWithResponse ¶
func (c *ClientWithResponses) SendAnimationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendAnimationResponse, error)
SendAnimationWithBodyWithResponse request with arbitrary body returning *SendAnimationResponse
func (*ClientWithResponses) SendAnimationWithResponse ¶
func (c *ClientWithResponses) SendAnimationWithResponse(ctx context.Context, body SendAnimationJSONRequestBody, reqEditors ...RequestEditorFn) (*SendAnimationResponse, error)
func (*ClientWithResponses) SendAudioWithBodyWithResponse ¶
func (c *ClientWithResponses) SendAudioWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendAudioResponse, error)
SendAudioWithBodyWithResponse request with arbitrary body returning *SendAudioResponse
func (*ClientWithResponses) SendAudioWithResponse ¶
func (c *ClientWithResponses) SendAudioWithResponse(ctx context.Context, body SendAudioJSONRequestBody, reqEditors ...RequestEditorFn) (*SendAudioResponse, error)
func (*ClientWithResponses) SendChatActionWithBodyWithResponse ¶
func (c *ClientWithResponses) SendChatActionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendChatActionResponse, error)
SendChatActionWithBodyWithResponse request with arbitrary body returning *SendChatActionResponse
func (*ClientWithResponses) SendChatActionWithResponse ¶
func (c *ClientWithResponses) SendChatActionWithResponse(ctx context.Context, body SendChatActionJSONRequestBody, reqEditors ...RequestEditorFn) (*SendChatActionResponse, error)
func (*ClientWithResponses) SendChecklistWithBodyWithResponse ¶
func (c *ClientWithResponses) SendChecklistWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendChecklistResponse, error)
SendChecklistWithBodyWithResponse request with arbitrary body returning *SendChecklistResponse
func (*ClientWithResponses) SendChecklistWithResponse ¶
func (c *ClientWithResponses) SendChecklistWithResponse(ctx context.Context, body SendChecklistJSONRequestBody, reqEditors ...RequestEditorFn) (*SendChecklistResponse, error)
func (*ClientWithResponses) SendContactWithBodyWithResponse ¶
func (c *ClientWithResponses) SendContactWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendContactResponse, error)
SendContactWithBodyWithResponse request with arbitrary body returning *SendContactResponse
func (*ClientWithResponses) SendContactWithResponse ¶
func (c *ClientWithResponses) SendContactWithResponse(ctx context.Context, body SendContactJSONRequestBody, reqEditors ...RequestEditorFn) (*SendContactResponse, error)
func (*ClientWithResponses) SendDiceWithBodyWithResponse ¶
func (c *ClientWithResponses) SendDiceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendDiceResponse, error)
SendDiceWithBodyWithResponse request with arbitrary body returning *SendDiceResponse
func (*ClientWithResponses) SendDiceWithResponse ¶
func (c *ClientWithResponses) SendDiceWithResponse(ctx context.Context, body SendDiceJSONRequestBody, reqEditors ...RequestEditorFn) (*SendDiceResponse, error)
func (*ClientWithResponses) SendDocumentWithBodyWithResponse ¶
func (c *ClientWithResponses) SendDocumentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendDocumentResponse, error)
SendDocumentWithBodyWithResponse request with arbitrary body returning *SendDocumentResponse
func (*ClientWithResponses) SendDocumentWithResponse ¶
func (c *ClientWithResponses) SendDocumentWithResponse(ctx context.Context, body SendDocumentJSONRequestBody, reqEditors ...RequestEditorFn) (*SendDocumentResponse, error)
func (*ClientWithResponses) SendGameWithBodyWithResponse ¶
func (c *ClientWithResponses) SendGameWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendGameResponse, error)
SendGameWithBodyWithResponse request with arbitrary body returning *SendGameResponse
func (*ClientWithResponses) SendGameWithResponse ¶
func (c *ClientWithResponses) SendGameWithResponse(ctx context.Context, body SendGameJSONRequestBody, reqEditors ...RequestEditorFn) (*SendGameResponse, error)
func (*ClientWithResponses) SendGiftWithBodyWithResponse ¶
func (c *ClientWithResponses) SendGiftWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendGiftResponse, error)
SendGiftWithBodyWithResponse request with arbitrary body returning *SendGiftResponse
func (*ClientWithResponses) SendGiftWithResponse ¶
func (c *ClientWithResponses) SendGiftWithResponse(ctx context.Context, body SendGiftJSONRequestBody, reqEditors ...RequestEditorFn) (*SendGiftResponse, error)
func (*ClientWithResponses) SendInvoiceWithBodyWithResponse ¶
func (c *ClientWithResponses) SendInvoiceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendInvoiceResponse, error)
SendInvoiceWithBodyWithResponse request with arbitrary body returning *SendInvoiceResponse
func (*ClientWithResponses) SendInvoiceWithResponse ¶
func (c *ClientWithResponses) SendInvoiceWithResponse(ctx context.Context, body SendInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*SendInvoiceResponse, error)
func (*ClientWithResponses) SendLocationWithBodyWithResponse ¶
func (c *ClientWithResponses) SendLocationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendLocationResponse, error)
SendLocationWithBodyWithResponse request with arbitrary body returning *SendLocationResponse
func (*ClientWithResponses) SendLocationWithResponse ¶
func (c *ClientWithResponses) SendLocationWithResponse(ctx context.Context, body SendLocationJSONRequestBody, reqEditors ...RequestEditorFn) (*SendLocationResponse, error)
func (*ClientWithResponses) SendMediaGroupWithBodyWithResponse ¶
func (c *ClientWithResponses) SendMediaGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendMediaGroupResponse, error)
SendMediaGroupWithBodyWithResponse request with arbitrary body returning *SendMediaGroupResponse
func (*ClientWithResponses) SendMediaGroupWithResponse ¶
func (c *ClientWithResponses) SendMediaGroupWithResponse(ctx context.Context, body SendMediaGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*SendMediaGroupResponse, error)
func (*ClientWithResponses) SendMessageDraftWithBodyWithResponse ¶ added in v0.3.0
func (c *ClientWithResponses) SendMessageDraftWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendMessageDraftResponse, error)
SendMessageDraftWithBodyWithResponse request with arbitrary body returning *SendMessageDraftResponse
func (*ClientWithResponses) SendMessageDraftWithResponse ¶ added in v0.3.0
func (c *ClientWithResponses) SendMessageDraftWithResponse(ctx context.Context, body SendMessageDraftJSONRequestBody, reqEditors ...RequestEditorFn) (*SendMessageDraftResponse, error)
func (*ClientWithResponses) SendMessageWithBodyWithResponse ¶
func (c *ClientWithResponses) SendMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendMessageResponse, error)
SendMessageWithBodyWithResponse request with arbitrary body returning *SendMessageResponse
func (*ClientWithResponses) SendMessageWithResponse ¶
func (c *ClientWithResponses) SendMessageWithResponse(ctx context.Context, body SendMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*SendMessageResponse, error)
func (*ClientWithResponses) SendPaidMediaWithBodyWithResponse ¶
func (c *ClientWithResponses) SendPaidMediaWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendPaidMediaResponse, error)
SendPaidMediaWithBodyWithResponse request with arbitrary body returning *SendPaidMediaResponse
func (*ClientWithResponses) SendPaidMediaWithResponse ¶
func (c *ClientWithResponses) SendPaidMediaWithResponse(ctx context.Context, body SendPaidMediaJSONRequestBody, reqEditors ...RequestEditorFn) (*SendPaidMediaResponse, error)
func (*ClientWithResponses) SendPhotoWithBodyWithResponse ¶
func (c *ClientWithResponses) SendPhotoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendPhotoResponse, error)
SendPhotoWithBodyWithResponse request with arbitrary body returning *SendPhotoResponse
func (*ClientWithResponses) SendPhotoWithResponse ¶
func (c *ClientWithResponses) SendPhotoWithResponse(ctx context.Context, body SendPhotoJSONRequestBody, reqEditors ...RequestEditorFn) (*SendPhotoResponse, error)
func (*ClientWithResponses) SendPollWithBodyWithResponse ¶
func (c *ClientWithResponses) SendPollWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendPollResponse, error)
SendPollWithBodyWithResponse request with arbitrary body returning *SendPollResponse
func (*ClientWithResponses) SendPollWithResponse ¶
func (c *ClientWithResponses) SendPollWithResponse(ctx context.Context, body SendPollJSONRequestBody, reqEditors ...RequestEditorFn) (*SendPollResponse, error)
func (*ClientWithResponses) SendStickerWithBodyWithResponse ¶
func (c *ClientWithResponses) SendStickerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendStickerResponse, error)
SendStickerWithBodyWithResponse request with arbitrary body returning *SendStickerResponse
func (*ClientWithResponses) SendStickerWithResponse ¶
func (c *ClientWithResponses) SendStickerWithResponse(ctx context.Context, body SendStickerJSONRequestBody, reqEditors ...RequestEditorFn) (*SendStickerResponse, error)
func (*ClientWithResponses) SendVenueWithBodyWithResponse ¶
func (c *ClientWithResponses) SendVenueWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendVenueResponse, error)
SendVenueWithBodyWithResponse request with arbitrary body returning *SendVenueResponse
func (*ClientWithResponses) SendVenueWithResponse ¶
func (c *ClientWithResponses) SendVenueWithResponse(ctx context.Context, body SendVenueJSONRequestBody, reqEditors ...RequestEditorFn) (*SendVenueResponse, error)
func (*ClientWithResponses) SendVideoNoteWithBodyWithResponse ¶
func (c *ClientWithResponses) SendVideoNoteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendVideoNoteResponse, error)
SendVideoNoteWithBodyWithResponse request with arbitrary body returning *SendVideoNoteResponse
func (*ClientWithResponses) SendVideoNoteWithResponse ¶
func (c *ClientWithResponses) SendVideoNoteWithResponse(ctx context.Context, body SendVideoNoteJSONRequestBody, reqEditors ...RequestEditorFn) (*SendVideoNoteResponse, error)
func (*ClientWithResponses) SendVideoWithBodyWithResponse ¶
func (c *ClientWithResponses) SendVideoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendVideoResponse, error)
SendVideoWithBodyWithResponse request with arbitrary body returning *SendVideoResponse
func (*ClientWithResponses) SendVideoWithResponse ¶
func (c *ClientWithResponses) SendVideoWithResponse(ctx context.Context, body SendVideoJSONRequestBody, reqEditors ...RequestEditorFn) (*SendVideoResponse, error)
func (*ClientWithResponses) SendVoiceWithBodyWithResponse ¶
func (c *ClientWithResponses) SendVoiceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendVoiceResponse, error)
SendVoiceWithBodyWithResponse request with arbitrary body returning *SendVoiceResponse
func (*ClientWithResponses) SendVoiceWithResponse ¶
func (c *ClientWithResponses) SendVoiceWithResponse(ctx context.Context, body SendVoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*SendVoiceResponse, error)
func (*ClientWithResponses) SetBusinessAccountBioWithBodyWithResponse ¶
func (c *ClientWithResponses) SetBusinessAccountBioWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetBusinessAccountBioResponse, error)
SetBusinessAccountBioWithBodyWithResponse request with arbitrary body returning *SetBusinessAccountBioResponse
func (*ClientWithResponses) SetBusinessAccountBioWithResponse ¶
func (c *ClientWithResponses) SetBusinessAccountBioWithResponse(ctx context.Context, body SetBusinessAccountBioJSONRequestBody, reqEditors ...RequestEditorFn) (*SetBusinessAccountBioResponse, error)
func (*ClientWithResponses) SetBusinessAccountGiftSettingsWithBodyWithResponse ¶
func (c *ClientWithResponses) SetBusinessAccountGiftSettingsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetBusinessAccountGiftSettingsResponse, error)
SetBusinessAccountGiftSettingsWithBodyWithResponse request with arbitrary body returning *SetBusinessAccountGiftSettingsResponse
func (*ClientWithResponses) SetBusinessAccountGiftSettingsWithResponse ¶
func (c *ClientWithResponses) SetBusinessAccountGiftSettingsWithResponse(ctx context.Context, body SetBusinessAccountGiftSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*SetBusinessAccountGiftSettingsResponse, error)
func (*ClientWithResponses) SetBusinessAccountNameWithBodyWithResponse ¶
func (c *ClientWithResponses) SetBusinessAccountNameWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetBusinessAccountNameResponse, error)
SetBusinessAccountNameWithBodyWithResponse request with arbitrary body returning *SetBusinessAccountNameResponse
func (*ClientWithResponses) SetBusinessAccountNameWithResponse ¶
func (c *ClientWithResponses) SetBusinessAccountNameWithResponse(ctx context.Context, body SetBusinessAccountNameJSONRequestBody, reqEditors ...RequestEditorFn) (*SetBusinessAccountNameResponse, error)
func (*ClientWithResponses) SetBusinessAccountProfilePhotoWithBodyWithResponse ¶
func (c *ClientWithResponses) SetBusinessAccountProfilePhotoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetBusinessAccountProfilePhotoResponse, error)
SetBusinessAccountProfilePhotoWithBodyWithResponse request with arbitrary body returning *SetBusinessAccountProfilePhotoResponse
func (*ClientWithResponses) SetBusinessAccountProfilePhotoWithResponse ¶
func (c *ClientWithResponses) SetBusinessAccountProfilePhotoWithResponse(ctx context.Context, body SetBusinessAccountProfilePhotoJSONRequestBody, reqEditors ...RequestEditorFn) (*SetBusinessAccountProfilePhotoResponse, error)
func (*ClientWithResponses) SetBusinessAccountUsernameWithBodyWithResponse ¶
func (c *ClientWithResponses) SetBusinessAccountUsernameWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetBusinessAccountUsernameResponse, error)
SetBusinessAccountUsernameWithBodyWithResponse request with arbitrary body returning *SetBusinessAccountUsernameResponse
func (*ClientWithResponses) SetBusinessAccountUsernameWithResponse ¶
func (c *ClientWithResponses) SetBusinessAccountUsernameWithResponse(ctx context.Context, body SetBusinessAccountUsernameJSONRequestBody, reqEditors ...RequestEditorFn) (*SetBusinessAccountUsernameResponse, error)
func (*ClientWithResponses) SetChatAdministratorCustomTitleWithBodyWithResponse ¶
func (c *ClientWithResponses) SetChatAdministratorCustomTitleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetChatAdministratorCustomTitleResponse, error)
SetChatAdministratorCustomTitleWithBodyWithResponse request with arbitrary body returning *SetChatAdministratorCustomTitleResponse
func (*ClientWithResponses) SetChatAdministratorCustomTitleWithResponse ¶
func (c *ClientWithResponses) SetChatAdministratorCustomTitleWithResponse(ctx context.Context, body SetChatAdministratorCustomTitleJSONRequestBody, reqEditors ...RequestEditorFn) (*SetChatAdministratorCustomTitleResponse, error)
func (*ClientWithResponses) SetChatDescriptionWithBodyWithResponse ¶
func (c *ClientWithResponses) SetChatDescriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetChatDescriptionResponse, error)
SetChatDescriptionWithBodyWithResponse request with arbitrary body returning *SetChatDescriptionResponse
func (*ClientWithResponses) SetChatDescriptionWithResponse ¶
func (c *ClientWithResponses) SetChatDescriptionWithResponse(ctx context.Context, body SetChatDescriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*SetChatDescriptionResponse, error)
func (*ClientWithResponses) SetChatMenuButtonWithBodyWithResponse ¶
func (c *ClientWithResponses) SetChatMenuButtonWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetChatMenuButtonResponse, error)
SetChatMenuButtonWithBodyWithResponse request with arbitrary body returning *SetChatMenuButtonResponse
func (*ClientWithResponses) SetChatMenuButtonWithResponse ¶
func (c *ClientWithResponses) SetChatMenuButtonWithResponse(ctx context.Context, body SetChatMenuButtonJSONRequestBody, reqEditors ...RequestEditorFn) (*SetChatMenuButtonResponse, error)
func (*ClientWithResponses) SetChatPermissionsWithBodyWithResponse ¶
func (c *ClientWithResponses) SetChatPermissionsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetChatPermissionsResponse, error)
SetChatPermissionsWithBodyWithResponse request with arbitrary body returning *SetChatPermissionsResponse
func (*ClientWithResponses) SetChatPermissionsWithResponse ¶
func (c *ClientWithResponses) SetChatPermissionsWithResponse(ctx context.Context, body SetChatPermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*SetChatPermissionsResponse, error)
func (*ClientWithResponses) SetChatPhotoWithBodyWithResponse ¶
func (c *ClientWithResponses) SetChatPhotoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetChatPhotoResponse, error)
SetChatPhotoWithBodyWithResponse request with arbitrary body returning *SetChatPhotoResponse
func (*ClientWithResponses) SetChatPhotoWithResponse ¶
func (c *ClientWithResponses) SetChatPhotoWithResponse(ctx context.Context, body SetChatPhotoJSONRequestBody, reqEditors ...RequestEditorFn) (*SetChatPhotoResponse, error)
func (*ClientWithResponses) SetChatStickerSetWithBodyWithResponse ¶
func (c *ClientWithResponses) SetChatStickerSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetChatStickerSetResponse, error)
SetChatStickerSetWithBodyWithResponse request with arbitrary body returning *SetChatStickerSetResponse
func (*ClientWithResponses) SetChatStickerSetWithResponse ¶
func (c *ClientWithResponses) SetChatStickerSetWithResponse(ctx context.Context, body SetChatStickerSetJSONRequestBody, reqEditors ...RequestEditorFn) (*SetChatStickerSetResponse, error)
func (*ClientWithResponses) SetChatTitleWithBodyWithResponse ¶
func (c *ClientWithResponses) SetChatTitleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetChatTitleResponse, error)
SetChatTitleWithBodyWithResponse request with arbitrary body returning *SetChatTitleResponse
func (*ClientWithResponses) SetChatTitleWithResponse ¶
func (c *ClientWithResponses) SetChatTitleWithResponse(ctx context.Context, body SetChatTitleJSONRequestBody, reqEditors ...RequestEditorFn) (*SetChatTitleResponse, error)
func (*ClientWithResponses) SetCustomEmojiStickerSetThumbnailWithBodyWithResponse ¶
func (c *ClientWithResponses) SetCustomEmojiStickerSetThumbnailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetCustomEmojiStickerSetThumbnailResponse, error)
SetCustomEmojiStickerSetThumbnailWithBodyWithResponse request with arbitrary body returning *SetCustomEmojiStickerSetThumbnailResponse
func (*ClientWithResponses) SetCustomEmojiStickerSetThumbnailWithResponse ¶
func (c *ClientWithResponses) SetCustomEmojiStickerSetThumbnailWithResponse(ctx context.Context, body SetCustomEmojiStickerSetThumbnailJSONRequestBody, reqEditors ...RequestEditorFn) (*SetCustomEmojiStickerSetThumbnailResponse, error)
func (*ClientWithResponses) SetGameScoreWithBodyWithResponse ¶
func (c *ClientWithResponses) SetGameScoreWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetGameScoreResponse, error)
SetGameScoreWithBodyWithResponse request with arbitrary body returning *SetGameScoreResponse
func (*ClientWithResponses) SetGameScoreWithResponse ¶
func (c *ClientWithResponses) SetGameScoreWithResponse(ctx context.Context, body SetGameScoreJSONRequestBody, reqEditors ...RequestEditorFn) (*SetGameScoreResponse, error)
func (*ClientWithResponses) SetMessageReactionWithBodyWithResponse ¶
func (c *ClientWithResponses) SetMessageReactionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetMessageReactionResponse, error)
SetMessageReactionWithBodyWithResponse request with arbitrary body returning *SetMessageReactionResponse
func (*ClientWithResponses) SetMessageReactionWithResponse ¶
func (c *ClientWithResponses) SetMessageReactionWithResponse(ctx context.Context, body SetMessageReactionJSONRequestBody, reqEditors ...RequestEditorFn) (*SetMessageReactionResponse, error)
func (*ClientWithResponses) SetMyCommandsWithBodyWithResponse ¶
func (c *ClientWithResponses) SetMyCommandsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetMyCommandsResponse, error)
SetMyCommandsWithBodyWithResponse request with arbitrary body returning *SetMyCommandsResponse
func (*ClientWithResponses) SetMyCommandsWithResponse ¶
func (c *ClientWithResponses) SetMyCommandsWithResponse(ctx context.Context, body SetMyCommandsJSONRequestBody, reqEditors ...RequestEditorFn) (*SetMyCommandsResponse, error)
func (*ClientWithResponses) SetMyDefaultAdministratorRightsWithBodyWithResponse ¶
func (c *ClientWithResponses) SetMyDefaultAdministratorRightsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetMyDefaultAdministratorRightsResponse, error)
SetMyDefaultAdministratorRightsWithBodyWithResponse request with arbitrary body returning *SetMyDefaultAdministratorRightsResponse
func (*ClientWithResponses) SetMyDefaultAdministratorRightsWithResponse ¶
func (c *ClientWithResponses) SetMyDefaultAdministratorRightsWithResponse(ctx context.Context, body SetMyDefaultAdministratorRightsJSONRequestBody, reqEditors ...RequestEditorFn) (*SetMyDefaultAdministratorRightsResponse, error)
func (*ClientWithResponses) SetMyDescriptionWithBodyWithResponse ¶
func (c *ClientWithResponses) SetMyDescriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetMyDescriptionResponse, error)
SetMyDescriptionWithBodyWithResponse request with arbitrary body returning *SetMyDescriptionResponse
func (*ClientWithResponses) SetMyDescriptionWithResponse ¶
func (c *ClientWithResponses) SetMyDescriptionWithResponse(ctx context.Context, body SetMyDescriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*SetMyDescriptionResponse, error)
func (*ClientWithResponses) SetMyNameWithBodyWithResponse ¶
func (c *ClientWithResponses) SetMyNameWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetMyNameResponse, error)
SetMyNameWithBodyWithResponse request with arbitrary body returning *SetMyNameResponse
func (*ClientWithResponses) SetMyNameWithResponse ¶
func (c *ClientWithResponses) SetMyNameWithResponse(ctx context.Context, body SetMyNameJSONRequestBody, reqEditors ...RequestEditorFn) (*SetMyNameResponse, error)
func (*ClientWithResponses) SetMyShortDescriptionWithBodyWithResponse ¶
func (c *ClientWithResponses) SetMyShortDescriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetMyShortDescriptionResponse, error)
SetMyShortDescriptionWithBodyWithResponse request with arbitrary body returning *SetMyShortDescriptionResponse
func (*ClientWithResponses) SetMyShortDescriptionWithResponse ¶
func (c *ClientWithResponses) SetMyShortDescriptionWithResponse(ctx context.Context, body SetMyShortDescriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*SetMyShortDescriptionResponse, error)
func (*ClientWithResponses) SetPassportDataErrorsWithBodyWithResponse ¶
func (c *ClientWithResponses) SetPassportDataErrorsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetPassportDataErrorsResponse, error)
SetPassportDataErrorsWithBodyWithResponse request with arbitrary body returning *SetPassportDataErrorsResponse
func (*ClientWithResponses) SetPassportDataErrorsWithResponse ¶
func (c *ClientWithResponses) SetPassportDataErrorsWithResponse(ctx context.Context, body SetPassportDataErrorsJSONRequestBody, reqEditors ...RequestEditorFn) (*SetPassportDataErrorsResponse, error)
func (*ClientWithResponses) SetStickerEmojiListWithBodyWithResponse ¶
func (c *ClientWithResponses) SetStickerEmojiListWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetStickerEmojiListResponse, error)
SetStickerEmojiListWithBodyWithResponse request with arbitrary body returning *SetStickerEmojiListResponse
func (*ClientWithResponses) SetStickerEmojiListWithResponse ¶
func (c *ClientWithResponses) SetStickerEmojiListWithResponse(ctx context.Context, body SetStickerEmojiListJSONRequestBody, reqEditors ...RequestEditorFn) (*SetStickerEmojiListResponse, error)
func (*ClientWithResponses) SetStickerKeywordsWithBodyWithResponse ¶
func (c *ClientWithResponses) SetStickerKeywordsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetStickerKeywordsResponse, error)
SetStickerKeywordsWithBodyWithResponse request with arbitrary body returning *SetStickerKeywordsResponse
func (*ClientWithResponses) SetStickerKeywordsWithResponse ¶
func (c *ClientWithResponses) SetStickerKeywordsWithResponse(ctx context.Context, body SetStickerKeywordsJSONRequestBody, reqEditors ...RequestEditorFn) (*SetStickerKeywordsResponse, error)
func (*ClientWithResponses) SetStickerMaskPositionWithBodyWithResponse ¶
func (c *ClientWithResponses) SetStickerMaskPositionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetStickerMaskPositionResponse, error)
SetStickerMaskPositionWithBodyWithResponse request with arbitrary body returning *SetStickerMaskPositionResponse
func (*ClientWithResponses) SetStickerMaskPositionWithResponse ¶
func (c *ClientWithResponses) SetStickerMaskPositionWithResponse(ctx context.Context, body SetStickerMaskPositionJSONRequestBody, reqEditors ...RequestEditorFn) (*SetStickerMaskPositionResponse, error)
func (*ClientWithResponses) SetStickerPositionInSetWithBodyWithResponse ¶
func (c *ClientWithResponses) SetStickerPositionInSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetStickerPositionInSetResponse, error)
SetStickerPositionInSetWithBodyWithResponse request with arbitrary body returning *SetStickerPositionInSetResponse
func (*ClientWithResponses) SetStickerPositionInSetWithResponse ¶
func (c *ClientWithResponses) SetStickerPositionInSetWithResponse(ctx context.Context, body SetStickerPositionInSetJSONRequestBody, reqEditors ...RequestEditorFn) (*SetStickerPositionInSetResponse, error)
func (*ClientWithResponses) SetStickerSetThumbnailWithBodyWithResponse ¶
func (c *ClientWithResponses) SetStickerSetThumbnailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetStickerSetThumbnailResponse, error)
SetStickerSetThumbnailWithBodyWithResponse request with arbitrary body returning *SetStickerSetThumbnailResponse
func (*ClientWithResponses) SetStickerSetThumbnailWithResponse ¶
func (c *ClientWithResponses) SetStickerSetThumbnailWithResponse(ctx context.Context, body SetStickerSetThumbnailJSONRequestBody, reqEditors ...RequestEditorFn) (*SetStickerSetThumbnailResponse, error)
func (*ClientWithResponses) SetStickerSetTitleWithBodyWithResponse ¶
func (c *ClientWithResponses) SetStickerSetTitleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetStickerSetTitleResponse, error)
SetStickerSetTitleWithBodyWithResponse request with arbitrary body returning *SetStickerSetTitleResponse
func (*ClientWithResponses) SetStickerSetTitleWithResponse ¶
func (c *ClientWithResponses) SetStickerSetTitleWithResponse(ctx context.Context, body SetStickerSetTitleJSONRequestBody, reqEditors ...RequestEditorFn) (*SetStickerSetTitleResponse, error)
func (*ClientWithResponses) SetUserEmojiStatusWithBodyWithResponse ¶
func (c *ClientWithResponses) SetUserEmojiStatusWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetUserEmojiStatusResponse, error)
SetUserEmojiStatusWithBodyWithResponse request with arbitrary body returning *SetUserEmojiStatusResponse
func (*ClientWithResponses) SetUserEmojiStatusWithResponse ¶
func (c *ClientWithResponses) SetUserEmojiStatusWithResponse(ctx context.Context, body SetUserEmojiStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*SetUserEmojiStatusResponse, error)
func (*ClientWithResponses) SetWebhookWithBodyWithResponse ¶
func (c *ClientWithResponses) SetWebhookWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetWebhookResponse, error)
SetWebhookWithBodyWithResponse request with arbitrary body returning *SetWebhookResponse
func (*ClientWithResponses) SetWebhookWithResponse ¶
func (c *ClientWithResponses) SetWebhookWithResponse(ctx context.Context, body SetWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*SetWebhookResponse, error)
func (*ClientWithResponses) StopMessageLiveLocationWithBodyWithResponse ¶
func (c *ClientWithResponses) StopMessageLiveLocationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StopMessageLiveLocationResponse, error)
StopMessageLiveLocationWithBodyWithResponse request with arbitrary body returning *StopMessageLiveLocationResponse
func (*ClientWithResponses) StopMessageLiveLocationWithResponse ¶
func (c *ClientWithResponses) StopMessageLiveLocationWithResponse(ctx context.Context, body StopMessageLiveLocationJSONRequestBody, reqEditors ...RequestEditorFn) (*StopMessageLiveLocationResponse, error)
func (*ClientWithResponses) StopPollWithBodyWithResponse ¶
func (c *ClientWithResponses) StopPollWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StopPollResponse, error)
StopPollWithBodyWithResponse request with arbitrary body returning *StopPollResponse
func (*ClientWithResponses) StopPollWithResponse ¶
func (c *ClientWithResponses) StopPollWithResponse(ctx context.Context, body StopPollJSONRequestBody, reqEditors ...RequestEditorFn) (*StopPollResponse, error)
func (*ClientWithResponses) TransferBusinessAccountStarsWithBodyWithResponse ¶
func (c *ClientWithResponses) TransferBusinessAccountStarsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TransferBusinessAccountStarsResponse, error)
TransferBusinessAccountStarsWithBodyWithResponse request with arbitrary body returning *TransferBusinessAccountStarsResponse
func (*ClientWithResponses) TransferBusinessAccountStarsWithResponse ¶
func (c *ClientWithResponses) TransferBusinessAccountStarsWithResponse(ctx context.Context, body TransferBusinessAccountStarsJSONRequestBody, reqEditors ...RequestEditorFn) (*TransferBusinessAccountStarsResponse, error)
func (*ClientWithResponses) TransferGiftWithBodyWithResponse ¶
func (c *ClientWithResponses) TransferGiftWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TransferGiftResponse, error)
TransferGiftWithBodyWithResponse request with arbitrary body returning *TransferGiftResponse
func (*ClientWithResponses) TransferGiftWithResponse ¶
func (c *ClientWithResponses) TransferGiftWithResponse(ctx context.Context, body TransferGiftJSONRequestBody, reqEditors ...RequestEditorFn) (*TransferGiftResponse, error)
func (*ClientWithResponses) UnbanChatMemberWithBodyWithResponse ¶
func (c *ClientWithResponses) UnbanChatMemberWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UnbanChatMemberResponse, error)
UnbanChatMemberWithBodyWithResponse request with arbitrary body returning *UnbanChatMemberResponse
func (*ClientWithResponses) UnbanChatMemberWithResponse ¶
func (c *ClientWithResponses) UnbanChatMemberWithResponse(ctx context.Context, body UnbanChatMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*UnbanChatMemberResponse, error)
func (*ClientWithResponses) UnbanChatSenderChatWithBodyWithResponse ¶
func (c *ClientWithResponses) UnbanChatSenderChatWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UnbanChatSenderChatResponse, error)
UnbanChatSenderChatWithBodyWithResponse request with arbitrary body returning *UnbanChatSenderChatResponse
func (*ClientWithResponses) UnbanChatSenderChatWithResponse ¶
func (c *ClientWithResponses) UnbanChatSenderChatWithResponse(ctx context.Context, body UnbanChatSenderChatJSONRequestBody, reqEditors ...RequestEditorFn) (*UnbanChatSenderChatResponse, error)
func (*ClientWithResponses) UnhideGeneralForumTopicWithBodyWithResponse ¶
func (c *ClientWithResponses) UnhideGeneralForumTopicWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UnhideGeneralForumTopicResponse, error)
UnhideGeneralForumTopicWithBodyWithResponse request with arbitrary body returning *UnhideGeneralForumTopicResponse
func (*ClientWithResponses) UnhideGeneralForumTopicWithResponse ¶
func (c *ClientWithResponses) UnhideGeneralForumTopicWithResponse(ctx context.Context, body UnhideGeneralForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*UnhideGeneralForumTopicResponse, error)
func (*ClientWithResponses) UnpinAllChatMessagesWithBodyWithResponse ¶
func (c *ClientWithResponses) UnpinAllChatMessagesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UnpinAllChatMessagesResponse, error)
UnpinAllChatMessagesWithBodyWithResponse request with arbitrary body returning *UnpinAllChatMessagesResponse
func (*ClientWithResponses) UnpinAllChatMessagesWithResponse ¶
func (c *ClientWithResponses) UnpinAllChatMessagesWithResponse(ctx context.Context, body UnpinAllChatMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*UnpinAllChatMessagesResponse, error)
func (*ClientWithResponses) UnpinAllForumTopicMessagesWithBodyWithResponse ¶
func (c *ClientWithResponses) UnpinAllForumTopicMessagesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UnpinAllForumTopicMessagesResponse, error)
UnpinAllForumTopicMessagesWithBodyWithResponse request with arbitrary body returning *UnpinAllForumTopicMessagesResponse
func (*ClientWithResponses) UnpinAllForumTopicMessagesWithResponse ¶
func (c *ClientWithResponses) UnpinAllForumTopicMessagesWithResponse(ctx context.Context, body UnpinAllForumTopicMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*UnpinAllForumTopicMessagesResponse, error)
func (*ClientWithResponses) UnpinAllGeneralForumTopicMessagesWithBodyWithResponse ¶
func (c *ClientWithResponses) UnpinAllGeneralForumTopicMessagesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UnpinAllGeneralForumTopicMessagesResponse, error)
UnpinAllGeneralForumTopicMessagesWithBodyWithResponse request with arbitrary body returning *UnpinAllGeneralForumTopicMessagesResponse
func (*ClientWithResponses) UnpinAllGeneralForumTopicMessagesWithResponse ¶
func (c *ClientWithResponses) UnpinAllGeneralForumTopicMessagesWithResponse(ctx context.Context, body UnpinAllGeneralForumTopicMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*UnpinAllGeneralForumTopicMessagesResponse, error)
func (*ClientWithResponses) UnpinChatMessageWithBodyWithResponse ¶
func (c *ClientWithResponses) UnpinChatMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UnpinChatMessageResponse, error)
UnpinChatMessageWithBodyWithResponse request with arbitrary body returning *UnpinChatMessageResponse
func (*ClientWithResponses) UnpinChatMessageWithResponse ¶
func (c *ClientWithResponses) UnpinChatMessageWithResponse(ctx context.Context, body UnpinChatMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*UnpinChatMessageResponse, error)
func (*ClientWithResponses) UpgradeGiftWithBodyWithResponse ¶
func (c *ClientWithResponses) UpgradeGiftWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpgradeGiftResponse, error)
UpgradeGiftWithBodyWithResponse request with arbitrary body returning *UpgradeGiftResponse
func (*ClientWithResponses) UpgradeGiftWithResponse ¶
func (c *ClientWithResponses) UpgradeGiftWithResponse(ctx context.Context, body UpgradeGiftJSONRequestBody, reqEditors ...RequestEditorFn) (*UpgradeGiftResponse, error)
func (*ClientWithResponses) UploadStickerFileWithBodyWithResponse ¶
func (c *ClientWithResponses) UploadStickerFileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadStickerFileResponse, error)
UploadStickerFileWithBodyWithResponse request with arbitrary body returning *UploadStickerFileResponse
func (*ClientWithResponses) UploadStickerFileWithResponse ¶
func (c *ClientWithResponses) UploadStickerFileWithResponse(ctx context.Context, body UploadStickerFileJSONRequestBody, reqEditors ...RequestEditorFn) (*UploadStickerFileResponse, error)
func (*ClientWithResponses) VerifyChatWithBodyWithResponse ¶
func (c *ClientWithResponses) VerifyChatWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyChatResponse, error)
VerifyChatWithBodyWithResponse request with arbitrary body returning *VerifyChatResponse
func (*ClientWithResponses) VerifyChatWithResponse ¶
func (c *ClientWithResponses) VerifyChatWithResponse(ctx context.Context, body VerifyChatJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyChatResponse, error)
func (*ClientWithResponses) VerifyUserWithBodyWithResponse ¶
func (c *ClientWithResponses) VerifyUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyUserResponse, error)
VerifyUserWithBodyWithResponse request with arbitrary body returning *VerifyUserResponse
func (*ClientWithResponses) VerifyUserWithResponse ¶
func (c *ClientWithResponses) VerifyUserWithResponse(ctx context.Context, body VerifyUserJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyUserResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// AddStickerToSetWithBodyWithResponse request with any body
AddStickerToSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddStickerToSetResponse, error)
AddStickerToSetWithResponse(ctx context.Context, body AddStickerToSetJSONRequestBody, reqEditors ...RequestEditorFn) (*AddStickerToSetResponse, error)
// AnswerCallbackQueryWithBodyWithResponse request with any body
AnswerCallbackQueryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AnswerCallbackQueryResponse, error)
AnswerCallbackQueryWithResponse(ctx context.Context, body AnswerCallbackQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*AnswerCallbackQueryResponse, error)
// AnswerInlineQueryWithBodyWithResponse request with any body
AnswerInlineQueryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AnswerInlineQueryResponse, error)
AnswerInlineQueryWithResponse(ctx context.Context, body AnswerInlineQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*AnswerInlineQueryResponse, error)
// AnswerPreCheckoutQueryWithBodyWithResponse request with any body
AnswerPreCheckoutQueryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AnswerPreCheckoutQueryResponse, error)
AnswerPreCheckoutQueryWithResponse(ctx context.Context, body AnswerPreCheckoutQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*AnswerPreCheckoutQueryResponse, error)
// AnswerShippingQueryWithBodyWithResponse request with any body
AnswerShippingQueryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AnswerShippingQueryResponse, error)
AnswerShippingQueryWithResponse(ctx context.Context, body AnswerShippingQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*AnswerShippingQueryResponse, error)
// AnswerWebAppQueryWithBodyWithResponse request with any body
AnswerWebAppQueryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AnswerWebAppQueryResponse, error)
AnswerWebAppQueryWithResponse(ctx context.Context, body AnswerWebAppQueryJSONRequestBody, reqEditors ...RequestEditorFn) (*AnswerWebAppQueryResponse, error)
// ApproveChatJoinRequestWithBodyWithResponse request with any body
ApproveChatJoinRequestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApproveChatJoinRequestResponse, error)
ApproveChatJoinRequestWithResponse(ctx context.Context, body ApproveChatJoinRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*ApproveChatJoinRequestResponse, error)
// ApproveSuggestedPostWithBodyWithResponse request with any body
ApproveSuggestedPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApproveSuggestedPostResponse, error)
ApproveSuggestedPostWithResponse(ctx context.Context, body ApproveSuggestedPostJSONRequestBody, reqEditors ...RequestEditorFn) (*ApproveSuggestedPostResponse, error)
// BanChatMemberWithBodyWithResponse request with any body
BanChatMemberWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BanChatMemberResponse, error)
BanChatMemberWithResponse(ctx context.Context, body BanChatMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*BanChatMemberResponse, error)
// BanChatSenderChatWithBodyWithResponse request with any body
BanChatSenderChatWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BanChatSenderChatResponse, error)
BanChatSenderChatWithResponse(ctx context.Context, body BanChatSenderChatJSONRequestBody, reqEditors ...RequestEditorFn) (*BanChatSenderChatResponse, error)
// CloseWithResponse request
CloseWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*CloseResponse, error)
// CloseForumTopicWithBodyWithResponse request with any body
CloseForumTopicWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CloseForumTopicResponse, error)
CloseForumTopicWithResponse(ctx context.Context, body CloseForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*CloseForumTopicResponse, error)
// CloseGeneralForumTopicWithBodyWithResponse request with any body
CloseGeneralForumTopicWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CloseGeneralForumTopicResponse, error)
CloseGeneralForumTopicWithResponse(ctx context.Context, body CloseGeneralForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*CloseGeneralForumTopicResponse, error)
// ConvertGiftToStarsWithBodyWithResponse request with any body
ConvertGiftToStarsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConvertGiftToStarsResponse, error)
ConvertGiftToStarsWithResponse(ctx context.Context, body ConvertGiftToStarsJSONRequestBody, reqEditors ...RequestEditorFn) (*ConvertGiftToStarsResponse, error)
// CopyMessageWithBodyWithResponse request with any body
CopyMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CopyMessageResponse, error)
CopyMessageWithResponse(ctx context.Context, body CopyMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*CopyMessageResponse, error)
// CopyMessagesWithBodyWithResponse request with any body
CopyMessagesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CopyMessagesResponse, error)
CopyMessagesWithResponse(ctx context.Context, body CopyMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*CopyMessagesResponse, error)
// CreateChatInviteLinkWithBodyWithResponse request with any body
CreateChatInviteLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateChatInviteLinkResponse, error)
CreateChatInviteLinkWithResponse(ctx context.Context, body CreateChatInviteLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateChatInviteLinkResponse, error)
// CreateChatSubscriptionInviteLinkWithBodyWithResponse request with any body
CreateChatSubscriptionInviteLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateChatSubscriptionInviteLinkResponse, error)
CreateChatSubscriptionInviteLinkWithResponse(ctx context.Context, body CreateChatSubscriptionInviteLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateChatSubscriptionInviteLinkResponse, error)
// CreateForumTopicWithBodyWithResponse request with any body
CreateForumTopicWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateForumTopicResponse, error)
CreateForumTopicWithResponse(ctx context.Context, body CreateForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateForumTopicResponse, error)
// CreateInvoiceLinkWithBodyWithResponse request with any body
CreateInvoiceLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInvoiceLinkResponse, error)
CreateInvoiceLinkWithResponse(ctx context.Context, body CreateInvoiceLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInvoiceLinkResponse, error)
// CreateNewStickerSetWithBodyWithResponse request with any body
CreateNewStickerSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNewStickerSetResponse, error)
CreateNewStickerSetWithResponse(ctx context.Context, body CreateNewStickerSetJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNewStickerSetResponse, error)
// DeclineChatJoinRequestWithBodyWithResponse request with any body
DeclineChatJoinRequestWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeclineChatJoinRequestResponse, error)
DeclineChatJoinRequestWithResponse(ctx context.Context, body DeclineChatJoinRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*DeclineChatJoinRequestResponse, error)
// DeclineSuggestedPostWithBodyWithResponse request with any body
DeclineSuggestedPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeclineSuggestedPostResponse, error)
DeclineSuggestedPostWithResponse(ctx context.Context, body DeclineSuggestedPostJSONRequestBody, reqEditors ...RequestEditorFn) (*DeclineSuggestedPostResponse, error)
// DeleteBusinessMessagesWithBodyWithResponse request with any body
DeleteBusinessMessagesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteBusinessMessagesResponse, error)
DeleteBusinessMessagesWithResponse(ctx context.Context, body DeleteBusinessMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteBusinessMessagesResponse, error)
// DeleteChatPhotoWithBodyWithResponse request with any body
DeleteChatPhotoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteChatPhotoResponse, error)
DeleteChatPhotoWithResponse(ctx context.Context, body DeleteChatPhotoJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteChatPhotoResponse, error)
// DeleteChatStickerSetWithBodyWithResponse request with any body
DeleteChatStickerSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteChatStickerSetResponse, error)
DeleteChatStickerSetWithResponse(ctx context.Context, body DeleteChatStickerSetJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteChatStickerSetResponse, error)
// DeleteForumTopicWithBodyWithResponse request with any body
DeleteForumTopicWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteForumTopicResponse, error)
DeleteForumTopicWithResponse(ctx context.Context, body DeleteForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteForumTopicResponse, error)
// DeleteMessageWithBodyWithResponse request with any body
DeleteMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteMessageResponse, error)
DeleteMessageWithResponse(ctx context.Context, body DeleteMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteMessageResponse, error)
// DeleteMessagesWithBodyWithResponse request with any body
DeleteMessagesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteMessagesResponse, error)
DeleteMessagesWithResponse(ctx context.Context, body DeleteMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteMessagesResponse, error)
// DeleteMyCommandsWithBodyWithResponse request with any body
DeleteMyCommandsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteMyCommandsResponse, error)
DeleteMyCommandsWithResponse(ctx context.Context, body DeleteMyCommandsJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteMyCommandsResponse, error)
// DeleteStickerFromSetWithBodyWithResponse request with any body
DeleteStickerFromSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteStickerFromSetResponse, error)
DeleteStickerFromSetWithResponse(ctx context.Context, body DeleteStickerFromSetJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteStickerFromSetResponse, error)
// DeleteStickerSetWithBodyWithResponse request with any body
DeleteStickerSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteStickerSetResponse, error)
DeleteStickerSetWithResponse(ctx context.Context, body DeleteStickerSetJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteStickerSetResponse, error)
// DeleteStoryWithBodyWithResponse request with any body
DeleteStoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteStoryResponse, error)
DeleteStoryWithResponse(ctx context.Context, body DeleteStoryJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteStoryResponse, error)
// DeleteWebhookWithBodyWithResponse request with any body
DeleteWebhookWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteWebhookResponse, error)
DeleteWebhookWithResponse(ctx context.Context, body DeleteWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteWebhookResponse, error)
// EditChatInviteLinkWithBodyWithResponse request with any body
EditChatInviteLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditChatInviteLinkResponse, error)
EditChatInviteLinkWithResponse(ctx context.Context, body EditChatInviteLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*EditChatInviteLinkResponse, error)
// EditChatSubscriptionInviteLinkWithBodyWithResponse request with any body
EditChatSubscriptionInviteLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditChatSubscriptionInviteLinkResponse, error)
EditChatSubscriptionInviteLinkWithResponse(ctx context.Context, body EditChatSubscriptionInviteLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*EditChatSubscriptionInviteLinkResponse, error)
// EditForumTopicWithBodyWithResponse request with any body
EditForumTopicWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditForumTopicResponse, error)
EditForumTopicWithResponse(ctx context.Context, body EditForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*EditForumTopicResponse, error)
// EditGeneralForumTopicWithBodyWithResponse request with any body
EditGeneralForumTopicWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditGeneralForumTopicResponse, error)
EditGeneralForumTopicWithResponse(ctx context.Context, body EditGeneralForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*EditGeneralForumTopicResponse, error)
// EditMessageCaptionWithBodyWithResponse request with any body
EditMessageCaptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditMessageCaptionResponse, error)
EditMessageCaptionWithResponse(ctx context.Context, body EditMessageCaptionJSONRequestBody, reqEditors ...RequestEditorFn) (*EditMessageCaptionResponse, error)
// EditMessageChecklistWithBodyWithResponse request with any body
EditMessageChecklistWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditMessageChecklistResponse, error)
EditMessageChecklistWithResponse(ctx context.Context, body EditMessageChecklistJSONRequestBody, reqEditors ...RequestEditorFn) (*EditMessageChecklistResponse, error)
// EditMessageLiveLocationWithBodyWithResponse request with any body
EditMessageLiveLocationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditMessageLiveLocationResponse, error)
EditMessageLiveLocationWithResponse(ctx context.Context, body EditMessageLiveLocationJSONRequestBody, reqEditors ...RequestEditorFn) (*EditMessageLiveLocationResponse, error)
// EditMessageMediaWithBodyWithResponse request with any body
EditMessageMediaWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditMessageMediaResponse, error)
EditMessageMediaWithResponse(ctx context.Context, body EditMessageMediaJSONRequestBody, reqEditors ...RequestEditorFn) (*EditMessageMediaResponse, error)
// EditMessageReplyMarkupWithBodyWithResponse request with any body
EditMessageReplyMarkupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditMessageReplyMarkupResponse, error)
EditMessageReplyMarkupWithResponse(ctx context.Context, body EditMessageReplyMarkupJSONRequestBody, reqEditors ...RequestEditorFn) (*EditMessageReplyMarkupResponse, error)
// EditMessageTextWithBodyWithResponse request with any body
EditMessageTextWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditMessageTextResponse, error)
EditMessageTextWithResponse(ctx context.Context, body EditMessageTextJSONRequestBody, reqEditors ...RequestEditorFn) (*EditMessageTextResponse, error)
// EditStoryWithBodyWithResponse request with any body
EditStoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditStoryResponse, error)
EditStoryWithResponse(ctx context.Context, body EditStoryJSONRequestBody, reqEditors ...RequestEditorFn) (*EditStoryResponse, error)
// EditUserStarSubscriptionWithBodyWithResponse request with any body
EditUserStarSubscriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditUserStarSubscriptionResponse, error)
EditUserStarSubscriptionWithResponse(ctx context.Context, body EditUserStarSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*EditUserStarSubscriptionResponse, error)
// ExportChatInviteLinkWithBodyWithResponse request with any body
ExportChatInviteLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExportChatInviteLinkResponse, error)
ExportChatInviteLinkWithResponse(ctx context.Context, body ExportChatInviteLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*ExportChatInviteLinkResponse, error)
// ForwardMessageWithBodyWithResponse request with any body
ForwardMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ForwardMessageResponse, error)
ForwardMessageWithResponse(ctx context.Context, body ForwardMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*ForwardMessageResponse, error)
// ForwardMessagesWithBodyWithResponse request with any body
ForwardMessagesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ForwardMessagesResponse, error)
ForwardMessagesWithResponse(ctx context.Context, body ForwardMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*ForwardMessagesResponse, error)
// GetAvailableGiftsWithResponse request
GetAvailableGiftsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAvailableGiftsResponse, error)
// GetBusinessAccountGiftsWithBodyWithResponse request with any body
GetBusinessAccountGiftsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetBusinessAccountGiftsResponse, error)
GetBusinessAccountGiftsWithResponse(ctx context.Context, body GetBusinessAccountGiftsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetBusinessAccountGiftsResponse, error)
// GetBusinessAccountStarBalanceWithBodyWithResponse request with any body
GetBusinessAccountStarBalanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetBusinessAccountStarBalanceResponse, error)
GetBusinessAccountStarBalanceWithResponse(ctx context.Context, body GetBusinessAccountStarBalanceJSONRequestBody, reqEditors ...RequestEditorFn) (*GetBusinessAccountStarBalanceResponse, error)
// GetBusinessConnectionWithBodyWithResponse request with any body
GetBusinessConnectionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetBusinessConnectionResponse, error)
GetBusinessConnectionWithResponse(ctx context.Context, body GetBusinessConnectionJSONRequestBody, reqEditors ...RequestEditorFn) (*GetBusinessConnectionResponse, error)
// GetChatWithBodyWithResponse request with any body
GetChatWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetChatResponse, error)
GetChatWithResponse(ctx context.Context, body GetChatJSONRequestBody, reqEditors ...RequestEditorFn) (*GetChatResponse, error)
// GetChatAdministratorsWithBodyWithResponse request with any body
GetChatAdministratorsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetChatAdministratorsResponse, error)
GetChatAdministratorsWithResponse(ctx context.Context, body GetChatAdministratorsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetChatAdministratorsResponse, error)
// GetChatGiftsWithBodyWithResponse request with any body
GetChatGiftsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetChatGiftsResponse, error)
GetChatGiftsWithResponse(ctx context.Context, body GetChatGiftsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetChatGiftsResponse, error)
// GetChatMemberWithBodyWithResponse request with any body
GetChatMemberWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetChatMemberResponse, error)
GetChatMemberWithResponse(ctx context.Context, body GetChatMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*GetChatMemberResponse, error)
// GetChatMemberCountWithBodyWithResponse request with any body
GetChatMemberCountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetChatMemberCountResponse, error)
GetChatMemberCountWithResponse(ctx context.Context, body GetChatMemberCountJSONRequestBody, reqEditors ...RequestEditorFn) (*GetChatMemberCountResponse, error)
// GetChatMenuButtonWithBodyWithResponse request with any body
GetChatMenuButtonWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetChatMenuButtonResponse, error)
GetChatMenuButtonWithResponse(ctx context.Context, body GetChatMenuButtonJSONRequestBody, reqEditors ...RequestEditorFn) (*GetChatMenuButtonResponse, error)
// GetCustomEmojiStickersWithBodyWithResponse request with any body
GetCustomEmojiStickersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetCustomEmojiStickersResponse, error)
GetCustomEmojiStickersWithResponse(ctx context.Context, body GetCustomEmojiStickersJSONRequestBody, reqEditors ...RequestEditorFn) (*GetCustomEmojiStickersResponse, error)
// GetFileWithBodyWithResponse request with any body
GetFileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetFileResponse, error)
GetFileWithResponse(ctx context.Context, body GetFileJSONRequestBody, reqEditors ...RequestEditorFn) (*GetFileResponse, error)
// GetForumTopicIconStickersWithResponse request
GetForumTopicIconStickersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetForumTopicIconStickersResponse, error)
// GetGameHighScoresWithBodyWithResponse request with any body
GetGameHighScoresWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetGameHighScoresResponse, error)
GetGameHighScoresWithResponse(ctx context.Context, body GetGameHighScoresJSONRequestBody, reqEditors ...RequestEditorFn) (*GetGameHighScoresResponse, error)
// GetMeWithResponse request
GetMeWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMeResponse, error)
// GetMyCommandsWithBodyWithResponse request with any body
GetMyCommandsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetMyCommandsResponse, error)
GetMyCommandsWithResponse(ctx context.Context, body GetMyCommandsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetMyCommandsResponse, error)
// GetMyDefaultAdministratorRightsWithBodyWithResponse request with any body
GetMyDefaultAdministratorRightsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetMyDefaultAdministratorRightsResponse, error)
GetMyDefaultAdministratorRightsWithResponse(ctx context.Context, body GetMyDefaultAdministratorRightsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetMyDefaultAdministratorRightsResponse, error)
// GetMyDescriptionWithBodyWithResponse request with any body
GetMyDescriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetMyDescriptionResponse, error)
GetMyDescriptionWithResponse(ctx context.Context, body GetMyDescriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*GetMyDescriptionResponse, error)
// GetMyNameWithBodyWithResponse request with any body
GetMyNameWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetMyNameResponse, error)
GetMyNameWithResponse(ctx context.Context, body GetMyNameJSONRequestBody, reqEditors ...RequestEditorFn) (*GetMyNameResponse, error)
// GetMyShortDescriptionWithBodyWithResponse request with any body
GetMyShortDescriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetMyShortDescriptionResponse, error)
GetMyShortDescriptionWithResponse(ctx context.Context, body GetMyShortDescriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*GetMyShortDescriptionResponse, error)
// GetMyStarBalanceWithResponse request
GetMyStarBalanceWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMyStarBalanceResponse, error)
// GetStarTransactionsWithBodyWithResponse request with any body
GetStarTransactionsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetStarTransactionsResponse, error)
GetStarTransactionsWithResponse(ctx context.Context, body GetStarTransactionsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetStarTransactionsResponse, error)
// GetStickerSetWithBodyWithResponse request with any body
GetStickerSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetStickerSetResponse, error)
GetStickerSetWithResponse(ctx context.Context, body GetStickerSetJSONRequestBody, reqEditors ...RequestEditorFn) (*GetStickerSetResponse, error)
// GetUpdatesWithBodyWithResponse request with any body
GetUpdatesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUpdatesResponse, error)
GetUpdatesWithResponse(ctx context.Context, body GetUpdatesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUpdatesResponse, error)
// GetUserChatBoostsWithBodyWithResponse request with any body
GetUserChatBoostsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserChatBoostsResponse, error)
GetUserChatBoostsWithResponse(ctx context.Context, body GetUserChatBoostsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserChatBoostsResponse, error)
// GetUserGiftsWithBodyWithResponse request with any body
GetUserGiftsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserGiftsResponse, error)
GetUserGiftsWithResponse(ctx context.Context, body GetUserGiftsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserGiftsResponse, error)
// GetUserProfilePhotosWithBodyWithResponse request with any body
GetUserProfilePhotosWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserProfilePhotosResponse, error)
GetUserProfilePhotosWithResponse(ctx context.Context, body GetUserProfilePhotosJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserProfilePhotosResponse, error)
// GetWebhookInfoWithResponse request
GetWebhookInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWebhookInfoResponse, error)
// GiftPremiumSubscriptionWithBodyWithResponse request with any body
GiftPremiumSubscriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GiftPremiumSubscriptionResponse, error)
GiftPremiumSubscriptionWithResponse(ctx context.Context, body GiftPremiumSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*GiftPremiumSubscriptionResponse, error)
// HideGeneralForumTopicWithBodyWithResponse request with any body
HideGeneralForumTopicWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HideGeneralForumTopicResponse, error)
HideGeneralForumTopicWithResponse(ctx context.Context, body HideGeneralForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*HideGeneralForumTopicResponse, error)
// LeaveChatWithBodyWithResponse request with any body
LeaveChatWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LeaveChatResponse, error)
LeaveChatWithResponse(ctx context.Context, body LeaveChatJSONRequestBody, reqEditors ...RequestEditorFn) (*LeaveChatResponse, error)
// LogOutWithResponse request
LogOutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogOutResponse, error)
// PinChatMessageWithBodyWithResponse request with any body
PinChatMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PinChatMessageResponse, error)
PinChatMessageWithResponse(ctx context.Context, body PinChatMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*PinChatMessageResponse, error)
// PostStoryWithBodyWithResponse request with any body
PostStoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostStoryResponse, error)
PostStoryWithResponse(ctx context.Context, body PostStoryJSONRequestBody, reqEditors ...RequestEditorFn) (*PostStoryResponse, error)
// PromoteChatMemberWithBodyWithResponse request with any body
PromoteChatMemberWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PromoteChatMemberResponse, error)
PromoteChatMemberWithResponse(ctx context.Context, body PromoteChatMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*PromoteChatMemberResponse, error)
// ReadBusinessMessageWithBodyWithResponse request with any body
ReadBusinessMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReadBusinessMessageResponse, error)
ReadBusinessMessageWithResponse(ctx context.Context, body ReadBusinessMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*ReadBusinessMessageResponse, error)
// RefundStarPaymentWithBodyWithResponse request with any body
RefundStarPaymentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RefundStarPaymentResponse, error)
RefundStarPaymentWithResponse(ctx context.Context, body RefundStarPaymentJSONRequestBody, reqEditors ...RequestEditorFn) (*RefundStarPaymentResponse, error)
// RemoveBusinessAccountProfilePhotoWithBodyWithResponse request with any body
RemoveBusinessAccountProfilePhotoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveBusinessAccountProfilePhotoResponse, error)
RemoveBusinessAccountProfilePhotoWithResponse(ctx context.Context, body RemoveBusinessAccountProfilePhotoJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveBusinessAccountProfilePhotoResponse, error)
// RemoveChatVerificationWithBodyWithResponse request with any body
RemoveChatVerificationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveChatVerificationResponse, error)
RemoveChatVerificationWithResponse(ctx context.Context, body RemoveChatVerificationJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveChatVerificationResponse, error)
// RemoveUserVerificationWithBodyWithResponse request with any body
RemoveUserVerificationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveUserVerificationResponse, error)
RemoveUserVerificationWithResponse(ctx context.Context, body RemoveUserVerificationJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveUserVerificationResponse, error)
// ReopenForumTopicWithBodyWithResponse request with any body
ReopenForumTopicWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReopenForumTopicResponse, error)
ReopenForumTopicWithResponse(ctx context.Context, body ReopenForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*ReopenForumTopicResponse, error)
// ReopenGeneralForumTopicWithBodyWithResponse request with any body
ReopenGeneralForumTopicWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReopenGeneralForumTopicResponse, error)
ReopenGeneralForumTopicWithResponse(ctx context.Context, body ReopenGeneralForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*ReopenGeneralForumTopicResponse, error)
// ReplaceStickerInSetWithBodyWithResponse request with any body
ReplaceStickerInSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceStickerInSetResponse, error)
ReplaceStickerInSetWithResponse(ctx context.Context, body ReplaceStickerInSetJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceStickerInSetResponse, error)
// RepostStoryWithBodyWithResponse request with any body
RepostStoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RepostStoryResponse, error)
RepostStoryWithResponse(ctx context.Context, body RepostStoryJSONRequestBody, reqEditors ...RequestEditorFn) (*RepostStoryResponse, error)
// RestrictChatMemberWithBodyWithResponse request with any body
RestrictChatMemberWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RestrictChatMemberResponse, error)
RestrictChatMemberWithResponse(ctx context.Context, body RestrictChatMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*RestrictChatMemberResponse, error)
// RevokeChatInviteLinkWithBodyWithResponse request with any body
RevokeChatInviteLinkWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RevokeChatInviteLinkResponse, error)
RevokeChatInviteLinkWithResponse(ctx context.Context, body RevokeChatInviteLinkJSONRequestBody, reqEditors ...RequestEditorFn) (*RevokeChatInviteLinkResponse, error)
// SavePreparedInlineMessageWithBodyWithResponse request with any body
SavePreparedInlineMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SavePreparedInlineMessageResponse, error)
SavePreparedInlineMessageWithResponse(ctx context.Context, body SavePreparedInlineMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*SavePreparedInlineMessageResponse, error)
// SendAnimationWithBodyWithResponse request with any body
SendAnimationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendAnimationResponse, error)
SendAnimationWithResponse(ctx context.Context, body SendAnimationJSONRequestBody, reqEditors ...RequestEditorFn) (*SendAnimationResponse, error)
// SendAudioWithBodyWithResponse request with any body
SendAudioWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendAudioResponse, error)
SendAudioWithResponse(ctx context.Context, body SendAudioJSONRequestBody, reqEditors ...RequestEditorFn) (*SendAudioResponse, error)
// SendChatActionWithBodyWithResponse request with any body
SendChatActionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendChatActionResponse, error)
SendChatActionWithResponse(ctx context.Context, body SendChatActionJSONRequestBody, reqEditors ...RequestEditorFn) (*SendChatActionResponse, error)
// SendChecklistWithBodyWithResponse request with any body
SendChecklistWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendChecklistResponse, error)
SendChecklistWithResponse(ctx context.Context, body SendChecklistJSONRequestBody, reqEditors ...RequestEditorFn) (*SendChecklistResponse, error)
// SendContactWithBodyWithResponse request with any body
SendContactWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendContactResponse, error)
SendContactWithResponse(ctx context.Context, body SendContactJSONRequestBody, reqEditors ...RequestEditorFn) (*SendContactResponse, error)
// SendDiceWithBodyWithResponse request with any body
SendDiceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendDiceResponse, error)
SendDiceWithResponse(ctx context.Context, body SendDiceJSONRequestBody, reqEditors ...RequestEditorFn) (*SendDiceResponse, error)
// SendDocumentWithBodyWithResponse request with any body
SendDocumentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendDocumentResponse, error)
SendDocumentWithResponse(ctx context.Context, body SendDocumentJSONRequestBody, reqEditors ...RequestEditorFn) (*SendDocumentResponse, error)
// SendGameWithBodyWithResponse request with any body
SendGameWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendGameResponse, error)
SendGameWithResponse(ctx context.Context, body SendGameJSONRequestBody, reqEditors ...RequestEditorFn) (*SendGameResponse, error)
// SendGiftWithBodyWithResponse request with any body
SendGiftWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendGiftResponse, error)
SendGiftWithResponse(ctx context.Context, body SendGiftJSONRequestBody, reqEditors ...RequestEditorFn) (*SendGiftResponse, error)
// SendInvoiceWithBodyWithResponse request with any body
SendInvoiceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendInvoiceResponse, error)
SendInvoiceWithResponse(ctx context.Context, body SendInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*SendInvoiceResponse, error)
// SendLocationWithBodyWithResponse request with any body
SendLocationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendLocationResponse, error)
SendLocationWithResponse(ctx context.Context, body SendLocationJSONRequestBody, reqEditors ...RequestEditorFn) (*SendLocationResponse, error)
// SendMediaGroupWithBodyWithResponse request with any body
SendMediaGroupWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendMediaGroupResponse, error)
SendMediaGroupWithResponse(ctx context.Context, body SendMediaGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*SendMediaGroupResponse, error)
// SendMessageWithBodyWithResponse request with any body
SendMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendMessageResponse, error)
SendMessageWithResponse(ctx context.Context, body SendMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*SendMessageResponse, error)
// SendMessageDraftWithBodyWithResponse request with any body
SendMessageDraftWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendMessageDraftResponse, error)
SendMessageDraftWithResponse(ctx context.Context, body SendMessageDraftJSONRequestBody, reqEditors ...RequestEditorFn) (*SendMessageDraftResponse, error)
// SendPaidMediaWithBodyWithResponse request with any body
SendPaidMediaWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendPaidMediaResponse, error)
SendPaidMediaWithResponse(ctx context.Context, body SendPaidMediaJSONRequestBody, reqEditors ...RequestEditorFn) (*SendPaidMediaResponse, error)
// SendPhotoWithBodyWithResponse request with any body
SendPhotoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendPhotoResponse, error)
SendPhotoWithResponse(ctx context.Context, body SendPhotoJSONRequestBody, reqEditors ...RequestEditorFn) (*SendPhotoResponse, error)
// SendPollWithBodyWithResponse request with any body
SendPollWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendPollResponse, error)
SendPollWithResponse(ctx context.Context, body SendPollJSONRequestBody, reqEditors ...RequestEditorFn) (*SendPollResponse, error)
// SendStickerWithBodyWithResponse request with any body
SendStickerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendStickerResponse, error)
SendStickerWithResponse(ctx context.Context, body SendStickerJSONRequestBody, reqEditors ...RequestEditorFn) (*SendStickerResponse, error)
// SendVenueWithBodyWithResponse request with any body
SendVenueWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendVenueResponse, error)
SendVenueWithResponse(ctx context.Context, body SendVenueJSONRequestBody, reqEditors ...RequestEditorFn) (*SendVenueResponse, error)
// SendVideoWithBodyWithResponse request with any body
SendVideoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendVideoResponse, error)
SendVideoWithResponse(ctx context.Context, body SendVideoJSONRequestBody, reqEditors ...RequestEditorFn) (*SendVideoResponse, error)
// SendVideoNoteWithBodyWithResponse request with any body
SendVideoNoteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendVideoNoteResponse, error)
SendVideoNoteWithResponse(ctx context.Context, body SendVideoNoteJSONRequestBody, reqEditors ...RequestEditorFn) (*SendVideoNoteResponse, error)
// SendVoiceWithBodyWithResponse request with any body
SendVoiceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendVoiceResponse, error)
SendVoiceWithResponse(ctx context.Context, body SendVoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*SendVoiceResponse, error)
// SetBusinessAccountBioWithBodyWithResponse request with any body
SetBusinessAccountBioWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetBusinessAccountBioResponse, error)
SetBusinessAccountBioWithResponse(ctx context.Context, body SetBusinessAccountBioJSONRequestBody, reqEditors ...RequestEditorFn) (*SetBusinessAccountBioResponse, error)
// SetBusinessAccountGiftSettingsWithBodyWithResponse request with any body
SetBusinessAccountGiftSettingsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetBusinessAccountGiftSettingsResponse, error)
SetBusinessAccountGiftSettingsWithResponse(ctx context.Context, body SetBusinessAccountGiftSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*SetBusinessAccountGiftSettingsResponse, error)
// SetBusinessAccountNameWithBodyWithResponse request with any body
SetBusinessAccountNameWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetBusinessAccountNameResponse, error)
SetBusinessAccountNameWithResponse(ctx context.Context, body SetBusinessAccountNameJSONRequestBody, reqEditors ...RequestEditorFn) (*SetBusinessAccountNameResponse, error)
// SetBusinessAccountProfilePhotoWithBodyWithResponse request with any body
SetBusinessAccountProfilePhotoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetBusinessAccountProfilePhotoResponse, error)
SetBusinessAccountProfilePhotoWithResponse(ctx context.Context, body SetBusinessAccountProfilePhotoJSONRequestBody, reqEditors ...RequestEditorFn) (*SetBusinessAccountProfilePhotoResponse, error)
// SetBusinessAccountUsernameWithBodyWithResponse request with any body
SetBusinessAccountUsernameWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetBusinessAccountUsernameResponse, error)
SetBusinessAccountUsernameWithResponse(ctx context.Context, body SetBusinessAccountUsernameJSONRequestBody, reqEditors ...RequestEditorFn) (*SetBusinessAccountUsernameResponse, error)
// SetChatAdministratorCustomTitleWithBodyWithResponse request with any body
SetChatAdministratorCustomTitleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetChatAdministratorCustomTitleResponse, error)
SetChatAdministratorCustomTitleWithResponse(ctx context.Context, body SetChatAdministratorCustomTitleJSONRequestBody, reqEditors ...RequestEditorFn) (*SetChatAdministratorCustomTitleResponse, error)
// SetChatDescriptionWithBodyWithResponse request with any body
SetChatDescriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetChatDescriptionResponse, error)
SetChatDescriptionWithResponse(ctx context.Context, body SetChatDescriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*SetChatDescriptionResponse, error)
// SetChatMenuButtonWithBodyWithResponse request with any body
SetChatMenuButtonWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetChatMenuButtonResponse, error)
SetChatMenuButtonWithResponse(ctx context.Context, body SetChatMenuButtonJSONRequestBody, reqEditors ...RequestEditorFn) (*SetChatMenuButtonResponse, error)
// SetChatPermissionsWithBodyWithResponse request with any body
SetChatPermissionsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetChatPermissionsResponse, error)
SetChatPermissionsWithResponse(ctx context.Context, body SetChatPermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*SetChatPermissionsResponse, error)
// SetChatPhotoWithBodyWithResponse request with any body
SetChatPhotoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetChatPhotoResponse, error)
SetChatPhotoWithResponse(ctx context.Context, body SetChatPhotoJSONRequestBody, reqEditors ...RequestEditorFn) (*SetChatPhotoResponse, error)
// SetChatStickerSetWithBodyWithResponse request with any body
SetChatStickerSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetChatStickerSetResponse, error)
SetChatStickerSetWithResponse(ctx context.Context, body SetChatStickerSetJSONRequestBody, reqEditors ...RequestEditorFn) (*SetChatStickerSetResponse, error)
// SetChatTitleWithBodyWithResponse request with any body
SetChatTitleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetChatTitleResponse, error)
SetChatTitleWithResponse(ctx context.Context, body SetChatTitleJSONRequestBody, reqEditors ...RequestEditorFn) (*SetChatTitleResponse, error)
// SetCustomEmojiStickerSetThumbnailWithBodyWithResponse request with any body
SetCustomEmojiStickerSetThumbnailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetCustomEmojiStickerSetThumbnailResponse, error)
SetCustomEmojiStickerSetThumbnailWithResponse(ctx context.Context, body SetCustomEmojiStickerSetThumbnailJSONRequestBody, reqEditors ...RequestEditorFn) (*SetCustomEmojiStickerSetThumbnailResponse, error)
// SetGameScoreWithBodyWithResponse request with any body
SetGameScoreWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetGameScoreResponse, error)
SetGameScoreWithResponse(ctx context.Context, body SetGameScoreJSONRequestBody, reqEditors ...RequestEditorFn) (*SetGameScoreResponse, error)
// SetMessageReactionWithBodyWithResponse request with any body
SetMessageReactionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetMessageReactionResponse, error)
SetMessageReactionWithResponse(ctx context.Context, body SetMessageReactionJSONRequestBody, reqEditors ...RequestEditorFn) (*SetMessageReactionResponse, error)
// SetMyCommandsWithBodyWithResponse request with any body
SetMyCommandsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetMyCommandsResponse, error)
SetMyCommandsWithResponse(ctx context.Context, body SetMyCommandsJSONRequestBody, reqEditors ...RequestEditorFn) (*SetMyCommandsResponse, error)
// SetMyDefaultAdministratorRightsWithBodyWithResponse request with any body
SetMyDefaultAdministratorRightsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetMyDefaultAdministratorRightsResponse, error)
SetMyDefaultAdministratorRightsWithResponse(ctx context.Context, body SetMyDefaultAdministratorRightsJSONRequestBody, reqEditors ...RequestEditorFn) (*SetMyDefaultAdministratorRightsResponse, error)
// SetMyDescriptionWithBodyWithResponse request with any body
SetMyDescriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetMyDescriptionResponse, error)
SetMyDescriptionWithResponse(ctx context.Context, body SetMyDescriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*SetMyDescriptionResponse, error)
// SetMyNameWithBodyWithResponse request with any body
SetMyNameWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetMyNameResponse, error)
SetMyNameWithResponse(ctx context.Context, body SetMyNameJSONRequestBody, reqEditors ...RequestEditorFn) (*SetMyNameResponse, error)
// SetMyShortDescriptionWithBodyWithResponse request with any body
SetMyShortDescriptionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetMyShortDescriptionResponse, error)
SetMyShortDescriptionWithResponse(ctx context.Context, body SetMyShortDescriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*SetMyShortDescriptionResponse, error)
// SetPassportDataErrorsWithBodyWithResponse request with any body
SetPassportDataErrorsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetPassportDataErrorsResponse, error)
SetPassportDataErrorsWithResponse(ctx context.Context, body SetPassportDataErrorsJSONRequestBody, reqEditors ...RequestEditorFn) (*SetPassportDataErrorsResponse, error)
// SetStickerEmojiListWithBodyWithResponse request with any body
SetStickerEmojiListWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetStickerEmojiListResponse, error)
SetStickerEmojiListWithResponse(ctx context.Context, body SetStickerEmojiListJSONRequestBody, reqEditors ...RequestEditorFn) (*SetStickerEmojiListResponse, error)
// SetStickerKeywordsWithBodyWithResponse request with any body
SetStickerKeywordsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetStickerKeywordsResponse, error)
SetStickerKeywordsWithResponse(ctx context.Context, body SetStickerKeywordsJSONRequestBody, reqEditors ...RequestEditorFn) (*SetStickerKeywordsResponse, error)
// SetStickerMaskPositionWithBodyWithResponse request with any body
SetStickerMaskPositionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetStickerMaskPositionResponse, error)
SetStickerMaskPositionWithResponse(ctx context.Context, body SetStickerMaskPositionJSONRequestBody, reqEditors ...RequestEditorFn) (*SetStickerMaskPositionResponse, error)
// SetStickerPositionInSetWithBodyWithResponse request with any body
SetStickerPositionInSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetStickerPositionInSetResponse, error)
SetStickerPositionInSetWithResponse(ctx context.Context, body SetStickerPositionInSetJSONRequestBody, reqEditors ...RequestEditorFn) (*SetStickerPositionInSetResponse, error)
// SetStickerSetThumbnailWithBodyWithResponse request with any body
SetStickerSetThumbnailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetStickerSetThumbnailResponse, error)
SetStickerSetThumbnailWithResponse(ctx context.Context, body SetStickerSetThumbnailJSONRequestBody, reqEditors ...RequestEditorFn) (*SetStickerSetThumbnailResponse, error)
// SetStickerSetTitleWithBodyWithResponse request with any body
SetStickerSetTitleWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetStickerSetTitleResponse, error)
SetStickerSetTitleWithResponse(ctx context.Context, body SetStickerSetTitleJSONRequestBody, reqEditors ...RequestEditorFn) (*SetStickerSetTitleResponse, error)
// SetUserEmojiStatusWithBodyWithResponse request with any body
SetUserEmojiStatusWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetUserEmojiStatusResponse, error)
SetUserEmojiStatusWithResponse(ctx context.Context, body SetUserEmojiStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*SetUserEmojiStatusResponse, error)
// SetWebhookWithBodyWithResponse request with any body
SetWebhookWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetWebhookResponse, error)
SetWebhookWithResponse(ctx context.Context, body SetWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*SetWebhookResponse, error)
// StopMessageLiveLocationWithBodyWithResponse request with any body
StopMessageLiveLocationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StopMessageLiveLocationResponse, error)
StopMessageLiveLocationWithResponse(ctx context.Context, body StopMessageLiveLocationJSONRequestBody, reqEditors ...RequestEditorFn) (*StopMessageLiveLocationResponse, error)
// StopPollWithBodyWithResponse request with any body
StopPollWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StopPollResponse, error)
StopPollWithResponse(ctx context.Context, body StopPollJSONRequestBody, reqEditors ...RequestEditorFn) (*StopPollResponse, error)
// TransferBusinessAccountStarsWithBodyWithResponse request with any body
TransferBusinessAccountStarsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TransferBusinessAccountStarsResponse, error)
TransferBusinessAccountStarsWithResponse(ctx context.Context, body TransferBusinessAccountStarsJSONRequestBody, reqEditors ...RequestEditorFn) (*TransferBusinessAccountStarsResponse, error)
// TransferGiftWithBodyWithResponse request with any body
TransferGiftWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TransferGiftResponse, error)
TransferGiftWithResponse(ctx context.Context, body TransferGiftJSONRequestBody, reqEditors ...RequestEditorFn) (*TransferGiftResponse, error)
// UnbanChatMemberWithBodyWithResponse request with any body
UnbanChatMemberWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UnbanChatMemberResponse, error)
UnbanChatMemberWithResponse(ctx context.Context, body UnbanChatMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*UnbanChatMemberResponse, error)
// UnbanChatSenderChatWithBodyWithResponse request with any body
UnbanChatSenderChatWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UnbanChatSenderChatResponse, error)
UnbanChatSenderChatWithResponse(ctx context.Context, body UnbanChatSenderChatJSONRequestBody, reqEditors ...RequestEditorFn) (*UnbanChatSenderChatResponse, error)
// UnhideGeneralForumTopicWithBodyWithResponse request with any body
UnhideGeneralForumTopicWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UnhideGeneralForumTopicResponse, error)
UnhideGeneralForumTopicWithResponse(ctx context.Context, body UnhideGeneralForumTopicJSONRequestBody, reqEditors ...RequestEditorFn) (*UnhideGeneralForumTopicResponse, error)
// UnpinAllChatMessagesWithBodyWithResponse request with any body
UnpinAllChatMessagesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UnpinAllChatMessagesResponse, error)
UnpinAllChatMessagesWithResponse(ctx context.Context, body UnpinAllChatMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*UnpinAllChatMessagesResponse, error)
// UnpinAllForumTopicMessagesWithBodyWithResponse request with any body
UnpinAllForumTopicMessagesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UnpinAllForumTopicMessagesResponse, error)
UnpinAllForumTopicMessagesWithResponse(ctx context.Context, body UnpinAllForumTopicMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*UnpinAllForumTopicMessagesResponse, error)
// UnpinAllGeneralForumTopicMessagesWithBodyWithResponse request with any body
UnpinAllGeneralForumTopicMessagesWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UnpinAllGeneralForumTopicMessagesResponse, error)
UnpinAllGeneralForumTopicMessagesWithResponse(ctx context.Context, body UnpinAllGeneralForumTopicMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*UnpinAllGeneralForumTopicMessagesResponse, error)
// UnpinChatMessageWithBodyWithResponse request with any body
UnpinChatMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UnpinChatMessageResponse, error)
UnpinChatMessageWithResponse(ctx context.Context, body UnpinChatMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*UnpinChatMessageResponse, error)
// UpgradeGiftWithBodyWithResponse request with any body
UpgradeGiftWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpgradeGiftResponse, error)
UpgradeGiftWithResponse(ctx context.Context, body UpgradeGiftJSONRequestBody, reqEditors ...RequestEditorFn) (*UpgradeGiftResponse, error)
// UploadStickerFileWithBodyWithResponse request with any body
UploadStickerFileWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadStickerFileResponse, error)
UploadStickerFileWithResponse(ctx context.Context, body UploadStickerFileJSONRequestBody, reqEditors ...RequestEditorFn) (*UploadStickerFileResponse, error)
// VerifyChatWithBodyWithResponse request with any body
VerifyChatWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyChatResponse, error)
VerifyChatWithResponse(ctx context.Context, body VerifyChatJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyChatResponse, error)
// VerifyUserWithBodyWithResponse request with any body
VerifyUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyUserResponse, error)
VerifyUserWithResponse(ctx context.Context, body VerifyUserJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyUserResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type Close200Ok ¶
type Close200Ok bool
type CloseForumTopic200Ok ¶
type CloseForumTopic200Ok bool
type CloseForumTopicJSONBody ¶
type CloseForumTopicJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
ChatId int64 `json:"chat_id"`
// MessageThreadId Unique identifier for the target message thread of the forum topic
MessageThreadId int `json:"message_thread_id"`
}
CloseForumTopicJSONBody defines parameters for CloseForumTopic.
type CloseForumTopicJSONRequestBody ¶
type CloseForumTopicJSONRequestBody CloseForumTopicJSONBody
CloseForumTopicJSONRequestBody defines body for CloseForumTopic for application/json ContentType.
type CloseForumTopicResponse ¶
type CloseForumTopicResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok CloseForumTopic200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseCloseForumTopicResponse ¶
func ParseCloseForumTopicResponse(rsp *http.Response) (*CloseForumTopicResponse, error)
ParseCloseForumTopicResponse parses an HTTP response from a CloseForumTopicWithResponse call
func (CloseForumTopicResponse) Status ¶
func (r CloseForumTopicResponse) Status() string
Status returns HTTPResponse.Status
func (CloseForumTopicResponse) StatusCode ¶
func (r CloseForumTopicResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CloseGeneralForumTopic200Ok ¶
type CloseGeneralForumTopic200Ok bool
type CloseGeneralForumTopicJSONBody ¶
type CloseGeneralForumTopicJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
ChatId int64 `json:"chat_id"`
}
CloseGeneralForumTopicJSONBody defines parameters for CloseGeneralForumTopic.
type CloseGeneralForumTopicJSONRequestBody ¶
type CloseGeneralForumTopicJSONRequestBody CloseGeneralForumTopicJSONBody
CloseGeneralForumTopicJSONRequestBody defines body for CloseGeneralForumTopic for application/json ContentType.
type CloseGeneralForumTopicResponse ¶
type CloseGeneralForumTopicResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok CloseGeneralForumTopic200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseCloseGeneralForumTopicResponse ¶
func ParseCloseGeneralForumTopicResponse(rsp *http.Response) (*CloseGeneralForumTopicResponse, error)
ParseCloseGeneralForumTopicResponse parses an HTTP response from a CloseGeneralForumTopicWithResponse call
func (CloseGeneralForumTopicResponse) Status ¶
func (r CloseGeneralForumTopicResponse) Status() string
Status returns HTTPResponse.Status
func (CloseGeneralForumTopicResponse) StatusCode ¶
func (r CloseGeneralForumTopicResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CloseResponse ¶
type CloseResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok Close200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseCloseResponse ¶
func ParseCloseResponse(rsp *http.Response) (*CloseResponse, error)
ParseCloseResponse parses an HTTP response from a CloseWithResponse call
func (CloseResponse) Status ¶
func (r CloseResponse) Status() string
Status returns HTTPResponse.Status
func (CloseResponse) StatusCode ¶
func (r CloseResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Contact ¶
type Contact struct {
// FirstName Contact's first name
FirstName string `json:"first_name"`
// LastName Optional. Contact's last name
LastName *string `json:"last_name,omitempty"`
// PhoneNumber Contact's phone number
PhoneNumber string `json:"phone_number"`
// UserId Optional. Contact's user identifier in Telegram. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.
UserId *int64 `json:"user_id,omitempty"`
// Vcard Optional. Additional data about the contact in the form of a vCard
Vcard *string `json:"vcard,omitempty"`
}
Contact This object represents a phone contact.
type ConvertGiftToStars200Ok ¶
type ConvertGiftToStars200Ok bool
type ConvertGiftToStarsJSONBody ¶
type ConvertGiftToStarsJSONBody struct {
// BusinessConnectionId Unique identifier of the business connection
BusinessConnectionId string `json:"business_connection_id"`
// OwnedGiftId Unique identifier of the regular gift that should be converted to Telegram Stars
OwnedGiftId string `json:"owned_gift_id"`
}
ConvertGiftToStarsJSONBody defines parameters for ConvertGiftToStars.
type ConvertGiftToStarsJSONRequestBody ¶
type ConvertGiftToStarsJSONRequestBody ConvertGiftToStarsJSONBody
ConvertGiftToStarsJSONRequestBody defines body for ConvertGiftToStars for application/json ContentType.
type ConvertGiftToStarsResponse ¶
type ConvertGiftToStarsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok ConvertGiftToStars200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseConvertGiftToStarsResponse ¶
func ParseConvertGiftToStarsResponse(rsp *http.Response) (*ConvertGiftToStarsResponse, error)
ParseConvertGiftToStarsResponse parses an HTTP response from a ConvertGiftToStarsWithResponse call
func (ConvertGiftToStarsResponse) Status ¶
func (r ConvertGiftToStarsResponse) Status() string
Status returns HTTPResponse.Status
func (ConvertGiftToStarsResponse) StatusCode ¶
func (r ConvertGiftToStarsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CopyMessage200Ok ¶
type CopyMessage200Ok bool
type CopyMessageJSONBody ¶
type CopyMessageJSONBody struct {
// AllowPaidBroadcast Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
AllowPaidBroadcast *bool `json:"allow_paid_broadcast,omitempty"`
// Caption New caption for media, 0-1024 characters after entities parsing. If not specified, the original caption is kept
Caption *string `json:"caption,omitempty"`
// CaptionEntities A JSON-serialized list of special entities that appear in the new caption, which can be specified instead of parse_mode
CaptionEntities *[]MessageEntity `json:"caption_entities,omitempty"`
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// DirectMessagesTopicId Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
DirectMessagesTopicId *int `json:"direct_messages_topic_id,omitempty"`
// DisableNotification Sends the message silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// FromChatId Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername)
FromChatId int64 `json:"from_chat_id"`
// MessageEffectId Unique identifier of the message effect to be added to the message; only available when copying to private chats
MessageEffectId *string `json:"message_effect_id,omitempty"`
// MessageId Message identifier in the chat specified in from_chat_id
MessageId int `json:"message_id"`
// MessageThreadId Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// ParseMode Mode for parsing entities in the new caption. See formatting options for more details.
ParseMode *string `json:"parse_mode,omitempty"`
// ProtectContent Protects the contents of the sent message from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// ReplyMarkup Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user
ReplyMarkup *struct {
// ForceReply Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'
ForceReply *bool `json:"force_reply,omitempty"`
// InlineKeyboard Array of button rows, each represented by an Array of InlineKeyboardButton objects
InlineKeyboard *[][]InlineKeyboardButton `json:"inline_keyboard,omitempty"`
// InputFieldPlaceholder Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters
InputFieldPlaceholder *string `json:"input_field_placeholder,omitempty"`
// IsPersistent Optional. Requests clients to always show the keyboard when the regular keyboard is hidden. Defaults to false, in which case the custom keyboard can be hidden and opened with a keyboard icon.
IsPersistent *bool `json:"is_persistent,omitempty"`
// Keyboard Array of button rows, each represented by an Array of KeyboardButton objects
Keyboard *[][]KeyboardButton `json:"keyboard,omitempty"`
// OneTimeKeyboard Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat - the user can press a special button in the input field to see the custom keyboard again. Defaults to false.
OneTimeKeyboard *bool `json:"one_time_keyboard,omitempty"`
// RemoveKeyboard Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)
RemoveKeyboard *bool `json:"remove_keyboard,omitempty"`
// ResizeKeyboard Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.
ResizeKeyboard *bool `json:"resize_keyboard,omitempty"`
// Selective Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.
Selective *bool `json:"selective,omitempty"`
} `json:"reply_markup,omitempty"`
// ReplyParameters Description of the message to reply to
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
// ShowCaptionAboveMedia Pass True, if the caption must be shown above the message media. Ignored if a new caption isn't specified.
ShowCaptionAboveMedia *bool `json:"show_caption_above_media,omitempty"`
// SuggestedPostParameters A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
// VideoStartTimestamp New start timestamp for the copied video in the message
VideoStartTimestamp *int `json:"video_start_timestamp,omitempty"`
}
CopyMessageJSONBody defines parameters for CopyMessage.
type CopyMessageJSONRequestBody ¶
type CopyMessageJSONRequestBody CopyMessageJSONBody
CopyMessageJSONRequestBody defines body for CopyMessage for application/json ContentType.
type CopyMessageResponse ¶
type CopyMessageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok CopyMessage200Ok `json:"ok"`
// Result This object represents a unique message identifier.
Result MessageId `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseCopyMessageResponse ¶
func ParseCopyMessageResponse(rsp *http.Response) (*CopyMessageResponse, error)
ParseCopyMessageResponse parses an HTTP response from a CopyMessageWithResponse call
func (CopyMessageResponse) Status ¶
func (r CopyMessageResponse) Status() string
Status returns HTTPResponse.Status
func (CopyMessageResponse) StatusCode ¶
func (r CopyMessageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CopyMessages200Ok ¶
type CopyMessages200Ok bool
type CopyMessagesJSONBody ¶
type CopyMessagesJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// DirectMessagesTopicId Identifier of the direct messages topic to which the messages will be sent; required if the messages are sent to a direct messages chat
DirectMessagesTopicId *int `json:"direct_messages_topic_id,omitempty"`
// DisableNotification Sends the messages silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// FromChatId Unique identifier for the chat where the original messages were sent (or channel username in the format @channelusername)
FromChatId int64 `json:"from_chat_id"`
// MessageIds A JSON-serialized list of 1-100 identifiers of messages in the chat from_chat_id to copy. The identifiers must be specified in a strictly increasing order.
MessageIds []int `json:"message_ids"`
// MessageThreadId Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// ProtectContent Protects the contents of the sent messages from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// RemoveCaption Pass True to copy the messages without their captions
RemoveCaption *bool `json:"remove_caption,omitempty"`
}
CopyMessagesJSONBody defines parameters for CopyMessages.
type CopyMessagesJSONRequestBody ¶
type CopyMessagesJSONRequestBody CopyMessagesJSONBody
CopyMessagesJSONRequestBody defines body for CopyMessages for application/json ContentType.
type CopyMessagesResponse ¶
type CopyMessagesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok CopyMessages200Ok `json:"ok"`
Result []MessageId `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseCopyMessagesResponse ¶
func ParseCopyMessagesResponse(rsp *http.Response) (*CopyMessagesResponse, error)
ParseCopyMessagesResponse parses an HTTP response from a CopyMessagesWithResponse call
func (CopyMessagesResponse) Status ¶
func (r CopyMessagesResponse) Status() string
Status returns HTTPResponse.Status
func (CopyMessagesResponse) StatusCode ¶
func (r CopyMessagesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CopyTextButton ¶
type CopyTextButton struct {
// Text The text to be copied to the clipboard; 1-256 characters
Text string `json:"text"`
}
CopyTextButton This object represents an inline keyboard button that copies specified text to the clipboard.
type CreateChatInviteLink200Ok ¶
type CreateChatInviteLink200Ok bool
type CreateChatInviteLinkJSONBody ¶
type CreateChatInviteLinkJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// CreatesJoinRequest True, if users joining the chat via the link need to be approved by chat administrators. If True, member_limit can't be specified
CreatesJoinRequest *bool `json:"creates_join_request,omitempty"`
// ExpireDate Point in time (Unix timestamp) when the link will expire
ExpireDate *int `json:"expire_date,omitempty"`
// MemberLimit The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999
MemberLimit *int `json:"member_limit,omitempty"`
// Name Invite link name; 0-32 characters
Name *string `json:"name,omitempty"`
}
CreateChatInviteLinkJSONBody defines parameters for CreateChatInviteLink.
type CreateChatInviteLinkJSONRequestBody ¶
type CreateChatInviteLinkJSONRequestBody CreateChatInviteLinkJSONBody
CreateChatInviteLinkJSONRequestBody defines body for CreateChatInviteLink for application/json ContentType.
type CreateChatInviteLinkResponse ¶
type CreateChatInviteLinkResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok CreateChatInviteLink200Ok `json:"ok"`
// Result Represents an invite link for a chat.
Result ChatInviteLink `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseCreateChatInviteLinkResponse ¶
func ParseCreateChatInviteLinkResponse(rsp *http.Response) (*CreateChatInviteLinkResponse, error)
ParseCreateChatInviteLinkResponse parses an HTTP response from a CreateChatInviteLinkWithResponse call
func (CreateChatInviteLinkResponse) Status ¶
func (r CreateChatInviteLinkResponse) Status() string
Status returns HTTPResponse.Status
func (CreateChatInviteLinkResponse) StatusCode ¶
func (r CreateChatInviteLinkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateChatSubscriptionInviteLink200Ok ¶
type CreateChatSubscriptionInviteLink200Ok bool
type CreateChatSubscriptionInviteLinkJSONBody ¶
type CreateChatSubscriptionInviteLinkJSONBody struct {
// ChatId Unique identifier for the target channel chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// Name Invite link name; 0-32 characters
Name *string `json:"name,omitempty"`
// SubscriptionPeriod The number of seconds the subscription will be active for before the next payment. Currently, it must always be 2592000 (30 days).
SubscriptionPeriod int `json:"subscription_period"`
// SubscriptionPrice The amount of Telegram Stars a user must pay initially and after each subsequent subscription period to be a member of the chat; 1-10000
SubscriptionPrice int `json:"subscription_price"`
}
CreateChatSubscriptionInviteLinkJSONBody defines parameters for CreateChatSubscriptionInviteLink.
type CreateChatSubscriptionInviteLinkJSONRequestBody ¶
type CreateChatSubscriptionInviteLinkJSONRequestBody CreateChatSubscriptionInviteLinkJSONBody
CreateChatSubscriptionInviteLinkJSONRequestBody defines body for CreateChatSubscriptionInviteLink for application/json ContentType.
type CreateChatSubscriptionInviteLinkResponse ¶
type CreateChatSubscriptionInviteLinkResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok CreateChatSubscriptionInviteLink200Ok `json:"ok"`
// Result Represents an invite link for a chat.
Result ChatInviteLink `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseCreateChatSubscriptionInviteLinkResponse ¶
func ParseCreateChatSubscriptionInviteLinkResponse(rsp *http.Response) (*CreateChatSubscriptionInviteLinkResponse, error)
ParseCreateChatSubscriptionInviteLinkResponse parses an HTTP response from a CreateChatSubscriptionInviteLinkWithResponse call
func (CreateChatSubscriptionInviteLinkResponse) Status ¶
func (r CreateChatSubscriptionInviteLinkResponse) Status() string
Status returns HTTPResponse.Status
func (CreateChatSubscriptionInviteLinkResponse) StatusCode ¶
func (r CreateChatSubscriptionInviteLinkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateForumTopic200Ok ¶
type CreateForumTopic200Ok bool
type CreateForumTopicJSONBody ¶
type CreateForumTopicJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
ChatId int64 `json:"chat_id"`
// IconColor Color of the topic icon in RGB format. Currently, must be one of 7322096 (0x6FB9F0), 16766590 (0xFFD67E), 13338331 (0xCB86DB), 9367192 (0x8EEE98), 16749490 (0xFF93B2), or 16478047 (0xFB6F5F)
IconColor *int `json:"icon_color,omitempty"`
// IconCustomEmojiId Unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to get all allowed custom emoji identifiers.
IconCustomEmojiId *string `json:"icon_custom_emoji_id,omitempty"`
// Name Topic name, 1-128 characters
Name string `json:"name"`
}
CreateForumTopicJSONBody defines parameters for CreateForumTopic.
type CreateForumTopicJSONRequestBody ¶
type CreateForumTopicJSONRequestBody CreateForumTopicJSONBody
CreateForumTopicJSONRequestBody defines body for CreateForumTopic for application/json ContentType.
type CreateForumTopicResponse ¶
type CreateForumTopicResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok CreateForumTopic200Ok `json:"ok"`
// Result This object represents a forum topic.
Result ForumTopic `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseCreateForumTopicResponse ¶
func ParseCreateForumTopicResponse(rsp *http.Response) (*CreateForumTopicResponse, error)
ParseCreateForumTopicResponse parses an HTTP response from a CreateForumTopicWithResponse call
func (CreateForumTopicResponse) Status ¶
func (r CreateForumTopicResponse) Status() string
Status returns HTTPResponse.Status
func (CreateForumTopicResponse) StatusCode ¶
func (r CreateForumTopicResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateInvoiceLink200Ok ¶
type CreateInvoiceLink200Ok bool
type CreateInvoiceLinkJSONBody ¶
type CreateInvoiceLinkJSONBody struct {
// BusinessConnectionId Unique identifier of the business connection on behalf of which the link will be created. For payments in Telegram Stars only.
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// Currency Three-letter ISO 4217 currency code, see more on currencies. Pass “XTR” for payments in Telegram Stars.
Currency string `json:"currency"`
// Description Product description, 1-255 characters
Description string `json:"description"`
// IsFlexible Pass True if the final price depends on the shipping method. Ignored for payments in Telegram Stars.
IsFlexible *bool `json:"is_flexible,omitempty"`
// MaxTipAmount The maximum accepted amount for tips in the smallest units of the currency (integer, not float/double). For example, for a maximum tip of US$ 1.45 pass max_tip_amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). Defaults to 0. Not supported for payments in Telegram Stars.
MaxTipAmount *int `json:"max_tip_amount,omitempty"`
// NeedEmail Pass True if you require the user's email address to complete the order. Ignored for payments in Telegram Stars.
NeedEmail *bool `json:"need_email,omitempty"`
// NeedName Pass True if you require the user's full name to complete the order. Ignored for payments in Telegram Stars.
NeedName *bool `json:"need_name,omitempty"`
// NeedPhoneNumber Pass True if you require the user's phone number to complete the order. Ignored for payments in Telegram Stars.
NeedPhoneNumber *bool `json:"need_phone_number,omitempty"`
// NeedShippingAddress Pass True if you require the user's shipping address to complete the order. Ignored for payments in Telegram Stars.
NeedShippingAddress *bool `json:"need_shipping_address,omitempty"`
// Payload Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes.
Payload string `json:"payload"`
// PhotoHeight Photo height
PhotoHeight *int `json:"photo_height,omitempty"`
// PhotoSize Photo size in bytes
PhotoSize *int `json:"photo_size,omitempty"`
// PhotoUrl URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service.
PhotoUrl *string `json:"photo_url,omitempty"`
// PhotoWidth Photo width
PhotoWidth *int `json:"photo_width,omitempty"`
// Prices Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.). Must contain exactly one item for payments in Telegram Stars.
Prices []LabeledPrice `json:"prices"`
// ProviderData JSON-serialized data about the invoice, which will be shared with the payment provider. A detailed description of required fields should be provided by the payment provider.
ProviderData *string `json:"provider_data,omitempty"`
// ProviderToken Payment provider token, obtained via @BotFather. Pass an empty string for payments in Telegram Stars.
ProviderToken *string `json:"provider_token,omitempty"`
// SendEmailToProvider Pass True if the user's email address should be sent to the provider. Ignored for payments in Telegram Stars.
SendEmailToProvider *bool `json:"send_email_to_provider,omitempty"`
// SendPhoneNumberToProvider Pass True if the user's phone number should be sent to the provider. Ignored for payments in Telegram Stars.
SendPhoneNumberToProvider *bool `json:"send_phone_number_to_provider,omitempty"`
// SubscriptionPeriod The number of seconds the subscription will be active for before the next payment. The currency must be set to “XTR” (Telegram Stars) if the parameter is used. Currently, it must always be 2592000 (30 days) if specified. Any number of subscriptions can be active for a given bot at the same time, including multiple concurrent subscriptions from the same user. Subscription price must no exceed 10000 Telegram Stars.
SubscriptionPeriod *int `json:"subscription_period,omitempty"`
// SuggestedTipAmounts A JSON-serialized array of suggested amounts of tips in the smallest units of the currency (integer, not float/double). At most 4 suggested tip amounts can be specified. The suggested tip amounts must be positive, passed in a strictly increased order and must not exceed max_tip_amount.
SuggestedTipAmounts *[]int `json:"suggested_tip_amounts,omitempty"`
// Title Product name, 1-32 characters
Title string `json:"title"`
}
CreateInvoiceLinkJSONBody defines parameters for CreateInvoiceLink.
type CreateInvoiceLinkJSONRequestBody ¶
type CreateInvoiceLinkJSONRequestBody CreateInvoiceLinkJSONBody
CreateInvoiceLinkJSONRequestBody defines body for CreateInvoiceLink for application/json ContentType.
type CreateInvoiceLinkResponse ¶
type CreateInvoiceLinkResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok CreateInvoiceLink200Ok `json:"ok"`
Result string `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseCreateInvoiceLinkResponse ¶
func ParseCreateInvoiceLinkResponse(rsp *http.Response) (*CreateInvoiceLinkResponse, error)
ParseCreateInvoiceLinkResponse parses an HTTP response from a CreateInvoiceLinkWithResponse call
func (CreateInvoiceLinkResponse) Status ¶
func (r CreateInvoiceLinkResponse) Status() string
Status returns HTTPResponse.Status
func (CreateInvoiceLinkResponse) StatusCode ¶
func (r CreateInvoiceLinkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateNewStickerSet200Ok ¶
type CreateNewStickerSet200Ok bool
type CreateNewStickerSetJSONBody ¶
type CreateNewStickerSetJSONBody struct {
// Name Short name of sticker set, to be used in t.me/addstickers/ URLs (e.g., animals). Can contain only English letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and must end in "_by_<bot_username>". <bot_username> is case insensitive. 1-64 characters.
Name string `json:"name"`
// NeedsRepainting Pass True if stickers in the sticker set must be repainted to the color of text when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context; for custom emoji sticker sets only
NeedsRepainting *bool `json:"needs_repainting,omitempty"`
// StickerType Type of stickers in the set, pass “regular”, “mask”, or “custom_emoji”. By default, a regular sticker set is created.
StickerType *string `json:"sticker_type,omitempty"`
// Stickers A JSON-serialized list of 1-50 initial stickers to be added to the sticker set
Stickers []InputSticker `json:"stickers"`
// Title Sticker set title, 1-64 characters
Title string `json:"title"`
// UserId User identifier of created sticker set owner
UserId int `json:"user_id"`
}
CreateNewStickerSetJSONBody defines parameters for CreateNewStickerSet.
type CreateNewStickerSetJSONRequestBody ¶
type CreateNewStickerSetJSONRequestBody CreateNewStickerSetJSONBody
CreateNewStickerSetJSONRequestBody defines body for CreateNewStickerSet for application/json ContentType.
type CreateNewStickerSetMultipartBody ¶ added in v0.2.0
type CreateNewStickerSetMultipartBody struct {
// Name Short name of sticker set, to be used in t.me/addstickers/ URLs (e.g., animals). Can contain only English letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and must end in "_by_<bot_username>". <bot_username> is case insensitive. 1-64 characters.
Name string `json:"name"`
// NeedsRepainting Pass True if stickers in the sticker set must be repainted to the color of text when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context; for custom emoji sticker sets only
NeedsRepainting *bool `json:"needs_repainting,omitempty"`
// StickerType Type of stickers in the set, pass “regular”, “mask”, or “custom_emoji”. By default, a regular sticker set is created.
StickerType *string `json:"sticker_type,omitempty"`
// Stickers A JSON-serialized list of 1-50 initial stickers to be added to the sticker set
Stickers []InputSticker `json:"stickers"`
// Title Sticker set title, 1-64 characters
Title string `json:"title"`
// UserId User identifier of created sticker set owner
UserId int `json:"user_id"`
}
CreateNewStickerSetMultipartBody defines parameters for CreateNewStickerSet.
type CreateNewStickerSetMultipartRequestBody ¶ added in v0.2.0
type CreateNewStickerSetMultipartRequestBody CreateNewStickerSetMultipartBody
CreateNewStickerSetMultipartRequestBody defines body for CreateNewStickerSet for multipart/form-data ContentType.
type CreateNewStickerSetResponse ¶
type CreateNewStickerSetResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok CreateNewStickerSet200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseCreateNewStickerSetResponse ¶
func ParseCreateNewStickerSetResponse(rsp *http.Response) (*CreateNewStickerSetResponse, error)
ParseCreateNewStickerSetResponse parses an HTTP response from a CreateNewStickerSetWithResponse call
func (CreateNewStickerSetResponse) Status ¶
func (r CreateNewStickerSetResponse) Status() string
Status returns HTTPResponse.Status
func (CreateNewStickerSetResponse) StatusCode ¶
func (r CreateNewStickerSetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeclineChatJoinRequest200Ok ¶
type DeclineChatJoinRequest200Ok bool
type DeclineChatJoinRequestJSONBody ¶
type DeclineChatJoinRequestJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// UserId Unique identifier of the target user
UserId int `json:"user_id"`
}
DeclineChatJoinRequestJSONBody defines parameters for DeclineChatJoinRequest.
type DeclineChatJoinRequestJSONRequestBody ¶
type DeclineChatJoinRequestJSONRequestBody DeclineChatJoinRequestJSONBody
DeclineChatJoinRequestJSONRequestBody defines body for DeclineChatJoinRequest for application/json ContentType.
type DeclineChatJoinRequestResponse ¶
type DeclineChatJoinRequestResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok DeclineChatJoinRequest200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseDeclineChatJoinRequestResponse ¶
func ParseDeclineChatJoinRequestResponse(rsp *http.Response) (*DeclineChatJoinRequestResponse, error)
ParseDeclineChatJoinRequestResponse parses an HTTP response from a DeclineChatJoinRequestWithResponse call
func (DeclineChatJoinRequestResponse) Status ¶
func (r DeclineChatJoinRequestResponse) Status() string
Status returns HTTPResponse.Status
func (DeclineChatJoinRequestResponse) StatusCode ¶
func (r DeclineChatJoinRequestResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeclineSuggestedPost200Ok ¶
type DeclineSuggestedPost200Ok bool
type DeclineSuggestedPostJSONBody ¶
type DeclineSuggestedPostJSONBody struct {
// ChatId Unique identifier for the target direct messages chat
ChatId int64 `json:"chat_id"`
// Comment Comment for the creator of the suggested post; 0-128 characters
Comment *string `json:"comment,omitempty"`
// MessageId Identifier of a suggested post message to decline
MessageId int `json:"message_id"`
}
DeclineSuggestedPostJSONBody defines parameters for DeclineSuggestedPost.
type DeclineSuggestedPostJSONRequestBody ¶
type DeclineSuggestedPostJSONRequestBody DeclineSuggestedPostJSONBody
DeclineSuggestedPostJSONRequestBody defines body for DeclineSuggestedPost for application/json ContentType.
type DeclineSuggestedPostResponse ¶
type DeclineSuggestedPostResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok DeclineSuggestedPost200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseDeclineSuggestedPostResponse ¶
func ParseDeclineSuggestedPostResponse(rsp *http.Response) (*DeclineSuggestedPostResponse, error)
ParseDeclineSuggestedPostResponse parses an HTTP response from a DeclineSuggestedPostWithResponse call
func (DeclineSuggestedPostResponse) Status ¶
func (r DeclineSuggestedPostResponse) Status() string
Status returns HTTPResponse.Status
func (DeclineSuggestedPostResponse) StatusCode ¶
func (r DeclineSuggestedPostResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteBusinessMessages200Ok ¶
type DeleteBusinessMessages200Ok bool
type DeleteBusinessMessagesJSONBody ¶
type DeleteBusinessMessagesJSONBody struct {
// BusinessConnectionId Unique identifier of the business connection on behalf of which to delete the messages
BusinessConnectionId string `json:"business_connection_id"`
// MessageIds A JSON-serialized list of 1-100 identifiers of messages to delete. All messages must be from the same chat. See deleteMessage for limitations on which messages can be deleted
MessageIds []int `json:"message_ids"`
}
DeleteBusinessMessagesJSONBody defines parameters for DeleteBusinessMessages.
type DeleteBusinessMessagesJSONRequestBody ¶
type DeleteBusinessMessagesJSONRequestBody DeleteBusinessMessagesJSONBody
DeleteBusinessMessagesJSONRequestBody defines body for DeleteBusinessMessages for application/json ContentType.
type DeleteBusinessMessagesResponse ¶
type DeleteBusinessMessagesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok DeleteBusinessMessages200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseDeleteBusinessMessagesResponse ¶
func ParseDeleteBusinessMessagesResponse(rsp *http.Response) (*DeleteBusinessMessagesResponse, error)
ParseDeleteBusinessMessagesResponse parses an HTTP response from a DeleteBusinessMessagesWithResponse call
func (DeleteBusinessMessagesResponse) Status ¶
func (r DeleteBusinessMessagesResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteBusinessMessagesResponse) StatusCode ¶
func (r DeleteBusinessMessagesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteChatPhoto200Ok ¶
type DeleteChatPhoto200Ok bool
type DeleteChatPhotoJSONBody ¶
type DeleteChatPhotoJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
}
DeleteChatPhotoJSONBody defines parameters for DeleteChatPhoto.
type DeleteChatPhotoJSONRequestBody ¶
type DeleteChatPhotoJSONRequestBody DeleteChatPhotoJSONBody
DeleteChatPhotoJSONRequestBody defines body for DeleteChatPhoto for application/json ContentType.
type DeleteChatPhotoResponse ¶
type DeleteChatPhotoResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok DeleteChatPhoto200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseDeleteChatPhotoResponse ¶
func ParseDeleteChatPhotoResponse(rsp *http.Response) (*DeleteChatPhotoResponse, error)
ParseDeleteChatPhotoResponse parses an HTTP response from a DeleteChatPhotoWithResponse call
func (DeleteChatPhotoResponse) Status ¶
func (r DeleteChatPhotoResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteChatPhotoResponse) StatusCode ¶
func (r DeleteChatPhotoResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteChatStickerSet200Ok ¶
type DeleteChatStickerSet200Ok bool
type DeleteChatStickerSetJSONBody ¶
type DeleteChatStickerSetJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
ChatId int64 `json:"chat_id"`
}
DeleteChatStickerSetJSONBody defines parameters for DeleteChatStickerSet.
type DeleteChatStickerSetJSONRequestBody ¶
type DeleteChatStickerSetJSONRequestBody DeleteChatStickerSetJSONBody
DeleteChatStickerSetJSONRequestBody defines body for DeleteChatStickerSet for application/json ContentType.
type DeleteChatStickerSetResponse ¶
type DeleteChatStickerSetResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok DeleteChatStickerSet200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseDeleteChatStickerSetResponse ¶
func ParseDeleteChatStickerSetResponse(rsp *http.Response) (*DeleteChatStickerSetResponse, error)
ParseDeleteChatStickerSetResponse parses an HTTP response from a DeleteChatStickerSetWithResponse call
func (DeleteChatStickerSetResponse) Status ¶
func (r DeleteChatStickerSetResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteChatStickerSetResponse) StatusCode ¶
func (r DeleteChatStickerSetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteForumTopic200Ok ¶
type DeleteForumTopic200Ok bool
type DeleteForumTopicJSONBody ¶
type DeleteForumTopicJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
ChatId int64 `json:"chat_id"`
// MessageThreadId Unique identifier for the target message thread of the forum topic
MessageThreadId int `json:"message_thread_id"`
}
DeleteForumTopicJSONBody defines parameters for DeleteForumTopic.
type DeleteForumTopicJSONRequestBody ¶
type DeleteForumTopicJSONRequestBody DeleteForumTopicJSONBody
DeleteForumTopicJSONRequestBody defines body for DeleteForumTopic for application/json ContentType.
type DeleteForumTopicResponse ¶
type DeleteForumTopicResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok DeleteForumTopic200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseDeleteForumTopicResponse ¶
func ParseDeleteForumTopicResponse(rsp *http.Response) (*DeleteForumTopicResponse, error)
ParseDeleteForumTopicResponse parses an HTTP response from a DeleteForumTopicWithResponse call
func (DeleteForumTopicResponse) Status ¶
func (r DeleteForumTopicResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteForumTopicResponse) StatusCode ¶
func (r DeleteForumTopicResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteMessage200Ok ¶
type DeleteMessage200Ok bool
type DeleteMessageJSONBody ¶
type DeleteMessageJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// MessageId Identifier of the message to delete
MessageId int `json:"message_id"`
}
DeleteMessageJSONBody defines parameters for DeleteMessage.
type DeleteMessageJSONRequestBody ¶
type DeleteMessageJSONRequestBody DeleteMessageJSONBody
DeleteMessageJSONRequestBody defines body for DeleteMessage for application/json ContentType.
type DeleteMessageResponse ¶
type DeleteMessageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok DeleteMessage200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseDeleteMessageResponse ¶
func ParseDeleteMessageResponse(rsp *http.Response) (*DeleteMessageResponse, error)
ParseDeleteMessageResponse parses an HTTP response from a DeleteMessageWithResponse call
func (DeleteMessageResponse) Status ¶
func (r DeleteMessageResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteMessageResponse) StatusCode ¶
func (r DeleteMessageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteMessages200Ok ¶
type DeleteMessages200Ok bool
type DeleteMessagesJSONBody ¶
type DeleteMessagesJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// MessageIds A JSON-serialized list of 1-100 identifiers of messages to delete. See deleteMessage for limitations on which messages can be deleted
MessageIds []int `json:"message_ids"`
}
DeleteMessagesJSONBody defines parameters for DeleteMessages.
type DeleteMessagesJSONRequestBody ¶
type DeleteMessagesJSONRequestBody DeleteMessagesJSONBody
DeleteMessagesJSONRequestBody defines body for DeleteMessages for application/json ContentType.
type DeleteMessagesResponse ¶
type DeleteMessagesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok DeleteMessages200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseDeleteMessagesResponse ¶
func ParseDeleteMessagesResponse(rsp *http.Response) (*DeleteMessagesResponse, error)
ParseDeleteMessagesResponse parses an HTTP response from a DeleteMessagesWithResponse call
func (DeleteMessagesResponse) Status ¶
func (r DeleteMessagesResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteMessagesResponse) StatusCode ¶
func (r DeleteMessagesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteMyCommands200Ok ¶
type DeleteMyCommands200Ok bool
type DeleteMyCommandsJSONBody ¶
type DeleteMyCommandsJSONBody struct {
// LanguageCode A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands
LanguageCode *string `json:"language_code,omitempty"`
// Scope A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault.
Scope *BotCommandScope `json:"scope,omitempty"`
}
DeleteMyCommandsJSONBody defines parameters for DeleteMyCommands.
type DeleteMyCommandsJSONRequestBody ¶
type DeleteMyCommandsJSONRequestBody DeleteMyCommandsJSONBody
DeleteMyCommandsJSONRequestBody defines body for DeleteMyCommands for application/json ContentType.
type DeleteMyCommandsResponse ¶
type DeleteMyCommandsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok DeleteMyCommands200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseDeleteMyCommandsResponse ¶
func ParseDeleteMyCommandsResponse(rsp *http.Response) (*DeleteMyCommandsResponse, error)
ParseDeleteMyCommandsResponse parses an HTTP response from a DeleteMyCommandsWithResponse call
func (DeleteMyCommandsResponse) Status ¶
func (r DeleteMyCommandsResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteMyCommandsResponse) StatusCode ¶
func (r DeleteMyCommandsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteStickerFromSet200Ok ¶
type DeleteStickerFromSet200Ok bool
type DeleteStickerFromSetJSONBody ¶
type DeleteStickerFromSetJSONBody struct {
// Sticker File identifier of the sticker
Sticker string `json:"sticker"`
}
DeleteStickerFromSetJSONBody defines parameters for DeleteStickerFromSet.
type DeleteStickerFromSetJSONRequestBody ¶
type DeleteStickerFromSetJSONRequestBody DeleteStickerFromSetJSONBody
DeleteStickerFromSetJSONRequestBody defines body for DeleteStickerFromSet for application/json ContentType.
type DeleteStickerFromSetResponse ¶
type DeleteStickerFromSetResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok DeleteStickerFromSet200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseDeleteStickerFromSetResponse ¶
func ParseDeleteStickerFromSetResponse(rsp *http.Response) (*DeleteStickerFromSetResponse, error)
ParseDeleteStickerFromSetResponse parses an HTTP response from a DeleteStickerFromSetWithResponse call
func (DeleteStickerFromSetResponse) Status ¶
func (r DeleteStickerFromSetResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteStickerFromSetResponse) StatusCode ¶
func (r DeleteStickerFromSetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteStickerSet200Ok ¶
type DeleteStickerSet200Ok bool
type DeleteStickerSetJSONBody ¶
type DeleteStickerSetJSONBody struct {
// Name Sticker set name
Name string `json:"name"`
}
DeleteStickerSetJSONBody defines parameters for DeleteStickerSet.
type DeleteStickerSetJSONRequestBody ¶
type DeleteStickerSetJSONRequestBody DeleteStickerSetJSONBody
DeleteStickerSetJSONRequestBody defines body for DeleteStickerSet for application/json ContentType.
type DeleteStickerSetResponse ¶
type DeleteStickerSetResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok DeleteStickerSet200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseDeleteStickerSetResponse ¶
func ParseDeleteStickerSetResponse(rsp *http.Response) (*DeleteStickerSetResponse, error)
ParseDeleteStickerSetResponse parses an HTTP response from a DeleteStickerSetWithResponse call
func (DeleteStickerSetResponse) Status ¶
func (r DeleteStickerSetResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteStickerSetResponse) StatusCode ¶
func (r DeleteStickerSetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteStory200Ok ¶
type DeleteStory200Ok bool
type DeleteStoryJSONBody ¶
type DeleteStoryJSONBody struct {
// BusinessConnectionId Unique identifier of the business connection
BusinessConnectionId string `json:"business_connection_id"`
// StoryId Unique identifier of the story to delete
StoryId int `json:"story_id"`
}
DeleteStoryJSONBody defines parameters for DeleteStory.
type DeleteStoryJSONRequestBody ¶
type DeleteStoryJSONRequestBody DeleteStoryJSONBody
DeleteStoryJSONRequestBody defines body for DeleteStory for application/json ContentType.
type DeleteStoryResponse ¶
type DeleteStoryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok DeleteStory200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseDeleteStoryResponse ¶
func ParseDeleteStoryResponse(rsp *http.Response) (*DeleteStoryResponse, error)
ParseDeleteStoryResponse parses an HTTP response from a DeleteStoryWithResponse call
func (DeleteStoryResponse) Status ¶
func (r DeleteStoryResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteStoryResponse) StatusCode ¶
func (r DeleteStoryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteWebhook200Ok ¶
type DeleteWebhook200Ok bool
type DeleteWebhookJSONBody ¶
type DeleteWebhookJSONBody struct {
// DropPendingUpdates Pass True to drop all pending updates
DropPendingUpdates *bool `json:"drop_pending_updates,omitempty"`
}
DeleteWebhookJSONBody defines parameters for DeleteWebhook.
type DeleteWebhookJSONRequestBody ¶
type DeleteWebhookJSONRequestBody DeleteWebhookJSONBody
DeleteWebhookJSONRequestBody defines body for DeleteWebhook for application/json ContentType.
type DeleteWebhookResponse ¶
type DeleteWebhookResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok DeleteWebhook200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseDeleteWebhookResponse ¶
func ParseDeleteWebhookResponse(rsp *http.Response) (*DeleteWebhookResponse, error)
ParseDeleteWebhookResponse parses an HTTP response from a DeleteWebhookWithResponse call
func (DeleteWebhookResponse) Status ¶
func (r DeleteWebhookResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteWebhookResponse) StatusCode ¶
func (r DeleteWebhookResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Dice ¶
type Dice struct {
// Emoji Emoji on which the dice throw animation is based
Emoji string `json:"emoji"`
// Value Value of the dice, 1-6 for “”, “” and “” base emoji, 1-5 for “” and “” base emoji, 1-64 for “” base emoji
Value int `json:"value"`
}
Dice This object represents an animated emoji that displays a random value.
type DirectMessagePriceChanged ¶
type DirectMessagePriceChanged struct {
// AreDirectMessagesEnabled True, if direct messages are enabled for the channel chat; false otherwise
AreDirectMessagesEnabled bool `json:"are_direct_messages_enabled"`
// DirectMessageStarCount Optional. The new number of Telegram Stars that must be paid by users for each direct message sent to the channel. Does not apply to users who have been exempted by administrators. Defaults to 0.
DirectMessageStarCount *int `json:"direct_message_star_count,omitempty"`
}
DirectMessagePriceChanged Describes a service message about a change in the price of direct messages sent to a channel chat.
type DirectMessagesTopic ¶
type DirectMessagesTopic struct {
// TopicId Unique identifier of the topic. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.
TopicId int64 `json:"topic_id"`
// User Optional. Information about the user that created the topic. Currently, it is always present
User *User `json:"user,omitempty"`
}
DirectMessagesTopic Describes a topic of a direct messages chat.
type Document ¶
type Document struct {
// FileId Identifier for this file, which can be used to download or reuse the file
FileId string `json:"file_id"`
// FileName Optional. Original filename as defined by the sender
FileName *string `json:"file_name,omitempty"`
// FileSize Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value.
FileSize *int64 `json:"file_size,omitempty"`
// FileUniqueId Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
FileUniqueId string `json:"file_unique_id"`
// MimeType Optional. MIME type of the file as defined by the sender
MimeType *string `json:"mime_type,omitempty"`
// Thumbnail Optional. Document thumbnail as defined by the sender
Thumbnail *PhotoSize `json:"thumbnail,omitempty"`
}
Document This object represents a general file (as opposed to photos, voice messages and audio files).
type EditChatInviteLink200Ok ¶
type EditChatInviteLink200Ok bool
type EditChatInviteLinkJSONBody ¶
type EditChatInviteLinkJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// CreatesJoinRequest True, if users joining the chat via the link need to be approved by chat administrators. If True, member_limit can't be specified
CreatesJoinRequest *bool `json:"creates_join_request,omitempty"`
// ExpireDate Point in time (Unix timestamp) when the link will expire
ExpireDate *int `json:"expire_date,omitempty"`
// InviteLink The invite link to edit
InviteLink string `json:"invite_link"`
// MemberLimit The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999
MemberLimit *int `json:"member_limit,omitempty"`
// Name Invite link name; 0-32 characters
Name *string `json:"name,omitempty"`
}
EditChatInviteLinkJSONBody defines parameters for EditChatInviteLink.
type EditChatInviteLinkJSONRequestBody ¶
type EditChatInviteLinkJSONRequestBody EditChatInviteLinkJSONBody
EditChatInviteLinkJSONRequestBody defines body for EditChatInviteLink for application/json ContentType.
type EditChatInviteLinkResponse ¶
type EditChatInviteLinkResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok EditChatInviteLink200Ok `json:"ok"`
// Result Represents an invite link for a chat.
Result ChatInviteLink `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseEditChatInviteLinkResponse ¶
func ParseEditChatInviteLinkResponse(rsp *http.Response) (*EditChatInviteLinkResponse, error)
ParseEditChatInviteLinkResponse parses an HTTP response from a EditChatInviteLinkWithResponse call
func (EditChatInviteLinkResponse) Status ¶
func (r EditChatInviteLinkResponse) Status() string
Status returns HTTPResponse.Status
func (EditChatInviteLinkResponse) StatusCode ¶
func (r EditChatInviteLinkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EditChatSubscriptionInviteLink200Ok ¶
type EditChatSubscriptionInviteLink200Ok bool
type EditChatSubscriptionInviteLinkJSONBody ¶
type EditChatSubscriptionInviteLinkJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// InviteLink The invite link to edit
InviteLink string `json:"invite_link"`
// Name Invite link name; 0-32 characters
Name *string `json:"name,omitempty"`
}
EditChatSubscriptionInviteLinkJSONBody defines parameters for EditChatSubscriptionInviteLink.
type EditChatSubscriptionInviteLinkJSONRequestBody ¶
type EditChatSubscriptionInviteLinkJSONRequestBody EditChatSubscriptionInviteLinkJSONBody
EditChatSubscriptionInviteLinkJSONRequestBody defines body for EditChatSubscriptionInviteLink for application/json ContentType.
type EditChatSubscriptionInviteLinkResponse ¶
type EditChatSubscriptionInviteLinkResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok EditChatSubscriptionInviteLink200Ok `json:"ok"`
// Result Represents an invite link for a chat.
Result ChatInviteLink `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseEditChatSubscriptionInviteLinkResponse ¶
func ParseEditChatSubscriptionInviteLinkResponse(rsp *http.Response) (*EditChatSubscriptionInviteLinkResponse, error)
ParseEditChatSubscriptionInviteLinkResponse parses an HTTP response from a EditChatSubscriptionInviteLinkWithResponse call
func (EditChatSubscriptionInviteLinkResponse) Status ¶
func (r EditChatSubscriptionInviteLinkResponse) Status() string
Status returns HTTPResponse.Status
func (EditChatSubscriptionInviteLinkResponse) StatusCode ¶
func (r EditChatSubscriptionInviteLinkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EditForumTopic200Ok ¶
type EditForumTopic200Ok bool
type EditForumTopicJSONBody ¶
type EditForumTopicJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
ChatId int64 `json:"chat_id"`
// IconCustomEmojiId New unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to get all allowed custom emoji identifiers. Pass an empty string to remove the icon. If not specified, the current icon will be kept
IconCustomEmojiId *string `json:"icon_custom_emoji_id,omitempty"`
// MessageThreadId Unique identifier for the target message thread of the forum topic
MessageThreadId int `json:"message_thread_id"`
// Name New topic name, 0-128 characters. If not specified or empty, the current name of the topic will be kept
Name *string `json:"name,omitempty"`
}
EditForumTopicJSONBody defines parameters for EditForumTopic.
type EditForumTopicJSONRequestBody ¶
type EditForumTopicJSONRequestBody EditForumTopicJSONBody
EditForumTopicJSONRequestBody defines body for EditForumTopic for application/json ContentType.
type EditForumTopicResponse ¶
type EditForumTopicResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok EditForumTopic200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseEditForumTopicResponse ¶
func ParseEditForumTopicResponse(rsp *http.Response) (*EditForumTopicResponse, error)
ParseEditForumTopicResponse parses an HTTP response from a EditForumTopicWithResponse call
func (EditForumTopicResponse) Status ¶
func (r EditForumTopicResponse) Status() string
Status returns HTTPResponse.Status
func (EditForumTopicResponse) StatusCode ¶
func (r EditForumTopicResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EditGeneralForumTopic200Ok ¶
type EditGeneralForumTopic200Ok bool
type EditGeneralForumTopicJSONBody ¶
type EditGeneralForumTopicJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
ChatId int64 `json:"chat_id"`
// Name New topic name, 1-128 characters
Name string `json:"name"`
}
EditGeneralForumTopicJSONBody defines parameters for EditGeneralForumTopic.
type EditGeneralForumTopicJSONRequestBody ¶
type EditGeneralForumTopicJSONRequestBody EditGeneralForumTopicJSONBody
EditGeneralForumTopicJSONRequestBody defines body for EditGeneralForumTopic for application/json ContentType.
type EditGeneralForumTopicResponse ¶
type EditGeneralForumTopicResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok EditGeneralForumTopic200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseEditGeneralForumTopicResponse ¶
func ParseEditGeneralForumTopicResponse(rsp *http.Response) (*EditGeneralForumTopicResponse, error)
ParseEditGeneralForumTopicResponse parses an HTTP response from a EditGeneralForumTopicWithResponse call
func (EditGeneralForumTopicResponse) Status ¶
func (r EditGeneralForumTopicResponse) Status() string
Status returns HTTPResponse.Status
func (EditGeneralForumTopicResponse) StatusCode ¶
func (r EditGeneralForumTopicResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EditMessageCaption200Ok ¶
type EditMessageCaption200Ok bool
type EditMessageCaption200Result1 ¶
type EditMessageCaption200Result1 = bool
type EditMessageCaptionJSONBody ¶
type EditMessageCaptionJSONBody struct {
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message to be edited was sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// Caption New caption of the message, 0-1024 characters after entities parsing
Caption *string `json:"caption,omitempty"`
// CaptionEntities A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode
CaptionEntities *[]MessageEntity `json:"caption_entities,omitempty"`
// ChatId Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId *int64 `json:"chat_id,omitempty"`
// InlineMessageId Required if chat_id and message_id are not specified. Identifier of the inline message
InlineMessageId *string `json:"inline_message_id,omitempty"`
// MessageId Required if inline_message_id is not specified. Identifier of the message to edit
MessageId *int `json:"message_id,omitempty"`
// ParseMode Mode for parsing entities in the message caption. See formatting options for more details.
ParseMode *string `json:"parse_mode,omitempty"`
// ReplyMarkup A JSON-serialized object for an inline keyboard.
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
// ShowCaptionAboveMedia Pass True, if the caption must be shown above the message media. Supported only for animation, photo and video messages.
ShowCaptionAboveMedia *bool `json:"show_caption_above_media,omitempty"`
}
EditMessageCaptionJSONBody defines parameters for EditMessageCaption.
type EditMessageCaptionJSONRequestBody ¶
type EditMessageCaptionJSONRequestBody EditMessageCaptionJSONBody
EditMessageCaptionJSONRequestBody defines body for EditMessageCaption for application/json ContentType.
type EditMessageCaptionResponse ¶
type EditMessageCaptionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok EditMessageCaption200Ok `json:"ok"`
Result EditMessageCaption_200_Result `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseEditMessageCaptionResponse ¶
func ParseEditMessageCaptionResponse(rsp *http.Response) (*EditMessageCaptionResponse, error)
ParseEditMessageCaptionResponse parses an HTTP response from a EditMessageCaptionWithResponse call
func (EditMessageCaptionResponse) Status ¶
func (r EditMessageCaptionResponse) Status() string
Status returns HTTPResponse.Status
func (EditMessageCaptionResponse) StatusCode ¶
func (r EditMessageCaptionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EditMessageCaption_200_Result ¶
type EditMessageCaption_200_Result struct {
// contains filtered or unexported fields
}
type EditMessageChecklist200Ok ¶
type EditMessageChecklist200Ok bool
type EditMessageChecklistJSONBody ¶
type EditMessageChecklistJSONBody struct {
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message will be sent
BusinessConnectionId string `json:"business_connection_id"`
// ChatId Unique identifier for the target chat
ChatId int64 `json:"chat_id"`
// Checklist A JSON-serialized object for the new checklist
Checklist InputChecklist `json:"checklist"`
// MessageId Unique identifier for the target message
MessageId int `json:"message_id"`
// ReplyMarkup A JSON-serialized object for the new inline keyboard for the message
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
EditMessageChecklistJSONBody defines parameters for EditMessageChecklist.
type EditMessageChecklistJSONRequestBody ¶
type EditMessageChecklistJSONRequestBody EditMessageChecklistJSONBody
EditMessageChecklistJSONRequestBody defines body for EditMessageChecklist for application/json ContentType.
type EditMessageChecklistResponse ¶
type EditMessageChecklistResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok EditMessageChecklist200Ok `json:"ok"`
// Result This object represents a message.
Result Message `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseEditMessageChecklistResponse ¶
func ParseEditMessageChecklistResponse(rsp *http.Response) (*EditMessageChecklistResponse, error)
ParseEditMessageChecklistResponse parses an HTTP response from a EditMessageChecklistWithResponse call
func (EditMessageChecklistResponse) Status ¶
func (r EditMessageChecklistResponse) Status() string
Status returns HTTPResponse.Status
func (EditMessageChecklistResponse) StatusCode ¶
func (r EditMessageChecklistResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EditMessageLiveLocation200Ok ¶
type EditMessageLiveLocation200Ok bool
type EditMessageLiveLocation200Result1 ¶
type EditMessageLiveLocation200Result1 = bool
type EditMessageLiveLocationJSONBody ¶
type EditMessageLiveLocationJSONBody struct {
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message to be edited was sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// ChatId Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId *int64 `json:"chat_id,omitempty"`
// Heading Direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.
Heading *int `json:"heading,omitempty"`
// HorizontalAccuracy The radius of uncertainty for the location, measured in meters; 0-1500
HorizontalAccuracy *float32 `json:"horizontal_accuracy,omitempty"`
// InlineMessageId Required if chat_id and message_id are not specified. Identifier of the inline message
InlineMessageId *string `json:"inline_message_id,omitempty"`
// Latitude Latitude of new location
Latitude float32 `json:"latitude"`
// LivePeriod New period in seconds during which the location can be updated, starting from the message send date. If 0x7FFFFFFF is specified, then the location can be updated forever. Otherwise, the new value must not exceed the current live_period by more than a day, and the live location expiration date must remain within the next 90 days. If not specified, then live_period remains unchanged
LivePeriod *int `json:"live_period,omitempty"`
// Longitude Longitude of new location
Longitude float32 `json:"longitude"`
// MessageId Required if inline_message_id is not specified. Identifier of the message to edit
MessageId *int `json:"message_id,omitempty"`
// ProximityAlertRadius The maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.
ProximityAlertRadius *int `json:"proximity_alert_radius,omitempty"`
// ReplyMarkup A JSON-serialized object for a new inline keyboard.
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
EditMessageLiveLocationJSONBody defines parameters for EditMessageLiveLocation.
type EditMessageLiveLocationJSONRequestBody ¶
type EditMessageLiveLocationJSONRequestBody EditMessageLiveLocationJSONBody
EditMessageLiveLocationJSONRequestBody defines body for EditMessageLiveLocation for application/json ContentType.
type EditMessageLiveLocationResponse ¶
type EditMessageLiveLocationResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok EditMessageLiveLocation200Ok `json:"ok"`
Result EditMessageLiveLocation_200_Result `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseEditMessageLiveLocationResponse ¶
func ParseEditMessageLiveLocationResponse(rsp *http.Response) (*EditMessageLiveLocationResponse, error)
ParseEditMessageLiveLocationResponse parses an HTTP response from a EditMessageLiveLocationWithResponse call
func (EditMessageLiveLocationResponse) Status ¶
func (r EditMessageLiveLocationResponse) Status() string
Status returns HTTPResponse.Status
func (EditMessageLiveLocationResponse) StatusCode ¶
func (r EditMessageLiveLocationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EditMessageLiveLocation_200_Result ¶
type EditMessageLiveLocation_200_Result struct {
// contains filtered or unexported fields
}
type EditMessageMedia200Ok ¶
type EditMessageMedia200Ok bool
type EditMessageMedia200Result1 ¶
type EditMessageMedia200Result1 = bool
type EditMessageMediaJSONBody ¶
type EditMessageMediaJSONBody struct {
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message to be edited was sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// ChatId Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId *int64 `json:"chat_id,omitempty"`
// InlineMessageId Required if chat_id and message_id are not specified. Identifier of the inline message
InlineMessageId *string `json:"inline_message_id,omitempty"`
// Media A JSON-serialized object for a new media content of the message
Media InputMedia `json:"media"`
// MessageId Required if inline_message_id is not specified. Identifier of the message to edit
MessageId *int `json:"message_id,omitempty"`
// ReplyMarkup A JSON-serialized object for a new inline keyboard.
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
EditMessageMediaJSONBody defines parameters for EditMessageMedia.
type EditMessageMediaJSONRequestBody ¶
type EditMessageMediaJSONRequestBody EditMessageMediaJSONBody
EditMessageMediaJSONRequestBody defines body for EditMessageMedia for application/json ContentType.
type EditMessageMediaMultipartBody ¶ added in v0.2.0
type EditMessageMediaMultipartBody struct {
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message to be edited was sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// ChatId Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId *int64 `json:"chat_id,omitempty"`
// InlineMessageId Required if chat_id and message_id are not specified. Identifier of the inline message
InlineMessageId *string `json:"inline_message_id,omitempty"`
// Media A JSON-serialized object for a new media content of the message
Media InputMedia `json:"media"`
// MessageId Required if inline_message_id is not specified. Identifier of the message to edit
MessageId *int `json:"message_id,omitempty"`
// ReplyMarkup A JSON-serialized object for a new inline keyboard.
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
EditMessageMediaMultipartBody defines parameters for EditMessageMedia.
type EditMessageMediaMultipartRequestBody ¶ added in v0.2.0
type EditMessageMediaMultipartRequestBody EditMessageMediaMultipartBody
EditMessageMediaMultipartRequestBody defines body for EditMessageMedia for multipart/form-data ContentType.
type EditMessageMediaResponse ¶
type EditMessageMediaResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok EditMessageMedia200Ok `json:"ok"`
Result EditMessageMedia_200_Result `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseEditMessageMediaResponse ¶
func ParseEditMessageMediaResponse(rsp *http.Response) (*EditMessageMediaResponse, error)
ParseEditMessageMediaResponse parses an HTTP response from a EditMessageMediaWithResponse call
func (EditMessageMediaResponse) Status ¶
func (r EditMessageMediaResponse) Status() string
Status returns HTTPResponse.Status
func (EditMessageMediaResponse) StatusCode ¶
func (r EditMessageMediaResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EditMessageMedia_200_Result ¶
type EditMessageMedia_200_Result struct {
// contains filtered or unexported fields
}
type EditMessageReplyMarkup200Ok ¶
type EditMessageReplyMarkup200Ok bool
type EditMessageReplyMarkup200Result1 ¶
type EditMessageReplyMarkup200Result1 = bool
type EditMessageReplyMarkupJSONBody ¶
type EditMessageReplyMarkupJSONBody struct {
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message to be edited was sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// ChatId Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId *int64 `json:"chat_id,omitempty"`
// InlineMessageId Required if chat_id and message_id are not specified. Identifier of the inline message
InlineMessageId *string `json:"inline_message_id,omitempty"`
// MessageId Required if inline_message_id is not specified. Identifier of the message to edit
MessageId *int `json:"message_id,omitempty"`
// ReplyMarkup A JSON-serialized object for an inline keyboard.
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
EditMessageReplyMarkupJSONBody defines parameters for EditMessageReplyMarkup.
type EditMessageReplyMarkupJSONRequestBody ¶
type EditMessageReplyMarkupJSONRequestBody EditMessageReplyMarkupJSONBody
EditMessageReplyMarkupJSONRequestBody defines body for EditMessageReplyMarkup for application/json ContentType.
type EditMessageReplyMarkupResponse ¶
type EditMessageReplyMarkupResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok EditMessageReplyMarkup200Ok `json:"ok"`
Result EditMessageReplyMarkup_200_Result `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseEditMessageReplyMarkupResponse ¶
func ParseEditMessageReplyMarkupResponse(rsp *http.Response) (*EditMessageReplyMarkupResponse, error)
ParseEditMessageReplyMarkupResponse parses an HTTP response from a EditMessageReplyMarkupWithResponse call
func (EditMessageReplyMarkupResponse) Status ¶
func (r EditMessageReplyMarkupResponse) Status() string
Status returns HTTPResponse.Status
func (EditMessageReplyMarkupResponse) StatusCode ¶
func (r EditMessageReplyMarkupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EditMessageReplyMarkup_200_Result ¶
type EditMessageReplyMarkup_200_Result struct {
// contains filtered or unexported fields
}
type EditMessageText200Ok ¶
type EditMessageText200Ok bool
type EditMessageText200Result1 ¶
type EditMessageText200Result1 = bool
type EditMessageTextJSONBody ¶
type EditMessageTextJSONBody struct {
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message to be edited was sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// ChatId Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId *int64 `json:"chat_id,omitempty"`
// Entities A JSON-serialized list of special entities that appear in message text, which can be specified instead of parse_mode
Entities *[]MessageEntity `json:"entities,omitempty"`
// InlineMessageId Required if chat_id and message_id are not specified. Identifier of the inline message
InlineMessageId *string `json:"inline_message_id,omitempty"`
// LinkPreviewOptions Link preview generation options for the message
LinkPreviewOptions *LinkPreviewOptions `json:"link_preview_options,omitempty"`
// MessageId Required if inline_message_id is not specified. Identifier of the message to edit
MessageId *int `json:"message_id,omitempty"`
// ParseMode Mode for parsing entities in the message text. See formatting options for more details.
ParseMode *string `json:"parse_mode,omitempty"`
// ReplyMarkup A JSON-serialized object for an inline keyboard.
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
// Text New text of the message, 1-4096 characters after entities parsing
Text string `json:"text"`
}
EditMessageTextJSONBody defines parameters for EditMessageText.
type EditMessageTextJSONRequestBody ¶
type EditMessageTextJSONRequestBody EditMessageTextJSONBody
EditMessageTextJSONRequestBody defines body for EditMessageText for application/json ContentType.
type EditMessageTextResponse ¶
type EditMessageTextResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok EditMessageText200Ok `json:"ok"`
Result EditMessageText_200_Result `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseEditMessageTextResponse ¶
func ParseEditMessageTextResponse(rsp *http.Response) (*EditMessageTextResponse, error)
ParseEditMessageTextResponse parses an HTTP response from a EditMessageTextWithResponse call
func (EditMessageTextResponse) Status ¶
func (r EditMessageTextResponse) Status() string
Status returns HTTPResponse.Status
func (EditMessageTextResponse) StatusCode ¶
func (r EditMessageTextResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EditMessageText_200_Result ¶
type EditMessageText_200_Result struct {
// contains filtered or unexported fields
}
type EditStory200Ok ¶
type EditStory200Ok bool
type EditStoryJSONBody ¶
type EditStoryJSONBody struct {
// Areas A JSON-serialized list of clickable areas to be shown on the story
Areas *[]StoryArea `json:"areas,omitempty"`
// BusinessConnectionId Unique identifier of the business connection
BusinessConnectionId string `json:"business_connection_id"`
// Caption Caption of the story, 0-2048 characters after entities parsing
Caption *string `json:"caption,omitempty"`
// CaptionEntities A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode
CaptionEntities *[]MessageEntity `json:"caption_entities,omitempty"`
// Content Content of the story
Content InputStoryContent `json:"content"`
// ParseMode Mode for parsing entities in the story caption. See formatting options for more details.
ParseMode *string `json:"parse_mode,omitempty"`
// StoryId Unique identifier of the story to edit
StoryId int `json:"story_id"`
}
EditStoryJSONBody defines parameters for EditStory.
type EditStoryJSONRequestBody ¶
type EditStoryJSONRequestBody EditStoryJSONBody
EditStoryJSONRequestBody defines body for EditStory for application/json ContentType.
type EditStoryResponse ¶
type EditStoryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok EditStory200Ok `json:"ok"`
// Result This object represents a story.
Result Story `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseEditStoryResponse ¶
func ParseEditStoryResponse(rsp *http.Response) (*EditStoryResponse, error)
ParseEditStoryResponse parses an HTTP response from a EditStoryWithResponse call
func (EditStoryResponse) Status ¶
func (r EditStoryResponse) Status() string
Status returns HTTPResponse.Status
func (EditStoryResponse) StatusCode ¶
func (r EditStoryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EditUserStarSubscription200Ok ¶
type EditUserStarSubscription200Ok bool
type EditUserStarSubscriptionJSONBody ¶
type EditUserStarSubscriptionJSONBody struct {
// IsCanceled Pass True to cancel extension of the user subscription; the subscription must be active up to the end of the current subscription period. Pass False to allow the user to re-enable a subscription that was previously canceled by the bot.
IsCanceled bool `json:"is_canceled"`
// TelegramPaymentChargeId Telegram payment identifier for the subscription
TelegramPaymentChargeId string `json:"telegram_payment_charge_id"`
// UserId Identifier of the user whose subscription will be edited
UserId int `json:"user_id"`
}
EditUserStarSubscriptionJSONBody defines parameters for EditUserStarSubscription.
type EditUserStarSubscriptionJSONRequestBody ¶
type EditUserStarSubscriptionJSONRequestBody EditUserStarSubscriptionJSONBody
EditUserStarSubscriptionJSONRequestBody defines body for EditUserStarSubscription for application/json ContentType.
type EditUserStarSubscriptionResponse ¶
type EditUserStarSubscriptionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok EditUserStarSubscription200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseEditUserStarSubscriptionResponse ¶
func ParseEditUserStarSubscriptionResponse(rsp *http.Response) (*EditUserStarSubscriptionResponse, error)
ParseEditUserStarSubscriptionResponse parses an HTTP response from a EditUserStarSubscriptionWithResponse call
func (EditUserStarSubscriptionResponse) Status ¶
func (r EditUserStarSubscriptionResponse) Status() string
Status returns HTTPResponse.Status
func (EditUserStarSubscriptionResponse) StatusCode ¶
func (r EditUserStarSubscriptionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EncryptedCredentials ¶
type EncryptedCredentials struct {
// Data Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication
Data string `json:"data"`
// Hash Base64-encoded data hash for data authentication
Hash string `json:"hash"`
// Secret Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption
Secret string `json:"secret"`
}
EncryptedCredentials Describes data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes.
type EncryptedPassportElement ¶
type EncryptedPassportElement struct {
// Data Optional. Base64-encoded encrypted Telegram Passport element data provided by the user; available only for “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport” and “address” types. Can be decrypted and verified using the accompanying EncryptedCredentials.
Data *string `json:"data,omitempty"`
// Email Optional. User's verified email address; available only for “email” type
Email *string `json:"email,omitempty"`
// Files Optional. Array of encrypted files with documents provided by the user; available only for “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and “temporary_registration” types. Files can be decrypted and verified using the accompanying EncryptedCredentials.
Files *[]PassportFile `json:"files,omitempty"`
// FrontSide Optional. Encrypted file with the front side of the document, provided by the user; available only for “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be decrypted and verified using the accompanying EncryptedCredentials.
FrontSide *PassportFile `json:"front_side,omitempty"`
// Hash Base64-encoded element hash for using in PassportElementErrorUnspecified
Hash string `json:"hash"`
// PhoneNumber Optional. User's verified phone number; available only for “phone_number” type
PhoneNumber *string `json:"phone_number,omitempty"`
// ReverseSide Optional. Encrypted file with the reverse side of the document, provided by the user; available only for “driver_license” and “identity_card”. The file can be decrypted and verified using the accompanying EncryptedCredentials.
ReverseSide *PassportFile `json:"reverse_side,omitempty"`
// Selfie Optional. Encrypted file with the selfie of the user holding a document, provided by the user; available if requested for “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be decrypted and verified using the accompanying EncryptedCredentials.
Selfie *PassportFile `json:"selfie,omitempty"`
// Translation Optional. Array of encrypted files with translated versions of documents provided by the user; available if requested for “passport”, “driver_license”, “identity_card”, “internal_passport”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and “temporary_registration” types. Files can be decrypted and verified using the accompanying EncryptedCredentials.
Translation *[]PassportFile `json:"translation,omitempty"`
// Type Element type. One of “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport”, “address”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”, “phone_number”, “email”.
Type string `json:"type"`
}
EncryptedPassportElement Describes documents or other Telegram Passport elements shared with the bot by the user.
type ErrorResponse ¶
type ErrorResponse struct {
Description string `json:"description"`
ErrorCode int `json:"error_code"`
Ok ErrorResponseOk `json:"ok"`
// Parameters Describes why a request was unsuccessful.
Parameters *ResponseParameters `json:"parameters,omitempty"`
}
ErrorResponse defines model for ErrorResponse.
type ErrorResponseOk ¶
type ErrorResponseOk bool
ErrorResponseOk defines model for ErrorResponse.Ok.
const (
False ErrorResponseOk = false
)
Defines values for ErrorResponseOk.
type ExportChatInviteLink200Ok ¶
type ExportChatInviteLink200Ok bool
type ExportChatInviteLinkJSONBody ¶
type ExportChatInviteLinkJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
}
ExportChatInviteLinkJSONBody defines parameters for ExportChatInviteLink.
type ExportChatInviteLinkJSONRequestBody ¶
type ExportChatInviteLinkJSONRequestBody ExportChatInviteLinkJSONBody
ExportChatInviteLinkJSONRequestBody defines body for ExportChatInviteLink for application/json ContentType.
type ExportChatInviteLinkResponse ¶
type ExportChatInviteLinkResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok ExportChatInviteLink200Ok `json:"ok"`
Result string `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseExportChatInviteLinkResponse ¶
func ParseExportChatInviteLinkResponse(rsp *http.Response) (*ExportChatInviteLinkResponse, error)
ParseExportChatInviteLinkResponse parses an HTTP response from a ExportChatInviteLinkWithResponse call
func (ExportChatInviteLinkResponse) Status ¶
func (r ExportChatInviteLinkResponse) Status() string
Status returns HTTPResponse.Status
func (ExportChatInviteLinkResponse) StatusCode ¶
func (r ExportChatInviteLinkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExternalReplyInfo ¶
type ExternalReplyInfo struct {
// Animation Optional. Message is an animation, information about the animation
Animation *Animation `json:"animation,omitempty"`
// Audio Optional. Message is an audio file, information about the file
Audio *Audio `json:"audio,omitempty"`
// Chat Optional. Chat the original message belongs to. Available only if the chat is a supergroup or a channel.
Chat *Chat `json:"chat,omitempty"`
// Checklist Optional. Message is a checklist
Checklist *Checklist `json:"checklist,omitempty"`
// Contact Optional. Message is a shared contact, information about the contact
Contact *Contact `json:"contact,omitempty"`
// Dice Optional. Message is a dice with random value
Dice *Dice `json:"dice,omitempty"`
// Document Optional. Message is a general file, information about the file
Document *Document `json:"document,omitempty"`
// Game Optional. Message is a game, information about the game. More about games »
Game *Game `json:"game,omitempty"`
// Giveaway Optional. Message is a scheduled giveaway, information about the giveaway
Giveaway *Giveaway `json:"giveaway,omitempty"`
// GiveawayWinners Optional. A giveaway with public winners was completed
GiveawayWinners *GiveawayWinners `json:"giveaway_winners,omitempty"`
// HasMediaSpoiler Optional. True, if the message media is covered by a spoiler animation
HasMediaSpoiler *bool `json:"has_media_spoiler,omitempty"`
// Invoice Optional. Message is an invoice for a payment, information about the invoice. More about payments »
Invoice *Invoice `json:"invoice,omitempty"`
// LinkPreviewOptions Optional. Options used for link preview generation for the original message, if it is a text message
LinkPreviewOptions *LinkPreviewOptions `json:"link_preview_options,omitempty"`
// Location Optional. Message is a shared location, information about the location
Location *Location `json:"location,omitempty"`
// MessageId Optional. Unique message identifier inside the original chat. Available only if the original chat is a supergroup or a channel.
MessageId *int `json:"message_id,omitempty"`
// Origin Origin of the message replied to by the given message
Origin MessageOrigin `json:"origin"`
// PaidMedia Optional. Message contains paid media; information about the paid media
PaidMedia *PaidMediaInfo `json:"paid_media,omitempty"`
// Photo Optional. Message is a photo, available sizes of the photo
Photo *[]PhotoSize `json:"photo,omitempty"`
// Poll Optional. Message is a native poll, information about the poll
Poll *Poll `json:"poll,omitempty"`
// Sticker Optional. Message is a sticker, information about the sticker
Sticker *Sticker `json:"sticker,omitempty"`
// Story Optional. Message is a forwarded story
Story *Story `json:"story,omitempty"`
// Venue Optional. Message is a venue, information about the venue
Venue *Venue `json:"venue,omitempty"`
// Video Optional. Message is a video, information about the video
Video *Video `json:"video,omitempty"`
// VideoNote Optional. Message is a video note, information about the video message
VideoNote *VideoNote `json:"video_note,omitempty"`
// Voice Optional. Message is a voice message, information about the file
Voice *Voice `json:"voice,omitempty"`
}
ExternalReplyInfo This object contains information about a message that is being replied to, which may come from another chat or forum topic.
type File ¶
type File struct {
// FileId Identifier for this file, which can be used to download or reuse the file
FileId string `json:"file_id"`
// FilePath Optional. File path. Use https://api.telegram.org/file/bot<token>/<file_path> to get the file.
FilePath *string `json:"file_path,omitempty"`
// FileSize Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value.
FileSize *int64 `json:"file_size,omitempty"`
// FileUniqueId Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
FileUniqueId string `json:"file_unique_id"`
}
File This object represents a file ready to be downloaded. The file can be downloaded via the link https://api.telegram.org/file/bot<token>/<file_path>. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling getFile.
type ForumTopic ¶
type ForumTopic struct {
// IconColor Color of the topic icon in RGB format
IconColor int `json:"icon_color"`
// IconCustomEmojiId Optional. Unique identifier of the custom emoji shown as the topic icon
IconCustomEmojiId *string `json:"icon_custom_emoji_id,omitempty"`
// IsNameImplicit Optional. True, if the name of the topic wasn't specified explicitly by its creator and likely needs to be changed by the bot
IsNameImplicit *bool `json:"is_name_implicit,omitempty"`
// MessageThreadId Unique identifier of the forum topic
MessageThreadId int `json:"message_thread_id"`
// Name Name of the topic
Name string `json:"name"`
}
ForumTopic This object represents a forum topic.
type ForumTopicClosed ¶
type ForumTopicClosed = map[string]interface{}
ForumTopicClosed This object represents a service message about a forum topic closed in the chat. Currently holds no information.
type ForumTopicCreated ¶
type ForumTopicCreated struct {
// IconColor Color of the topic icon in RGB format
IconColor int `json:"icon_color"`
// IconCustomEmojiId Optional. Unique identifier of the custom emoji shown as the topic icon
IconCustomEmojiId *string `json:"icon_custom_emoji_id,omitempty"`
// IsNameImplicit Optional. True, if the name of the topic wasn't specified explicitly by its creator and likely needs to be changed by the bot
IsNameImplicit *bool `json:"is_name_implicit,omitempty"`
// Name Name of the topic
Name string `json:"name"`
}
ForumTopicCreated This object represents a service message about a new forum topic created in the chat.
type ForumTopicEdited ¶
type ForumTopicEdited struct {
// IconCustomEmojiId Optional. New identifier of the custom emoji shown as the topic icon, if it was edited; an empty string if the icon was removed
IconCustomEmojiId *string `json:"icon_custom_emoji_id,omitempty"`
// Name Optional. New name of the topic, if it was edited
Name *string `json:"name,omitempty"`
}
ForumTopicEdited This object represents a service message about an edited forum topic.
type ForumTopicReopened ¶
type ForumTopicReopened = map[string]interface{}
ForumTopicReopened This object represents a service message about a forum topic reopened in the chat. Currently holds no information.
type ForwardMessage200Ok ¶
type ForwardMessage200Ok bool
type ForwardMessageJSONBody ¶
type ForwardMessageJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// DirectMessagesTopicId Identifier of the direct messages topic to which the message will be forwarded; required if the message is forwarded to a direct messages chat
DirectMessagesTopicId *int `json:"direct_messages_topic_id,omitempty"`
// DisableNotification Sends the message silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// FromChatId Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername)
FromChatId int64 `json:"from_chat_id"`
// MessageEffectId Unique identifier of the message effect to be added to the message; only available when forwarding to private chats
MessageEffectId *string `json:"message_effect_id,omitempty"`
// MessageId Message identifier in the chat specified in from_chat_id
MessageId int `json:"message_id"`
// MessageThreadId Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// ProtectContent Protects the contents of the forwarded message from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// SuggestedPostParameters A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
// VideoStartTimestamp New start timestamp for the forwarded video in the message
VideoStartTimestamp *int `json:"video_start_timestamp,omitempty"`
}
ForwardMessageJSONBody defines parameters for ForwardMessage.
type ForwardMessageJSONRequestBody ¶
type ForwardMessageJSONRequestBody ForwardMessageJSONBody
ForwardMessageJSONRequestBody defines body for ForwardMessage for application/json ContentType.
type ForwardMessageResponse ¶
type ForwardMessageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok ForwardMessage200Ok `json:"ok"`
// Result This object represents a message.
Result Message `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseForwardMessageResponse ¶
func ParseForwardMessageResponse(rsp *http.Response) (*ForwardMessageResponse, error)
ParseForwardMessageResponse parses an HTTP response from a ForwardMessageWithResponse call
func (ForwardMessageResponse) Status ¶
func (r ForwardMessageResponse) Status() string
Status returns HTTPResponse.Status
func (ForwardMessageResponse) StatusCode ¶
func (r ForwardMessageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ForwardMessages200Ok ¶
type ForwardMessages200Ok bool
type ForwardMessagesJSONBody ¶
type ForwardMessagesJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// DirectMessagesTopicId Identifier of the direct messages topic to which the messages will be forwarded; required if the messages are forwarded to a direct messages chat
DirectMessagesTopicId *int `json:"direct_messages_topic_id,omitempty"`
// DisableNotification Sends the messages silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// FromChatId Unique identifier for the chat where the original messages were sent (or channel username in the format @channelusername)
FromChatId int64 `json:"from_chat_id"`
// MessageIds A JSON-serialized list of 1-100 identifiers of messages in the chat from_chat_id to forward. The identifiers must be specified in a strictly increasing order.
MessageIds []int `json:"message_ids"`
// MessageThreadId Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// ProtectContent Protects the contents of the forwarded messages from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
}
ForwardMessagesJSONBody defines parameters for ForwardMessages.
type ForwardMessagesJSONRequestBody ¶
type ForwardMessagesJSONRequestBody ForwardMessagesJSONBody
ForwardMessagesJSONRequestBody defines body for ForwardMessages for application/json ContentType.
type ForwardMessagesResponse ¶
type ForwardMessagesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok ForwardMessages200Ok `json:"ok"`
Result []MessageId `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseForwardMessagesResponse ¶
func ParseForwardMessagesResponse(rsp *http.Response) (*ForwardMessagesResponse, error)
ParseForwardMessagesResponse parses an HTTP response from a ForwardMessagesWithResponse call
func (ForwardMessagesResponse) Status ¶
func (r ForwardMessagesResponse) Status() string
Status returns HTTPResponse.Status
func (ForwardMessagesResponse) StatusCode ¶
func (r ForwardMessagesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Game ¶
type Game struct {
// Animation Optional. Animation that will be displayed in the game message in chats. Upload via BotFather
Animation *Animation `json:"animation,omitempty"`
// Description Description of the game
Description string `json:"description"`
// Photo Photo that will be displayed in the game message in chats.
Photo []PhotoSize `json:"photo"`
// Text Optional. Brief description of the game or high scores included in the game message. Can be automatically edited to include current high scores for the game when the bot calls setGameScore, or manually edited using editMessageText. 0-4096 characters.
Text *string `json:"text,omitempty"`
// TextEntities Optional. Special entities that appear in text, such as usernames, URLs, bot commands, etc.
TextEntities *[]MessageEntity `json:"text_entities,omitempty"`
// Title Title of the game
Title string `json:"title"`
}
Game This object represents a game. Use BotFather to create and edit games, their short names will act as unique identifiers.
type GameHighScore ¶
type GameHighScore struct {
// Position Position in high score table for the game
Position int `json:"position"`
// Score Score
Score int `json:"score"`
// User User
User User `json:"user"`
}
GameHighScore This object represents one row of the high scores table for a game.
type GeneralForumTopicHidden ¶
type GeneralForumTopicHidden = map[string]interface{}
GeneralForumTopicHidden This object represents a service message about General forum topic hidden in the chat. Currently holds no information.
type GeneralForumTopicUnhidden ¶
type GeneralForumTopicUnhidden = map[string]interface{}
GeneralForumTopicUnhidden This object represents a service message about General forum topic unhidden in the chat. Currently holds no information.
type GetAvailableGifts200Ok ¶
type GetAvailableGifts200Ok bool
type GetAvailableGiftsResponse ¶
type GetAvailableGiftsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok GetAvailableGifts200Ok `json:"ok"`
// Result This object represent a list of gifts.
Result Gifts `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseGetAvailableGiftsResponse ¶
func ParseGetAvailableGiftsResponse(rsp *http.Response) (*GetAvailableGiftsResponse, error)
ParseGetAvailableGiftsResponse parses an HTTP response from a GetAvailableGiftsWithResponse call
func (GetAvailableGiftsResponse) Status ¶
func (r GetAvailableGiftsResponse) Status() string
Status returns HTTPResponse.Status
func (GetAvailableGiftsResponse) StatusCode ¶
func (r GetAvailableGiftsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBusinessAccountGifts200Ok ¶
type GetBusinessAccountGifts200Ok bool
type GetBusinessAccountGiftsJSONBody ¶
type GetBusinessAccountGiftsJSONBody struct {
// BusinessConnectionId Unique identifier of the business connection
BusinessConnectionId string `json:"business_connection_id"`
// ExcludeFromBlockchain Pass True to exclude gifts that were assigned from the TON blockchain and can't be resold or transferred in Telegram
ExcludeFromBlockchain *bool `json:"exclude_from_blockchain,omitempty"`
// ExcludeLimitedNonUpgradable Pass True to exclude gifts that can be purchased a limited number of times and can't be upgraded to unique
ExcludeLimitedNonUpgradable *bool `json:"exclude_limited_non_upgradable,omitempty"`
// ExcludeLimitedUpgradable Pass True to exclude gifts that can be purchased a limited number of times and can be upgraded to unique
ExcludeLimitedUpgradable *bool `json:"exclude_limited_upgradable,omitempty"`
// ExcludeSaved Pass True to exclude gifts that are saved to the account's profile page
ExcludeSaved *bool `json:"exclude_saved,omitempty"`
// ExcludeUnique Pass True to exclude unique gifts
ExcludeUnique *bool `json:"exclude_unique,omitempty"`
// ExcludeUnlimited Pass True to exclude gifts that can be purchased an unlimited number of times
ExcludeUnlimited *bool `json:"exclude_unlimited,omitempty"`
// ExcludeUnsaved Pass True to exclude gifts that aren't saved to the account's profile page
ExcludeUnsaved *bool `json:"exclude_unsaved,omitempty"`
// Limit The maximum number of gifts to be returned; 1-100. Defaults to 100
Limit *int `json:"limit,omitempty"`
// Offset Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results
Offset *string `json:"offset,omitempty"`
// SortByPrice Pass True to sort results by gift price instead of send date. Sorting is applied before pagination.
SortByPrice *bool `json:"sort_by_price,omitempty"`
}
GetBusinessAccountGiftsJSONBody defines parameters for GetBusinessAccountGifts.
type GetBusinessAccountGiftsJSONRequestBody ¶
type GetBusinessAccountGiftsJSONRequestBody GetBusinessAccountGiftsJSONBody
GetBusinessAccountGiftsJSONRequestBody defines body for GetBusinessAccountGifts for application/json ContentType.
type GetBusinessAccountGiftsResponse ¶
type GetBusinessAccountGiftsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok GetBusinessAccountGifts200Ok `json:"ok"`
// Result Contains the list of gifts received and owned by a user or a chat.
Result OwnedGifts `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseGetBusinessAccountGiftsResponse ¶
func ParseGetBusinessAccountGiftsResponse(rsp *http.Response) (*GetBusinessAccountGiftsResponse, error)
ParseGetBusinessAccountGiftsResponse parses an HTTP response from a GetBusinessAccountGiftsWithResponse call
func (GetBusinessAccountGiftsResponse) Status ¶
func (r GetBusinessAccountGiftsResponse) Status() string
Status returns HTTPResponse.Status
func (GetBusinessAccountGiftsResponse) StatusCode ¶
func (r GetBusinessAccountGiftsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBusinessAccountStarBalance200Ok ¶
type GetBusinessAccountStarBalance200Ok bool
type GetBusinessAccountStarBalanceJSONBody ¶
type GetBusinessAccountStarBalanceJSONBody struct {
// BusinessConnectionId Unique identifier of the business connection
BusinessConnectionId string `json:"business_connection_id"`
}
GetBusinessAccountStarBalanceJSONBody defines parameters for GetBusinessAccountStarBalance.
type GetBusinessAccountStarBalanceJSONRequestBody ¶
type GetBusinessAccountStarBalanceJSONRequestBody GetBusinessAccountStarBalanceJSONBody
GetBusinessAccountStarBalanceJSONRequestBody defines body for GetBusinessAccountStarBalance for application/json ContentType.
type GetBusinessAccountStarBalanceResponse ¶
type GetBusinessAccountStarBalanceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok GetBusinessAccountStarBalance200Ok `json:"ok"`
// Result Describes an amount of Telegram Stars.
Result StarAmount `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseGetBusinessAccountStarBalanceResponse ¶
func ParseGetBusinessAccountStarBalanceResponse(rsp *http.Response) (*GetBusinessAccountStarBalanceResponse, error)
ParseGetBusinessAccountStarBalanceResponse parses an HTTP response from a GetBusinessAccountStarBalanceWithResponse call
func (GetBusinessAccountStarBalanceResponse) Status ¶
func (r GetBusinessAccountStarBalanceResponse) Status() string
Status returns HTTPResponse.Status
func (GetBusinessAccountStarBalanceResponse) StatusCode ¶
func (r GetBusinessAccountStarBalanceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBusinessConnection200Ok ¶
type GetBusinessConnection200Ok bool
type GetBusinessConnectionJSONBody ¶
type GetBusinessConnectionJSONBody struct {
// BusinessConnectionId Unique identifier of the business connection
BusinessConnectionId string `json:"business_connection_id"`
}
GetBusinessConnectionJSONBody defines parameters for GetBusinessConnection.
type GetBusinessConnectionJSONRequestBody ¶
type GetBusinessConnectionJSONRequestBody GetBusinessConnectionJSONBody
GetBusinessConnectionJSONRequestBody defines body for GetBusinessConnection for application/json ContentType.
type GetBusinessConnectionResponse ¶
type GetBusinessConnectionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok GetBusinessConnection200Ok `json:"ok"`
// Result Describes the connection of the bot with a business account.
Result BusinessConnection `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseGetBusinessConnectionResponse ¶
func ParseGetBusinessConnectionResponse(rsp *http.Response) (*GetBusinessConnectionResponse, error)
ParseGetBusinessConnectionResponse parses an HTTP response from a GetBusinessConnectionWithResponse call
func (GetBusinessConnectionResponse) Status ¶
func (r GetBusinessConnectionResponse) Status() string
Status returns HTTPResponse.Status
func (GetBusinessConnectionResponse) StatusCode ¶
func (r GetBusinessConnectionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetChat200Ok ¶
type GetChat200Ok bool
type GetChatAdministrators200Ok ¶
type GetChatAdministrators200Ok bool
type GetChatAdministratorsJSONBody ¶
type GetChatAdministratorsJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
}
GetChatAdministratorsJSONBody defines parameters for GetChatAdministrators.
type GetChatAdministratorsJSONRequestBody ¶
type GetChatAdministratorsJSONRequestBody GetChatAdministratorsJSONBody
GetChatAdministratorsJSONRequestBody defines body for GetChatAdministrators for application/json ContentType.
type GetChatAdministratorsResponse ¶
type GetChatAdministratorsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok GetChatAdministrators200Ok `json:"ok"`
Result []ChatMember `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseGetChatAdministratorsResponse ¶
func ParseGetChatAdministratorsResponse(rsp *http.Response) (*GetChatAdministratorsResponse, error)
ParseGetChatAdministratorsResponse parses an HTTP response from a GetChatAdministratorsWithResponse call
func (GetChatAdministratorsResponse) Status ¶
func (r GetChatAdministratorsResponse) Status() string
Status returns HTTPResponse.Status
func (GetChatAdministratorsResponse) StatusCode ¶
func (r GetChatAdministratorsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetChatGifts200Ok ¶ added in v0.3.0
type GetChatGifts200Ok bool
type GetChatGiftsJSONBody ¶ added in v0.3.0
type GetChatGiftsJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// ExcludeFromBlockchain Pass True to exclude gifts that were assigned from the TON blockchain and can't be resold or transferred in Telegram
ExcludeFromBlockchain *bool `json:"exclude_from_blockchain,omitempty"`
// ExcludeLimitedNonUpgradable Pass True to exclude gifts that can be purchased a limited number of times and can't be upgraded to unique
ExcludeLimitedNonUpgradable *bool `json:"exclude_limited_non_upgradable,omitempty"`
// ExcludeLimitedUpgradable Pass True to exclude gifts that can be purchased a limited number of times and can be upgraded to unique
ExcludeLimitedUpgradable *bool `json:"exclude_limited_upgradable,omitempty"`
// ExcludeSaved Pass True to exclude gifts that are saved to the chat's profile page. Always False, unless the bot has the can_post_messages administrator right in the channel.
ExcludeSaved *bool `json:"exclude_saved,omitempty"`
// ExcludeUnique Pass True to exclude unique gifts
ExcludeUnique *bool `json:"exclude_unique,omitempty"`
// ExcludeUnlimited Pass True to exclude gifts that can be purchased an unlimited number of times
ExcludeUnlimited *bool `json:"exclude_unlimited,omitempty"`
// ExcludeUnsaved Pass True to exclude gifts that aren't saved to the chat's profile page. Always True, unless the bot has the can_post_messages administrator right in the channel.
ExcludeUnsaved *bool `json:"exclude_unsaved,omitempty"`
// Limit The maximum number of gifts to be returned; 1-100. Defaults to 100
Limit *int `json:"limit,omitempty"`
// Offset Offset of the first entry to return as received from the previous request; use an empty string to get the first chunk of results
Offset *string `json:"offset,omitempty"`
// SortByPrice Pass True to sort results by gift price instead of send date. Sorting is applied before pagination.
SortByPrice *bool `json:"sort_by_price,omitempty"`
}
GetChatGiftsJSONBody defines parameters for GetChatGifts.
type GetChatGiftsJSONRequestBody ¶ added in v0.3.0
type GetChatGiftsJSONRequestBody GetChatGiftsJSONBody
GetChatGiftsJSONRequestBody defines body for GetChatGifts for application/json ContentType.
type GetChatGiftsResponse ¶ added in v0.3.0
type GetChatGiftsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok GetChatGifts200Ok `json:"ok"`
// Result Contains the list of gifts received and owned by a user or a chat.
Result OwnedGifts `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseGetChatGiftsResponse ¶ added in v0.3.0
func ParseGetChatGiftsResponse(rsp *http.Response) (*GetChatGiftsResponse, error)
ParseGetChatGiftsResponse parses an HTTP response from a GetChatGiftsWithResponse call
func (GetChatGiftsResponse) Status ¶ added in v0.3.0
func (r GetChatGiftsResponse) Status() string
Status returns HTTPResponse.Status
func (GetChatGiftsResponse) StatusCode ¶ added in v0.3.0
func (r GetChatGiftsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetChatJSONBody ¶
type GetChatJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
}
GetChatJSONBody defines parameters for GetChat.
type GetChatJSONRequestBody ¶
type GetChatJSONRequestBody GetChatJSONBody
GetChatJSONRequestBody defines body for GetChat for application/json ContentType.
type GetChatMember200Ok ¶
type GetChatMember200Ok bool
type GetChatMemberCount200Ok ¶
type GetChatMemberCount200Ok bool
type GetChatMemberCountJSONBody ¶
type GetChatMemberCountJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
}
GetChatMemberCountJSONBody defines parameters for GetChatMemberCount.
type GetChatMemberCountJSONRequestBody ¶
type GetChatMemberCountJSONRequestBody GetChatMemberCountJSONBody
GetChatMemberCountJSONRequestBody defines body for GetChatMemberCount for application/json ContentType.
type GetChatMemberCountResponse ¶
type GetChatMemberCountResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok GetChatMemberCount200Ok `json:"ok"`
Result int `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseGetChatMemberCountResponse ¶
func ParseGetChatMemberCountResponse(rsp *http.Response) (*GetChatMemberCountResponse, error)
ParseGetChatMemberCountResponse parses an HTTP response from a GetChatMemberCountWithResponse call
func (GetChatMemberCountResponse) Status ¶
func (r GetChatMemberCountResponse) Status() string
Status returns HTTPResponse.Status
func (GetChatMemberCountResponse) StatusCode ¶
func (r GetChatMemberCountResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetChatMemberJSONBody ¶
type GetChatMemberJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// UserId Unique identifier of the target user
UserId int `json:"user_id"`
}
GetChatMemberJSONBody defines parameters for GetChatMember.
type GetChatMemberJSONRequestBody ¶
type GetChatMemberJSONRequestBody GetChatMemberJSONBody
GetChatMemberJSONRequestBody defines body for GetChatMember for application/json ContentType.
type GetChatMemberResponse ¶
type GetChatMemberResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok GetChatMember200Ok `json:"ok"`
// Result This object contains information about one member of a chat. Currently, the following 6 types of chat members are supported:
// ChatMemberOwner
// ChatMemberAdministrator
// ChatMemberMember
// ChatMemberRestricted
// ChatMemberLeft
// ChatMemberBanned
Result ChatMember `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseGetChatMemberResponse ¶
func ParseGetChatMemberResponse(rsp *http.Response) (*GetChatMemberResponse, error)
ParseGetChatMemberResponse parses an HTTP response from a GetChatMemberWithResponse call
func (GetChatMemberResponse) Status ¶
func (r GetChatMemberResponse) Status() string
Status returns HTTPResponse.Status
func (GetChatMemberResponse) StatusCode ¶
func (r GetChatMemberResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetChatMenuButton200Ok ¶
type GetChatMenuButton200Ok bool
type GetChatMenuButtonJSONBody ¶
type GetChatMenuButtonJSONBody struct {
// ChatId Unique identifier for the target private chat. If not specified, default bot's menu button will be returned
ChatId *int64 `json:"chat_id,omitempty"`
}
GetChatMenuButtonJSONBody defines parameters for GetChatMenuButton.
type GetChatMenuButtonJSONRequestBody ¶
type GetChatMenuButtonJSONRequestBody GetChatMenuButtonJSONBody
GetChatMenuButtonJSONRequestBody defines body for GetChatMenuButton for application/json ContentType.
type GetChatMenuButtonResponse ¶
type GetChatMenuButtonResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok GetChatMenuButton200Ok `json:"ok"`
// Result This object describes the bot's menu button in a private chat. It should be one of
// MenuButtonCommands
// MenuButtonWebApp
// MenuButtonDefault
// If a menu button other than MenuButtonDefault is set for a private chat, then it is applied in the chat. Otherwise the default menu button is applied. By default, the menu button opens the list of bot commands.
Result MenuButton `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseGetChatMenuButtonResponse ¶
func ParseGetChatMenuButtonResponse(rsp *http.Response) (*GetChatMenuButtonResponse, error)
ParseGetChatMenuButtonResponse parses an HTTP response from a GetChatMenuButtonWithResponse call
func (GetChatMenuButtonResponse) Status ¶
func (r GetChatMenuButtonResponse) Status() string
Status returns HTTPResponse.Status
func (GetChatMenuButtonResponse) StatusCode ¶
func (r GetChatMenuButtonResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetChatResponse ¶
type GetChatResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok GetChat200Ok `json:"ok"`
// Result This object contains full information about a chat.
Result ChatFullInfo `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseGetChatResponse ¶
func ParseGetChatResponse(rsp *http.Response) (*GetChatResponse, error)
ParseGetChatResponse parses an HTTP response from a GetChatWithResponse call
func (GetChatResponse) Status ¶
func (r GetChatResponse) Status() string
Status returns HTTPResponse.Status
func (GetChatResponse) StatusCode ¶
func (r GetChatResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCustomEmojiStickers200Ok ¶
type GetCustomEmojiStickers200Ok bool
type GetCustomEmojiStickersJSONBody ¶
type GetCustomEmojiStickersJSONBody struct {
// CustomEmojiIds A JSON-serialized list of custom emoji identifiers. At most 200 custom emoji identifiers can be specified.
CustomEmojiIds []string `json:"custom_emoji_ids"`
}
GetCustomEmojiStickersJSONBody defines parameters for GetCustomEmojiStickers.
type GetCustomEmojiStickersJSONRequestBody ¶
type GetCustomEmojiStickersJSONRequestBody GetCustomEmojiStickersJSONBody
GetCustomEmojiStickersJSONRequestBody defines body for GetCustomEmojiStickers for application/json ContentType.
type GetCustomEmojiStickersResponse ¶
type GetCustomEmojiStickersResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok GetCustomEmojiStickers200Ok `json:"ok"`
Result []Sticker `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseGetCustomEmojiStickersResponse ¶
func ParseGetCustomEmojiStickersResponse(rsp *http.Response) (*GetCustomEmojiStickersResponse, error)
ParseGetCustomEmojiStickersResponse parses an HTTP response from a GetCustomEmojiStickersWithResponse call
func (GetCustomEmojiStickersResponse) Status ¶
func (r GetCustomEmojiStickersResponse) Status() string
Status returns HTTPResponse.Status
func (GetCustomEmojiStickersResponse) StatusCode ¶
func (r GetCustomEmojiStickersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetFile200Ok ¶
type GetFile200Ok bool
type GetFileJSONBody ¶
type GetFileJSONBody struct {
// FileId File identifier to get information about
FileId string `json:"file_id"`
}
GetFileJSONBody defines parameters for GetFile.
type GetFileJSONRequestBody ¶
type GetFileJSONRequestBody GetFileJSONBody
GetFileJSONRequestBody defines body for GetFile for application/json ContentType.
type GetFileResponse ¶
type GetFileResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok GetFile200Ok `json:"ok"`
// Result This object represents a file ready to be downloaded. The file can be downloaded via the link https://api.telegram.org/file/bot<token>/<file_path>. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling getFile.
Result File `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseGetFileResponse ¶
func ParseGetFileResponse(rsp *http.Response) (*GetFileResponse, error)
ParseGetFileResponse parses an HTTP response from a GetFileWithResponse call
func (GetFileResponse) Status ¶
func (r GetFileResponse) Status() string
Status returns HTTPResponse.Status
func (GetFileResponse) StatusCode ¶
func (r GetFileResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetForumTopicIconStickers200Ok ¶
type GetForumTopicIconStickers200Ok bool
type GetForumTopicIconStickersResponse ¶
type GetForumTopicIconStickersResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok GetForumTopicIconStickers200Ok `json:"ok"`
Result []Sticker `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseGetForumTopicIconStickersResponse ¶
func ParseGetForumTopicIconStickersResponse(rsp *http.Response) (*GetForumTopicIconStickersResponse, error)
ParseGetForumTopicIconStickersResponse parses an HTTP response from a GetForumTopicIconStickersWithResponse call
func (GetForumTopicIconStickersResponse) Status ¶
func (r GetForumTopicIconStickersResponse) Status() string
Status returns HTTPResponse.Status
func (GetForumTopicIconStickersResponse) StatusCode ¶
func (r GetForumTopicIconStickersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetGameHighScores200Ok ¶
type GetGameHighScores200Ok bool
type GetGameHighScoresJSONBody ¶
type GetGameHighScoresJSONBody struct {
// ChatId Required if inline_message_id is not specified. Unique identifier for the target chat
ChatId *int64 `json:"chat_id,omitempty"`
// InlineMessageId Required if chat_id and message_id are not specified. Identifier of the inline message
InlineMessageId *string `json:"inline_message_id,omitempty"`
// MessageId Required if inline_message_id is not specified. Identifier of the sent message
MessageId *int `json:"message_id,omitempty"`
// UserId Target user id
UserId int `json:"user_id"`
}
GetGameHighScoresJSONBody defines parameters for GetGameHighScores.
type GetGameHighScoresJSONRequestBody ¶
type GetGameHighScoresJSONRequestBody GetGameHighScoresJSONBody
GetGameHighScoresJSONRequestBody defines body for GetGameHighScores for application/json ContentType.
type GetGameHighScoresResponse ¶
type GetGameHighScoresResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok GetGameHighScores200Ok `json:"ok"`
Result []GameHighScore `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseGetGameHighScoresResponse ¶
func ParseGetGameHighScoresResponse(rsp *http.Response) (*GetGameHighScoresResponse, error)
ParseGetGameHighScoresResponse parses an HTTP response from a GetGameHighScoresWithResponse call
func (GetGameHighScoresResponse) Status ¶
func (r GetGameHighScoresResponse) Status() string
Status returns HTTPResponse.Status
func (GetGameHighScoresResponse) StatusCode ¶
func (r GetGameHighScoresResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMe200Ok ¶
type GetMe200Ok bool
type GetMeResponse ¶
type GetMeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok GetMe200Ok `json:"ok"`
// Result This object represents a Telegram user or bot.
Result User `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseGetMeResponse ¶
func ParseGetMeResponse(rsp *http.Response) (*GetMeResponse, error)
ParseGetMeResponse parses an HTTP response from a GetMeWithResponse call
func (GetMeResponse) Status ¶
func (r GetMeResponse) Status() string
Status returns HTTPResponse.Status
func (GetMeResponse) StatusCode ¶
func (r GetMeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMyCommands200Ok ¶
type GetMyCommands200Ok bool
type GetMyCommandsJSONBody ¶
type GetMyCommandsJSONBody struct {
// LanguageCode A two-letter ISO 639-1 language code or an empty string
LanguageCode *string `json:"language_code,omitempty"`
// Scope A JSON-serialized object, describing scope of users. Defaults to BotCommandScopeDefault.
Scope *BotCommandScope `json:"scope,omitempty"`
}
GetMyCommandsJSONBody defines parameters for GetMyCommands.
type GetMyCommandsJSONRequestBody ¶
type GetMyCommandsJSONRequestBody GetMyCommandsJSONBody
GetMyCommandsJSONRequestBody defines body for GetMyCommands for application/json ContentType.
type GetMyCommandsResponse ¶
type GetMyCommandsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok GetMyCommands200Ok `json:"ok"`
Result []BotCommand `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseGetMyCommandsResponse ¶
func ParseGetMyCommandsResponse(rsp *http.Response) (*GetMyCommandsResponse, error)
ParseGetMyCommandsResponse parses an HTTP response from a GetMyCommandsWithResponse call
func (GetMyCommandsResponse) Status ¶
func (r GetMyCommandsResponse) Status() string
Status returns HTTPResponse.Status
func (GetMyCommandsResponse) StatusCode ¶
func (r GetMyCommandsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMyDefaultAdministratorRights200Ok ¶
type GetMyDefaultAdministratorRights200Ok bool
type GetMyDefaultAdministratorRightsJSONBody ¶
type GetMyDefaultAdministratorRightsJSONBody struct {
// ForChannels Pass True to get default administrator rights of the bot in channels. Otherwise, default administrator rights of the bot for groups and supergroups will be returned.
ForChannels *bool `json:"for_channels,omitempty"`
}
GetMyDefaultAdministratorRightsJSONBody defines parameters for GetMyDefaultAdministratorRights.
type GetMyDefaultAdministratorRightsJSONRequestBody ¶
type GetMyDefaultAdministratorRightsJSONRequestBody GetMyDefaultAdministratorRightsJSONBody
GetMyDefaultAdministratorRightsJSONRequestBody defines body for GetMyDefaultAdministratorRights for application/json ContentType.
type GetMyDefaultAdministratorRightsResponse ¶
type GetMyDefaultAdministratorRightsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok GetMyDefaultAdministratorRights200Ok `json:"ok"`
// Result Represents the rights of an administrator in a chat.
Result ChatAdministratorRights `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseGetMyDefaultAdministratorRightsResponse ¶
func ParseGetMyDefaultAdministratorRightsResponse(rsp *http.Response) (*GetMyDefaultAdministratorRightsResponse, error)
ParseGetMyDefaultAdministratorRightsResponse parses an HTTP response from a GetMyDefaultAdministratorRightsWithResponse call
func (GetMyDefaultAdministratorRightsResponse) Status ¶
func (r GetMyDefaultAdministratorRightsResponse) Status() string
Status returns HTTPResponse.Status
func (GetMyDefaultAdministratorRightsResponse) StatusCode ¶
func (r GetMyDefaultAdministratorRightsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMyDescription200Ok ¶
type GetMyDescription200Ok bool
type GetMyDescriptionJSONBody ¶
type GetMyDescriptionJSONBody struct {
// LanguageCode A two-letter ISO 639-1 language code or an empty string
LanguageCode *string `json:"language_code,omitempty"`
}
GetMyDescriptionJSONBody defines parameters for GetMyDescription.
type GetMyDescriptionJSONRequestBody ¶
type GetMyDescriptionJSONRequestBody GetMyDescriptionJSONBody
GetMyDescriptionJSONRequestBody defines body for GetMyDescription for application/json ContentType.
type GetMyDescriptionResponse ¶
type GetMyDescriptionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok GetMyDescription200Ok `json:"ok"`
// Result This object represents the bot's description.
Result BotDescription `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseGetMyDescriptionResponse ¶
func ParseGetMyDescriptionResponse(rsp *http.Response) (*GetMyDescriptionResponse, error)
ParseGetMyDescriptionResponse parses an HTTP response from a GetMyDescriptionWithResponse call
func (GetMyDescriptionResponse) Status ¶
func (r GetMyDescriptionResponse) Status() string
Status returns HTTPResponse.Status
func (GetMyDescriptionResponse) StatusCode ¶
func (r GetMyDescriptionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMyName200Ok ¶
type GetMyName200Ok bool
type GetMyNameJSONBody ¶
type GetMyNameJSONBody struct {
// LanguageCode A two-letter ISO 639-1 language code or an empty string
LanguageCode *string `json:"language_code,omitempty"`
}
GetMyNameJSONBody defines parameters for GetMyName.
type GetMyNameJSONRequestBody ¶
type GetMyNameJSONRequestBody GetMyNameJSONBody
GetMyNameJSONRequestBody defines body for GetMyName for application/json ContentType.
type GetMyNameResponse ¶
type GetMyNameResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok GetMyName200Ok `json:"ok"`
// Result This object represents the bot's name.
Result BotName `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseGetMyNameResponse ¶
func ParseGetMyNameResponse(rsp *http.Response) (*GetMyNameResponse, error)
ParseGetMyNameResponse parses an HTTP response from a GetMyNameWithResponse call
func (GetMyNameResponse) Status ¶
func (r GetMyNameResponse) Status() string
Status returns HTTPResponse.Status
func (GetMyNameResponse) StatusCode ¶
func (r GetMyNameResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMyShortDescription200Ok ¶
type GetMyShortDescription200Ok bool
type GetMyShortDescriptionJSONBody ¶
type GetMyShortDescriptionJSONBody struct {
// LanguageCode A two-letter ISO 639-1 language code or an empty string
LanguageCode *string `json:"language_code,omitempty"`
}
GetMyShortDescriptionJSONBody defines parameters for GetMyShortDescription.
type GetMyShortDescriptionJSONRequestBody ¶
type GetMyShortDescriptionJSONRequestBody GetMyShortDescriptionJSONBody
GetMyShortDescriptionJSONRequestBody defines body for GetMyShortDescription for application/json ContentType.
type GetMyShortDescriptionResponse ¶
type GetMyShortDescriptionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok GetMyShortDescription200Ok `json:"ok"`
// Result This object represents the bot's short description.
Result BotShortDescription `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseGetMyShortDescriptionResponse ¶
func ParseGetMyShortDescriptionResponse(rsp *http.Response) (*GetMyShortDescriptionResponse, error)
ParseGetMyShortDescriptionResponse parses an HTTP response from a GetMyShortDescriptionWithResponse call
func (GetMyShortDescriptionResponse) Status ¶
func (r GetMyShortDescriptionResponse) Status() string
Status returns HTTPResponse.Status
func (GetMyShortDescriptionResponse) StatusCode ¶
func (r GetMyShortDescriptionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMyStarBalance200Ok ¶
type GetMyStarBalance200Ok bool
type GetMyStarBalanceResponse ¶
type GetMyStarBalanceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok GetMyStarBalance200Ok `json:"ok"`
// Result Describes an amount of Telegram Stars.
Result StarAmount `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseGetMyStarBalanceResponse ¶
func ParseGetMyStarBalanceResponse(rsp *http.Response) (*GetMyStarBalanceResponse, error)
ParseGetMyStarBalanceResponse parses an HTTP response from a GetMyStarBalanceWithResponse call
func (GetMyStarBalanceResponse) Status ¶
func (r GetMyStarBalanceResponse) Status() string
Status returns HTTPResponse.Status
func (GetMyStarBalanceResponse) StatusCode ¶
func (r GetMyStarBalanceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetStarTransactions200Ok ¶
type GetStarTransactions200Ok bool
type GetStarTransactionsJSONBody ¶
type GetStarTransactionsJSONBody struct {
// Limit The maximum number of transactions to be retrieved. Values between 1-100 are accepted. Defaults to 100.
Limit *int `json:"limit,omitempty"`
// Offset Number of transactions to skip in the response
Offset *int `json:"offset,omitempty"`
}
GetStarTransactionsJSONBody defines parameters for GetStarTransactions.
type GetStarTransactionsJSONRequestBody ¶
type GetStarTransactionsJSONRequestBody GetStarTransactionsJSONBody
GetStarTransactionsJSONRequestBody defines body for GetStarTransactions for application/json ContentType.
type GetStarTransactionsResponse ¶
type GetStarTransactionsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok GetStarTransactions200Ok `json:"ok"`
// Result Contains a list of Telegram Star transactions.
Result StarTransactions `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseGetStarTransactionsResponse ¶
func ParseGetStarTransactionsResponse(rsp *http.Response) (*GetStarTransactionsResponse, error)
ParseGetStarTransactionsResponse parses an HTTP response from a GetStarTransactionsWithResponse call
func (GetStarTransactionsResponse) Status ¶
func (r GetStarTransactionsResponse) Status() string
Status returns HTTPResponse.Status
func (GetStarTransactionsResponse) StatusCode ¶
func (r GetStarTransactionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetStickerSet200Ok ¶
type GetStickerSet200Ok bool
type GetStickerSetJSONBody ¶
type GetStickerSetJSONBody struct {
// Name Name of the sticker set
Name string `json:"name"`
}
GetStickerSetJSONBody defines parameters for GetStickerSet.
type GetStickerSetJSONRequestBody ¶
type GetStickerSetJSONRequestBody GetStickerSetJSONBody
GetStickerSetJSONRequestBody defines body for GetStickerSet for application/json ContentType.
type GetStickerSetResponse ¶
type GetStickerSetResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok GetStickerSet200Ok `json:"ok"`
// Result This object represents a sticker set.
Result StickerSet `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseGetStickerSetResponse ¶
func ParseGetStickerSetResponse(rsp *http.Response) (*GetStickerSetResponse, error)
ParseGetStickerSetResponse parses an HTTP response from a GetStickerSetWithResponse call
func (GetStickerSetResponse) Status ¶
func (r GetStickerSetResponse) Status() string
Status returns HTTPResponse.Status
func (GetStickerSetResponse) StatusCode ¶
func (r GetStickerSetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUpdates200Ok ¶
type GetUpdates200Ok bool
type GetUpdatesJSONBody ¶
type GetUpdatesJSONBody struct {
// AllowedUpdates A JSON-serialized list of the update types you want your bot to receive. For example, specify ["message", "edited_channel_post", "callback_query"] to only receive updates of these types. See Update for a complete list of available update types. Specify an empty list to receive all update types except chat_member, message_reaction, and message_reaction_count (default). If not specified, the previous setting will be used.Please note that this parameter doesn't affect updates created before the call to getUpdates, so unwanted updates may be received for a short period of time.
AllowedUpdates *[]string `json:"allowed_updates,omitempty"`
// Limit Limits the number of updates to be retrieved. Values between 1-100 are accepted. Defaults to 100.
Limit *int `json:"limit,omitempty"`
// Offset Identifier of the first update to be returned. Must be greater by one than the highest among the identifiers of previously received updates. By default, updates starting with the earliest unconfirmed update are returned. An update is considered confirmed as soon as getUpdates is called with an offset higher than its update_id. The negative offset can be specified to retrieve updates starting from -offset update from the end of the updates queue. All previous updates will be forgotten.
Offset *int `json:"offset,omitempty"`
// Timeout Timeout in seconds for long polling. Defaults to 0, i.e. usual short polling. Should be positive, short polling should be used for testing purposes only.
Timeout *int `json:"timeout,omitempty"`
}
GetUpdatesJSONBody defines parameters for GetUpdates.
type GetUpdatesJSONRequestBody ¶
type GetUpdatesJSONRequestBody GetUpdatesJSONBody
GetUpdatesJSONRequestBody defines body for GetUpdates for application/json ContentType.
type GetUpdatesResponse ¶
type GetUpdatesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok GetUpdates200Ok `json:"ok"`
Result []Update `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseGetUpdatesResponse ¶
func ParseGetUpdatesResponse(rsp *http.Response) (*GetUpdatesResponse, error)
ParseGetUpdatesResponse parses an HTTP response from a GetUpdatesWithResponse call
func (GetUpdatesResponse) Status ¶
func (r GetUpdatesResponse) Status() string
Status returns HTTPResponse.Status
func (GetUpdatesResponse) StatusCode ¶
func (r GetUpdatesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUserChatBoosts200Ok ¶
type GetUserChatBoosts200Ok bool
type GetUserChatBoostsJSONBody ¶
type GetUserChatBoostsJSONBody struct {
// ChatId Unique identifier for the chat or username of the channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// UserId Unique identifier of the target user
UserId int `json:"user_id"`
}
GetUserChatBoostsJSONBody defines parameters for GetUserChatBoosts.
type GetUserChatBoostsJSONRequestBody ¶
type GetUserChatBoostsJSONRequestBody GetUserChatBoostsJSONBody
GetUserChatBoostsJSONRequestBody defines body for GetUserChatBoosts for application/json ContentType.
type GetUserChatBoostsResponse ¶
type GetUserChatBoostsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok GetUserChatBoosts200Ok `json:"ok"`
// Result This object represents a list of boosts added to a chat by a user.
Result UserChatBoosts `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseGetUserChatBoostsResponse ¶
func ParseGetUserChatBoostsResponse(rsp *http.Response) (*GetUserChatBoostsResponse, error)
ParseGetUserChatBoostsResponse parses an HTTP response from a GetUserChatBoostsWithResponse call
func (GetUserChatBoostsResponse) Status ¶
func (r GetUserChatBoostsResponse) Status() string
Status returns HTTPResponse.Status
func (GetUserChatBoostsResponse) StatusCode ¶
func (r GetUserChatBoostsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUserGifts200Ok ¶ added in v0.3.0
type GetUserGifts200Ok bool
type GetUserGiftsJSONBody ¶ added in v0.3.0
type GetUserGiftsJSONBody struct {
// ExcludeFromBlockchain Pass True to exclude gifts that were assigned from the TON blockchain and can't be resold or transferred in Telegram
ExcludeFromBlockchain *bool `json:"exclude_from_blockchain,omitempty"`
// ExcludeLimitedNonUpgradable Pass True to exclude gifts that can be purchased a limited number of times and can't be upgraded to unique
ExcludeLimitedNonUpgradable *bool `json:"exclude_limited_non_upgradable,omitempty"`
// ExcludeLimitedUpgradable Pass True to exclude gifts that can be purchased a limited number of times and can be upgraded to unique
ExcludeLimitedUpgradable *bool `json:"exclude_limited_upgradable,omitempty"`
// ExcludeUnique Pass True to exclude unique gifts
ExcludeUnique *bool `json:"exclude_unique,omitempty"`
// ExcludeUnlimited Pass True to exclude gifts that can be purchased an unlimited number of times
ExcludeUnlimited *bool `json:"exclude_unlimited,omitempty"`
// Limit The maximum number of gifts to be returned; 1-100. Defaults to 100
Limit *int `json:"limit,omitempty"`
// Offset Offset of the first entry to return as received from the previous request; use an empty string to get the first chunk of results
Offset *string `json:"offset,omitempty"`
// SortByPrice Pass True to sort results by gift price instead of send date. Sorting is applied before pagination.
SortByPrice *bool `json:"sort_by_price,omitempty"`
// UserId Unique identifier of the user
UserId int `json:"user_id"`
}
GetUserGiftsJSONBody defines parameters for GetUserGifts.
type GetUserGiftsJSONRequestBody ¶ added in v0.3.0
type GetUserGiftsJSONRequestBody GetUserGiftsJSONBody
GetUserGiftsJSONRequestBody defines body for GetUserGifts for application/json ContentType.
type GetUserGiftsResponse ¶ added in v0.3.0
type GetUserGiftsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok GetUserGifts200Ok `json:"ok"`
// Result Contains the list of gifts received and owned by a user or a chat.
Result OwnedGifts `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseGetUserGiftsResponse ¶ added in v0.3.0
func ParseGetUserGiftsResponse(rsp *http.Response) (*GetUserGiftsResponse, error)
ParseGetUserGiftsResponse parses an HTTP response from a GetUserGiftsWithResponse call
func (GetUserGiftsResponse) Status ¶ added in v0.3.0
func (r GetUserGiftsResponse) Status() string
Status returns HTTPResponse.Status
func (GetUserGiftsResponse) StatusCode ¶ added in v0.3.0
func (r GetUserGiftsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUserProfilePhotos200Ok ¶
type GetUserProfilePhotos200Ok bool
type GetUserProfilePhotosJSONBody ¶
type GetUserProfilePhotosJSONBody struct {
// Limit Limits the number of photos to be retrieved. Values between 1-100 are accepted. Defaults to 100.
Limit *int `json:"limit,omitempty"`
// Offset Sequential number of the first photo to be returned. By default, all photos are returned.
Offset *int `json:"offset,omitempty"`
// UserId Unique identifier of the target user
UserId int `json:"user_id"`
}
GetUserProfilePhotosJSONBody defines parameters for GetUserProfilePhotos.
type GetUserProfilePhotosJSONRequestBody ¶
type GetUserProfilePhotosJSONRequestBody GetUserProfilePhotosJSONBody
GetUserProfilePhotosJSONRequestBody defines body for GetUserProfilePhotos for application/json ContentType.
type GetUserProfilePhotosResponse ¶
type GetUserProfilePhotosResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok GetUserProfilePhotos200Ok `json:"ok"`
// Result This object represent a user's profile pictures.
Result UserProfilePhotos `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseGetUserProfilePhotosResponse ¶
func ParseGetUserProfilePhotosResponse(rsp *http.Response) (*GetUserProfilePhotosResponse, error)
ParseGetUserProfilePhotosResponse parses an HTTP response from a GetUserProfilePhotosWithResponse call
func (GetUserProfilePhotosResponse) Status ¶
func (r GetUserProfilePhotosResponse) Status() string
Status returns HTTPResponse.Status
func (GetUserProfilePhotosResponse) StatusCode ¶
func (r GetUserProfilePhotosResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetWebhookInfo200Ok ¶
type GetWebhookInfo200Ok bool
type GetWebhookInfoResponse ¶
type GetWebhookInfoResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok GetWebhookInfo200Ok `json:"ok"`
// Result Describes the current status of a webhook.
Result WebhookInfo `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseGetWebhookInfoResponse ¶
func ParseGetWebhookInfoResponse(rsp *http.Response) (*GetWebhookInfoResponse, error)
ParseGetWebhookInfoResponse parses an HTTP response from a GetWebhookInfoWithResponse call
func (GetWebhookInfoResponse) Status ¶
func (r GetWebhookInfoResponse) Status() string
Status returns HTTPResponse.Status
func (GetWebhookInfoResponse) StatusCode ¶
func (r GetWebhookInfoResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Gift ¶
type Gift struct {
// Background Optional. Background of the gift
Background *GiftBackground `json:"background,omitempty"`
// HasColors Optional. True, if the gift can be used (after being upgraded) to customize a user's appearance
HasColors *bool `json:"has_colors,omitempty"`
// Id Unique identifier of the gift
Id string `json:"id"`
// IsPremium Optional. True, if the gift can only be purchased by Telegram Premium subscribers
IsPremium *bool `json:"is_premium,omitempty"`
// PersonalRemainingCount Optional. The number of remaining gifts of this type that can be sent by the bot; for limited gifts only
PersonalRemainingCount *int `json:"personal_remaining_count,omitempty"`
// PersonalTotalCount Optional. The total number of gifts of this type that can be sent by the bot; for limited gifts only
PersonalTotalCount *int `json:"personal_total_count,omitempty"`
// PublisherChat Optional. Information about the chat that published the gift
PublisherChat *Chat `json:"publisher_chat,omitempty"`
// RemainingCount Optional. The number of remaining gifts of this type that can be sent by all users; for limited gifts only
RemainingCount *int `json:"remaining_count,omitempty"`
// StarCount The number of Telegram Stars that must be paid to send the sticker
StarCount int `json:"star_count"`
// Sticker The sticker that represents the gift
Sticker Sticker `json:"sticker"`
// TotalCount Optional. The total number of gifts of this type that can be sent by all users; for limited gifts only
TotalCount *int `json:"total_count,omitempty"`
// UniqueGiftVariantCount Optional. The total number of different unique gifts that can be obtained by upgrading the gift
UniqueGiftVariantCount *int `json:"unique_gift_variant_count,omitempty"`
// UpgradeStarCount Optional. The number of Telegram Stars that must be paid to upgrade the gift to a unique one
UpgradeStarCount *int `json:"upgrade_star_count,omitempty"`
}
Gift This object represents a gift that can be sent by the bot.
type GiftBackground ¶ added in v0.3.0
type GiftBackground struct {
// CenterColor Center color of the background in RGB format
CenterColor int `json:"center_color"`
// EdgeColor Edge color of the background in RGB format
EdgeColor int `json:"edge_color"`
// TextColor Text color of the background in RGB format
TextColor int `json:"text_color"`
}
GiftBackground This object describes the background of a gift.
type GiftInfo ¶
type GiftInfo struct {
// CanBeUpgraded Optional. True, if the gift can be upgraded to a unique gift
CanBeUpgraded *bool `json:"can_be_upgraded,omitempty"`
// ConvertStarCount Optional. Number of Telegram Stars that can be claimed by the receiver by converting the gift; omitted if conversion to Telegram Stars is impossible
ConvertStarCount *int `json:"convert_star_count,omitempty"`
// Entities Optional. Special entities that appear in the text
Entities *[]MessageEntity `json:"entities,omitempty"`
// Gift Information about the gift
Gift Gift `json:"gift"`
// IsPrivate Optional. True, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them
IsPrivate *bool `json:"is_private,omitempty"`
// IsUpgradeSeparate Optional. True, if the gift's upgrade was purchased after the gift was sent
IsUpgradeSeparate *bool `json:"is_upgrade_separate,omitempty"`
// OwnedGiftId Optional. Unique identifier of the received gift for the bot; only present for gifts received on behalf of business accounts
OwnedGiftId *string `json:"owned_gift_id,omitempty"`
// PrepaidUpgradeStarCount Optional. Number of Telegram Stars that were prepaid for the ability to upgrade the gift
PrepaidUpgradeStarCount *int `json:"prepaid_upgrade_star_count,omitempty"`
// Text Optional. Text of the message that was added to the gift
Text *string `json:"text,omitempty"`
// UniqueGiftNumber Optional. Unique number reserved for this gift when upgraded. See the number field in UniqueGift
UniqueGiftNumber *int `json:"unique_gift_number,omitempty"`
}
GiftInfo Describes a service message about a regular gift that was sent or received.
type GiftPremiumSubscription200Ok ¶
type GiftPremiumSubscription200Ok bool
type GiftPremiumSubscriptionJSONBody ¶
type GiftPremiumSubscriptionJSONBody struct {
// MonthCount Number of months the Telegram Premium subscription will be active for the user; must be one of 3, 6, or 12
MonthCount int `json:"month_count"`
// StarCount Number of Telegram Stars to pay for the Telegram Premium subscription; must be 1000 for 3 months, 1500 for 6 months, and 2500 for 12 months
StarCount int `json:"star_count"`
// Text Text that will be shown along with the service message about the subscription; 0-128 characters
Text *string `json:"text,omitempty"`
// TextEntities A JSON-serialized list of special entities that appear in the gift text. It can be specified instead of text_parse_mode. Entities other than “bold”, “italic”, “underline”, “strikethrough”, “spoiler”, and “custom_emoji” are ignored.
TextEntities *[]MessageEntity `json:"text_entities,omitempty"`
// TextParseMode Mode for parsing entities in the text. See formatting options for more details. Entities other than “bold”, “italic”, “underline”, “strikethrough”, “spoiler”, and “custom_emoji” are ignored.
TextParseMode *string `json:"text_parse_mode,omitempty"`
// UserId Unique identifier of the target user who will receive a Telegram Premium subscription
UserId int `json:"user_id"`
}
GiftPremiumSubscriptionJSONBody defines parameters for GiftPremiumSubscription.
type GiftPremiumSubscriptionJSONRequestBody ¶
type GiftPremiumSubscriptionJSONRequestBody GiftPremiumSubscriptionJSONBody
GiftPremiumSubscriptionJSONRequestBody defines body for GiftPremiumSubscription for application/json ContentType.
type GiftPremiumSubscriptionResponse ¶
type GiftPremiumSubscriptionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok GiftPremiumSubscription200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseGiftPremiumSubscriptionResponse ¶
func ParseGiftPremiumSubscriptionResponse(rsp *http.Response) (*GiftPremiumSubscriptionResponse, error)
ParseGiftPremiumSubscriptionResponse parses an HTTP response from a GiftPremiumSubscriptionWithResponse call
func (GiftPremiumSubscriptionResponse) Status ¶
func (r GiftPremiumSubscriptionResponse) Status() string
Status returns HTTPResponse.Status
func (GiftPremiumSubscriptionResponse) StatusCode ¶
func (r GiftPremiumSubscriptionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Gifts ¶
type Gifts struct {
// Gifts The list of gifts
Gifts []Gift `json:"gifts"`
}
Gifts This object represent a list of gifts.
type Giveaway ¶
type Giveaway struct {
// Chats The list of chats which the user must join to participate in the giveaway
Chats []Chat `json:"chats"`
// CountryCodes Optional. A list of two-letter ISO 3166-1 alpha-2 country codes indicating the countries from which eligible users for the giveaway must come. If empty, then all users can participate in the giveaway. Users with a phone number that was bought on Fragment can always participate in giveaways.
CountryCodes *[]string `json:"country_codes,omitempty"`
// HasPublicWinners Optional. True, if the list of giveaway winners will be visible to everyone
HasPublicWinners *bool `json:"has_public_winners,omitempty"`
// OnlyNewMembers Optional. True, if only users who join the chats after the giveaway started should be eligible to win
OnlyNewMembers *bool `json:"only_new_members,omitempty"`
// PremiumSubscriptionMonthCount Optional. The number of months the Telegram Premium subscription won from the giveaway will be active for; for Telegram Premium giveaways only
PremiumSubscriptionMonthCount *int `json:"premium_subscription_month_count,omitempty"`
// PrizeDescription Optional. Description of additional giveaway prize
PrizeDescription *string `json:"prize_description,omitempty"`
// PrizeStarCount Optional. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only
PrizeStarCount *int `json:"prize_star_count,omitempty"`
// WinnerCount The number of users which are supposed to be selected as winners of the giveaway
WinnerCount int `json:"winner_count"`
// WinnersSelectionDate Point in time (Unix timestamp) when winners of the giveaway will be selected
WinnersSelectionDate int `json:"winners_selection_date"`
}
Giveaway This object represents a message about a scheduled giveaway.
type GiveawayCompleted ¶
type GiveawayCompleted struct {
// GiveawayMessage Optional. Message with the giveaway that was completed, if it wasn't deleted
GiveawayMessage *Message `json:"giveaway_message,omitempty"`
// IsStarGiveaway Optional. True, if the giveaway is a Telegram Star giveaway. Otherwise, currently, the giveaway is a Telegram Premium giveaway.
IsStarGiveaway *bool `json:"is_star_giveaway,omitempty"`
// UnclaimedPrizeCount Optional. Number of undistributed prizes
UnclaimedPrizeCount *int `json:"unclaimed_prize_count,omitempty"`
// WinnerCount Number of winners in the giveaway
WinnerCount int `json:"winner_count"`
}
GiveawayCompleted This object represents a service message about the completion of a giveaway without public winners.
type GiveawayCreated ¶
type GiveawayCreated struct {
// PrizeStarCount Optional. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only
PrizeStarCount *int `json:"prize_star_count,omitempty"`
}
GiveawayCreated This object represents a service message about the creation of a scheduled giveaway.
type GiveawayWinners ¶
type GiveawayWinners struct {
// AdditionalChatCount Optional. The number of other chats the user had to join in order to be eligible for the giveaway
AdditionalChatCount *int `json:"additional_chat_count,omitempty"`
// Chat The chat that created the giveaway
Chat Chat `json:"chat"`
// GiveawayMessageId Identifier of the message with the giveaway in the chat
GiveawayMessageId int `json:"giveaway_message_id"`
// OnlyNewMembers Optional. True, if only users who had joined the chats after the giveaway started were eligible to win
OnlyNewMembers *bool `json:"only_new_members,omitempty"`
// PremiumSubscriptionMonthCount Optional. The number of months the Telegram Premium subscription won from the giveaway will be active for; for Telegram Premium giveaways only
PremiumSubscriptionMonthCount *int `json:"premium_subscription_month_count,omitempty"`
// PrizeDescription Optional. Description of additional giveaway prize
PrizeDescription *string `json:"prize_description,omitempty"`
// PrizeStarCount Optional. The number of Telegram Stars that were split between giveaway winners; for Telegram Star giveaways only
PrizeStarCount *int `json:"prize_star_count,omitempty"`
// UnclaimedPrizeCount Optional. Number of undistributed prizes
UnclaimedPrizeCount *int `json:"unclaimed_prize_count,omitempty"`
// WasRefunded Optional. True, if the giveaway was canceled because the payment for it was refunded
WasRefunded *bool `json:"was_refunded,omitempty"`
// WinnerCount Total number of winners in the giveaway
WinnerCount int `json:"winner_count"`
// Winners List of up to 100 winners of the giveaway
Winners []User `json:"winners"`
// WinnersSelectionDate Point in time (Unix timestamp) when winners of the giveaway were selected
WinnersSelectionDate int `json:"winners_selection_date"`
}
GiveawayWinners This object represents a message about the completion of a giveaway with public winners.
type HideGeneralForumTopic200Ok ¶
type HideGeneralForumTopic200Ok bool
type HideGeneralForumTopicJSONBody ¶
type HideGeneralForumTopicJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
ChatId int64 `json:"chat_id"`
}
HideGeneralForumTopicJSONBody defines parameters for HideGeneralForumTopic.
type HideGeneralForumTopicJSONRequestBody ¶
type HideGeneralForumTopicJSONRequestBody HideGeneralForumTopicJSONBody
HideGeneralForumTopicJSONRequestBody defines body for HideGeneralForumTopic for application/json ContentType.
type HideGeneralForumTopicResponse ¶
type HideGeneralForumTopicResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok HideGeneralForumTopic200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseHideGeneralForumTopicResponse ¶
func ParseHideGeneralForumTopicResponse(rsp *http.Response) (*HideGeneralForumTopicResponse, error)
ParseHideGeneralForumTopicResponse parses an HTTP response from a HideGeneralForumTopicWithResponse call
func (HideGeneralForumTopicResponse) Status ¶
func (r HideGeneralForumTopicResponse) Status() string
Status returns HTTPResponse.Status
func (HideGeneralForumTopicResponse) StatusCode ¶
func (r HideGeneralForumTopicResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type InlineKeyboardButton ¶
type InlineKeyboardButton struct {
// CallbackData Optional. Data to be sent in a callback query to the bot when the button is pressed, 1-64 bytes
CallbackData *string `json:"callback_data,omitempty"`
// CallbackGame Optional. Description of the game that will be launched when the user presses the button.NOTE: This type of button must always be the first button in the first row.
CallbackGame *CallbackGame `json:"callback_game,omitempty"`
// CopyText Optional. Description of the button that copies the specified text to the clipboard.
CopyText *CopyTextButton `json:"copy_text,omitempty"`
// LoginUrl Optional. An HTTPS URL used to automatically authorize the user. Can be used as a replacement for the Telegram Login Widget.
LoginUrl *LoginUrl `json:"login_url,omitempty"`
// Pay Optional. Specify True, to send a Pay button. Substrings “” and “XTR” in the buttons's text will be replaced with a Telegram Star icon.NOTE: This type of button must always be the first button in the first row and can only be used in invoice messages.
Pay *bool `json:"pay,omitempty"`
// SwitchInlineQuery Optional. If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. May be empty, in which case just the bot's username will be inserted. Not supported for messages sent in channel direct messages chats and on behalf of a Telegram Business account.
SwitchInlineQuery *string `json:"switch_inline_query,omitempty"`
// SwitchInlineQueryChosenChat Optional. If set, pressing the button will prompt the user to select one of their chats of the specified type, open that chat and insert the bot's username and the specified inline query in the input field. Not supported for messages sent in channel direct messages chats and on behalf of a Telegram Business account.
SwitchInlineQueryChosenChat *SwitchInlineQueryChosenChat `json:"switch_inline_query_chosen_chat,omitempty"`
// SwitchInlineQueryCurrentChat Optional. If set, pressing the button will insert the bot's username and the specified inline query in the current chat's input field. May be empty, in which case only the bot's username will be inserted.This offers a quick way for the user to open your bot in inline mode in the same chat - good for selecting something from multiple options. Not supported in channels and for messages sent in channel direct messages chats and on behalf of a Telegram Business account.
SwitchInlineQueryCurrentChat *string `json:"switch_inline_query_current_chat,omitempty"`
// Text Label text on the button
Text string `json:"text"`
// Url Optional. HTTP or tg:// URL to be opened when the button is pressed. Links tg://user?id=<user_id> can be used to mention a user by their identifier without using a username, if this is allowed by their privacy settings.
Url *string `json:"url,omitempty"`
// WebApp Optional. Description of the Web App that will be launched when the user presses the button. The Web App will be able to send an arbitrary message on behalf of the user using the method answerWebAppQuery. Available only in private chats between a user and the bot. Not supported for messages sent on behalf of a Telegram Business account.
WebApp *WebAppInfo `json:"web_app,omitempty"`
}
InlineKeyboardButton This object represents one button of an inline keyboard. Exactly one of the optional fields must be used to specify type of the button.
type InlineKeyboardMarkup ¶
type InlineKeyboardMarkup struct {
// InlineKeyboard Array of button rows, each represented by an Array of InlineKeyboardButton objects
InlineKeyboard [][]InlineKeyboardButton `json:"inline_keyboard"`
}
InlineKeyboardMarkup This object represents an inline keyboard that appears right next to the message it belongs to.
type InlineQuery ¶
type InlineQuery struct {
// ChatType Optional. Type of the chat from which the inline query was sent. Can be either “sender” for a private chat with the inline query sender, “private”, “group”, “supergroup”, or “channel”. The chat type should be always known for requests sent from official clients and most third-party clients, unless the request was sent from a secret chat
ChatType *string `json:"chat_type,omitempty"`
// From Sender
From User `json:"from"`
// Id Unique identifier for this query
Id string `json:"id"`
// Location Optional. Sender location, only for bots that request user location
Location *Location `json:"location,omitempty"`
// Offset Offset of the results to be returned, can be controlled by the bot
Offset string `json:"offset"`
// Query Text of the query (up to 256 characters)
Query string `json:"query"`
}
InlineQuery This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results.
type InlineQueryResult ¶ added in v0.2.0
type InlineQueryResult = map[string]interface{}
InlineQueryResult This object represents one result of an inline query. Telegram clients currently support results of the following 20 types: InlineQueryResultCachedAudio InlineQueryResultCachedDocument InlineQueryResultCachedGif InlineQueryResultCachedMpeg4Gif InlineQueryResultCachedPhoto InlineQueryResultCachedSticker InlineQueryResultCachedVideo InlineQueryResultCachedVoice InlineQueryResultArticle InlineQueryResultAudio InlineQueryResultContact InlineQueryResultGame InlineQueryResultDocument InlineQueryResultGif InlineQueryResultLocation InlineQueryResultMpeg4Gif InlineQueryResultPhoto InlineQueryResultVenue InlineQueryResultVideo InlineQueryResultVoice Note: All URLs passed in inline query results will be available to end users and therefore must be assumed to be public.
type InlineQueryResultsButton ¶ added in v0.2.0
type InlineQueryResultsButton struct {
// StartParameter Optional. Deep-linking parameter for the /start message sent to the bot when a user presses the button. 1-64 characters, only A-Z, a-z, 0-9, _ and - are allowed.Example: An inline bot that sends YouTube videos can ask the user to connect the bot to their YouTube account to adapt search results accordingly. To do this, it displays a 'Connect your YouTube account' button above the results, or even before showing any. The user presses the button, switches to a private chat with the bot and, in doing so, passes a start parameter that instructs the bot to return an OAuth link. Once done, the bot can offer a switch_inline button so that the user can easily return to the chat where they wanted to use the bot's inline capabilities.
StartParameter *string `json:"start_parameter,omitempty"`
// Text Label text on the button
Text string `json:"text"`
// WebApp Optional. Description of the Web App that will be launched when the user presses the button. The Web App will be able to switch back to the inline mode using the method switchInlineQuery inside the Web App.
WebApp *WebAppInfo `json:"web_app,omitempty"`
}
InlineQueryResultsButton This object represents a button to be shown above inline query results. You must use exactly one of the optional fields.
type InputChecklist ¶ added in v0.2.0
type InputChecklist struct {
// OthersCanAddTasks Optional. Pass True if other users can add tasks to the checklist
OthersCanAddTasks *bool `json:"others_can_add_tasks,omitempty"`
// OthersCanMarkTasksAsDone Optional. Pass True if other users can mark tasks as done or not done in the checklist
OthersCanMarkTasksAsDone *bool `json:"others_can_mark_tasks_as_done,omitempty"`
// ParseMode Optional. Mode for parsing entities in the title. See formatting options for more details.
ParseMode *string `json:"parse_mode,omitempty"`
// Tasks List of 1-30 tasks in the checklist
Tasks []InputChecklistTask `json:"tasks"`
// Title Title of the checklist; 1-255 characters after entities parsing
Title string `json:"title"`
// TitleEntities Optional. List of special entities that appear in the title, which can be specified instead of parse_mode. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are allowed.
TitleEntities *[]MessageEntity `json:"title_entities,omitempty"`
}
InputChecklist Describes a checklist to create.
type InputChecklistTask ¶ added in v0.2.0
type InputChecklistTask struct {
// Id Unique identifier of the task; must be positive and unique among all task identifiers currently present in the checklist
Id int `json:"id"`
// ParseMode Optional. Mode for parsing entities in the text. See formatting options for more details.
ParseMode *string `json:"parse_mode,omitempty"`
// Text Text of the task; 1-100 characters after entities parsing
Text string `json:"text"`
// TextEntities Optional. List of special entities that appear in the text, which can be specified instead of parse_mode. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are allowed.
TextEntities *[]MessageEntity `json:"text_entities,omitempty"`
}
InputChecklistTask Describes a task to add to a checklist.
type InputMedia ¶ added in v0.2.0
type InputMedia = map[string]interface{}
InputMedia This object represents the content of a media message to be sent. It should be one of InputMediaAnimation InputMediaDocument InputMediaAudio InputMediaPhoto InputMediaVideo
type InputPaidMedia ¶ added in v0.2.0
type InputPaidMedia = map[string]interface{}
InputPaidMedia This object describes the paid media to be sent. Currently, it can be one of InputPaidMediaPhoto InputPaidMediaVideo
type InputPollOption ¶ added in v0.2.0
type InputPollOption struct {
// Text Option text, 1-100 characters
Text string `json:"text"`
// TextEntities Optional. A JSON-serialized list of special entities that appear in the poll option text. It can be specified instead of text_parse_mode
TextEntities *[]MessageEntity `json:"text_entities,omitempty"`
// TextParseMode Optional. Mode for parsing entities in the text. See formatting options for more details. Currently, only custom emoji entities are allowed
TextParseMode *string `json:"text_parse_mode,omitempty"`
}
InputPollOption This object contains information about one answer option in a poll to be sent.
type InputProfilePhoto ¶ added in v0.2.0
type InputProfilePhoto = map[string]interface{}
InputProfilePhoto This object describes a profile photo to set. Currently, it can be one of InputProfilePhotoStatic InputProfilePhotoAnimated
type InputSticker ¶ added in v0.2.0
type InputSticker struct {
// EmojiList List of 1-20 emoji associated with the sticker
EmojiList []string `json:"emoji_list"`
// Format Format of the added sticker, must be one of “static” for a .WEBP or .PNG image, “animated” for a .TGS animation, “video” for a .WEBM video
Format string `json:"format"`
// Keywords Optional. List of 0-20 search keywords for the sticker with total length of up to 64 characters. For “regular” and “custom_emoji” stickers only.
Keywords *[]string `json:"keywords,omitempty"`
// MaskPosition Optional. Position where the mask should be placed on faces. For “mask” stickers only.
MaskPosition *MaskPosition `json:"mask_position,omitempty"`
// Sticker The added sticker. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new file using multipart/form-data under <file_attach_name> name. Animated and video stickers can't be uploaded via HTTP URL. More information on Sending Files »
Sticker string `json:"sticker"`
}
InputSticker This object describes a sticker to be added to a sticker set.
type InputStoryContent ¶ added in v0.2.0
type InputStoryContent = map[string]interface{}
InputStoryContent This object describes the content of a story to post. Currently, it can be one of InputStoryContentPhoto InputStoryContentVideo
type Invoice ¶
type Invoice struct {
// Currency Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars
Currency string `json:"currency"`
// Description Product description
Description string `json:"description"`
// StartParameter Unique bot deep-linking parameter that can be used to generate this invoice
StartParameter string `json:"start_parameter"`
// Title Product name
Title string `json:"title"`
// TotalAmount Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
TotalAmount int `json:"total_amount"`
}
Invoice This object contains basic information about an invoice.
type KeyboardButton ¶ added in v0.2.0
type KeyboardButton struct {
// RequestChat Optional. If specified, pressing the button will open a list of suitable chats. Tapping on a chat will send its identifier to the bot in a “chat_shared” service message. Available in private chats only.
RequestChat *KeyboardButtonRequestChat `json:"request_chat,omitempty"`
// RequestContact Optional. If True, the user's phone number will be sent as a contact when the button is pressed. Available in private chats only.
RequestContact *bool `json:"request_contact,omitempty"`
// RequestLocation Optional. If True, the user's current location will be sent when the button is pressed. Available in private chats only.
RequestLocation *bool `json:"request_location,omitempty"`
// RequestPoll Optional. If specified, the user will be asked to create a poll and send it to the bot when the button is pressed. Available in private chats only.
RequestPoll *KeyboardButtonPollType `json:"request_poll,omitempty"`
// RequestUsers Optional. If specified, pressing the button will open a list of suitable users. Identifiers of selected users will be sent to the bot in a “users_shared” service message. Available in private chats only.
RequestUsers *KeyboardButtonRequestUsers `json:"request_users,omitempty"`
// Text Text of the button. If none of the optional fields are used, it will be sent as a message when the button is pressed
Text string `json:"text"`
// WebApp Optional. If specified, the described Web App will be launched when the button is pressed. The Web App will be able to send a “web_app_data” service message. Available in private chats only.
WebApp *WebAppInfo `json:"web_app,omitempty"`
}
KeyboardButton This object represents one button of the reply keyboard. At most one of the optional fields must be used to specify type of the button. For simple text buttons, String can be used instead of this object to specify the button text.
type KeyboardButtonPollType ¶ added in v0.2.0
type KeyboardButtonPollType struct {
// Type Optional. If quiz is passed, the user will be allowed to create only polls in the quiz mode. If regular is passed, only regular polls will be allowed. Otherwise, the user will be allowed to create a poll of any type.
Type *string `json:"type,omitempty"`
}
KeyboardButtonPollType This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed.
type KeyboardButtonRequestChat ¶ added in v0.2.0
type KeyboardButtonRequestChat struct {
// BotAdministratorRights Optional. A JSON-serialized object listing the required administrator rights of the bot in the chat. The rights must be a subset of user_administrator_rights. If not specified, no additional restrictions are applied.
BotAdministratorRights *ChatAdministratorRights `json:"bot_administrator_rights,omitempty"`
// BotIsMember Optional. Pass True to request a chat with the bot as a member. Otherwise, no additional restrictions are applied.
BotIsMember *bool `json:"bot_is_member,omitempty"`
// ChatHasUsername Optional. Pass True to request a supergroup or a channel with a username, pass False to request a chat without a username. If not specified, no additional restrictions are applied.
ChatHasUsername *bool `json:"chat_has_username,omitempty"`
// ChatIsChannel Pass True to request a channel chat, pass False to request a group or a supergroup chat.
ChatIsChannel bool `json:"chat_is_channel"`
// ChatIsCreated Optional. Pass True to request a chat owned by the user. Otherwise, no additional restrictions are applied.
ChatIsCreated *bool `json:"chat_is_created,omitempty"`
// ChatIsForum Optional. Pass True to request a forum supergroup, pass False to request a non-forum chat. If not specified, no additional restrictions are applied.
ChatIsForum *bool `json:"chat_is_forum,omitempty"`
// RequestId Signed 32-bit identifier of the request, which will be received back in the ChatShared object. Must be unique within the message
RequestId int `json:"request_id"`
// RequestPhoto Optional. Pass True to request the chat's photo
RequestPhoto *bool `json:"request_photo,omitempty"`
// RequestTitle Optional. Pass True to request the chat's title
RequestTitle *bool `json:"request_title,omitempty"`
// RequestUsername Optional. Pass True to request the chat's username
RequestUsername *bool `json:"request_username,omitempty"`
// UserAdministratorRights Optional. A JSON-serialized object listing the required administrator rights of the user in the chat. The rights must be a superset of bot_administrator_rights. If not specified, no additional restrictions are applied.
UserAdministratorRights *ChatAdministratorRights `json:"user_administrator_rights,omitempty"`
}
KeyboardButtonRequestChat This object defines the criteria used to request a suitable chat. Information about the selected chat will be shared with the bot when the corresponding button is pressed. The bot will be granted requested rights in the chat if appropriate. More about requesting chats ».
type KeyboardButtonRequestUsers ¶ added in v0.2.0
type KeyboardButtonRequestUsers struct {
// MaxQuantity Optional. The maximum number of users to be selected; 1-10. Defaults to 1.
MaxQuantity *int `json:"max_quantity,omitempty"`
// RequestId Signed 32-bit identifier of the request that will be received back in the UsersShared object. Must be unique within the message
RequestId int `json:"request_id"`
// RequestName Optional. Pass True to request the users' first and last names
RequestName *bool `json:"request_name,omitempty"`
// RequestPhoto Optional. Pass True to request the users' photos
RequestPhoto *bool `json:"request_photo,omitempty"`
// RequestUsername Optional. Pass True to request the users' usernames
RequestUsername *bool `json:"request_username,omitempty"`
// UserIsBot Optional. Pass True to request bots, pass False to request regular users. If not specified, no additional restrictions are applied.
UserIsBot *bool `json:"user_is_bot,omitempty"`
// UserIsPremium Optional. Pass True to request premium users, pass False to request non-premium users. If not specified, no additional restrictions are applied.
UserIsPremium *bool `json:"user_is_premium,omitempty"`
}
KeyboardButtonRequestUsers This object defines the criteria used to request suitable users. Information about the selected users will be shared with the bot when the corresponding button is pressed. More about requesting users »
type LabeledPrice ¶ added in v0.2.0
type LabeledPrice struct {
// Amount Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
Amount int `json:"amount"`
// Label Portion label
Label string `json:"label"`
}
LabeledPrice This object represents a portion of the price for goods or services.
type LeaveChat200Ok ¶
type LeaveChat200Ok bool
type LeaveChatJSONBody ¶
type LeaveChatJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername). Channel direct messages chats aren't supported; leave the corresponding channel instead.
ChatId int64 `json:"chat_id"`
}
LeaveChatJSONBody defines parameters for LeaveChat.
type LeaveChatJSONRequestBody ¶
type LeaveChatJSONRequestBody LeaveChatJSONBody
LeaveChatJSONRequestBody defines body for LeaveChat for application/json ContentType.
type LeaveChatResponse ¶
type LeaveChatResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok LeaveChat200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseLeaveChatResponse ¶
func ParseLeaveChatResponse(rsp *http.Response) (*LeaveChatResponse, error)
ParseLeaveChatResponse parses an HTTP response from a LeaveChatWithResponse call
func (LeaveChatResponse) Status ¶
func (r LeaveChatResponse) Status() string
Status returns HTTPResponse.Status
func (LeaveChatResponse) StatusCode ¶
func (r LeaveChatResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LinkPreviewOptions ¶
type LinkPreviewOptions struct {
// IsDisabled Optional. True, if the link preview is disabled
IsDisabled *bool `json:"is_disabled,omitempty"`
// PreferLargeMedia Optional. True, if the media in the link preview is supposed to be enlarged; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview
PreferLargeMedia *bool `json:"prefer_large_media,omitempty"`
// PreferSmallMedia Optional. True, if the media in the link preview is supposed to be shrunk; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview
PreferSmallMedia *bool `json:"prefer_small_media,omitempty"`
// ShowAboveText Optional. True, if the link preview must be shown above the message text; otherwise, the link preview will be shown below the message text
ShowAboveText *bool `json:"show_above_text,omitempty"`
// Url Optional. URL to use for the link preview. If empty, then the first URL found in the message text will be used
Url *string `json:"url,omitempty"`
}
LinkPreviewOptions Describes the options used for link preview generation.
type Location ¶
type Location struct {
// Heading Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only.
Heading *int `json:"heading,omitempty"`
// HorizontalAccuracy Optional. The radius of uncertainty for the location, measured in meters; 0-1500
HorizontalAccuracy *float32 `json:"horizontal_accuracy,omitempty"`
// Latitude Latitude as defined by the sender
Latitude float32 `json:"latitude"`
// LivePeriod Optional. Time relative to the message sending date, during which the location can be updated; in seconds. For active live locations only.
LivePeriod *int `json:"live_period,omitempty"`
// Longitude Longitude as defined by the sender
Longitude float32 `json:"longitude"`
// ProximityAlertRadius Optional. The maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only.
ProximityAlertRadius *int `json:"proximity_alert_radius,omitempty"`
}
Location This object represents a point on the map.
type LogOut200Ok ¶
type LogOut200Ok bool
type LogOutResponse ¶
type LogOutResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok LogOut200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseLogOutResponse ¶
func ParseLogOutResponse(rsp *http.Response) (*LogOutResponse, error)
ParseLogOutResponse parses an HTTP response from a LogOutWithResponse call
func (LogOutResponse) Status ¶
func (r LogOutResponse) Status() string
Status returns HTTPResponse.Status
func (LogOutResponse) StatusCode ¶
func (r LogOutResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LoginUrl ¶
type LoginUrl struct {
// BotUsername Optional. Username of a bot, which will be used for user authorization. See Setting up a bot for more details. If not specified, the current bot's username will be assumed. The url's domain must be the same as the domain linked with the bot. See Linking your domain to the bot for more details.
BotUsername *string `json:"bot_username,omitempty"`
// ForwardText Optional. New text of the button in forwarded messages.
ForwardText *string `json:"forward_text,omitempty"`
// RequestWriteAccess Optional. Pass True to request the permission for your bot to send messages to the user.
RequestWriteAccess *bool `json:"request_write_access,omitempty"`
// Url An HTTPS URL to be opened with user authorization data added to the query string when the button is pressed. If the user refuses to provide authorization data, the original URL without information about the user will be opened. The data added is the same as described in Receiving authorization data.NOTE: You must always check the hash of the received data to verify the authentication and the integrity of the data as described in Checking authorization.
Url string `json:"url"`
}
LoginUrl This object represents a parameter of the inline keyboard button used to automatically authorize a user. Serves as a great replacement for the Telegram Login Widget when the user is coming from Telegram. All the user needs to do is tap/click a button and confirm that they want to log in: Telegram apps support these buttons as of version 5.7.
type MaskPosition ¶
type MaskPosition struct {
// Point The part of the face relative to which the mask should be placed. One of “forehead”, “eyes”, “mouth”, or “chin”.
Point string `json:"point"`
// Scale Mask scaling coefficient. For example, 2.0 means double size.
Scale float32 `json:"scale"`
// XShift Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. For example, choosing -1.0 will place mask just to the left of the default mask position.
XShift float32 `json:"x_shift"`
// YShift Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. For example, 1.0 will place the mask just below the default mask position.
YShift float32 `json:"y_shift"`
}
MaskPosition This object describes the position on faces where a mask should be placed by default.
type MaybeInaccessibleMessage ¶
type MaybeInaccessibleMessage = map[string]interface{}
MaybeInaccessibleMessage This object describes a message that can be inaccessible to the bot. It can be one of Message InaccessibleMessage
type MenuButton ¶
type MenuButton = map[string]interface{}
MenuButton This object describes the bot's menu button in a private chat. It should be one of MenuButtonCommands MenuButtonWebApp MenuButtonDefault If a menu button other than MenuButtonDefault is set for a private chat, then it is applied in the chat. Otherwise the default menu button is applied. By default, the menu button opens the list of bot commands.
type Message ¶
type Message struct {
// Animation Optional. Message is an animation, information about the animation. For backward compatibility, when this field is set, the document field will also be set
Animation *Animation `json:"animation,omitempty"`
// Audio Optional. Message is an audio file, information about the file
Audio *Audio `json:"audio,omitempty"`
// AuthorSignature Optional. Signature of the post author for messages in channels, or the custom title of an anonymous group administrator
AuthorSignature *string `json:"author_signature,omitempty"`
// BoostAdded Optional. Service message: user boosted the chat
BoostAdded *ChatBoostAdded `json:"boost_added,omitempty"`
// BusinessConnectionId Optional. Unique identifier of the business connection from which the message was received. If non-empty, the message belongs to a chat of the corresponding business account that is independent from any potential bot chat which might share the same identifier.
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// Caption Optional. Caption for the animation, audio, document, paid media, photo, video or voice
Caption *string `json:"caption,omitempty"`
// CaptionEntities Optional. For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption
CaptionEntities *[]MessageEntity `json:"caption_entities,omitempty"`
// ChannelChatCreated Optional. Service message: the channel has been created. This field can't be received in a message coming through updates, because bot can't be a member of a channel when it is created. It can only be found in reply_to_message if someone replies to a very first message in a channel.
ChannelChatCreated *bool `json:"channel_chat_created,omitempty"`
// Chat Chat the message belongs to
Chat Chat `json:"chat"`
// ChatBackgroundSet Optional. Service message: chat background set
ChatBackgroundSet *ChatBackground `json:"chat_background_set,omitempty"`
ChatShared *ChatShared `json:"chat_shared,omitempty"`
// Checklist Optional. Message is a checklist
Checklist *Checklist `json:"checklist,omitempty"`
// ChecklistTasksAdded Optional. Service message: tasks were added to a checklist
ChecklistTasksAdded *ChecklistTasksAdded `json:"checklist_tasks_added,omitempty"`
// ChecklistTasksDone Optional. Service message: some tasks in a checklist were marked as done or not done
ChecklistTasksDone *ChecklistTasksDone `json:"checklist_tasks_done,omitempty"`
// ConnectedWebsite Optional. The domain name of the website on which the user has logged in. More about Telegram Login »
ConnectedWebsite *string `json:"connected_website,omitempty"`
// Contact Optional. Message is a shared contact, information about the contact
Contact *Contact `json:"contact,omitempty"`
// Date Date the message was sent in Unix time. It is always a positive number, representing a valid date.
Date int `json:"date"`
// DeleteChatPhoto Optional. Service message: the chat photo was deleted
DeleteChatPhoto *bool `json:"delete_chat_photo,omitempty"`
// Dice Optional. Message is a dice with random value
Dice *Dice `json:"dice,omitempty"`
// DirectMessagePriceChanged Optional. Service message: the price for paid messages in the corresponding direct messages chat of a channel has changed
DirectMessagePriceChanged *DirectMessagePriceChanged `json:"direct_message_price_changed,omitempty"`
// DirectMessagesTopic Optional. Information about the direct messages chat topic that contains the message
DirectMessagesTopic *DirectMessagesTopic `json:"direct_messages_topic,omitempty"`
// Document Optional. Message is a general file, information about the file
Document *Document `json:"document,omitempty"`
// EditDate Optional. Date the message was last edited in Unix time
EditDate *int `json:"edit_date,omitempty"`
// EffectId Optional. Unique identifier of the message effect added to the message
EffectId *string `json:"effect_id,omitempty"`
// Entities Optional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text
Entities *[]MessageEntity `json:"entities,omitempty"`
// ExternalReply Optional. Information about the message that is being replied to, which may come from another chat or forum topic
ExternalReply *ExternalReplyInfo `json:"external_reply,omitempty"`
// ForumTopicClosed Optional. Service message: forum topic closed
ForumTopicClosed *ForumTopicClosed `json:"forum_topic_closed,omitempty"`
// ForumTopicCreated Optional. Service message: forum topic created
ForumTopicCreated *ForumTopicCreated `json:"forum_topic_created,omitempty"`
// ForumTopicEdited Optional. Service message: forum topic edited
ForumTopicEdited *ForumTopicEdited `json:"forum_topic_edited,omitempty"`
// ForumTopicReopened Optional. Service message: forum topic reopened
ForumTopicReopened *ForumTopicReopened `json:"forum_topic_reopened,omitempty"`
// ForwardOrigin Optional. Information about the original message for forwarded messages
ForwardOrigin *MessageOrigin `json:"forward_origin,omitempty"`
// From Optional. Sender of the message; may be empty for messages sent to channels. For backward compatibility, if the message was sent on behalf of a chat, the field contains a fake sender user in non-channel chats
From *User `json:"from,omitempty"`
// Game Optional. Message is a game, information about the game. More about games »
Game *Game `json:"game,omitempty"`
// GeneralForumTopicHidden Optional. Service message: the 'General' forum topic hidden
GeneralForumTopicHidden *GeneralForumTopicHidden `json:"general_forum_topic_hidden,omitempty"`
GeneralForumTopicUnhidden *GeneralForumTopicUnhidden `json:"general_forum_topic_unhidden,omitempty"`
// Gift Optional. Service message: a regular gift was sent or received
Gift *GiftInfo `json:"gift,omitempty"`
// GiftUpgradeSent Optional. Service message: upgrade of a gift was purchased after the gift was sent
GiftUpgradeSent *GiftInfo `json:"gift_upgrade_sent,omitempty"`
// Giveaway Optional. The message is a scheduled giveaway message
Giveaway *Giveaway `json:"giveaway,omitempty"`
// GiveawayCompleted Optional. Service message: a giveaway without public winners was completed
GiveawayCompleted *GiveawayCompleted `json:"giveaway_completed,omitempty"`
// GiveawayCreated Optional. Service message: a scheduled giveaway was created
GiveawayCreated *GiveawayCreated `json:"giveaway_created,omitempty"`
// GiveawayWinners Optional. A giveaway with public winners was completed
GiveawayWinners *GiveawayWinners `json:"giveaway_winners,omitempty"`
// GroupChatCreated Optional. Service message: the group has been created
GroupChatCreated *bool `json:"group_chat_created,omitempty"`
// HasMediaSpoiler Optional. True, if the message media is covered by a spoiler animation
HasMediaSpoiler *bool `json:"has_media_spoiler,omitempty"`
// HasProtectedContent Optional. True, if the message can't be forwarded
HasProtectedContent *bool `json:"has_protected_content,omitempty"`
// Invoice Optional. Message is an invoice for a payment, information about the invoice. More about payments »
Invoice *Invoice `json:"invoice,omitempty"`
// IsAutomaticForward Optional. True, if the message is a channel post that was automatically forwarded to the connected discussion group
IsAutomaticForward *bool `json:"is_automatic_forward,omitempty"`
// IsFromOffline Optional. True, if the message was sent by an implicit action, for example, as an away or a greeting business message, or as a scheduled message
IsFromOffline *bool `json:"is_from_offline,omitempty"`
// IsPaidPost Optional. True, if the message is a paid post. Note that such posts must not be deleted for 24 hours to receive the payment and can't be edited.
IsPaidPost *bool `json:"is_paid_post,omitempty"`
// IsTopicMessage Optional. True, if the message is sent to a topic in a forum supergroup or a private chat with the bot
IsTopicMessage *bool `json:"is_topic_message,omitempty"`
// LeftChatMember Optional. A member was removed from the group, information about them (this member may be the bot itself)
LeftChatMember *User `json:"left_chat_member,omitempty"`
// LinkPreviewOptions Optional. Options used for link preview generation for the message, if it is a text message and link preview options were changed
LinkPreviewOptions *LinkPreviewOptions `json:"link_preview_options,omitempty"`
// Location Optional. Message is a shared location, information about the location
Location *Location `json:"location,omitempty"`
// MediaGroupId Optional. The unique identifier of a media message group this message belongs to
MediaGroupId *string `json:"media_group_id,omitempty"`
// MessageAutoDeleteTimerChanged Optional. Service message: auto-delete timer settings changed in the chat
MessageAutoDeleteTimerChanged *MessageAutoDeleteTimerChanged `json:"message_auto_delete_timer_changed,omitempty"`
// MessageId Unique message identifier inside this chat. In specific instances (e.g., message containing a video sent to a big chat), the server might automatically schedule a message instead of sending it immediately. In such cases, this field will be 0 and the relevant message will be unusable until it is actually sent
MessageId int `json:"message_id"`
// MessageThreadId Optional. Unique identifier of a message thread or forum topic to which the message belongs; for supergroups and private chats only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// MigrateFromChatId Optional. The supergroup has been migrated from a group with the specified identifier. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.
MigrateFromChatId *int64 `json:"migrate_from_chat_id,omitempty"`
// MigrateToChatId Optional. The group has been migrated to a supergroup with the specified identifier. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.
MigrateToChatId *int64 `json:"migrate_to_chat_id,omitempty"`
// NewChatMembers Optional. New members that were added to the group or supergroup and information about them (the bot itself may be one of these members)
NewChatMembers *[]User `json:"new_chat_members,omitempty"`
// NewChatPhoto Optional. A chat photo was change to this value
NewChatPhoto *[]PhotoSize `json:"new_chat_photo,omitempty"`
// NewChatTitle Optional. A chat title was changed to this value
NewChatTitle *string `json:"new_chat_title,omitempty"`
// PaidMedia Optional. Message contains paid media; information about the paid media
PaidMedia *PaidMediaInfo `json:"paid_media,omitempty"`
// PaidMessagePriceChanged Optional. Service message: the price for paid messages has changed in the chat
PaidMessagePriceChanged *PaidMessagePriceChanged `json:"paid_message_price_changed,omitempty"`
// PaidStarCount Optional. The number of Telegram Stars that were paid by the sender of the message to send it
PaidStarCount *int `json:"paid_star_count,omitempty"`
// PassportData Optional. Telegram Passport data
PassportData *PassportData `json:"passport_data,omitempty"`
// Photo Optional. Message is a photo, available sizes of the photo
Photo *[]PhotoSize `json:"photo,omitempty"`
// PinnedMessage Optional. Specified message was pinned. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.
PinnedMessage *MaybeInaccessibleMessage `json:"pinned_message,omitempty"`
// Poll Optional. Message is a native poll, information about the poll
Poll *Poll `json:"poll,omitempty"`
// ProximityAlertTriggered Optional. Service message. A user in the chat triggered another user's proximity alert while sharing Live Location.
ProximityAlertTriggered *ProximityAlertTriggered `json:"proximity_alert_triggered,omitempty"`
// Quote Optional. For replies that quote part of the original message, the quoted part of the message
Quote *TextQuote `json:"quote,omitempty"`
// RefundedPayment Optional. Message is a service message about a refunded payment, information about the payment. More about payments »
RefundedPayment *RefundedPayment `json:"refunded_payment,omitempty"`
// ReplyMarkup Optional. Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons.
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
// ReplyToChecklistTaskId Optional. Identifier of the specific checklist task that is being replied to
ReplyToChecklistTaskId *int `json:"reply_to_checklist_task_id,omitempty"`
// ReplyToMessage Optional. For replies in the same chat and message thread, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.
ReplyToMessage *Message `json:"reply_to_message,omitempty"`
// ReplyToStory Optional. For replies to a story, the original story
ReplyToStory *Story `json:"reply_to_story,omitempty"`
// SenderBoostCount Optional. If the sender of the message boosted the chat, the number of boosts added by the user
SenderBoostCount *int `json:"sender_boost_count,omitempty"`
// SenderBusinessBot Optional. The bot that actually sent the message on behalf of the business account. Available only for outgoing messages sent on behalf of the connected business account.
SenderBusinessBot *User `json:"sender_business_bot,omitempty"`
// SenderChat Optional. Sender of the message when sent on behalf of a chat. For example, the supergroup itself for messages sent by its anonymous administrators or a linked channel for messages automatically forwarded to the channel's discussion group. For backward compatibility, if the message was sent on behalf of a chat, the field from contains a fake sender user in non-channel chats.
SenderChat *Chat `json:"sender_chat,omitempty"`
// ShowCaptionAboveMedia Optional. True, if the caption must be shown above the message media
ShowCaptionAboveMedia *bool `json:"show_caption_above_media,omitempty"`
// Sticker Optional. Message is a sticker, information about the sticker
Sticker *Sticker `json:"sticker,omitempty"`
// Story Optional. Message is a forwarded story
Story *Story `json:"story,omitempty"`
// SuccessfulPayment Optional. Message is a service message about a successful payment, information about the payment. More about payments »
SuccessfulPayment *SuccessfulPayment `json:"successful_payment,omitempty"`
// SuggestedPostApprovalFailed Optional. Service message: approval of a suggested post has failed
SuggestedPostApprovalFailed *SuggestedPostApprovalFailed `json:"suggested_post_approval_failed,omitempty"`
// SuggestedPostApproved Optional. Service message: a suggested post was approved
SuggestedPostApproved *SuggestedPostApproved `json:"suggested_post_approved,omitempty"`
// SuggestedPostDeclined Optional. Service message: a suggested post was declined
SuggestedPostDeclined *SuggestedPostDeclined `json:"suggested_post_declined,omitempty"`
// SuggestedPostInfo Optional. Information about suggested post parameters if the message is a suggested post in a channel direct messages chat. If the message is an approved or declined suggested post, then it can't be edited.
SuggestedPostInfo *SuggestedPostInfo `json:"suggested_post_info,omitempty"`
// SuggestedPostPaid Optional. Service message: payment for a suggested post was received
SuggestedPostPaid *SuggestedPostPaid `json:"suggested_post_paid,omitempty"`
// SuggestedPostRefunded Optional. Service message: payment for a suggested post was refunded
SuggestedPostRefunded *SuggestedPostRefunded `json:"suggested_post_refunded,omitempty"`
// SupergroupChatCreated Optional. Service message: the supergroup has been created. This field can't be received in a message coming through updates, because bot can't be a member of a supergroup when it is created. It can only be found in reply_to_message if someone replies to a very first message in a directly created supergroup.
SupergroupChatCreated *bool `json:"supergroup_chat_created,omitempty"`
// Text Optional. For text messages, the actual UTF-8 text of the message
Text *string `json:"text,omitempty"`
// UniqueGift Optional. Service message: a unique gift was sent or received
UniqueGift *UniqueGiftInfo `json:"unique_gift,omitempty"`
UsersShared *UsersShared `json:"users_shared,omitempty"`
// Venue Optional. Message is a venue, information about the venue. For backward compatibility, when this field is set, the location field will also be set
Venue *Venue `json:"venue,omitempty"`
// ViaBot Optional. Bot through which the message was sent
ViaBot *User `json:"via_bot,omitempty"`
// Video Optional. Message is a video, information about the video
Video *Video `json:"video,omitempty"`
// VideoChatEnded Optional. Service message: video chat ended
VideoChatEnded *VideoChatEnded `json:"video_chat_ended,omitempty"`
// VideoChatParticipantsInvited Optional. Service message: new participants invited to a video chat
VideoChatParticipantsInvited *VideoChatParticipantsInvited `json:"video_chat_participants_invited,omitempty"`
// VideoChatScheduled Optional. Service message: video chat scheduled
VideoChatScheduled *VideoChatScheduled `json:"video_chat_scheduled,omitempty"`
// VideoChatStarted Optional. Service message: video chat started
VideoChatStarted *VideoChatStarted `json:"video_chat_started,omitempty"`
// VideoNote Optional. Message is a video note, information about the video message
VideoNote *VideoNote `json:"video_note,omitempty"`
// Voice Optional. Message is a voice message, information about the file
Voice *Voice `json:"voice,omitempty"`
// WebAppData Optional. Service message: data sent by a Web App
WebAppData *WebAppData `json:"web_app_data,omitempty"`
// WriteAccessAllowed Optional. Service message: the user allowed the bot to write messages after adding it to the attachment or side menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess
WriteAccessAllowed *WriteAccessAllowed `json:"write_access_allowed,omitempty"`
}
Message This object represents a message.
type MessageAutoDeleteTimerChanged ¶
type MessageAutoDeleteTimerChanged struct {
// MessageAutoDeleteTime New auto-delete time for messages in the chat; in seconds
MessageAutoDeleteTime int `json:"message_auto_delete_time"`
}
MessageAutoDeleteTimerChanged This object represents a service message about a change in auto-delete timer settings.
type MessageEntity ¶
type MessageEntity struct {
// CustomEmojiId Optional. For “custom_emoji” only, unique identifier of the custom emoji. Use getCustomEmojiStickers to get full information about the sticker
CustomEmojiId *string `json:"custom_emoji_id,omitempty"`
// Language Optional. For “pre” only, the programming language of the entity text
Language *string `json:"language,omitempty"`
// Length Length of the entity in UTF-16 code units
Length int `json:"length"`
// Offset Offset in UTF-16 code units to the start of the entity
Offset int `json:"offset"`
// Type Type of the entity. Currently, can be “mention” (@username), “hashtag” (#hashtag or #hashtag@chatusername), “cashtag” ($USD or $USD@chatusername), “bot_command” (/start@jobs_bot), “url” (https://telegram.org), “email” (do-not-reply@telegram.org), “phone_number” (+1-212-555-0123), “bold” (bold text), “italic” (italic text), “underline” (underlined text), “strikethrough” (strikethrough text), “spoiler” (spoiler message), “blockquote” (block quotation), “expandable_blockquote” (collapsed-by-default block quotation), “code” (monowidth string), “pre” (monowidth block), “text_link” (for clickable text URLs), “text_mention” (for users without usernames), “custom_emoji” (for inline custom emoji stickers)
Type string `json:"type"`
// Url Optional. For “text_link” only, URL that will be opened after user taps on the text
Url *string `json:"url,omitempty"`
// User Optional. For “text_mention” only, the mentioned user
User *User `json:"user,omitempty"`
}
MessageEntity This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.
type MessageId ¶
type MessageId struct {
// MessageId Unique message identifier. In specific instances (e.g., message containing a video sent to a big chat), the server might automatically schedule a message instead of sending it immediately. In such cases, this field will be 0 and the relevant message will be unusable until it is actually sent
MessageId int `json:"message_id"`
}
MessageId This object represents a unique message identifier.
type MessageOrigin ¶
type MessageOrigin = map[string]interface{}
MessageOrigin This object describes the origin of a message. It can be one of MessageOriginUser MessageOriginHiddenUser MessageOriginChat MessageOriginChannel
type MessageReactionCountUpdated ¶
type MessageReactionCountUpdated struct {
// Chat The chat containing the message
Chat Chat `json:"chat"`
// Date Date of the change in Unix time
Date int `json:"date"`
// MessageId Unique message identifier inside the chat
MessageId int `json:"message_id"`
// Reactions List of reactions that are present on the message
Reactions []ReactionCount `json:"reactions"`
}
MessageReactionCountUpdated This object represents reaction changes on a message with anonymous reactions.
type MessageReactionUpdated ¶
type MessageReactionUpdated struct {
// ActorChat Optional. The chat on behalf of which the reaction was changed, if the user is anonymous
ActorChat *Chat `json:"actor_chat,omitempty"`
// Chat The chat containing the message the user reacted to
Chat Chat `json:"chat"`
// Date Date of the change in Unix time
Date int `json:"date"`
// MessageId Unique identifier of the message inside the chat
MessageId int `json:"message_id"`
// NewReaction New list of reaction types that have been set by the user
NewReaction []ReactionType `json:"new_reaction"`
// OldReaction Previous list of reaction types that were set by the user
OldReaction []ReactionType `json:"old_reaction"`
// User Optional. The user that changed the reaction, if the user isn't anonymous
User *User `json:"user,omitempty"`
}
MessageReactionUpdated This object represents a change of a reaction on a message performed by a user.
type OkResponse ¶
type OkResponse struct {
Ok OkResponseOk `json:"ok"`
}
OkResponse defines model for OkResponse.
type OkResponseOk ¶
type OkResponseOk bool
OkResponseOk defines model for OkResponse.Ok.
const (
True OkResponseOk = true
)
Defines values for OkResponseOk.
type OrderInfo ¶
type OrderInfo struct {
// Email Optional. User email
Email *string `json:"email,omitempty"`
// Name Optional. User name
Name *string `json:"name,omitempty"`
// PhoneNumber Optional. User's phone number
PhoneNumber *string `json:"phone_number,omitempty"`
// ShippingAddress Optional. User shipping address
ShippingAddress *ShippingAddress `json:"shipping_address,omitempty"`
}
OrderInfo This object represents information about an order.
type OwnedGift ¶
type OwnedGift = map[string]interface{}
OwnedGift This object describes a gift received and owned by a user or a chat. Currently, it can be one of OwnedGiftRegular OwnedGiftUnique
type OwnedGifts ¶
type OwnedGifts struct {
// Gifts The list of gifts
Gifts []OwnedGift `json:"gifts"`
// NextOffset Optional. Offset for the next request. If empty, then there are no more results
NextOffset *string `json:"next_offset,omitempty"`
// TotalCount The total number of gifts owned by the user or the chat
TotalCount int `json:"total_count"`
}
OwnedGifts Contains the list of gifts received and owned by a user or a chat.
type PaidMedia ¶
type PaidMedia = map[string]interface{}
PaidMedia This object describes paid media. Currently, it can be one of PaidMediaPreview PaidMediaPhoto PaidMediaVideo
type PaidMediaInfo ¶
type PaidMediaInfo struct {
// PaidMedia Information about the paid media
PaidMedia []PaidMedia `json:"paid_media"`
// StarCount The number of Telegram Stars that must be paid to buy access to the media
StarCount int `json:"star_count"`
}
PaidMediaInfo Describes the paid media added to a message.
type PaidMediaPurchased ¶
type PaidMediaPurchased struct {
// From User who purchased the media
From User `json:"from"`
// PaidMediaPayload Bot-specified paid media payload
PaidMediaPayload string `json:"paid_media_payload"`
}
PaidMediaPurchased This object contains information about a paid media purchase.
type PaidMessagePriceChanged ¶
type PaidMessagePriceChanged struct {
// PaidMessageStarCount The new number of Telegram Stars that must be paid by non-administrator users of the supergroup chat for each sent message
PaidMessageStarCount int `json:"paid_message_star_count"`
}
PaidMessagePriceChanged Describes a service message about a change in the price of paid messages within a chat.
type PassportData ¶
type PassportData struct {
// Credentials Encrypted credentials required to decrypt the data
Credentials EncryptedCredentials `json:"credentials"`
// Data Array with information about documents and other Telegram Passport elements that was shared with the bot
Data []EncryptedPassportElement `json:"data"`
}
PassportData Describes Telegram Passport data shared with the bot by the user.
type PassportElementError ¶ added in v0.2.0
type PassportElementError = map[string]interface{}
PassportElementError This object represents an error in the Telegram Passport element which was submitted that should be resolved by the user. It should be one of: PassportElementErrorDataField PassportElementErrorFrontSide PassportElementErrorReverseSide PassportElementErrorSelfie PassportElementErrorFile PassportElementErrorFiles PassportElementErrorTranslationFile PassportElementErrorTranslationFiles PassportElementErrorUnspecified
type PassportFile ¶
type PassportFile struct {
// FileDate Unix time when the file was uploaded
FileDate int `json:"file_date"`
// FileId Identifier for this file, which can be used to download or reuse the file
FileId string `json:"file_id"`
// FileSize File size in bytes
FileSize int `json:"file_size"`
// FileUniqueId Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
FileUniqueId string `json:"file_unique_id"`
}
PassportFile This object represents a file uploaded to Telegram Passport. Currently all Telegram Passport files are in JPEG format when decrypted and don't exceed 10MB.
type PhotoSize ¶
type PhotoSize struct {
// FileId Identifier for this file, which can be used to download or reuse the file
FileId string `json:"file_id"`
// FileSize Optional. File size in bytes
FileSize *int `json:"file_size,omitempty"`
// FileUniqueId Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
FileUniqueId string `json:"file_unique_id"`
// Height Photo height
Height int `json:"height"`
// Width Photo width
Width int `json:"width"`
}
PhotoSize This object represents one size of a photo or a file / sticker thumbnail.
type PinChatMessage200Ok ¶
type PinChatMessage200Ok bool
type PinChatMessageJSONBody ¶
type PinChatMessageJSONBody struct {
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message will be pinned
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// DisableNotification Pass True if it is not necessary to send a notification to all chat members about the new pinned message. Notifications are always disabled in channels and private chats.
DisableNotification *bool `json:"disable_notification,omitempty"`
// MessageId Identifier of a message to pin
MessageId int `json:"message_id"`
}
PinChatMessageJSONBody defines parameters for PinChatMessage.
type PinChatMessageJSONRequestBody ¶
type PinChatMessageJSONRequestBody PinChatMessageJSONBody
PinChatMessageJSONRequestBody defines body for PinChatMessage for application/json ContentType.
type PinChatMessageResponse ¶
type PinChatMessageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok PinChatMessage200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParsePinChatMessageResponse ¶
func ParsePinChatMessageResponse(rsp *http.Response) (*PinChatMessageResponse, error)
ParsePinChatMessageResponse parses an HTTP response from a PinChatMessageWithResponse call
func (PinChatMessageResponse) Status ¶
func (r PinChatMessageResponse) Status() string
Status returns HTTPResponse.Status
func (PinChatMessageResponse) StatusCode ¶
func (r PinChatMessageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Poll ¶
type Poll struct {
// AllowsMultipleAnswers True, if the poll allows multiple answers
AllowsMultipleAnswers bool `json:"allows_multiple_answers"`
// CloseDate Optional. Point in time (Unix timestamp) when the poll will be automatically closed
CloseDate *int `json:"close_date,omitempty"`
// CorrectOptionId Optional. 0-based identifier of the correct answer option. Available only for polls in the quiz mode, which are closed, or was sent (not forwarded) by the bot or to the private chat with the bot.
CorrectOptionId *int `json:"correct_option_id,omitempty"`
// Explanation Optional. Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style poll, 0-200 characters
Explanation *string `json:"explanation,omitempty"`
// ExplanationEntities Optional. Special entities like usernames, URLs, bot commands, etc. that appear in the explanation
ExplanationEntities *[]MessageEntity `json:"explanation_entities,omitempty"`
// Id Unique poll identifier
Id string `json:"id"`
// IsAnonymous True, if the poll is anonymous
IsAnonymous bool `json:"is_anonymous"`
// IsClosed True, if the poll is closed
IsClosed bool `json:"is_closed"`
// OpenPeriod Optional. Amount of time in seconds the poll will be active after creation
OpenPeriod *int `json:"open_period,omitempty"`
// Options List of poll options
Options []PollOption `json:"options"`
// Question Poll question, 1-300 characters
Question string `json:"question"`
// QuestionEntities Optional. Special entities that appear in the question. Currently, only custom emoji entities are allowed in poll questions
QuestionEntities *[]MessageEntity `json:"question_entities,omitempty"`
// TotalVoterCount Total number of users that voted in the poll
TotalVoterCount int `json:"total_voter_count"`
// Type Poll type, currently can be “regular” or “quiz”
Type string `json:"type"`
}
Poll This object contains information about a poll.
type PollAnswer ¶
type PollAnswer struct {
// OptionIds 0-based identifiers of chosen answer options. May be empty if the vote was retracted.
OptionIds []int `json:"option_ids"`
// PollId Unique poll identifier
PollId string `json:"poll_id"`
// User Optional. The user that changed the answer to the poll, if the voter isn't anonymous
User *User `json:"user,omitempty"`
// VoterChat Optional. The chat that changed the answer to the poll, if the voter is anonymous
VoterChat *Chat `json:"voter_chat,omitempty"`
}
PollAnswer This object represents an answer of a user in a non-anonymous poll.
type PollOption ¶
type PollOption struct {
// Text Option text, 1-100 characters
Text string `json:"text"`
// TextEntities Optional. Special entities that appear in the option text. Currently, only custom emoji entities are allowed in poll option texts
TextEntities *[]MessageEntity `json:"text_entities,omitempty"`
// VoterCount Number of users that voted for this option
VoterCount int `json:"voter_count"`
}
PollOption This object contains information about one answer option in a poll.
type PostStory200Ok ¶
type PostStory200Ok bool
type PostStoryJSONBody ¶
type PostStoryJSONBody struct {
// ActivePeriod Period after which the story is moved to the archive, in seconds; must be one of 6 * 3600, 12 * 3600, 86400, or 2 * 86400
ActivePeriod int `json:"active_period"`
// Areas A JSON-serialized list of clickable areas to be shown on the story
Areas *[]StoryArea `json:"areas,omitempty"`
// BusinessConnectionId Unique identifier of the business connection
BusinessConnectionId string `json:"business_connection_id"`
// Caption Caption of the story, 0-2048 characters after entities parsing
Caption *string `json:"caption,omitempty"`
// CaptionEntities A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode
CaptionEntities *[]MessageEntity `json:"caption_entities,omitempty"`
// Content Content of the story
Content InputStoryContent `json:"content"`
// ParseMode Mode for parsing entities in the story caption. See formatting options for more details.
ParseMode *string `json:"parse_mode,omitempty"`
// PostToChatPage Pass True to keep the story accessible after it expires
PostToChatPage *bool `json:"post_to_chat_page,omitempty"`
// ProtectContent Pass True if the content of the story must be protected from forwarding and screenshotting
ProtectContent *bool `json:"protect_content,omitempty"`
}
PostStoryJSONBody defines parameters for PostStory.
type PostStoryJSONRequestBody ¶
type PostStoryJSONRequestBody PostStoryJSONBody
PostStoryJSONRequestBody defines body for PostStory for application/json ContentType.
type PostStoryResponse ¶
type PostStoryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok PostStory200Ok `json:"ok"`
// Result This object represents a story.
Result Story `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParsePostStoryResponse ¶
func ParsePostStoryResponse(rsp *http.Response) (*PostStoryResponse, error)
ParsePostStoryResponse parses an HTTP response from a PostStoryWithResponse call
func (PostStoryResponse) Status ¶
func (r PostStoryResponse) Status() string
Status returns HTTPResponse.Status
func (PostStoryResponse) StatusCode ¶
func (r PostStoryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PreCheckoutQuery ¶
type PreCheckoutQuery struct {
// Currency Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars
Currency string `json:"currency"`
// From User who sent the query
From User `json:"from"`
// Id Unique query identifier
Id string `json:"id"`
// InvoicePayload Bot-specified invoice payload
InvoicePayload string `json:"invoice_payload"`
// OrderInfo Optional. Order information provided by the user
OrderInfo *OrderInfo `json:"order_info,omitempty"`
// ShippingOptionId Optional. Identifier of the shipping option chosen by the user
ShippingOptionId *string `json:"shipping_option_id,omitempty"`
// TotalAmount Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
TotalAmount int `json:"total_amount"`
}
PreCheckoutQuery This object contains information about an incoming pre-checkout query.
type PreparedInlineMessage ¶
type PreparedInlineMessage struct {
// ExpirationDate Expiration date of the prepared message, in Unix time. Expired prepared messages can no longer be used
ExpirationDate int `json:"expiration_date"`
// Id Unique identifier of the prepared message
Id string `json:"id"`
}
PreparedInlineMessage Describes an inline message to be sent by a user of a Mini App.
type PromoteChatMember200Ok ¶
type PromoteChatMember200Ok bool
type PromoteChatMemberJSONBody ¶
type PromoteChatMemberJSONBody struct {
// CanChangeInfo Pass True if the administrator can change chat title, photo and other settings
CanChangeInfo *bool `json:"can_change_info,omitempty"`
// CanDeleteMessages Pass True if the administrator can delete messages of other users
CanDeleteMessages *bool `json:"can_delete_messages,omitempty"`
// CanDeleteStories Pass True if the administrator can delete stories posted by other users
CanDeleteStories *bool `json:"can_delete_stories,omitempty"`
// CanEditMessages Pass True if the administrator can edit messages of other users and can pin messages; for channels only
CanEditMessages *bool `json:"can_edit_messages,omitempty"`
// CanEditStories Pass True if the administrator can edit stories posted by other users, post stories to the chat page, pin chat stories, and access the chat's story archive
CanEditStories *bool `json:"can_edit_stories,omitempty"`
// CanInviteUsers Pass True if the administrator can invite new users to the chat
CanInviteUsers *bool `json:"can_invite_users,omitempty"`
// CanManageChat Pass True if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages, ignore slow mode, and send messages to the chat without paying Telegram Stars. Implied by any other administrator privilege.
CanManageChat *bool `json:"can_manage_chat,omitempty"`
// CanManageDirectMessages Pass True if the administrator can manage direct messages within the channel and decline suggested posts; for channels only
CanManageDirectMessages *bool `json:"can_manage_direct_messages,omitempty"`
// CanManageTopics Pass True if the user is allowed to create, rename, close, and reopen forum topics; for supergroups only
CanManageTopics *bool `json:"can_manage_topics,omitempty"`
// CanManageVideoChats Pass True if the administrator can manage video chats
CanManageVideoChats *bool `json:"can_manage_video_chats,omitempty"`
// CanPinMessages Pass True if the administrator can pin messages; for supergroups only
CanPinMessages *bool `json:"can_pin_messages,omitempty"`
// CanPostMessages Pass True if the administrator can post messages in the channel, approve suggested posts, or access channel statistics; for channels only
CanPostMessages *bool `json:"can_post_messages,omitempty"`
// CanPostStories Pass True if the administrator can post stories to the chat
CanPostStories *bool `json:"can_post_stories,omitempty"`
// CanPromoteMembers Pass True if the administrator can add new administrators with a subset of their own privileges or demote administrators that they have promoted, directly or indirectly (promoted by administrators that were appointed by him)
CanPromoteMembers *bool `json:"can_promote_members,omitempty"`
// CanRestrictMembers Pass True if the administrator can restrict, ban or unban chat members, or access supergroup statistics. For backward compatibility, defaults to True for promotions of channel administrators
CanRestrictMembers *bool `json:"can_restrict_members,omitempty"`
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// IsAnonymous Pass True if the administrator's presence in the chat is hidden
IsAnonymous *bool `json:"is_anonymous,omitempty"`
// UserId Unique identifier of the target user
UserId int `json:"user_id"`
}
PromoteChatMemberJSONBody defines parameters for PromoteChatMember.
type PromoteChatMemberJSONRequestBody ¶
type PromoteChatMemberJSONRequestBody PromoteChatMemberJSONBody
PromoteChatMemberJSONRequestBody defines body for PromoteChatMember for application/json ContentType.
type PromoteChatMemberResponse ¶
type PromoteChatMemberResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok PromoteChatMember200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParsePromoteChatMemberResponse ¶
func ParsePromoteChatMemberResponse(rsp *http.Response) (*PromoteChatMemberResponse, error)
ParsePromoteChatMemberResponse parses an HTTP response from a PromoteChatMemberWithResponse call
func (PromoteChatMemberResponse) Status ¶
func (r PromoteChatMemberResponse) Status() string
Status returns HTTPResponse.Status
func (PromoteChatMemberResponse) StatusCode ¶
func (r PromoteChatMemberResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ProximityAlertTriggered ¶
type ProximityAlertTriggered struct {
// Distance The distance between the users
Distance int `json:"distance"`
// Traveler User that triggered the alert
Traveler User `json:"traveler"`
// Watcher User that set the alert
Watcher User `json:"watcher"`
}
ProximityAlertTriggered This object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user.
type ReactionCount ¶
type ReactionCount struct {
// TotalCount Number of times the reaction was added
TotalCount int `json:"total_count"`
// Type Type of the reaction
Type ReactionType `json:"type"`
}
ReactionCount Represents a reaction added to a message along with the number of times it was added.
type ReactionType ¶
type ReactionType = map[string]interface{}
ReactionType This object describes the type of a reaction. Currently, it can be one of ReactionTypeEmoji ReactionTypeCustomEmoji ReactionTypePaid
type ReadBusinessMessage200Ok ¶
type ReadBusinessMessage200Ok bool
type ReadBusinessMessageJSONBody ¶
type ReadBusinessMessageJSONBody struct {
// BusinessConnectionId Unique identifier of the business connection on behalf of which to read the message
BusinessConnectionId string `json:"business_connection_id"`
// ChatId Unique identifier of the chat in which the message was received. The chat must have been active in the last 24 hours.
ChatId int64 `json:"chat_id"`
// MessageId Unique identifier of the message to mark as read
MessageId int `json:"message_id"`
}
ReadBusinessMessageJSONBody defines parameters for ReadBusinessMessage.
type ReadBusinessMessageJSONRequestBody ¶
type ReadBusinessMessageJSONRequestBody ReadBusinessMessageJSONBody
ReadBusinessMessageJSONRequestBody defines body for ReadBusinessMessage for application/json ContentType.
type ReadBusinessMessageResponse ¶
type ReadBusinessMessageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok ReadBusinessMessage200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseReadBusinessMessageResponse ¶
func ParseReadBusinessMessageResponse(rsp *http.Response) (*ReadBusinessMessageResponse, error)
ParseReadBusinessMessageResponse parses an HTTP response from a ReadBusinessMessageWithResponse call
func (ReadBusinessMessageResponse) Status ¶
func (r ReadBusinessMessageResponse) Status() string
Status returns HTTPResponse.Status
func (ReadBusinessMessageResponse) StatusCode ¶
func (r ReadBusinessMessageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RefundStarPayment200Ok ¶
type RefundStarPayment200Ok bool
type RefundStarPaymentJSONBody ¶
type RefundStarPaymentJSONBody struct {
// TelegramPaymentChargeId Telegram payment identifier
TelegramPaymentChargeId string `json:"telegram_payment_charge_id"`
// UserId Identifier of the user whose payment will be refunded
UserId int `json:"user_id"`
}
RefundStarPaymentJSONBody defines parameters for RefundStarPayment.
type RefundStarPaymentJSONRequestBody ¶
type RefundStarPaymentJSONRequestBody RefundStarPaymentJSONBody
RefundStarPaymentJSONRequestBody defines body for RefundStarPayment for application/json ContentType.
type RefundStarPaymentResponse ¶
type RefundStarPaymentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok RefundStarPayment200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseRefundStarPaymentResponse ¶
func ParseRefundStarPaymentResponse(rsp *http.Response) (*RefundStarPaymentResponse, error)
ParseRefundStarPaymentResponse parses an HTTP response from a RefundStarPaymentWithResponse call
func (RefundStarPaymentResponse) Status ¶
func (r RefundStarPaymentResponse) Status() string
Status returns HTTPResponse.Status
func (RefundStarPaymentResponse) StatusCode ¶
func (r RefundStarPaymentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RefundedPayment ¶
type RefundedPayment struct {
// Currency Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars. Currently, always “XTR”
Currency string `json:"currency"`
// InvoicePayload Bot-specified invoice payload
InvoicePayload string `json:"invoice_payload"`
// ProviderPaymentChargeId Optional. Provider payment identifier
ProviderPaymentChargeId *string `json:"provider_payment_charge_id,omitempty"`
// TelegramPaymentChargeId Telegram payment identifier
TelegramPaymentChargeId string `json:"telegram_payment_charge_id"`
// TotalAmount Total refunded price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45, total_amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
TotalAmount int `json:"total_amount"`
}
RefundedPayment This object contains basic information about a refunded payment.
type RemoveBusinessAccountProfilePhoto200Ok ¶
type RemoveBusinessAccountProfilePhoto200Ok bool
type RemoveBusinessAccountProfilePhotoJSONBody ¶
type RemoveBusinessAccountProfilePhotoJSONBody struct {
// BusinessConnectionId Unique identifier of the business connection
BusinessConnectionId string `json:"business_connection_id"`
// IsPublic Pass True to remove the public photo, which is visible even if the main photo is hidden by the business account's privacy settings. After the main photo is removed, the previous profile photo (if present) becomes the main photo.
IsPublic *bool `json:"is_public,omitempty"`
}
RemoveBusinessAccountProfilePhotoJSONBody defines parameters for RemoveBusinessAccountProfilePhoto.
type RemoveBusinessAccountProfilePhotoJSONRequestBody ¶
type RemoveBusinessAccountProfilePhotoJSONRequestBody RemoveBusinessAccountProfilePhotoJSONBody
RemoveBusinessAccountProfilePhotoJSONRequestBody defines body for RemoveBusinessAccountProfilePhoto for application/json ContentType.
type RemoveBusinessAccountProfilePhotoResponse ¶
type RemoveBusinessAccountProfilePhotoResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok RemoveBusinessAccountProfilePhoto200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseRemoveBusinessAccountProfilePhotoResponse ¶
func ParseRemoveBusinessAccountProfilePhotoResponse(rsp *http.Response) (*RemoveBusinessAccountProfilePhotoResponse, error)
ParseRemoveBusinessAccountProfilePhotoResponse parses an HTTP response from a RemoveBusinessAccountProfilePhotoWithResponse call
func (RemoveBusinessAccountProfilePhotoResponse) Status ¶
func (r RemoveBusinessAccountProfilePhotoResponse) Status() string
Status returns HTTPResponse.Status
func (RemoveBusinessAccountProfilePhotoResponse) StatusCode ¶
func (r RemoveBusinessAccountProfilePhotoResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RemoveChatVerification200Ok ¶
type RemoveChatVerification200Ok bool
type RemoveChatVerificationJSONBody ¶
type RemoveChatVerificationJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
}
RemoveChatVerificationJSONBody defines parameters for RemoveChatVerification.
type RemoveChatVerificationJSONRequestBody ¶
type RemoveChatVerificationJSONRequestBody RemoveChatVerificationJSONBody
RemoveChatVerificationJSONRequestBody defines body for RemoveChatVerification for application/json ContentType.
type RemoveChatVerificationResponse ¶
type RemoveChatVerificationResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok RemoveChatVerification200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseRemoveChatVerificationResponse ¶
func ParseRemoveChatVerificationResponse(rsp *http.Response) (*RemoveChatVerificationResponse, error)
ParseRemoveChatVerificationResponse parses an HTTP response from a RemoveChatVerificationWithResponse call
func (RemoveChatVerificationResponse) Status ¶
func (r RemoveChatVerificationResponse) Status() string
Status returns HTTPResponse.Status
func (RemoveChatVerificationResponse) StatusCode ¶
func (r RemoveChatVerificationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RemoveUserVerification200Ok ¶
type RemoveUserVerification200Ok bool
type RemoveUserVerificationJSONBody ¶
type RemoveUserVerificationJSONBody struct {
// UserId Unique identifier of the target user
UserId int `json:"user_id"`
}
RemoveUserVerificationJSONBody defines parameters for RemoveUserVerification.
type RemoveUserVerificationJSONRequestBody ¶
type RemoveUserVerificationJSONRequestBody RemoveUserVerificationJSONBody
RemoveUserVerificationJSONRequestBody defines body for RemoveUserVerification for application/json ContentType.
type RemoveUserVerificationResponse ¶
type RemoveUserVerificationResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok RemoveUserVerification200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseRemoveUserVerificationResponse ¶
func ParseRemoveUserVerificationResponse(rsp *http.Response) (*RemoveUserVerificationResponse, error)
ParseRemoveUserVerificationResponse parses an HTTP response from a RemoveUserVerificationWithResponse call
func (RemoveUserVerificationResponse) Status ¶
func (r RemoveUserVerificationResponse) Status() string
Status returns HTTPResponse.Status
func (RemoveUserVerificationResponse) StatusCode ¶
func (r RemoveUserVerificationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ReopenForumTopic200Ok ¶
type ReopenForumTopic200Ok bool
type ReopenForumTopicJSONBody ¶
type ReopenForumTopicJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
ChatId int64 `json:"chat_id"`
// MessageThreadId Unique identifier for the target message thread of the forum topic
MessageThreadId int `json:"message_thread_id"`
}
ReopenForumTopicJSONBody defines parameters for ReopenForumTopic.
type ReopenForumTopicJSONRequestBody ¶
type ReopenForumTopicJSONRequestBody ReopenForumTopicJSONBody
ReopenForumTopicJSONRequestBody defines body for ReopenForumTopic for application/json ContentType.
type ReopenForumTopicResponse ¶
type ReopenForumTopicResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok ReopenForumTopic200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseReopenForumTopicResponse ¶
func ParseReopenForumTopicResponse(rsp *http.Response) (*ReopenForumTopicResponse, error)
ParseReopenForumTopicResponse parses an HTTP response from a ReopenForumTopicWithResponse call
func (ReopenForumTopicResponse) Status ¶
func (r ReopenForumTopicResponse) Status() string
Status returns HTTPResponse.Status
func (ReopenForumTopicResponse) StatusCode ¶
func (r ReopenForumTopicResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ReopenGeneralForumTopic200Ok ¶
type ReopenGeneralForumTopic200Ok bool
type ReopenGeneralForumTopicJSONBody ¶
type ReopenGeneralForumTopicJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
ChatId int64 `json:"chat_id"`
}
ReopenGeneralForumTopicJSONBody defines parameters for ReopenGeneralForumTopic.
type ReopenGeneralForumTopicJSONRequestBody ¶
type ReopenGeneralForumTopicJSONRequestBody ReopenGeneralForumTopicJSONBody
ReopenGeneralForumTopicJSONRequestBody defines body for ReopenGeneralForumTopic for application/json ContentType.
type ReopenGeneralForumTopicResponse ¶
type ReopenGeneralForumTopicResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok ReopenGeneralForumTopic200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseReopenGeneralForumTopicResponse ¶
func ParseReopenGeneralForumTopicResponse(rsp *http.Response) (*ReopenGeneralForumTopicResponse, error)
ParseReopenGeneralForumTopicResponse parses an HTTP response from a ReopenGeneralForumTopicWithResponse call
func (ReopenGeneralForumTopicResponse) Status ¶
func (r ReopenGeneralForumTopicResponse) Status() string
Status returns HTTPResponse.Status
func (ReopenGeneralForumTopicResponse) StatusCode ¶
func (r ReopenGeneralForumTopicResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ReplaceStickerInSet200Ok ¶
type ReplaceStickerInSet200Ok bool
type ReplaceStickerInSetJSONBody ¶
type ReplaceStickerInSetJSONBody struct {
// Name Sticker set name
Name string `json:"name"`
// OldSticker File identifier of the replaced sticker
OldSticker string `json:"old_sticker"`
// Sticker A JSON-serialized object with information about the added sticker. If exactly the same sticker had already been added to the set, then the set remains unchanged.
Sticker InputSticker `json:"sticker"`
// UserId User identifier of the sticker set owner
UserId int `json:"user_id"`
}
ReplaceStickerInSetJSONBody defines parameters for ReplaceStickerInSet.
type ReplaceStickerInSetJSONRequestBody ¶
type ReplaceStickerInSetJSONRequestBody ReplaceStickerInSetJSONBody
ReplaceStickerInSetJSONRequestBody defines body for ReplaceStickerInSet for application/json ContentType.
type ReplaceStickerInSetMultipartBody ¶ added in v0.2.0
type ReplaceStickerInSetMultipartBody struct {
// Name Sticker set name
Name string `json:"name"`
// OldSticker File identifier of the replaced sticker
OldSticker string `json:"old_sticker"`
// Sticker A JSON-serialized object with information about the added sticker. If exactly the same sticker had already been added to the set, then the set remains unchanged.
Sticker InputSticker `json:"sticker"`
// UserId User identifier of the sticker set owner
UserId int `json:"user_id"`
}
ReplaceStickerInSetMultipartBody defines parameters for ReplaceStickerInSet.
type ReplaceStickerInSetMultipartRequestBody ¶ added in v0.2.0
type ReplaceStickerInSetMultipartRequestBody ReplaceStickerInSetMultipartBody
ReplaceStickerInSetMultipartRequestBody defines body for ReplaceStickerInSet for multipart/form-data ContentType.
type ReplaceStickerInSetResponse ¶
type ReplaceStickerInSetResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok ReplaceStickerInSet200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseReplaceStickerInSetResponse ¶
func ParseReplaceStickerInSetResponse(rsp *http.Response) (*ReplaceStickerInSetResponse, error)
ParseReplaceStickerInSetResponse parses an HTTP response from a ReplaceStickerInSetWithResponse call
func (ReplaceStickerInSetResponse) Status ¶
func (r ReplaceStickerInSetResponse) Status() string
Status returns HTTPResponse.Status
func (ReplaceStickerInSetResponse) StatusCode ¶
func (r ReplaceStickerInSetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ReplyParameters ¶ added in v0.2.0
type ReplyParameters struct {
// AllowSendingWithoutReply Optional. Pass True if the message should be sent even if the specified message to be replied to is not found. Always False for replies in another chat or forum topic. Always True for messages sent on behalf of a business account.
AllowSendingWithoutReply *bool `json:"allow_sending_without_reply,omitempty"`
// ChatId Optional. If the message to be replied to is from a different chat, unique identifier for the chat or username of the channel (in the format @channelusername). Not supported for messages sent on behalf of a business account and messages from channel direct messages chats.
ChatId *int64 `json:"chat_id,omitempty"`
// ChecklistTaskId Optional. Identifier of the specific checklist task to be replied to
ChecklistTaskId *int `json:"checklist_task_id,omitempty"`
// MessageId Identifier of the message that will be replied to in the current chat, or in the chat chat_id if it is specified
MessageId int `json:"message_id"`
// Quote Optional. Quoted part of the message to be replied to; 0-1024 characters after entities parsing. The quote must be an exact substring of the message to be replied to, including bold, italic, underline, strikethrough, spoiler, and custom_emoji entities. The message will fail to send if the quote isn't found in the original message.
Quote *string `json:"quote,omitempty"`
// QuoteEntities Optional. A JSON-serialized list of special entities that appear in the quote. It can be specified instead of quote_parse_mode.
QuoteEntities *[]MessageEntity `json:"quote_entities,omitempty"`
// QuoteParseMode Optional. Mode for parsing entities in the quote. See formatting options for more details.
QuoteParseMode *string `json:"quote_parse_mode,omitempty"`
// QuotePosition Optional. Position of the quote in the original message in UTF-16 code units
QuotePosition *int `json:"quote_position,omitempty"`
}
ReplyParameters Describes reply parameters for the message that is being sent.
type RepostStory200Ok ¶ added in v0.3.0
type RepostStory200Ok bool
type RepostStoryJSONBody ¶ added in v0.3.0
type RepostStoryJSONBody struct {
// ActivePeriod Period after which the story is moved to the archive, in seconds; must be one of 6 * 3600, 12 * 3600, 86400, or 2 * 86400
ActivePeriod int `json:"active_period"`
// BusinessConnectionId Unique identifier of the business connection
BusinessConnectionId string `json:"business_connection_id"`
// FromChatId Unique identifier of the chat which posted the story that should be reposted
FromChatId int64 `json:"from_chat_id"`
// FromStoryId Unique identifier of the story that should be reposted
FromStoryId int `json:"from_story_id"`
// PostToChatPage Pass True to keep the story accessible after it expires
PostToChatPage *bool `json:"post_to_chat_page,omitempty"`
// ProtectContent Pass True if the content of the story must be protected from forwarding and screenshotting
ProtectContent *bool `json:"protect_content,omitempty"`
}
RepostStoryJSONBody defines parameters for RepostStory.
type RepostStoryJSONRequestBody ¶ added in v0.3.0
type RepostStoryJSONRequestBody RepostStoryJSONBody
RepostStoryJSONRequestBody defines body for RepostStory for application/json ContentType.
type RepostStoryResponse ¶ added in v0.3.0
type RepostStoryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok RepostStory200Ok `json:"ok"`
// Result This object represents a story.
Result Story `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseRepostStoryResponse ¶ added in v0.3.0
func ParseRepostStoryResponse(rsp *http.Response) (*RepostStoryResponse, error)
ParseRepostStoryResponse parses an HTTP response from a RepostStoryWithResponse call
func (RepostStoryResponse) Status ¶ added in v0.3.0
func (r RepostStoryResponse) Status() string
Status returns HTTPResponse.Status
func (RepostStoryResponse) StatusCode ¶ added in v0.3.0
func (r RepostStoryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ResponseParameters ¶
type ResponseParameters struct {
// MigrateToChatId Optional. The group has been migrated to a supergroup with the specified identifier. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.
MigrateToChatId *int64 `json:"migrate_to_chat_id,omitempty"`
// RetryAfter Optional. In case of exceeding flood control, the number of seconds left to wait before the request can be repeated
RetryAfter *int `json:"retry_after,omitempty"`
}
ResponseParameters Describes why a request was unsuccessful.
type RestrictChatMember200Ok ¶
type RestrictChatMember200Ok bool
type RestrictChatMemberJSONBody ¶
type RestrictChatMemberJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
ChatId int64 `json:"chat_id"`
// Permissions A JSON-serialized object for new user permissions
Permissions ChatPermissions `json:"permissions"`
// UntilDate Date when restrictions will be lifted for the user; Unix time. If user is restricted for more than 366 days or less than 30 seconds from the current time, they are considered to be restricted forever
UntilDate *int `json:"until_date,omitempty"`
// UseIndependentChatPermissions Pass True if chat permissions are set independently. Otherwise, the can_send_other_messages and can_add_web_page_previews permissions will imply the can_send_messages, can_send_audios, can_send_documents, can_send_photos, can_send_videos, can_send_video_notes, and can_send_voice_notes permissions; the can_send_polls permission will imply the can_send_messages permission.
UseIndependentChatPermissions *bool `json:"use_independent_chat_permissions,omitempty"`
// UserId Unique identifier of the target user
UserId int `json:"user_id"`
}
RestrictChatMemberJSONBody defines parameters for RestrictChatMember.
type RestrictChatMemberJSONRequestBody ¶
type RestrictChatMemberJSONRequestBody RestrictChatMemberJSONBody
RestrictChatMemberJSONRequestBody defines body for RestrictChatMember for application/json ContentType.
type RestrictChatMemberResponse ¶
type RestrictChatMemberResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok RestrictChatMember200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseRestrictChatMemberResponse ¶
func ParseRestrictChatMemberResponse(rsp *http.Response) (*RestrictChatMemberResponse, error)
ParseRestrictChatMemberResponse parses an HTTP response from a RestrictChatMemberWithResponse call
func (RestrictChatMemberResponse) Status ¶
func (r RestrictChatMemberResponse) Status() string
Status returns HTTPResponse.Status
func (RestrictChatMemberResponse) StatusCode ¶
func (r RestrictChatMemberResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RevokeChatInviteLink200Ok ¶
type RevokeChatInviteLink200Ok bool
type RevokeChatInviteLinkJSONBody ¶
type RevokeChatInviteLinkJSONBody struct {
// ChatId Unique identifier of the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// InviteLink The invite link to revoke
InviteLink string `json:"invite_link"`
}
RevokeChatInviteLinkJSONBody defines parameters for RevokeChatInviteLink.
type RevokeChatInviteLinkJSONRequestBody ¶
type RevokeChatInviteLinkJSONRequestBody RevokeChatInviteLinkJSONBody
RevokeChatInviteLinkJSONRequestBody defines body for RevokeChatInviteLink for application/json ContentType.
type RevokeChatInviteLinkResponse ¶
type RevokeChatInviteLinkResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok RevokeChatInviteLink200Ok `json:"ok"`
// Result Represents an invite link for a chat.
Result ChatInviteLink `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseRevokeChatInviteLinkResponse ¶
func ParseRevokeChatInviteLinkResponse(rsp *http.Response) (*RevokeChatInviteLinkResponse, error)
ParseRevokeChatInviteLinkResponse parses an HTTP response from a RevokeChatInviteLinkWithResponse call
func (RevokeChatInviteLinkResponse) Status ¶
func (r RevokeChatInviteLinkResponse) Status() string
Status returns HTTPResponse.Status
func (RevokeChatInviteLinkResponse) StatusCode ¶
func (r RevokeChatInviteLinkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SavePreparedInlineMessage200Ok ¶
type SavePreparedInlineMessage200Ok bool
type SavePreparedInlineMessageJSONBody ¶
type SavePreparedInlineMessageJSONBody struct {
// AllowBotChats Pass True if the message can be sent to private chats with bots
AllowBotChats *bool `json:"allow_bot_chats,omitempty"`
// AllowChannelChats Pass True if the message can be sent to channel chats
AllowChannelChats *bool `json:"allow_channel_chats,omitempty"`
// AllowGroupChats Pass True if the message can be sent to group and supergroup chats
AllowGroupChats *bool `json:"allow_group_chats,omitempty"`
// AllowUserChats Pass True if the message can be sent to private chats with users
AllowUserChats *bool `json:"allow_user_chats,omitempty"`
// Result A JSON-serialized object describing the message to be sent
Result InlineQueryResult `json:"result"`
// UserId Unique identifier of the target user that can use the prepared message
UserId int `json:"user_id"`
}
SavePreparedInlineMessageJSONBody defines parameters for SavePreparedInlineMessage.
type SavePreparedInlineMessageJSONRequestBody ¶
type SavePreparedInlineMessageJSONRequestBody SavePreparedInlineMessageJSONBody
SavePreparedInlineMessageJSONRequestBody defines body for SavePreparedInlineMessage for application/json ContentType.
type SavePreparedInlineMessageResponse ¶
type SavePreparedInlineMessageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SavePreparedInlineMessage200Ok `json:"ok"`
// Result Describes an inline message to be sent by a user of a Mini App.
Result PreparedInlineMessage `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSavePreparedInlineMessageResponse ¶
func ParseSavePreparedInlineMessageResponse(rsp *http.Response) (*SavePreparedInlineMessageResponse, error)
ParseSavePreparedInlineMessageResponse parses an HTTP response from a SavePreparedInlineMessageWithResponse call
func (SavePreparedInlineMessageResponse) Status ¶
func (r SavePreparedInlineMessageResponse) Status() string
Status returns HTTPResponse.Status
func (SavePreparedInlineMessageResponse) StatusCode ¶
func (r SavePreparedInlineMessageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendAnimation200Ok ¶
type SendAnimation200Ok bool
type SendAnimationJSONBody ¶
type SendAnimationJSONBody struct {
// AllowPaidBroadcast Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
AllowPaidBroadcast *bool `json:"allow_paid_broadcast,omitempty"`
// Animation Animation to send. Pass a file_id as String to send an animation that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get an animation from the Internet, or upload a new animation using multipart/form-data. More information on Sending Files »
Animation string `json:"animation"`
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message will be sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// Caption Animation caption (may also be used when resending animation by file_id), 0-1024 characters after entities parsing
Caption *string `json:"caption,omitempty"`
// CaptionEntities A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode
CaptionEntities *[]MessageEntity `json:"caption_entities,omitempty"`
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// DirectMessagesTopicId Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
DirectMessagesTopicId *int `json:"direct_messages_topic_id,omitempty"`
// DisableNotification Sends the message silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// Duration Duration of sent animation in seconds
Duration *int `json:"duration,omitempty"`
// HasSpoiler Pass True if the animation needs to be covered with a spoiler animation
HasSpoiler *bool `json:"has_spoiler,omitempty"`
// Height Animation height
Height *int `json:"height,omitempty"`
// MessageEffectId Unique identifier of the message effect to be added to the message; for private chats only
MessageEffectId *string `json:"message_effect_id,omitempty"`
// MessageThreadId Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// ParseMode Mode for parsing entities in the animation caption. See formatting options for more details.
ParseMode *string `json:"parse_mode,omitempty"`
// ProtectContent Protects the contents of the sent message from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// ReplyMarkup Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user
ReplyMarkup *struct {
// ForceReply Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'
ForceReply *bool `json:"force_reply,omitempty"`
// InlineKeyboard Array of button rows, each represented by an Array of InlineKeyboardButton objects
InlineKeyboard *[][]InlineKeyboardButton `json:"inline_keyboard,omitempty"`
// InputFieldPlaceholder Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters
InputFieldPlaceholder *string `json:"input_field_placeholder,omitempty"`
// IsPersistent Optional. Requests clients to always show the keyboard when the regular keyboard is hidden. Defaults to false, in which case the custom keyboard can be hidden and opened with a keyboard icon.
IsPersistent *bool `json:"is_persistent,omitempty"`
// Keyboard Array of button rows, each represented by an Array of KeyboardButton objects
Keyboard *[][]KeyboardButton `json:"keyboard,omitempty"`
// OneTimeKeyboard Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat - the user can press a special button in the input field to see the custom keyboard again. Defaults to false.
OneTimeKeyboard *bool `json:"one_time_keyboard,omitempty"`
// RemoveKeyboard Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)
RemoveKeyboard *bool `json:"remove_keyboard,omitempty"`
// ResizeKeyboard Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.
ResizeKeyboard *bool `json:"resize_keyboard,omitempty"`
// Selective Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.
Selective *bool `json:"selective,omitempty"`
} `json:"reply_markup,omitempty"`
// ReplyParameters Description of the message to reply to
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
// ShowCaptionAboveMedia Pass True, if the caption must be shown above the message media
ShowCaptionAboveMedia *bool `json:"show_caption_above_media,omitempty"`
// SuggestedPostParameters A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
// Thumbnail Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More information on Sending Files »
Thumbnail *string `json:"thumbnail,omitempty"`
// Width Animation width
Width *int `json:"width,omitempty"`
}
SendAnimationJSONBody defines parameters for SendAnimation.
type SendAnimationJSONRequestBody ¶
type SendAnimationJSONRequestBody SendAnimationJSONBody
SendAnimationJSONRequestBody defines body for SendAnimation for application/json ContentType.
type SendAnimationMultipartBody ¶ added in v0.2.0
type SendAnimationMultipartBody struct {
// AllowPaidBroadcast Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
AllowPaidBroadcast *bool `json:"allow_paid_broadcast,omitempty"`
// Animation Animation to send. Pass a file_id as String to send an animation that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get an animation from the Internet, or upload a new animation using multipart/form-data. More information on Sending Files »
Animation openapi_types.File `json:"animation"`
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message will be sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// Caption Animation caption (may also be used when resending animation by file_id), 0-1024 characters after entities parsing
Caption *string `json:"caption,omitempty"`
// CaptionEntities A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode
CaptionEntities *[]MessageEntity `json:"caption_entities,omitempty"`
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// DirectMessagesTopicId Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
DirectMessagesTopicId *int `json:"direct_messages_topic_id,omitempty"`
// DisableNotification Sends the message silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// Duration Duration of sent animation in seconds
Duration *int `json:"duration,omitempty"`
// HasSpoiler Pass True if the animation needs to be covered with a spoiler animation
HasSpoiler *bool `json:"has_spoiler,omitempty"`
// Height Animation height
Height *int `json:"height,omitempty"`
// MessageEffectId Unique identifier of the message effect to be added to the message; for private chats only
MessageEffectId *string `json:"message_effect_id,omitempty"`
// MessageThreadId Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// ParseMode Mode for parsing entities in the animation caption. See formatting options for more details.
ParseMode *string `json:"parse_mode,omitempty"`
// ProtectContent Protects the contents of the sent message from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// ReplyMarkup Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user
ReplyMarkup *struct {
// ForceReply Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'
ForceReply *bool `json:"force_reply,omitempty"`
// InlineKeyboard Array of button rows, each represented by an Array of InlineKeyboardButton objects
InlineKeyboard *[][]InlineKeyboardButton `json:"inline_keyboard,omitempty"`
// InputFieldPlaceholder Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters
InputFieldPlaceholder *string `json:"input_field_placeholder,omitempty"`
// IsPersistent Optional. Requests clients to always show the keyboard when the regular keyboard is hidden. Defaults to false, in which case the custom keyboard can be hidden and opened with a keyboard icon.
IsPersistent *bool `json:"is_persistent,omitempty"`
// Keyboard Array of button rows, each represented by an Array of KeyboardButton objects
Keyboard *[][]KeyboardButton `json:"keyboard,omitempty"`
// OneTimeKeyboard Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat - the user can press a special button in the input field to see the custom keyboard again. Defaults to false.
OneTimeKeyboard *bool `json:"one_time_keyboard,omitempty"`
// RemoveKeyboard Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)
RemoveKeyboard *bool `json:"remove_keyboard,omitempty"`
// ResizeKeyboard Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.
ResizeKeyboard *bool `json:"resize_keyboard,omitempty"`
// Selective Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.
Selective *bool `json:"selective,omitempty"`
} `json:"reply_markup,omitempty"`
// ReplyParameters Description of the message to reply to
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
// ShowCaptionAboveMedia Pass True, if the caption must be shown above the message media
ShowCaptionAboveMedia *bool `json:"show_caption_above_media,omitempty"`
// SuggestedPostParameters A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
// Thumbnail Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More information on Sending Files »
Thumbnail *openapi_types.File `json:"thumbnail,omitempty"`
// Width Animation width
Width *int `json:"width,omitempty"`
}
SendAnimationMultipartBody defines parameters for SendAnimation.
type SendAnimationMultipartRequestBody ¶ added in v0.2.0
type SendAnimationMultipartRequestBody SendAnimationMultipartBody
SendAnimationMultipartRequestBody defines body for SendAnimation for multipart/form-data ContentType.
type SendAnimationResponse ¶
type SendAnimationResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SendAnimation200Ok `json:"ok"`
// Result This object represents a message.
Result Message `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSendAnimationResponse ¶
func ParseSendAnimationResponse(rsp *http.Response) (*SendAnimationResponse, error)
ParseSendAnimationResponse parses an HTTP response from a SendAnimationWithResponse call
func (SendAnimationResponse) Status ¶
func (r SendAnimationResponse) Status() string
Status returns HTTPResponse.Status
func (SendAnimationResponse) StatusCode ¶
func (r SendAnimationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendAudio200Ok ¶
type SendAudio200Ok bool
type SendAudioJSONBody ¶
type SendAudioJSONBody struct {
// AllowPaidBroadcast Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
AllowPaidBroadcast *bool `json:"allow_paid_broadcast,omitempty"`
// Audio Audio file to send. Pass a file_id as String to send an audio file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get an audio file from the Internet, or upload a new one using multipart/form-data. More information on Sending Files »
Audio string `json:"audio"`
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message will be sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// Caption Audio caption, 0-1024 characters after entities parsing
Caption *string `json:"caption,omitempty"`
// CaptionEntities A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode
CaptionEntities *[]MessageEntity `json:"caption_entities,omitempty"`
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// DirectMessagesTopicId Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
DirectMessagesTopicId *int `json:"direct_messages_topic_id,omitempty"`
// DisableNotification Sends the message silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// Duration Duration of the audio in seconds
Duration *int `json:"duration,omitempty"`
// MessageEffectId Unique identifier of the message effect to be added to the message; for private chats only
MessageEffectId *string `json:"message_effect_id,omitempty"`
// MessageThreadId Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// ParseMode Mode for parsing entities in the audio caption. See formatting options for more details.
ParseMode *string `json:"parse_mode,omitempty"`
// Performer Performer
Performer *string `json:"performer,omitempty"`
// ProtectContent Protects the contents of the sent message from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// ReplyMarkup Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user
ReplyMarkup *struct {
// ForceReply Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'
ForceReply *bool `json:"force_reply,omitempty"`
// InlineKeyboard Array of button rows, each represented by an Array of InlineKeyboardButton objects
InlineKeyboard *[][]InlineKeyboardButton `json:"inline_keyboard,omitempty"`
// InputFieldPlaceholder Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters
InputFieldPlaceholder *string `json:"input_field_placeholder,omitempty"`
// IsPersistent Optional. Requests clients to always show the keyboard when the regular keyboard is hidden. Defaults to false, in which case the custom keyboard can be hidden and opened with a keyboard icon.
IsPersistent *bool `json:"is_persistent,omitempty"`
// Keyboard Array of button rows, each represented by an Array of KeyboardButton objects
Keyboard *[][]KeyboardButton `json:"keyboard,omitempty"`
// OneTimeKeyboard Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat - the user can press a special button in the input field to see the custom keyboard again. Defaults to false.
OneTimeKeyboard *bool `json:"one_time_keyboard,omitempty"`
// RemoveKeyboard Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)
RemoveKeyboard *bool `json:"remove_keyboard,omitempty"`
// ResizeKeyboard Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.
ResizeKeyboard *bool `json:"resize_keyboard,omitempty"`
// Selective Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.
Selective *bool `json:"selective,omitempty"`
} `json:"reply_markup,omitempty"`
// ReplyParameters Description of the message to reply to
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
// SuggestedPostParameters A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
// Thumbnail Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More information on Sending Files »
Thumbnail *string `json:"thumbnail,omitempty"`
// Title Track name
Title *string `json:"title,omitempty"`
}
SendAudioJSONBody defines parameters for SendAudio.
type SendAudioJSONRequestBody ¶
type SendAudioJSONRequestBody SendAudioJSONBody
SendAudioJSONRequestBody defines body for SendAudio for application/json ContentType.
type SendAudioMultipartBody ¶ added in v0.2.0
type SendAudioMultipartBody struct {
// AllowPaidBroadcast Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
AllowPaidBroadcast *bool `json:"allow_paid_broadcast,omitempty"`
// Audio Audio file to send. Pass a file_id as String to send an audio file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get an audio file from the Internet, or upload a new one using multipart/form-data. More information on Sending Files »
Audio openapi_types.File `json:"audio"`
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message will be sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// Caption Audio caption, 0-1024 characters after entities parsing
Caption *string `json:"caption,omitempty"`
// CaptionEntities A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode
CaptionEntities *[]MessageEntity `json:"caption_entities,omitempty"`
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// DirectMessagesTopicId Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
DirectMessagesTopicId *int `json:"direct_messages_topic_id,omitempty"`
// DisableNotification Sends the message silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// Duration Duration of the audio in seconds
Duration *int `json:"duration,omitempty"`
// MessageEffectId Unique identifier of the message effect to be added to the message; for private chats only
MessageEffectId *string `json:"message_effect_id,omitempty"`
// MessageThreadId Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// ParseMode Mode for parsing entities in the audio caption. See formatting options for more details.
ParseMode *string `json:"parse_mode,omitempty"`
// Performer Performer
Performer *string `json:"performer,omitempty"`
// ProtectContent Protects the contents of the sent message from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// ReplyMarkup Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user
ReplyMarkup *struct {
// ForceReply Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'
ForceReply *bool `json:"force_reply,omitempty"`
// InlineKeyboard Array of button rows, each represented by an Array of InlineKeyboardButton objects
InlineKeyboard *[][]InlineKeyboardButton `json:"inline_keyboard,omitempty"`
// InputFieldPlaceholder Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters
InputFieldPlaceholder *string `json:"input_field_placeholder,omitempty"`
// IsPersistent Optional. Requests clients to always show the keyboard when the regular keyboard is hidden. Defaults to false, in which case the custom keyboard can be hidden and opened with a keyboard icon.
IsPersistent *bool `json:"is_persistent,omitempty"`
// Keyboard Array of button rows, each represented by an Array of KeyboardButton objects
Keyboard *[][]KeyboardButton `json:"keyboard,omitempty"`
// OneTimeKeyboard Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat - the user can press a special button in the input field to see the custom keyboard again. Defaults to false.
OneTimeKeyboard *bool `json:"one_time_keyboard,omitempty"`
// RemoveKeyboard Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)
RemoveKeyboard *bool `json:"remove_keyboard,omitempty"`
// ResizeKeyboard Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.
ResizeKeyboard *bool `json:"resize_keyboard,omitempty"`
// Selective Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.
Selective *bool `json:"selective,omitempty"`
} `json:"reply_markup,omitempty"`
// ReplyParameters Description of the message to reply to
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
// SuggestedPostParameters A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
// Thumbnail Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More information on Sending Files »
Thumbnail *openapi_types.File `json:"thumbnail,omitempty"`
// Title Track name
Title *string `json:"title,omitempty"`
}
SendAudioMultipartBody defines parameters for SendAudio.
type SendAudioMultipartRequestBody ¶ added in v0.2.0
type SendAudioMultipartRequestBody SendAudioMultipartBody
SendAudioMultipartRequestBody defines body for SendAudio for multipart/form-data ContentType.
type SendAudioResponse ¶
type SendAudioResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SendAudio200Ok `json:"ok"`
// Result This object represents a message.
Result Message `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSendAudioResponse ¶
func ParseSendAudioResponse(rsp *http.Response) (*SendAudioResponse, error)
ParseSendAudioResponse parses an HTTP response from a SendAudioWithResponse call
func (SendAudioResponse) Status ¶
func (r SendAudioResponse) Status() string
Status returns HTTPResponse.Status
func (SendAudioResponse) StatusCode ¶
func (r SendAudioResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendChatAction200Ok ¶
type SendChatAction200Ok bool
type SendChatActionJSONBody ¶
type SendChatActionJSONBody struct {
// Action Type of action to broadcast. Choose one, depending on what the user is about to receive: typing for text messages, upload_photo for photos, record_video or upload_video for videos, record_voice or upload_voice for voice notes, upload_document for general files, choose_sticker for stickers, find_location for location data, record_video_note or upload_video_note for video notes.
Action string `json:"action"`
// BusinessConnectionId Unique identifier of the business connection on behalf of which the action will be sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// ChatId Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername). Channel chats and channel direct messages chats aren't supported.
ChatId int64 `json:"chat_id"`
// MessageThreadId Unique identifier for the target message thread or topic of a forum; for supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
}
SendChatActionJSONBody defines parameters for SendChatAction.
type SendChatActionJSONRequestBody ¶
type SendChatActionJSONRequestBody SendChatActionJSONBody
SendChatActionJSONRequestBody defines body for SendChatAction for application/json ContentType.
type SendChatActionResponse ¶
type SendChatActionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SendChatAction200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSendChatActionResponse ¶
func ParseSendChatActionResponse(rsp *http.Response) (*SendChatActionResponse, error)
ParseSendChatActionResponse parses an HTTP response from a SendChatActionWithResponse call
func (SendChatActionResponse) Status ¶
func (r SendChatActionResponse) Status() string
Status returns HTTPResponse.Status
func (SendChatActionResponse) StatusCode ¶
func (r SendChatActionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendChecklist200Ok ¶
type SendChecklist200Ok bool
type SendChecklistJSONBody ¶
type SendChecklistJSONBody struct {
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message will be sent
BusinessConnectionId string `json:"business_connection_id"`
// ChatId Unique identifier for the target chat
ChatId int64 `json:"chat_id"`
// Checklist A JSON-serialized object for the checklist to send
Checklist InputChecklist `json:"checklist"`
// DisableNotification Sends the message silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// MessageEffectId Unique identifier of the message effect to be added to the message
MessageEffectId *string `json:"message_effect_id,omitempty"`
// ProtectContent Protects the contents of the sent message from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// ReplyMarkup A JSON-serialized object for an inline keyboard
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
// ReplyParameters A JSON-serialized object for description of the message to reply to
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
}
SendChecklistJSONBody defines parameters for SendChecklist.
type SendChecklistJSONRequestBody ¶
type SendChecklistJSONRequestBody SendChecklistJSONBody
SendChecklistJSONRequestBody defines body for SendChecklist for application/json ContentType.
type SendChecklistResponse ¶
type SendChecklistResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SendChecklist200Ok `json:"ok"`
// Result This object represents a message.
Result Message `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSendChecklistResponse ¶
func ParseSendChecklistResponse(rsp *http.Response) (*SendChecklistResponse, error)
ParseSendChecklistResponse parses an HTTP response from a SendChecklistWithResponse call
func (SendChecklistResponse) Status ¶
func (r SendChecklistResponse) Status() string
Status returns HTTPResponse.Status
func (SendChecklistResponse) StatusCode ¶
func (r SendChecklistResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendContact200Ok ¶
type SendContact200Ok bool
type SendContactJSONBody ¶
type SendContactJSONBody struct {
// AllowPaidBroadcast Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
AllowPaidBroadcast *bool `json:"allow_paid_broadcast,omitempty"`
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message will be sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// DirectMessagesTopicId Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
DirectMessagesTopicId *int `json:"direct_messages_topic_id,omitempty"`
// DisableNotification Sends the message silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// FirstName Contact's first name
FirstName string `json:"first_name"`
// LastName Contact's last name
LastName *string `json:"last_name,omitempty"`
// MessageEffectId Unique identifier of the message effect to be added to the message; for private chats only
MessageEffectId *string `json:"message_effect_id,omitempty"`
// MessageThreadId Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// PhoneNumber Contact's phone number
PhoneNumber string `json:"phone_number"`
// ProtectContent Protects the contents of the sent message from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// ReplyMarkup Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user
ReplyMarkup *struct {
// ForceReply Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'
ForceReply *bool `json:"force_reply,omitempty"`
// InlineKeyboard Array of button rows, each represented by an Array of InlineKeyboardButton objects
InlineKeyboard *[][]InlineKeyboardButton `json:"inline_keyboard,omitempty"`
// InputFieldPlaceholder Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters
InputFieldPlaceholder *string `json:"input_field_placeholder,omitempty"`
// IsPersistent Optional. Requests clients to always show the keyboard when the regular keyboard is hidden. Defaults to false, in which case the custom keyboard can be hidden and opened with a keyboard icon.
IsPersistent *bool `json:"is_persistent,omitempty"`
// Keyboard Array of button rows, each represented by an Array of KeyboardButton objects
Keyboard *[][]KeyboardButton `json:"keyboard,omitempty"`
// OneTimeKeyboard Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat - the user can press a special button in the input field to see the custom keyboard again. Defaults to false.
OneTimeKeyboard *bool `json:"one_time_keyboard,omitempty"`
// RemoveKeyboard Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)
RemoveKeyboard *bool `json:"remove_keyboard,omitempty"`
// ResizeKeyboard Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.
ResizeKeyboard *bool `json:"resize_keyboard,omitempty"`
// Selective Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.
Selective *bool `json:"selective,omitempty"`
} `json:"reply_markup,omitempty"`
// ReplyParameters Description of the message to reply to
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
// SuggestedPostParameters A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
// Vcard Additional data about the contact in the form of a vCard, 0-2048 bytes
Vcard *string `json:"vcard,omitempty"`
}
SendContactJSONBody defines parameters for SendContact.
type SendContactJSONRequestBody ¶
type SendContactJSONRequestBody SendContactJSONBody
SendContactJSONRequestBody defines body for SendContact for application/json ContentType.
type SendContactResponse ¶
type SendContactResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SendContact200Ok `json:"ok"`
// Result This object represents a message.
Result Message `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSendContactResponse ¶
func ParseSendContactResponse(rsp *http.Response) (*SendContactResponse, error)
ParseSendContactResponse parses an HTTP response from a SendContactWithResponse call
func (SendContactResponse) Status ¶
func (r SendContactResponse) Status() string
Status returns HTTPResponse.Status
func (SendContactResponse) StatusCode ¶
func (r SendContactResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendDice200Ok ¶
type SendDice200Ok bool
type SendDiceJSONBody ¶
type SendDiceJSONBody struct {
// AllowPaidBroadcast Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
AllowPaidBroadcast *bool `json:"allow_paid_broadcast,omitempty"`
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message will be sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// DirectMessagesTopicId Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
DirectMessagesTopicId *int `json:"direct_messages_topic_id,omitempty"`
// DisableNotification Sends the message silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// Emoji Emoji on which the dice throw animation is based. Currently, must be one of “”, “”, “”, “”, “”, or “”. Dice can have values 1-6 for “”, “” and “”, values 1-5 for “” and “”, and values 1-64 for “”. Defaults to “”
Emoji *string `json:"emoji,omitempty"`
// MessageEffectId Unique identifier of the message effect to be added to the message; for private chats only
MessageEffectId *string `json:"message_effect_id,omitempty"`
// MessageThreadId Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// ProtectContent Protects the contents of the sent message from forwarding
ProtectContent *bool `json:"protect_content,omitempty"`
// ReplyMarkup Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user
ReplyMarkup *struct {
// ForceReply Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'
ForceReply *bool `json:"force_reply,omitempty"`
// InlineKeyboard Array of button rows, each represented by an Array of InlineKeyboardButton objects
InlineKeyboard *[][]InlineKeyboardButton `json:"inline_keyboard,omitempty"`
// InputFieldPlaceholder Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters
InputFieldPlaceholder *string `json:"input_field_placeholder,omitempty"`
// IsPersistent Optional. Requests clients to always show the keyboard when the regular keyboard is hidden. Defaults to false, in which case the custom keyboard can be hidden and opened with a keyboard icon.
IsPersistent *bool `json:"is_persistent,omitempty"`
// Keyboard Array of button rows, each represented by an Array of KeyboardButton objects
Keyboard *[][]KeyboardButton `json:"keyboard,omitempty"`
// OneTimeKeyboard Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat - the user can press a special button in the input field to see the custom keyboard again. Defaults to false.
OneTimeKeyboard *bool `json:"one_time_keyboard,omitempty"`
// RemoveKeyboard Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)
RemoveKeyboard *bool `json:"remove_keyboard,omitempty"`
// ResizeKeyboard Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.
ResizeKeyboard *bool `json:"resize_keyboard,omitempty"`
// Selective Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.
Selective *bool `json:"selective,omitempty"`
} `json:"reply_markup,omitempty"`
// ReplyParameters Description of the message to reply to
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
// SuggestedPostParameters A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
}
SendDiceJSONBody defines parameters for SendDice.
type SendDiceJSONRequestBody ¶
type SendDiceJSONRequestBody SendDiceJSONBody
SendDiceJSONRequestBody defines body for SendDice for application/json ContentType.
type SendDiceResponse ¶
type SendDiceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SendDice200Ok `json:"ok"`
// Result This object represents a message.
Result Message `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSendDiceResponse ¶
func ParseSendDiceResponse(rsp *http.Response) (*SendDiceResponse, error)
ParseSendDiceResponse parses an HTTP response from a SendDiceWithResponse call
func (SendDiceResponse) Status ¶
func (r SendDiceResponse) Status() string
Status returns HTTPResponse.Status
func (SendDiceResponse) StatusCode ¶
func (r SendDiceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendDocument200Ok ¶
type SendDocument200Ok bool
type SendDocumentJSONBody ¶
type SendDocumentJSONBody struct {
// AllowPaidBroadcast Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
AllowPaidBroadcast *bool `json:"allow_paid_broadcast,omitempty"`
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message will be sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// Caption Document caption (may also be used when resending documents by file_id), 0-1024 characters after entities parsing
Caption *string `json:"caption,omitempty"`
// CaptionEntities A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode
CaptionEntities *[]MessageEntity `json:"caption_entities,omitempty"`
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// DirectMessagesTopicId Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
DirectMessagesTopicId *int `json:"direct_messages_topic_id,omitempty"`
// DisableContentTypeDetection Disables automatic server-side content type detection for files uploaded using multipart/form-data
DisableContentTypeDetection *bool `json:"disable_content_type_detection,omitempty"`
// DisableNotification Sends the message silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// Document File to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More information on Sending Files »
Document string `json:"document"`
// MessageEffectId Unique identifier of the message effect to be added to the message; for private chats only
MessageEffectId *string `json:"message_effect_id,omitempty"`
// MessageThreadId Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// ParseMode Mode for parsing entities in the document caption. See formatting options for more details.
ParseMode *string `json:"parse_mode,omitempty"`
// ProtectContent Protects the contents of the sent message from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// ReplyMarkup Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user
ReplyMarkup *struct {
// ForceReply Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'
ForceReply *bool `json:"force_reply,omitempty"`
// InlineKeyboard Array of button rows, each represented by an Array of InlineKeyboardButton objects
InlineKeyboard *[][]InlineKeyboardButton `json:"inline_keyboard,omitempty"`
// InputFieldPlaceholder Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters
InputFieldPlaceholder *string `json:"input_field_placeholder,omitempty"`
// IsPersistent Optional. Requests clients to always show the keyboard when the regular keyboard is hidden. Defaults to false, in which case the custom keyboard can be hidden and opened with a keyboard icon.
IsPersistent *bool `json:"is_persistent,omitempty"`
// Keyboard Array of button rows, each represented by an Array of KeyboardButton objects
Keyboard *[][]KeyboardButton `json:"keyboard,omitempty"`
// OneTimeKeyboard Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat - the user can press a special button in the input field to see the custom keyboard again. Defaults to false.
OneTimeKeyboard *bool `json:"one_time_keyboard,omitempty"`
// RemoveKeyboard Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)
RemoveKeyboard *bool `json:"remove_keyboard,omitempty"`
// ResizeKeyboard Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.
ResizeKeyboard *bool `json:"resize_keyboard,omitempty"`
// Selective Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.
Selective *bool `json:"selective,omitempty"`
} `json:"reply_markup,omitempty"`
// ReplyParameters Description of the message to reply to
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
// SuggestedPostParameters A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
// Thumbnail Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More information on Sending Files »
Thumbnail *string `json:"thumbnail,omitempty"`
}
SendDocumentJSONBody defines parameters for SendDocument.
type SendDocumentJSONRequestBody ¶
type SendDocumentJSONRequestBody SendDocumentJSONBody
SendDocumentJSONRequestBody defines body for SendDocument for application/json ContentType.
type SendDocumentMultipartBody ¶ added in v0.2.0
type SendDocumentMultipartBody struct {
// AllowPaidBroadcast Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
AllowPaidBroadcast *bool `json:"allow_paid_broadcast,omitempty"`
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message will be sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// Caption Document caption (may also be used when resending documents by file_id), 0-1024 characters after entities parsing
Caption *string `json:"caption,omitempty"`
// CaptionEntities A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode
CaptionEntities *[]MessageEntity `json:"caption_entities,omitempty"`
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// DirectMessagesTopicId Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
DirectMessagesTopicId *int `json:"direct_messages_topic_id,omitempty"`
// DisableContentTypeDetection Disables automatic server-side content type detection for files uploaded using multipart/form-data
DisableContentTypeDetection *bool `json:"disable_content_type_detection,omitempty"`
// DisableNotification Sends the message silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// Document File to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More information on Sending Files »
Document openapi_types.File `json:"document"`
// MessageEffectId Unique identifier of the message effect to be added to the message; for private chats only
MessageEffectId *string `json:"message_effect_id,omitempty"`
// MessageThreadId Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// ParseMode Mode for parsing entities in the document caption. See formatting options for more details.
ParseMode *string `json:"parse_mode,omitempty"`
// ProtectContent Protects the contents of the sent message from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// ReplyMarkup Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user
ReplyMarkup *struct {
// ForceReply Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'
ForceReply *bool `json:"force_reply,omitempty"`
// InlineKeyboard Array of button rows, each represented by an Array of InlineKeyboardButton objects
InlineKeyboard *[][]InlineKeyboardButton `json:"inline_keyboard,omitempty"`
// InputFieldPlaceholder Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters
InputFieldPlaceholder *string `json:"input_field_placeholder,omitempty"`
// IsPersistent Optional. Requests clients to always show the keyboard when the regular keyboard is hidden. Defaults to false, in which case the custom keyboard can be hidden and opened with a keyboard icon.
IsPersistent *bool `json:"is_persistent,omitempty"`
// Keyboard Array of button rows, each represented by an Array of KeyboardButton objects
Keyboard *[][]KeyboardButton `json:"keyboard,omitempty"`
// OneTimeKeyboard Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat - the user can press a special button in the input field to see the custom keyboard again. Defaults to false.
OneTimeKeyboard *bool `json:"one_time_keyboard,omitempty"`
// RemoveKeyboard Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)
RemoveKeyboard *bool `json:"remove_keyboard,omitempty"`
// ResizeKeyboard Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.
ResizeKeyboard *bool `json:"resize_keyboard,omitempty"`
// Selective Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.
Selective *bool `json:"selective,omitempty"`
} `json:"reply_markup,omitempty"`
// ReplyParameters Description of the message to reply to
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
// SuggestedPostParameters A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
// Thumbnail Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More information on Sending Files »
Thumbnail *openapi_types.File `json:"thumbnail,omitempty"`
}
SendDocumentMultipartBody defines parameters for SendDocument.
type SendDocumentMultipartRequestBody ¶ added in v0.2.0
type SendDocumentMultipartRequestBody SendDocumentMultipartBody
SendDocumentMultipartRequestBody defines body for SendDocument for multipart/form-data ContentType.
type SendDocumentResponse ¶
type SendDocumentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SendDocument200Ok `json:"ok"`
// Result This object represents a message.
Result Message `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSendDocumentResponse ¶
func ParseSendDocumentResponse(rsp *http.Response) (*SendDocumentResponse, error)
ParseSendDocumentResponse parses an HTTP response from a SendDocumentWithResponse call
func (SendDocumentResponse) Status ¶
func (r SendDocumentResponse) Status() string
Status returns HTTPResponse.Status
func (SendDocumentResponse) StatusCode ¶
func (r SendDocumentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendGame200Ok ¶
type SendGame200Ok bool
type SendGameJSONBody ¶
type SendGameJSONBody struct {
// AllowPaidBroadcast Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
AllowPaidBroadcast *bool `json:"allow_paid_broadcast,omitempty"`
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message will be sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// ChatId Unique identifier for the target chat. Games can't be sent to channel direct messages chats and channel chats.
ChatId int64 `json:"chat_id"`
// DisableNotification Sends the message silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// GameShortName Short name of the game, serves as the unique identifier for the game. Set up your games via @BotFather.
GameShortName string `json:"game_short_name"`
// MessageEffectId Unique identifier of the message effect to be added to the message; for private chats only
MessageEffectId *string `json:"message_effect_id,omitempty"`
// MessageThreadId Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// ProtectContent Protects the contents of the sent message from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// ReplyMarkup A JSON-serialized object for an inline keyboard. If empty, one 'Play game_title' button will be shown. If not empty, the first button must launch the game.
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
// ReplyParameters Description of the message to reply to
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
}
SendGameJSONBody defines parameters for SendGame.
type SendGameJSONRequestBody ¶
type SendGameJSONRequestBody SendGameJSONBody
SendGameJSONRequestBody defines body for SendGame for application/json ContentType.
type SendGameResponse ¶
type SendGameResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SendGame200Ok `json:"ok"`
// Result This object represents a message.
Result Message `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSendGameResponse ¶
func ParseSendGameResponse(rsp *http.Response) (*SendGameResponse, error)
ParseSendGameResponse parses an HTTP response from a SendGameWithResponse call
func (SendGameResponse) Status ¶
func (r SendGameResponse) Status() string
Status returns HTTPResponse.Status
func (SendGameResponse) StatusCode ¶
func (r SendGameResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendGift200Ok ¶
type SendGift200Ok bool
type SendGiftJSONBody ¶
type SendGiftJSONBody struct {
// ChatId Required if user_id is not specified. Unique identifier for the chat or username of the channel (in the format @channelusername) that will receive the gift.
ChatId *int64 `json:"chat_id,omitempty"`
// GiftId Identifier of the gift; limited gifts can't be sent to channel chats
GiftId string `json:"gift_id"`
// PayForUpgrade Pass True to pay for the gift upgrade from the bot's balance, thereby making the upgrade free for the receiver
PayForUpgrade *bool `json:"pay_for_upgrade,omitempty"`
// Text Text that will be shown along with the gift; 0-128 characters
Text *string `json:"text,omitempty"`
// TextEntities A JSON-serialized list of special entities that appear in the gift text. It can be specified instead of text_parse_mode. Entities other than “bold”, “italic”, “underline”, “strikethrough”, “spoiler”, and “custom_emoji” are ignored.
TextEntities *[]MessageEntity `json:"text_entities,omitempty"`
// TextParseMode Mode for parsing entities in the text. See formatting options for more details. Entities other than “bold”, “italic”, “underline”, “strikethrough”, “spoiler”, and “custom_emoji” are ignored.
TextParseMode *string `json:"text_parse_mode,omitempty"`
// UserId Required if chat_id is not specified. Unique identifier of the target user who will receive the gift.
UserId *int `json:"user_id,omitempty"`
}
SendGiftJSONBody defines parameters for SendGift.
type SendGiftJSONRequestBody ¶
type SendGiftJSONRequestBody SendGiftJSONBody
SendGiftJSONRequestBody defines body for SendGift for application/json ContentType.
type SendGiftResponse ¶
type SendGiftResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SendGift200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSendGiftResponse ¶
func ParseSendGiftResponse(rsp *http.Response) (*SendGiftResponse, error)
ParseSendGiftResponse parses an HTTP response from a SendGiftWithResponse call
func (SendGiftResponse) Status ¶
func (r SendGiftResponse) Status() string
Status returns HTTPResponse.Status
func (SendGiftResponse) StatusCode ¶
func (r SendGiftResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendInvoice200Ok ¶
type SendInvoice200Ok bool
type SendInvoiceJSONBody ¶
type SendInvoiceJSONBody struct {
// AllowPaidBroadcast Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
AllowPaidBroadcast *bool `json:"allow_paid_broadcast,omitempty"`
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// Currency Three-letter ISO 4217 currency code, see more on currencies. Pass “XTR” for payments in Telegram Stars.
Currency string `json:"currency"`
// Description Product description, 1-255 characters
Description string `json:"description"`
// DirectMessagesTopicId Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
DirectMessagesTopicId *int `json:"direct_messages_topic_id,omitempty"`
// DisableNotification Sends the message silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// IsFlexible Pass True if the final price depends on the shipping method. Ignored for payments in Telegram Stars.
IsFlexible *bool `json:"is_flexible,omitempty"`
// MaxTipAmount The maximum accepted amount for tips in the smallest units of the currency (integer, not float/double). For example, for a maximum tip of US$ 1.45 pass max_tip_amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). Defaults to 0. Not supported for payments in Telegram Stars.
MaxTipAmount *int `json:"max_tip_amount,omitempty"`
// MessageEffectId Unique identifier of the message effect to be added to the message; for private chats only
MessageEffectId *string `json:"message_effect_id,omitempty"`
// MessageThreadId Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// NeedEmail Pass True if you require the user's email address to complete the order. Ignored for payments in Telegram Stars.
NeedEmail *bool `json:"need_email,omitempty"`
// NeedName Pass True if you require the user's full name to complete the order. Ignored for payments in Telegram Stars.
NeedName *bool `json:"need_name,omitempty"`
// NeedPhoneNumber Pass True if you require the user's phone number to complete the order. Ignored for payments in Telegram Stars.
NeedPhoneNumber *bool `json:"need_phone_number,omitempty"`
// NeedShippingAddress Pass True if you require the user's shipping address to complete the order. Ignored for payments in Telegram Stars.
NeedShippingAddress *bool `json:"need_shipping_address,omitempty"`
// Payload Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes.
Payload string `json:"payload"`
// PhotoHeight Photo height
PhotoHeight *int `json:"photo_height,omitempty"`
// PhotoSize Photo size in bytes
PhotoSize *int `json:"photo_size,omitempty"`
// PhotoUrl URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for.
PhotoUrl *string `json:"photo_url,omitempty"`
// PhotoWidth Photo width
PhotoWidth *int `json:"photo_width,omitempty"`
// Prices Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.). Must contain exactly one item for payments in Telegram Stars.
Prices []LabeledPrice `json:"prices"`
// ProtectContent Protects the contents of the sent message from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// ProviderData JSON-serialized data about the invoice, which will be shared with the payment provider. A detailed description of required fields should be provided by the payment provider.
ProviderData *string `json:"provider_data,omitempty"`
// ProviderToken Payment provider token, obtained via @BotFather. Pass an empty string for payments in Telegram Stars.
ProviderToken *string `json:"provider_token,omitempty"`
// ReplyMarkup A JSON-serialized object for an inline keyboard. If empty, one 'Pay total price' button will be shown. If not empty, the first button must be a Pay button.
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
// ReplyParameters Description of the message to reply to
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
// SendEmailToProvider Pass True if the user's email address should be sent to the provider. Ignored for payments in Telegram Stars.
SendEmailToProvider *bool `json:"send_email_to_provider,omitempty"`
// SendPhoneNumberToProvider Pass True if the user's phone number should be sent to the provider. Ignored for payments in Telegram Stars.
SendPhoneNumberToProvider *bool `json:"send_phone_number_to_provider,omitempty"`
// StartParameter Unique deep-linking parameter. If left empty, forwarded copies of the sent message will have a Pay button, allowing multiple users to pay directly from the forwarded message, using the same invoice. If non-empty, forwarded copies of the sent message will have a URL button with a deep link to the bot (instead of a Pay button), with the value used as the start parameter
StartParameter *string `json:"start_parameter,omitempty"`
// SuggestedPostParameters A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
// SuggestedTipAmounts A JSON-serialized array of suggested amounts of tips in the smallest units of the currency (integer, not float/double). At most 4 suggested tip amounts can be specified. The suggested tip amounts must be positive, passed in a strictly increased order and must not exceed max_tip_amount.
SuggestedTipAmounts *[]int `json:"suggested_tip_amounts,omitempty"`
// Title Product name, 1-32 characters
Title string `json:"title"`
}
SendInvoiceJSONBody defines parameters for SendInvoice.
type SendInvoiceJSONRequestBody ¶
type SendInvoiceJSONRequestBody SendInvoiceJSONBody
SendInvoiceJSONRequestBody defines body for SendInvoice for application/json ContentType.
type SendInvoiceResponse ¶
type SendInvoiceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SendInvoice200Ok `json:"ok"`
// Result This object represents a message.
Result Message `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSendInvoiceResponse ¶
func ParseSendInvoiceResponse(rsp *http.Response) (*SendInvoiceResponse, error)
ParseSendInvoiceResponse parses an HTTP response from a SendInvoiceWithResponse call
func (SendInvoiceResponse) Status ¶
func (r SendInvoiceResponse) Status() string
Status returns HTTPResponse.Status
func (SendInvoiceResponse) StatusCode ¶
func (r SendInvoiceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendLocation200Ok ¶
type SendLocation200Ok bool
type SendLocationJSONBody ¶
type SendLocationJSONBody struct {
// AllowPaidBroadcast Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
AllowPaidBroadcast *bool `json:"allow_paid_broadcast,omitempty"`
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message will be sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// DirectMessagesTopicId Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
DirectMessagesTopicId *int `json:"direct_messages_topic_id,omitempty"`
// DisableNotification Sends the message silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// Heading For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.
Heading *int `json:"heading,omitempty"`
// HorizontalAccuracy The radius of uncertainty for the location, measured in meters; 0-1500
HorizontalAccuracy *float32 `json:"horizontal_accuracy,omitempty"`
// Latitude Latitude of the location
Latitude float32 `json:"latitude"`
// LivePeriod Period in seconds during which the location will be updated (see Live Locations, should be between 60 and 86400, or 0x7FFFFFFF for live locations that can be edited indefinitely.
LivePeriod *int `json:"live_period,omitempty"`
// Longitude Longitude of the location
Longitude float32 `json:"longitude"`
// MessageEffectId Unique identifier of the message effect to be added to the message; for private chats only
MessageEffectId *string `json:"message_effect_id,omitempty"`
// MessageThreadId Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// ProtectContent Protects the contents of the sent message from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// ProximityAlertRadius For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.
ProximityAlertRadius *int `json:"proximity_alert_radius,omitempty"`
// ReplyMarkup Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user
ReplyMarkup *struct {
// ForceReply Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'
ForceReply *bool `json:"force_reply,omitempty"`
// InlineKeyboard Array of button rows, each represented by an Array of InlineKeyboardButton objects
InlineKeyboard *[][]InlineKeyboardButton `json:"inline_keyboard,omitempty"`
// InputFieldPlaceholder Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters
InputFieldPlaceholder *string `json:"input_field_placeholder,omitempty"`
// IsPersistent Optional. Requests clients to always show the keyboard when the regular keyboard is hidden. Defaults to false, in which case the custom keyboard can be hidden and opened with a keyboard icon.
IsPersistent *bool `json:"is_persistent,omitempty"`
// Keyboard Array of button rows, each represented by an Array of KeyboardButton objects
Keyboard *[][]KeyboardButton `json:"keyboard,omitempty"`
// OneTimeKeyboard Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat - the user can press a special button in the input field to see the custom keyboard again. Defaults to false.
OneTimeKeyboard *bool `json:"one_time_keyboard,omitempty"`
// RemoveKeyboard Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)
RemoveKeyboard *bool `json:"remove_keyboard,omitempty"`
// ResizeKeyboard Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.
ResizeKeyboard *bool `json:"resize_keyboard,omitempty"`
// Selective Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.
Selective *bool `json:"selective,omitempty"`
} `json:"reply_markup,omitempty"`
// ReplyParameters Description of the message to reply to
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
// SuggestedPostParameters A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
}
SendLocationJSONBody defines parameters for SendLocation.
type SendLocationJSONRequestBody ¶
type SendLocationJSONRequestBody SendLocationJSONBody
SendLocationJSONRequestBody defines body for SendLocation for application/json ContentType.
type SendLocationResponse ¶
type SendLocationResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SendLocation200Ok `json:"ok"`
// Result This object represents a message.
Result Message `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSendLocationResponse ¶
func ParseSendLocationResponse(rsp *http.Response) (*SendLocationResponse, error)
ParseSendLocationResponse parses an HTTP response from a SendLocationWithResponse call
func (SendLocationResponse) Status ¶
func (r SendLocationResponse) Status() string
Status returns HTTPResponse.Status
func (SendLocationResponse) StatusCode ¶
func (r SendLocationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendMediaGroup200Ok ¶
type SendMediaGroup200Ok bool
type SendMediaGroupJSONBody ¶
type SendMediaGroupJSONBody struct {
// AllowPaidBroadcast Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
AllowPaidBroadcast *bool `json:"allow_paid_broadcast,omitempty"`
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message will be sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// DirectMessagesTopicId Identifier of the direct messages topic to which the messages will be sent; required if the messages are sent to a direct messages chat
DirectMessagesTopicId *int `json:"direct_messages_topic_id,omitempty"`
// DisableNotification Sends messages silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// Media A JSON-serialized array describing messages to be sent, must include 2-10 items
Media []InputMedia `json:"media"`
// MessageEffectId Unique identifier of the message effect to be added to the message; for private chats only
MessageEffectId *string `json:"message_effect_id,omitempty"`
// MessageThreadId Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// ProtectContent Protects the contents of the sent messages from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// ReplyParameters Description of the message to reply to
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
}
SendMediaGroupJSONBody defines parameters for SendMediaGroup.
type SendMediaGroupJSONRequestBody ¶
type SendMediaGroupJSONRequestBody SendMediaGroupJSONBody
SendMediaGroupJSONRequestBody defines body for SendMediaGroup for application/json ContentType.
type SendMediaGroupMultipartBody ¶ added in v0.2.0
type SendMediaGroupMultipartBody struct {
// AllowPaidBroadcast Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
AllowPaidBroadcast *bool `json:"allow_paid_broadcast,omitempty"`
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message will be sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// DirectMessagesTopicId Identifier of the direct messages topic to which the messages will be sent; required if the messages are sent to a direct messages chat
DirectMessagesTopicId *int `json:"direct_messages_topic_id,omitempty"`
// DisableNotification Sends messages silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// Media A JSON-serialized array describing messages to be sent, must include 2-10 items
Media []InputMedia `json:"media"`
// MessageEffectId Unique identifier of the message effect to be added to the message; for private chats only
MessageEffectId *string `json:"message_effect_id,omitempty"`
// MessageThreadId Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// ProtectContent Protects the contents of the sent messages from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// ReplyParameters Description of the message to reply to
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
}
SendMediaGroupMultipartBody defines parameters for SendMediaGroup.
type SendMediaGroupMultipartRequestBody ¶ added in v0.2.0
type SendMediaGroupMultipartRequestBody SendMediaGroupMultipartBody
SendMediaGroupMultipartRequestBody defines body for SendMediaGroup for multipart/form-data ContentType.
type SendMediaGroupResponse ¶
type SendMediaGroupResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SendMediaGroup200Ok `json:"ok"`
Result []Message `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSendMediaGroupResponse ¶
func ParseSendMediaGroupResponse(rsp *http.Response) (*SendMediaGroupResponse, error)
ParseSendMediaGroupResponse parses an HTTP response from a SendMediaGroupWithResponse call
func (SendMediaGroupResponse) Status ¶
func (r SendMediaGroupResponse) Status() string
Status returns HTTPResponse.Status
func (SendMediaGroupResponse) StatusCode ¶
func (r SendMediaGroupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendMessage200Ok ¶
type SendMessage200Ok bool
type SendMessageDraft200Ok ¶ added in v0.3.0
type SendMessageDraft200Ok bool
type SendMessageDraftJSONBody ¶ added in v0.3.0
type SendMessageDraftJSONBody struct {
// ChatId Unique identifier for the target private chat
ChatId int64 `json:"chat_id"`
// DraftId Unique identifier of the message draft; must be non-zero. Changes of drafts with the same identifier are animated
DraftId int `json:"draft_id"`
// Entities A JSON-serialized list of special entities that appear in message text, which can be specified instead of parse_mode
Entities *[]MessageEntity `json:"entities,omitempty"`
// MessageThreadId Unique identifier for the target message thread
MessageThreadId *int `json:"message_thread_id,omitempty"`
// ParseMode Mode for parsing entities in the message text. See formatting options for more details.
ParseMode *string `json:"parse_mode,omitempty"`
// Text Text of the message to be sent, 1-4096 characters after entities parsing
Text string `json:"text"`
}
SendMessageDraftJSONBody defines parameters for SendMessageDraft.
type SendMessageDraftJSONRequestBody ¶ added in v0.3.0
type SendMessageDraftJSONRequestBody SendMessageDraftJSONBody
SendMessageDraftJSONRequestBody defines body for SendMessageDraft for application/json ContentType.
type SendMessageDraftResponse ¶ added in v0.3.0
type SendMessageDraftResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SendMessageDraft200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSendMessageDraftResponse ¶ added in v0.3.0
func ParseSendMessageDraftResponse(rsp *http.Response) (*SendMessageDraftResponse, error)
ParseSendMessageDraftResponse parses an HTTP response from a SendMessageDraftWithResponse call
func (SendMessageDraftResponse) Status ¶ added in v0.3.0
func (r SendMessageDraftResponse) Status() string
Status returns HTTPResponse.Status
func (SendMessageDraftResponse) StatusCode ¶ added in v0.3.0
func (r SendMessageDraftResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendMessageJSONBody ¶
type SendMessageJSONBody struct {
// AllowPaidBroadcast Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
AllowPaidBroadcast *bool `json:"allow_paid_broadcast,omitempty"`
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message will be sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// DirectMessagesTopicId Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
DirectMessagesTopicId *int `json:"direct_messages_topic_id,omitempty"`
// DisableNotification Sends the message silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// Entities A JSON-serialized list of special entities that appear in message text, which can be specified instead of parse_mode
Entities *[]MessageEntity `json:"entities,omitempty"`
// LinkPreviewOptions Link preview generation options for the message
LinkPreviewOptions *LinkPreviewOptions `json:"link_preview_options,omitempty"`
// MessageEffectId Unique identifier of the message effect to be added to the message; for private chats only
MessageEffectId *string `json:"message_effect_id,omitempty"`
// MessageThreadId Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// ParseMode Mode for parsing entities in the message text. See formatting options for more details.
ParseMode *string `json:"parse_mode,omitempty"`
// ProtectContent Protects the contents of the sent message from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// ReplyMarkup Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user
ReplyMarkup *struct {
// ForceReply Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'
ForceReply *bool `json:"force_reply,omitempty"`
// InlineKeyboard Array of button rows, each represented by an Array of InlineKeyboardButton objects
InlineKeyboard *[][]InlineKeyboardButton `json:"inline_keyboard,omitempty"`
// InputFieldPlaceholder Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters
InputFieldPlaceholder *string `json:"input_field_placeholder,omitempty"`
// IsPersistent Optional. Requests clients to always show the keyboard when the regular keyboard is hidden. Defaults to false, in which case the custom keyboard can be hidden and opened with a keyboard icon.
IsPersistent *bool `json:"is_persistent,omitempty"`
// Keyboard Array of button rows, each represented by an Array of KeyboardButton objects
Keyboard *[][]KeyboardButton `json:"keyboard,omitempty"`
// OneTimeKeyboard Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat - the user can press a special button in the input field to see the custom keyboard again. Defaults to false.
OneTimeKeyboard *bool `json:"one_time_keyboard,omitempty"`
// RemoveKeyboard Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)
RemoveKeyboard *bool `json:"remove_keyboard,omitempty"`
// ResizeKeyboard Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.
ResizeKeyboard *bool `json:"resize_keyboard,omitempty"`
// Selective Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.
Selective *bool `json:"selective,omitempty"`
} `json:"reply_markup,omitempty"`
// ReplyParameters Description of the message to reply to
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
// SuggestedPostParameters A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
// Text Text of the message to be sent, 1-4096 characters after entities parsing
Text string `json:"text"`
}
SendMessageJSONBody defines parameters for SendMessage.
type SendMessageJSONRequestBody ¶
type SendMessageJSONRequestBody SendMessageJSONBody
SendMessageJSONRequestBody defines body for SendMessage for application/json ContentType.
type SendMessageResponse ¶
type SendMessageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SendMessage200Ok `json:"ok"`
// Result This object represents a message.
Result Message `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSendMessageResponse ¶
func ParseSendMessageResponse(rsp *http.Response) (*SendMessageResponse, error)
ParseSendMessageResponse parses an HTTP response from a SendMessageWithResponse call
func (SendMessageResponse) Status ¶
func (r SendMessageResponse) Status() string
Status returns HTTPResponse.Status
func (SendMessageResponse) StatusCode ¶
func (r SendMessageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendPaidMedia200Ok ¶
type SendPaidMedia200Ok bool
type SendPaidMediaJSONBody ¶
type SendPaidMediaJSONBody struct {
// AllowPaidBroadcast Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
AllowPaidBroadcast *bool `json:"allow_paid_broadcast,omitempty"`
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message will be sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// Caption Media caption, 0-1024 characters after entities parsing
Caption *string `json:"caption,omitempty"`
// CaptionEntities A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode
CaptionEntities *[]MessageEntity `json:"caption_entities,omitempty"`
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername). If the chat is a channel, all Telegram Star proceeds from this media will be credited to the chat's balance. Otherwise, they will be credited to the bot's balance.
ChatId int64 `json:"chat_id"`
// DirectMessagesTopicId Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
DirectMessagesTopicId *int `json:"direct_messages_topic_id,omitempty"`
// DisableNotification Sends the message silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// Media A JSON-serialized array describing the media to be sent; up to 10 items
Media []InputPaidMedia `json:"media"`
// MessageThreadId Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// ParseMode Mode for parsing entities in the media caption. See formatting options for more details.
ParseMode *string `json:"parse_mode,omitempty"`
// Payload Bot-defined paid media payload, 0-128 bytes. This will not be displayed to the user, use it for your internal processes.
Payload *string `json:"payload,omitempty"`
// ProtectContent Protects the contents of the sent message from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// ReplyMarkup Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user
ReplyMarkup *struct {
// ForceReply Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'
ForceReply *bool `json:"force_reply,omitempty"`
// InlineKeyboard Array of button rows, each represented by an Array of InlineKeyboardButton objects
InlineKeyboard *[][]InlineKeyboardButton `json:"inline_keyboard,omitempty"`
// InputFieldPlaceholder Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters
InputFieldPlaceholder *string `json:"input_field_placeholder,omitempty"`
// IsPersistent Optional. Requests clients to always show the keyboard when the regular keyboard is hidden. Defaults to false, in which case the custom keyboard can be hidden and opened with a keyboard icon.
IsPersistent *bool `json:"is_persistent,omitempty"`
// Keyboard Array of button rows, each represented by an Array of KeyboardButton objects
Keyboard *[][]KeyboardButton `json:"keyboard,omitempty"`
// OneTimeKeyboard Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat - the user can press a special button in the input field to see the custom keyboard again. Defaults to false.
OneTimeKeyboard *bool `json:"one_time_keyboard,omitempty"`
// RemoveKeyboard Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)
RemoveKeyboard *bool `json:"remove_keyboard,omitempty"`
// ResizeKeyboard Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.
ResizeKeyboard *bool `json:"resize_keyboard,omitempty"`
// Selective Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.
Selective *bool `json:"selective,omitempty"`
} `json:"reply_markup,omitempty"`
// ReplyParameters Description of the message to reply to
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
// ShowCaptionAboveMedia Pass True, if the caption must be shown above the message media
ShowCaptionAboveMedia *bool `json:"show_caption_above_media,omitempty"`
// StarCount The number of Telegram Stars that must be paid to buy access to the media; 1-25000
StarCount int `json:"star_count"`
// SuggestedPostParameters A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
}
SendPaidMediaJSONBody defines parameters for SendPaidMedia.
type SendPaidMediaJSONRequestBody ¶
type SendPaidMediaJSONRequestBody SendPaidMediaJSONBody
SendPaidMediaJSONRequestBody defines body for SendPaidMedia for application/json ContentType.
type SendPaidMediaResponse ¶
type SendPaidMediaResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SendPaidMedia200Ok `json:"ok"`
// Result This object represents a message.
Result Message `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSendPaidMediaResponse ¶
func ParseSendPaidMediaResponse(rsp *http.Response) (*SendPaidMediaResponse, error)
ParseSendPaidMediaResponse parses an HTTP response from a SendPaidMediaWithResponse call
func (SendPaidMediaResponse) Status ¶
func (r SendPaidMediaResponse) Status() string
Status returns HTTPResponse.Status
func (SendPaidMediaResponse) StatusCode ¶
func (r SendPaidMediaResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendPhoto200Ok ¶
type SendPhoto200Ok bool
type SendPhotoJSONBody ¶
type SendPhotoJSONBody struct {
// AllowPaidBroadcast Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
AllowPaidBroadcast *bool `json:"allow_paid_broadcast,omitempty"`
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message will be sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// Caption Photo caption (may also be used when resending photos by file_id), 0-1024 characters after entities parsing
Caption *string `json:"caption,omitempty"`
// CaptionEntities A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode
CaptionEntities *[]MessageEntity `json:"caption_entities,omitempty"`
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// DirectMessagesTopicId Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
DirectMessagesTopicId *int `json:"direct_messages_topic_id,omitempty"`
// DisableNotification Sends the message silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// HasSpoiler Pass True if the photo needs to be covered with a spoiler animation
HasSpoiler *bool `json:"has_spoiler,omitempty"`
// MessageEffectId Unique identifier of the message effect to be added to the message; for private chats only
MessageEffectId *string `json:"message_effect_id,omitempty"`
// MessageThreadId Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// ParseMode Mode for parsing entities in the photo caption. See formatting options for more details.
ParseMode *string `json:"parse_mode,omitempty"`
// Photo Photo to send. Pass a file_id as String to send a photo that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a photo from the Internet, or upload a new photo using multipart/form-data. The photo must be at most 10 MB in size. The photo's width and height must not exceed 10000 in total. Width and height ratio must be at most 20. More information on Sending Files »
Photo string `json:"photo"`
// ProtectContent Protects the contents of the sent message from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// ReplyMarkup Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user
ReplyMarkup *struct {
// ForceReply Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'
ForceReply *bool `json:"force_reply,omitempty"`
// InlineKeyboard Array of button rows, each represented by an Array of InlineKeyboardButton objects
InlineKeyboard *[][]InlineKeyboardButton `json:"inline_keyboard,omitempty"`
// InputFieldPlaceholder Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters
InputFieldPlaceholder *string `json:"input_field_placeholder,omitempty"`
// IsPersistent Optional. Requests clients to always show the keyboard when the regular keyboard is hidden. Defaults to false, in which case the custom keyboard can be hidden and opened with a keyboard icon.
IsPersistent *bool `json:"is_persistent,omitempty"`
// Keyboard Array of button rows, each represented by an Array of KeyboardButton objects
Keyboard *[][]KeyboardButton `json:"keyboard,omitempty"`
// OneTimeKeyboard Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat - the user can press a special button in the input field to see the custom keyboard again. Defaults to false.
OneTimeKeyboard *bool `json:"one_time_keyboard,omitempty"`
// RemoveKeyboard Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)
RemoveKeyboard *bool `json:"remove_keyboard,omitempty"`
// ResizeKeyboard Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.
ResizeKeyboard *bool `json:"resize_keyboard,omitempty"`
// Selective Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.
Selective *bool `json:"selective,omitempty"`
} `json:"reply_markup,omitempty"`
// ReplyParameters Description of the message to reply to
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
// ShowCaptionAboveMedia Pass True, if the caption must be shown above the message media
ShowCaptionAboveMedia *bool `json:"show_caption_above_media,omitempty"`
// SuggestedPostParameters A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
}
SendPhotoJSONBody defines parameters for SendPhoto.
type SendPhotoJSONRequestBody ¶
type SendPhotoJSONRequestBody SendPhotoJSONBody
SendPhotoJSONRequestBody defines body for SendPhoto for application/json ContentType.
type SendPhotoMultipartBody ¶ added in v0.2.0
type SendPhotoMultipartBody struct {
// AllowPaidBroadcast Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
AllowPaidBroadcast *bool `json:"allow_paid_broadcast,omitempty"`
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message will be sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// Caption Photo caption (may also be used when resending photos by file_id), 0-1024 characters after entities parsing
Caption *string `json:"caption,omitempty"`
// CaptionEntities A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode
CaptionEntities *[]MessageEntity `json:"caption_entities,omitempty"`
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// DirectMessagesTopicId Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
DirectMessagesTopicId *int `json:"direct_messages_topic_id,omitempty"`
// DisableNotification Sends the message silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// HasSpoiler Pass True if the photo needs to be covered with a spoiler animation
HasSpoiler *bool `json:"has_spoiler,omitempty"`
// MessageEffectId Unique identifier of the message effect to be added to the message; for private chats only
MessageEffectId *string `json:"message_effect_id,omitempty"`
// MessageThreadId Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// ParseMode Mode for parsing entities in the photo caption. See formatting options for more details.
ParseMode *string `json:"parse_mode,omitempty"`
// Photo Photo to send. Pass a file_id as String to send a photo that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a photo from the Internet, or upload a new photo using multipart/form-data. The photo must be at most 10 MB in size. The photo's width and height must not exceed 10000 in total. Width and height ratio must be at most 20. More information on Sending Files »
Photo openapi_types.File `json:"photo"`
// ProtectContent Protects the contents of the sent message from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// ReplyMarkup Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user
ReplyMarkup *struct {
// ForceReply Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'
ForceReply *bool `json:"force_reply,omitempty"`
// InlineKeyboard Array of button rows, each represented by an Array of InlineKeyboardButton objects
InlineKeyboard *[][]InlineKeyboardButton `json:"inline_keyboard,omitempty"`
// InputFieldPlaceholder Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters
InputFieldPlaceholder *string `json:"input_field_placeholder,omitempty"`
// IsPersistent Optional. Requests clients to always show the keyboard when the regular keyboard is hidden. Defaults to false, in which case the custom keyboard can be hidden and opened with a keyboard icon.
IsPersistent *bool `json:"is_persistent,omitempty"`
// Keyboard Array of button rows, each represented by an Array of KeyboardButton objects
Keyboard *[][]KeyboardButton `json:"keyboard,omitempty"`
// OneTimeKeyboard Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat - the user can press a special button in the input field to see the custom keyboard again. Defaults to false.
OneTimeKeyboard *bool `json:"one_time_keyboard,omitempty"`
// RemoveKeyboard Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)
RemoveKeyboard *bool `json:"remove_keyboard,omitempty"`
// ResizeKeyboard Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.
ResizeKeyboard *bool `json:"resize_keyboard,omitempty"`
// Selective Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.
Selective *bool `json:"selective,omitempty"`
} `json:"reply_markup,omitempty"`
// ReplyParameters Description of the message to reply to
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
// ShowCaptionAboveMedia Pass True, if the caption must be shown above the message media
ShowCaptionAboveMedia *bool `json:"show_caption_above_media,omitempty"`
// SuggestedPostParameters A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
}
SendPhotoMultipartBody defines parameters for SendPhoto.
type SendPhotoMultipartRequestBody ¶ added in v0.2.0
type SendPhotoMultipartRequestBody SendPhotoMultipartBody
SendPhotoMultipartRequestBody defines body for SendPhoto for multipart/form-data ContentType.
type SendPhotoResponse ¶
type SendPhotoResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SendPhoto200Ok `json:"ok"`
// Result This object represents a message.
Result Message `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSendPhotoResponse ¶
func ParseSendPhotoResponse(rsp *http.Response) (*SendPhotoResponse, error)
ParseSendPhotoResponse parses an HTTP response from a SendPhotoWithResponse call
func (SendPhotoResponse) Status ¶
func (r SendPhotoResponse) Status() string
Status returns HTTPResponse.Status
func (SendPhotoResponse) StatusCode ¶
func (r SendPhotoResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendPoll200Ok ¶
type SendPoll200Ok bool
type SendPollJSONBody ¶
type SendPollJSONBody struct {
// AllowPaidBroadcast Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
AllowPaidBroadcast *bool `json:"allow_paid_broadcast,omitempty"`
// AllowsMultipleAnswers True, if the poll allows multiple answers, ignored for polls in quiz mode, defaults to False
AllowsMultipleAnswers *bool `json:"allows_multiple_answers,omitempty"`
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message will be sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername). Polls can't be sent to channel direct messages chats.
ChatId int64 `json:"chat_id"`
// CloseDate Point in time (Unix timestamp) when the poll will be automatically closed. Must be at least 5 and no more than 600 seconds in the future. Can't be used together with open_period.
CloseDate *int `json:"close_date,omitempty"`
// CorrectOptionId 0-based identifier of the correct answer option, required for polls in quiz mode
CorrectOptionId *int `json:"correct_option_id,omitempty"`
// DisableNotification Sends the message silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// Explanation Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style poll, 0-200 characters with at most 2 line feeds after entities parsing
Explanation *string `json:"explanation,omitempty"`
// ExplanationEntities A JSON-serialized list of special entities that appear in the poll explanation. It can be specified instead of explanation_parse_mode
ExplanationEntities *[]MessageEntity `json:"explanation_entities,omitempty"`
// ExplanationParseMode Mode for parsing entities in the explanation. See formatting options for more details.
ExplanationParseMode *string `json:"explanation_parse_mode,omitempty"`
// IsAnonymous True, if the poll needs to be anonymous, defaults to True
IsAnonymous *bool `json:"is_anonymous,omitempty"`
// IsClosed Pass True if the poll needs to be immediately closed. This can be useful for poll preview.
IsClosed *bool `json:"is_closed,omitempty"`
// MessageEffectId Unique identifier of the message effect to be added to the message; for private chats only
MessageEffectId *string `json:"message_effect_id,omitempty"`
// MessageThreadId Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// OpenPeriod Amount of time in seconds the poll will be active after creation, 5-600. Can't be used together with close_date.
OpenPeriod *int `json:"open_period,omitempty"`
// Options A JSON-serialized list of 2-12 answer options
Options []InputPollOption `json:"options"`
// ProtectContent Protects the contents of the sent message from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// Question Poll question, 1-300 characters
Question string `json:"question"`
// QuestionEntities A JSON-serialized list of special entities that appear in the poll question. It can be specified instead of question_parse_mode
QuestionEntities *[]MessageEntity `json:"question_entities,omitempty"`
// QuestionParseMode Mode for parsing entities in the question. See formatting options for more details. Currently, only custom emoji entities are allowed
QuestionParseMode *string `json:"question_parse_mode,omitempty"`
// ReplyMarkup Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user
ReplyMarkup *struct {
// ForceReply Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'
ForceReply *bool `json:"force_reply,omitempty"`
// InlineKeyboard Array of button rows, each represented by an Array of InlineKeyboardButton objects
InlineKeyboard *[][]InlineKeyboardButton `json:"inline_keyboard,omitempty"`
// InputFieldPlaceholder Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters
InputFieldPlaceholder *string `json:"input_field_placeholder,omitempty"`
// IsPersistent Optional. Requests clients to always show the keyboard when the regular keyboard is hidden. Defaults to false, in which case the custom keyboard can be hidden and opened with a keyboard icon.
IsPersistent *bool `json:"is_persistent,omitempty"`
// Keyboard Array of button rows, each represented by an Array of KeyboardButton objects
Keyboard *[][]KeyboardButton `json:"keyboard,omitempty"`
// OneTimeKeyboard Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat - the user can press a special button in the input field to see the custom keyboard again. Defaults to false.
OneTimeKeyboard *bool `json:"one_time_keyboard,omitempty"`
// RemoveKeyboard Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)
RemoveKeyboard *bool `json:"remove_keyboard,omitempty"`
// ResizeKeyboard Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.
ResizeKeyboard *bool `json:"resize_keyboard,omitempty"`
// Selective Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.
Selective *bool `json:"selective,omitempty"`
} `json:"reply_markup,omitempty"`
// ReplyParameters Description of the message to reply to
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
// Type Poll type, “quiz” or “regular”, defaults to “regular”
Type *string `json:"type,omitempty"`
}
SendPollJSONBody defines parameters for SendPoll.
type SendPollJSONRequestBody ¶
type SendPollJSONRequestBody SendPollJSONBody
SendPollJSONRequestBody defines body for SendPoll for application/json ContentType.
type SendPollResponse ¶
type SendPollResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SendPoll200Ok `json:"ok"`
// Result This object represents a message.
Result Message `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSendPollResponse ¶
func ParseSendPollResponse(rsp *http.Response) (*SendPollResponse, error)
ParseSendPollResponse parses an HTTP response from a SendPollWithResponse call
func (SendPollResponse) Status ¶
func (r SendPollResponse) Status() string
Status returns HTTPResponse.Status
func (SendPollResponse) StatusCode ¶
func (r SendPollResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendSticker200Ok ¶
type SendSticker200Ok bool
type SendStickerJSONBody ¶
type SendStickerJSONBody struct {
// AllowPaidBroadcast Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
AllowPaidBroadcast *bool `json:"allow_paid_broadcast,omitempty"`
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message will be sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// DirectMessagesTopicId Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
DirectMessagesTopicId *int `json:"direct_messages_topic_id,omitempty"`
// DisableNotification Sends the message silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// Emoji Emoji associated with the sticker; only for just uploaded stickers
Emoji *string `json:"emoji,omitempty"`
// MessageEffectId Unique identifier of the message effect to be added to the message; for private chats only
MessageEffectId *string `json:"message_effect_id,omitempty"`
// MessageThreadId Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// ProtectContent Protects the contents of the sent message from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// ReplyMarkup Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user
ReplyMarkup *struct {
// ForceReply Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'
ForceReply *bool `json:"force_reply,omitempty"`
// InlineKeyboard Array of button rows, each represented by an Array of InlineKeyboardButton objects
InlineKeyboard *[][]InlineKeyboardButton `json:"inline_keyboard,omitempty"`
// InputFieldPlaceholder Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters
InputFieldPlaceholder *string `json:"input_field_placeholder,omitempty"`
// IsPersistent Optional. Requests clients to always show the keyboard when the regular keyboard is hidden. Defaults to false, in which case the custom keyboard can be hidden and opened with a keyboard icon.
IsPersistent *bool `json:"is_persistent,omitempty"`
// Keyboard Array of button rows, each represented by an Array of KeyboardButton objects
Keyboard *[][]KeyboardButton `json:"keyboard,omitempty"`
// OneTimeKeyboard Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat - the user can press a special button in the input field to see the custom keyboard again. Defaults to false.
OneTimeKeyboard *bool `json:"one_time_keyboard,omitempty"`
// RemoveKeyboard Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)
RemoveKeyboard *bool `json:"remove_keyboard,omitempty"`
// ResizeKeyboard Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.
ResizeKeyboard *bool `json:"resize_keyboard,omitempty"`
// Selective Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.
Selective *bool `json:"selective,omitempty"`
} `json:"reply_markup,omitempty"`
// ReplyParameters Description of the message to reply to
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
// Sticker Sticker to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a .WEBP sticker from the Internet, or upload a new .WEBP, .TGS, or .WEBM sticker using multipart/form-data. More information on Sending Files ». Video and animated stickers can't be sent via an HTTP URL.
Sticker string `json:"sticker"`
// SuggestedPostParameters A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
}
SendStickerJSONBody defines parameters for SendSticker.
type SendStickerJSONRequestBody ¶
type SendStickerJSONRequestBody SendStickerJSONBody
SendStickerJSONRequestBody defines body for SendSticker for application/json ContentType.
type SendStickerMultipartBody ¶ added in v0.2.0
type SendStickerMultipartBody struct {
// AllowPaidBroadcast Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
AllowPaidBroadcast *bool `json:"allow_paid_broadcast,omitempty"`
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message will be sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// DirectMessagesTopicId Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
DirectMessagesTopicId *int `json:"direct_messages_topic_id,omitempty"`
// DisableNotification Sends the message silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// Emoji Emoji associated with the sticker; only for just uploaded stickers
Emoji *string `json:"emoji,omitempty"`
// MessageEffectId Unique identifier of the message effect to be added to the message; for private chats only
MessageEffectId *string `json:"message_effect_id,omitempty"`
// MessageThreadId Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// ProtectContent Protects the contents of the sent message from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// ReplyMarkup Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user
ReplyMarkup *struct {
// ForceReply Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'
ForceReply *bool `json:"force_reply,omitempty"`
// InlineKeyboard Array of button rows, each represented by an Array of InlineKeyboardButton objects
InlineKeyboard *[][]InlineKeyboardButton `json:"inline_keyboard,omitempty"`
// InputFieldPlaceholder Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters
InputFieldPlaceholder *string `json:"input_field_placeholder,omitempty"`
// IsPersistent Optional. Requests clients to always show the keyboard when the regular keyboard is hidden. Defaults to false, in which case the custom keyboard can be hidden and opened with a keyboard icon.
IsPersistent *bool `json:"is_persistent,omitempty"`
// Keyboard Array of button rows, each represented by an Array of KeyboardButton objects
Keyboard *[][]KeyboardButton `json:"keyboard,omitempty"`
// OneTimeKeyboard Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat - the user can press a special button in the input field to see the custom keyboard again. Defaults to false.
OneTimeKeyboard *bool `json:"one_time_keyboard,omitempty"`
// RemoveKeyboard Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)
RemoveKeyboard *bool `json:"remove_keyboard,omitempty"`
// ResizeKeyboard Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.
ResizeKeyboard *bool `json:"resize_keyboard,omitempty"`
// Selective Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.
Selective *bool `json:"selective,omitempty"`
} `json:"reply_markup,omitempty"`
// ReplyParameters Description of the message to reply to
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
// Sticker Sticker to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a .WEBP sticker from the Internet, or upload a new .WEBP, .TGS, or .WEBM sticker using multipart/form-data. More information on Sending Files ». Video and animated stickers can't be sent via an HTTP URL.
Sticker openapi_types.File `json:"sticker"`
// SuggestedPostParameters A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
}
SendStickerMultipartBody defines parameters for SendSticker.
type SendStickerMultipartRequestBody ¶ added in v0.2.0
type SendStickerMultipartRequestBody SendStickerMultipartBody
SendStickerMultipartRequestBody defines body for SendSticker for multipart/form-data ContentType.
type SendStickerResponse ¶
type SendStickerResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SendSticker200Ok `json:"ok"`
// Result This object represents a message.
Result Message `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSendStickerResponse ¶
func ParseSendStickerResponse(rsp *http.Response) (*SendStickerResponse, error)
ParseSendStickerResponse parses an HTTP response from a SendStickerWithResponse call
func (SendStickerResponse) Status ¶
func (r SendStickerResponse) Status() string
Status returns HTTPResponse.Status
func (SendStickerResponse) StatusCode ¶
func (r SendStickerResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendVenue200Ok ¶
type SendVenue200Ok bool
type SendVenueJSONBody ¶
type SendVenueJSONBody struct {
// Address Address of the venue
Address string `json:"address"`
// AllowPaidBroadcast Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
AllowPaidBroadcast *bool `json:"allow_paid_broadcast,omitempty"`
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message will be sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// DirectMessagesTopicId Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
DirectMessagesTopicId *int `json:"direct_messages_topic_id,omitempty"`
// DisableNotification Sends the message silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// FoursquareId Foursquare identifier of the venue
FoursquareId *string `json:"foursquare_id,omitempty"`
// FoursquareType Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)
FoursquareType *string `json:"foursquare_type,omitempty"`
// GooglePlaceId Google Places identifier of the venue
GooglePlaceId *string `json:"google_place_id,omitempty"`
// GooglePlaceType Google Places type of the venue. (See supported types.)
GooglePlaceType *string `json:"google_place_type,omitempty"`
// Latitude Latitude of the venue
Latitude float32 `json:"latitude"`
// Longitude Longitude of the venue
Longitude float32 `json:"longitude"`
// MessageEffectId Unique identifier of the message effect to be added to the message; for private chats only
MessageEffectId *string `json:"message_effect_id,omitempty"`
// MessageThreadId Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// ProtectContent Protects the contents of the sent message from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// ReplyMarkup Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user
ReplyMarkup *struct {
// ForceReply Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'
ForceReply *bool `json:"force_reply,omitempty"`
// InlineKeyboard Array of button rows, each represented by an Array of InlineKeyboardButton objects
InlineKeyboard *[][]InlineKeyboardButton `json:"inline_keyboard,omitempty"`
// InputFieldPlaceholder Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters
InputFieldPlaceholder *string `json:"input_field_placeholder,omitempty"`
// IsPersistent Optional. Requests clients to always show the keyboard when the regular keyboard is hidden. Defaults to false, in which case the custom keyboard can be hidden and opened with a keyboard icon.
IsPersistent *bool `json:"is_persistent,omitempty"`
// Keyboard Array of button rows, each represented by an Array of KeyboardButton objects
Keyboard *[][]KeyboardButton `json:"keyboard,omitempty"`
// OneTimeKeyboard Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat - the user can press a special button in the input field to see the custom keyboard again. Defaults to false.
OneTimeKeyboard *bool `json:"one_time_keyboard,omitempty"`
// RemoveKeyboard Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)
RemoveKeyboard *bool `json:"remove_keyboard,omitempty"`
// ResizeKeyboard Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.
ResizeKeyboard *bool `json:"resize_keyboard,omitempty"`
// Selective Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.
Selective *bool `json:"selective,omitempty"`
} `json:"reply_markup,omitempty"`
// ReplyParameters Description of the message to reply to
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
// SuggestedPostParameters A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
// Title Name of the venue
Title string `json:"title"`
}
SendVenueJSONBody defines parameters for SendVenue.
type SendVenueJSONRequestBody ¶
type SendVenueJSONRequestBody SendVenueJSONBody
SendVenueJSONRequestBody defines body for SendVenue for application/json ContentType.
type SendVenueResponse ¶
type SendVenueResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SendVenue200Ok `json:"ok"`
// Result This object represents a message.
Result Message `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSendVenueResponse ¶
func ParseSendVenueResponse(rsp *http.Response) (*SendVenueResponse, error)
ParseSendVenueResponse parses an HTTP response from a SendVenueWithResponse call
func (SendVenueResponse) Status ¶
func (r SendVenueResponse) Status() string
Status returns HTTPResponse.Status
func (SendVenueResponse) StatusCode ¶
func (r SendVenueResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendVideo200Ok ¶
type SendVideo200Ok bool
type SendVideoJSONBody ¶
type SendVideoJSONBody struct {
// AllowPaidBroadcast Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
AllowPaidBroadcast *bool `json:"allow_paid_broadcast,omitempty"`
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message will be sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// Caption Video caption (may also be used when resending videos by file_id), 0-1024 characters after entities parsing
Caption *string `json:"caption,omitempty"`
// CaptionEntities A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode
CaptionEntities *[]MessageEntity `json:"caption_entities,omitempty"`
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// Cover Cover for the video in the message. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files »
Cover *string `json:"cover,omitempty"`
// DirectMessagesTopicId Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
DirectMessagesTopicId *int `json:"direct_messages_topic_id,omitempty"`
// DisableNotification Sends the message silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// Duration Duration of sent video in seconds
Duration *int `json:"duration,omitempty"`
// HasSpoiler Pass True if the video needs to be covered with a spoiler animation
HasSpoiler *bool `json:"has_spoiler,omitempty"`
// Height Video height
Height *int `json:"height,omitempty"`
// MessageEffectId Unique identifier of the message effect to be added to the message; for private chats only
MessageEffectId *string `json:"message_effect_id,omitempty"`
// MessageThreadId Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// ParseMode Mode for parsing entities in the video caption. See formatting options for more details.
ParseMode *string `json:"parse_mode,omitempty"`
// ProtectContent Protects the contents of the sent message from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// ReplyMarkup Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user
ReplyMarkup *struct {
// ForceReply Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'
ForceReply *bool `json:"force_reply,omitempty"`
// InlineKeyboard Array of button rows, each represented by an Array of InlineKeyboardButton objects
InlineKeyboard *[][]InlineKeyboardButton `json:"inline_keyboard,omitempty"`
// InputFieldPlaceholder Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters
InputFieldPlaceholder *string `json:"input_field_placeholder,omitempty"`
// IsPersistent Optional. Requests clients to always show the keyboard when the regular keyboard is hidden. Defaults to false, in which case the custom keyboard can be hidden and opened with a keyboard icon.
IsPersistent *bool `json:"is_persistent,omitempty"`
// Keyboard Array of button rows, each represented by an Array of KeyboardButton objects
Keyboard *[][]KeyboardButton `json:"keyboard,omitempty"`
// OneTimeKeyboard Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat - the user can press a special button in the input field to see the custom keyboard again. Defaults to false.
OneTimeKeyboard *bool `json:"one_time_keyboard,omitempty"`
// RemoveKeyboard Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)
RemoveKeyboard *bool `json:"remove_keyboard,omitempty"`
// ResizeKeyboard Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.
ResizeKeyboard *bool `json:"resize_keyboard,omitempty"`
// Selective Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.
Selective *bool `json:"selective,omitempty"`
} `json:"reply_markup,omitempty"`
// ReplyParameters Description of the message to reply to
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
// ShowCaptionAboveMedia Pass True, if the caption must be shown above the message media
ShowCaptionAboveMedia *bool `json:"show_caption_above_media,omitempty"`
// StartTimestamp Start timestamp for the video in the message
StartTimestamp *int `json:"start_timestamp,omitempty"`
// SuggestedPostParameters A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
// SupportsStreaming Pass True if the uploaded video is suitable for streaming
SupportsStreaming *bool `json:"supports_streaming,omitempty"`
// Thumbnail Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More information on Sending Files »
Thumbnail *string `json:"thumbnail,omitempty"`
// Video Video to send. Pass a file_id as String to send a video that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a video from the Internet, or upload a new video using multipart/form-data. More information on Sending Files »
Video string `json:"video"`
// Width Video width
Width *int `json:"width,omitempty"`
}
SendVideoJSONBody defines parameters for SendVideo.
type SendVideoJSONRequestBody ¶
type SendVideoJSONRequestBody SendVideoJSONBody
SendVideoJSONRequestBody defines body for SendVideo for application/json ContentType.
type SendVideoMultipartBody ¶ added in v0.2.0
type SendVideoMultipartBody struct {
// AllowPaidBroadcast Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
AllowPaidBroadcast *bool `json:"allow_paid_broadcast,omitempty"`
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message will be sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// Caption Video caption (may also be used when resending videos by file_id), 0-1024 characters after entities parsing
Caption *string `json:"caption,omitempty"`
// CaptionEntities A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode
CaptionEntities *[]MessageEntity `json:"caption_entities,omitempty"`
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// Cover Cover for the video in the message. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files »
Cover *openapi_types.File `json:"cover,omitempty"`
// DirectMessagesTopicId Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
DirectMessagesTopicId *int `json:"direct_messages_topic_id,omitempty"`
// DisableNotification Sends the message silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// Duration Duration of sent video in seconds
Duration *int `json:"duration,omitempty"`
// HasSpoiler Pass True if the video needs to be covered with a spoiler animation
HasSpoiler *bool `json:"has_spoiler,omitempty"`
// Height Video height
Height *int `json:"height,omitempty"`
// MessageEffectId Unique identifier of the message effect to be added to the message; for private chats only
MessageEffectId *string `json:"message_effect_id,omitempty"`
// MessageThreadId Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// ParseMode Mode for parsing entities in the video caption. See formatting options for more details.
ParseMode *string `json:"parse_mode,omitempty"`
// ProtectContent Protects the contents of the sent message from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// ReplyMarkup Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user
ReplyMarkup *struct {
// ForceReply Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'
ForceReply *bool `json:"force_reply,omitempty"`
// InlineKeyboard Array of button rows, each represented by an Array of InlineKeyboardButton objects
InlineKeyboard *[][]InlineKeyboardButton `json:"inline_keyboard,omitempty"`
// InputFieldPlaceholder Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters
InputFieldPlaceholder *string `json:"input_field_placeholder,omitempty"`
// IsPersistent Optional. Requests clients to always show the keyboard when the regular keyboard is hidden. Defaults to false, in which case the custom keyboard can be hidden and opened with a keyboard icon.
IsPersistent *bool `json:"is_persistent,omitempty"`
// Keyboard Array of button rows, each represented by an Array of KeyboardButton objects
Keyboard *[][]KeyboardButton `json:"keyboard,omitempty"`
// OneTimeKeyboard Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat - the user can press a special button in the input field to see the custom keyboard again. Defaults to false.
OneTimeKeyboard *bool `json:"one_time_keyboard,omitempty"`
// RemoveKeyboard Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)
RemoveKeyboard *bool `json:"remove_keyboard,omitempty"`
// ResizeKeyboard Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.
ResizeKeyboard *bool `json:"resize_keyboard,omitempty"`
// Selective Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.
Selective *bool `json:"selective,omitempty"`
} `json:"reply_markup,omitempty"`
// ReplyParameters Description of the message to reply to
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
// ShowCaptionAboveMedia Pass True, if the caption must be shown above the message media
ShowCaptionAboveMedia *bool `json:"show_caption_above_media,omitempty"`
// StartTimestamp Start timestamp for the video in the message
StartTimestamp *int `json:"start_timestamp,omitempty"`
// SuggestedPostParameters A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
// SupportsStreaming Pass True if the uploaded video is suitable for streaming
SupportsStreaming *bool `json:"supports_streaming,omitempty"`
// Thumbnail Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More information on Sending Files »
Thumbnail *openapi_types.File `json:"thumbnail,omitempty"`
// Video Video to send. Pass a file_id as String to send a video that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a video from the Internet, or upload a new video using multipart/form-data. More information on Sending Files »
Video openapi_types.File `json:"video"`
// Width Video width
Width *int `json:"width,omitempty"`
}
SendVideoMultipartBody defines parameters for SendVideo.
type SendVideoMultipartRequestBody ¶ added in v0.2.0
type SendVideoMultipartRequestBody SendVideoMultipartBody
SendVideoMultipartRequestBody defines body for SendVideo for multipart/form-data ContentType.
type SendVideoNote200Ok ¶
type SendVideoNote200Ok bool
type SendVideoNoteJSONBody ¶
type SendVideoNoteJSONBody struct {
// AllowPaidBroadcast Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
AllowPaidBroadcast *bool `json:"allow_paid_broadcast,omitempty"`
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message will be sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// DirectMessagesTopicId Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
DirectMessagesTopicId *int `json:"direct_messages_topic_id,omitempty"`
// DisableNotification Sends the message silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// Duration Duration of sent video in seconds
Duration *int `json:"duration,omitempty"`
// Length Video width and height, i.e. diameter of the video message
Length *int `json:"length,omitempty"`
// MessageEffectId Unique identifier of the message effect to be added to the message; for private chats only
MessageEffectId *string `json:"message_effect_id,omitempty"`
// MessageThreadId Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// ProtectContent Protects the contents of the sent message from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// ReplyMarkup Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user
ReplyMarkup *struct {
// ForceReply Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'
ForceReply *bool `json:"force_reply,omitempty"`
// InlineKeyboard Array of button rows, each represented by an Array of InlineKeyboardButton objects
InlineKeyboard *[][]InlineKeyboardButton `json:"inline_keyboard,omitempty"`
// InputFieldPlaceholder Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters
InputFieldPlaceholder *string `json:"input_field_placeholder,omitempty"`
// IsPersistent Optional. Requests clients to always show the keyboard when the regular keyboard is hidden. Defaults to false, in which case the custom keyboard can be hidden and opened with a keyboard icon.
IsPersistent *bool `json:"is_persistent,omitempty"`
// Keyboard Array of button rows, each represented by an Array of KeyboardButton objects
Keyboard *[][]KeyboardButton `json:"keyboard,omitempty"`
// OneTimeKeyboard Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat - the user can press a special button in the input field to see the custom keyboard again. Defaults to false.
OneTimeKeyboard *bool `json:"one_time_keyboard,omitempty"`
// RemoveKeyboard Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)
RemoveKeyboard *bool `json:"remove_keyboard,omitempty"`
// ResizeKeyboard Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.
ResizeKeyboard *bool `json:"resize_keyboard,omitempty"`
// Selective Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.
Selective *bool `json:"selective,omitempty"`
} `json:"reply_markup,omitempty"`
// ReplyParameters Description of the message to reply to
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
// SuggestedPostParameters A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
// Thumbnail Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More information on Sending Files »
Thumbnail *string `json:"thumbnail,omitempty"`
// VideoNote Video note to send. Pass a file_id as String to send a video note that exists on the Telegram servers (recommended) or upload a new video using multipart/form-data. More information on Sending Files ». Sending video notes by a URL is currently unsupported
VideoNote string `json:"video_note"`
}
SendVideoNoteJSONBody defines parameters for SendVideoNote.
type SendVideoNoteJSONRequestBody ¶
type SendVideoNoteJSONRequestBody SendVideoNoteJSONBody
SendVideoNoteJSONRequestBody defines body for SendVideoNote for application/json ContentType.
type SendVideoNoteMultipartBody ¶ added in v0.2.0
type SendVideoNoteMultipartBody struct {
// AllowPaidBroadcast Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
AllowPaidBroadcast *bool `json:"allow_paid_broadcast,omitempty"`
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message will be sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// DirectMessagesTopicId Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
DirectMessagesTopicId *int `json:"direct_messages_topic_id,omitempty"`
// DisableNotification Sends the message silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// Duration Duration of sent video in seconds
Duration *int `json:"duration,omitempty"`
// Length Video width and height, i.e. diameter of the video message
Length *int `json:"length,omitempty"`
// MessageEffectId Unique identifier of the message effect to be added to the message; for private chats only
MessageEffectId *string `json:"message_effect_id,omitempty"`
// MessageThreadId Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// ProtectContent Protects the contents of the sent message from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// ReplyMarkup Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user
ReplyMarkup *struct {
// ForceReply Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'
ForceReply *bool `json:"force_reply,omitempty"`
// InlineKeyboard Array of button rows, each represented by an Array of InlineKeyboardButton objects
InlineKeyboard *[][]InlineKeyboardButton `json:"inline_keyboard,omitempty"`
// InputFieldPlaceholder Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters
InputFieldPlaceholder *string `json:"input_field_placeholder,omitempty"`
// IsPersistent Optional. Requests clients to always show the keyboard when the regular keyboard is hidden. Defaults to false, in which case the custom keyboard can be hidden and opened with a keyboard icon.
IsPersistent *bool `json:"is_persistent,omitempty"`
// Keyboard Array of button rows, each represented by an Array of KeyboardButton objects
Keyboard *[][]KeyboardButton `json:"keyboard,omitempty"`
// OneTimeKeyboard Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat - the user can press a special button in the input field to see the custom keyboard again. Defaults to false.
OneTimeKeyboard *bool `json:"one_time_keyboard,omitempty"`
// RemoveKeyboard Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)
RemoveKeyboard *bool `json:"remove_keyboard,omitempty"`
// ResizeKeyboard Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.
ResizeKeyboard *bool `json:"resize_keyboard,omitempty"`
// Selective Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.
Selective *bool `json:"selective,omitempty"`
} `json:"reply_markup,omitempty"`
// ReplyParameters Description of the message to reply to
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
// SuggestedPostParameters A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
// Thumbnail Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More information on Sending Files »
Thumbnail *openapi_types.File `json:"thumbnail,omitempty"`
// VideoNote Video note to send. Pass a file_id as String to send a video note that exists on the Telegram servers (recommended) or upload a new video using multipart/form-data. More information on Sending Files ». Sending video notes by a URL is currently unsupported
VideoNote openapi_types.File `json:"video_note"`
}
SendVideoNoteMultipartBody defines parameters for SendVideoNote.
type SendVideoNoteMultipartRequestBody ¶ added in v0.2.0
type SendVideoNoteMultipartRequestBody SendVideoNoteMultipartBody
SendVideoNoteMultipartRequestBody defines body for SendVideoNote for multipart/form-data ContentType.
type SendVideoNoteResponse ¶
type SendVideoNoteResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SendVideoNote200Ok `json:"ok"`
// Result This object represents a message.
Result Message `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSendVideoNoteResponse ¶
func ParseSendVideoNoteResponse(rsp *http.Response) (*SendVideoNoteResponse, error)
ParseSendVideoNoteResponse parses an HTTP response from a SendVideoNoteWithResponse call
func (SendVideoNoteResponse) Status ¶
func (r SendVideoNoteResponse) Status() string
Status returns HTTPResponse.Status
func (SendVideoNoteResponse) StatusCode ¶
func (r SendVideoNoteResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendVideoResponse ¶
type SendVideoResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SendVideo200Ok `json:"ok"`
// Result This object represents a message.
Result Message `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSendVideoResponse ¶
func ParseSendVideoResponse(rsp *http.Response) (*SendVideoResponse, error)
ParseSendVideoResponse parses an HTTP response from a SendVideoWithResponse call
func (SendVideoResponse) Status ¶
func (r SendVideoResponse) Status() string
Status returns HTTPResponse.Status
func (SendVideoResponse) StatusCode ¶
func (r SendVideoResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendVoice200Ok ¶
type SendVoice200Ok bool
type SendVoiceJSONBody ¶
type SendVoiceJSONBody struct {
// AllowPaidBroadcast Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
AllowPaidBroadcast *bool `json:"allow_paid_broadcast,omitempty"`
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message will be sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// Caption Voice message caption, 0-1024 characters after entities parsing
Caption *string `json:"caption,omitempty"`
// CaptionEntities A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode
CaptionEntities *[]MessageEntity `json:"caption_entities,omitempty"`
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// DirectMessagesTopicId Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
DirectMessagesTopicId *int `json:"direct_messages_topic_id,omitempty"`
// DisableNotification Sends the message silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// Duration Duration of the voice message in seconds
Duration *int `json:"duration,omitempty"`
// MessageEffectId Unique identifier of the message effect to be added to the message; for private chats only
MessageEffectId *string `json:"message_effect_id,omitempty"`
// MessageThreadId Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// ParseMode Mode for parsing entities in the voice message caption. See formatting options for more details.
ParseMode *string `json:"parse_mode,omitempty"`
// ProtectContent Protects the contents of the sent message from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// ReplyMarkup Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user
ReplyMarkup *struct {
// ForceReply Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'
ForceReply *bool `json:"force_reply,omitempty"`
// InlineKeyboard Array of button rows, each represented by an Array of InlineKeyboardButton objects
InlineKeyboard *[][]InlineKeyboardButton `json:"inline_keyboard,omitempty"`
// InputFieldPlaceholder Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters
InputFieldPlaceholder *string `json:"input_field_placeholder,omitempty"`
// IsPersistent Optional. Requests clients to always show the keyboard when the regular keyboard is hidden. Defaults to false, in which case the custom keyboard can be hidden and opened with a keyboard icon.
IsPersistent *bool `json:"is_persistent,omitempty"`
// Keyboard Array of button rows, each represented by an Array of KeyboardButton objects
Keyboard *[][]KeyboardButton `json:"keyboard,omitempty"`
// OneTimeKeyboard Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat - the user can press a special button in the input field to see the custom keyboard again. Defaults to false.
OneTimeKeyboard *bool `json:"one_time_keyboard,omitempty"`
// RemoveKeyboard Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)
RemoveKeyboard *bool `json:"remove_keyboard,omitempty"`
// ResizeKeyboard Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.
ResizeKeyboard *bool `json:"resize_keyboard,omitempty"`
// Selective Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.
Selective *bool `json:"selective,omitempty"`
} `json:"reply_markup,omitempty"`
// ReplyParameters Description of the message to reply to
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
// SuggestedPostParameters A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
// Voice Audio file to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More information on Sending Files »
Voice string `json:"voice"`
}
SendVoiceJSONBody defines parameters for SendVoice.
type SendVoiceJSONRequestBody ¶
type SendVoiceJSONRequestBody SendVoiceJSONBody
SendVoiceJSONRequestBody defines body for SendVoice for application/json ContentType.
type SendVoiceMultipartBody ¶ added in v0.2.0
type SendVoiceMultipartBody struct {
// AllowPaidBroadcast Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
AllowPaidBroadcast *bool `json:"allow_paid_broadcast,omitempty"`
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message will be sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// Caption Voice message caption, 0-1024 characters after entities parsing
Caption *string `json:"caption,omitempty"`
// CaptionEntities A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode
CaptionEntities *[]MessageEntity `json:"caption_entities,omitempty"`
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// DirectMessagesTopicId Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat
DirectMessagesTopicId *int `json:"direct_messages_topic_id,omitempty"`
// DisableNotification Sends the message silently. Users will receive a notification with no sound.
DisableNotification *bool `json:"disable_notification,omitempty"`
// Duration Duration of the voice message in seconds
Duration *int `json:"duration,omitempty"`
// MessageEffectId Unique identifier of the message effect to be added to the message; for private chats only
MessageEffectId *string `json:"message_effect_id,omitempty"`
// MessageThreadId Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only
MessageThreadId *int `json:"message_thread_id,omitempty"`
// ParseMode Mode for parsing entities in the voice message caption. See formatting options for more details.
ParseMode *string `json:"parse_mode,omitempty"`
// ProtectContent Protects the contents of the sent message from forwarding and saving
ProtectContent *bool `json:"protect_content,omitempty"`
// ReplyMarkup Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user
ReplyMarkup *struct {
// ForceReply Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'
ForceReply *bool `json:"force_reply,omitempty"`
// InlineKeyboard Array of button rows, each represented by an Array of InlineKeyboardButton objects
InlineKeyboard *[][]InlineKeyboardButton `json:"inline_keyboard,omitempty"`
// InputFieldPlaceholder Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters
InputFieldPlaceholder *string `json:"input_field_placeholder,omitempty"`
// IsPersistent Optional. Requests clients to always show the keyboard when the regular keyboard is hidden. Defaults to false, in which case the custom keyboard can be hidden and opened with a keyboard icon.
IsPersistent *bool `json:"is_persistent,omitempty"`
// Keyboard Array of button rows, each represented by an Array of KeyboardButton objects
Keyboard *[][]KeyboardButton `json:"keyboard,omitempty"`
// OneTimeKeyboard Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat - the user can press a special button in the input field to see the custom keyboard again. Defaults to false.
OneTimeKeyboard *bool `json:"one_time_keyboard,omitempty"`
// RemoveKeyboard Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)
RemoveKeyboard *bool `json:"remove_keyboard,omitempty"`
// ResizeKeyboard Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.
ResizeKeyboard *bool `json:"resize_keyboard,omitempty"`
// Selective Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.
Selective *bool `json:"selective,omitempty"`
} `json:"reply_markup,omitempty"`
// ReplyParameters Description of the message to reply to
ReplyParameters *ReplyParameters `json:"reply_parameters,omitempty"`
// SuggestedPostParameters A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined.
SuggestedPostParameters *SuggestedPostParameters `json:"suggested_post_parameters,omitempty"`
// Voice Audio file to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More information on Sending Files »
Voice openapi_types.File `json:"voice"`
}
SendVoiceMultipartBody defines parameters for SendVoice.
type SendVoiceMultipartRequestBody ¶ added in v0.2.0
type SendVoiceMultipartRequestBody SendVoiceMultipartBody
SendVoiceMultipartRequestBody defines body for SendVoice for multipart/form-data ContentType.
type SendVoiceResponse ¶
type SendVoiceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SendVoice200Ok `json:"ok"`
// Result This object represents a message.
Result Message `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSendVoiceResponse ¶
func ParseSendVoiceResponse(rsp *http.Response) (*SendVoiceResponse, error)
ParseSendVoiceResponse parses an HTTP response from a SendVoiceWithResponse call
func (SendVoiceResponse) Status ¶
func (r SendVoiceResponse) Status() string
Status returns HTTPResponse.Status
func (SendVoiceResponse) StatusCode ¶
func (r SendVoiceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SentWebAppMessage ¶
type SentWebAppMessage struct {
// InlineMessageId Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message.
InlineMessageId *string `json:"inline_message_id,omitempty"`
}
SentWebAppMessage Describes an inline message sent by a Web App on behalf of a user.
type ServerUrlTelegramBotAPIEndpointSubstituteBotTokenWithYourBotTokenBotTokenVariable ¶
type ServerUrlTelegramBotAPIEndpointSubstituteBotTokenWithYourBotTokenBotTokenVariable string
ServerUrlTelegramBotAPIEndpointSubstituteBotTokenWithYourBotTokenBotTokenVariable is the `botToken` variable for ServerUrlTelegramBotAPIEndpointSubstituteBotTokenWithYourBotToken
type SetBusinessAccountBio200Ok ¶
type SetBusinessAccountBio200Ok bool
type SetBusinessAccountBioJSONBody ¶
type SetBusinessAccountBioJSONBody struct {
// Bio The new value of the bio for the business account; 0-140 characters
Bio *string `json:"bio,omitempty"`
// BusinessConnectionId Unique identifier of the business connection
BusinessConnectionId string `json:"business_connection_id"`
}
SetBusinessAccountBioJSONBody defines parameters for SetBusinessAccountBio.
type SetBusinessAccountBioJSONRequestBody ¶
type SetBusinessAccountBioJSONRequestBody SetBusinessAccountBioJSONBody
SetBusinessAccountBioJSONRequestBody defines body for SetBusinessAccountBio for application/json ContentType.
type SetBusinessAccountBioResponse ¶
type SetBusinessAccountBioResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SetBusinessAccountBio200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSetBusinessAccountBioResponse ¶
func ParseSetBusinessAccountBioResponse(rsp *http.Response) (*SetBusinessAccountBioResponse, error)
ParseSetBusinessAccountBioResponse parses an HTTP response from a SetBusinessAccountBioWithResponse call
func (SetBusinessAccountBioResponse) Status ¶
func (r SetBusinessAccountBioResponse) Status() string
Status returns HTTPResponse.Status
func (SetBusinessAccountBioResponse) StatusCode ¶
func (r SetBusinessAccountBioResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetBusinessAccountGiftSettings200Ok ¶
type SetBusinessAccountGiftSettings200Ok bool
type SetBusinessAccountGiftSettingsJSONBody ¶
type SetBusinessAccountGiftSettingsJSONBody struct {
// AcceptedGiftTypes Types of gifts accepted by the business account
AcceptedGiftTypes AcceptedGiftTypes `json:"accepted_gift_types"`
// BusinessConnectionId Unique identifier of the business connection
BusinessConnectionId string `json:"business_connection_id"`
// ShowGiftButton Pass True, if a button for sending a gift to the user or by the business account must always be shown in the input field
ShowGiftButton bool `json:"show_gift_button"`
}
SetBusinessAccountGiftSettingsJSONBody defines parameters for SetBusinessAccountGiftSettings.
type SetBusinessAccountGiftSettingsJSONRequestBody ¶
type SetBusinessAccountGiftSettingsJSONRequestBody SetBusinessAccountGiftSettingsJSONBody
SetBusinessAccountGiftSettingsJSONRequestBody defines body for SetBusinessAccountGiftSettings for application/json ContentType.
type SetBusinessAccountGiftSettingsResponse ¶
type SetBusinessAccountGiftSettingsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SetBusinessAccountGiftSettings200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSetBusinessAccountGiftSettingsResponse ¶
func ParseSetBusinessAccountGiftSettingsResponse(rsp *http.Response) (*SetBusinessAccountGiftSettingsResponse, error)
ParseSetBusinessAccountGiftSettingsResponse parses an HTTP response from a SetBusinessAccountGiftSettingsWithResponse call
func (SetBusinessAccountGiftSettingsResponse) Status ¶
func (r SetBusinessAccountGiftSettingsResponse) Status() string
Status returns HTTPResponse.Status
func (SetBusinessAccountGiftSettingsResponse) StatusCode ¶
func (r SetBusinessAccountGiftSettingsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetBusinessAccountName200Ok ¶
type SetBusinessAccountName200Ok bool
type SetBusinessAccountNameJSONBody ¶
type SetBusinessAccountNameJSONBody struct {
// BusinessConnectionId Unique identifier of the business connection
BusinessConnectionId string `json:"business_connection_id"`
// FirstName The new value of the first name for the business account; 1-64 characters
FirstName string `json:"first_name"`
// LastName The new value of the last name for the business account; 0-64 characters
LastName *string `json:"last_name,omitempty"`
}
SetBusinessAccountNameJSONBody defines parameters for SetBusinessAccountName.
type SetBusinessAccountNameJSONRequestBody ¶
type SetBusinessAccountNameJSONRequestBody SetBusinessAccountNameJSONBody
SetBusinessAccountNameJSONRequestBody defines body for SetBusinessAccountName for application/json ContentType.
type SetBusinessAccountNameResponse ¶
type SetBusinessAccountNameResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SetBusinessAccountName200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSetBusinessAccountNameResponse ¶
func ParseSetBusinessAccountNameResponse(rsp *http.Response) (*SetBusinessAccountNameResponse, error)
ParseSetBusinessAccountNameResponse parses an HTTP response from a SetBusinessAccountNameWithResponse call
func (SetBusinessAccountNameResponse) Status ¶
func (r SetBusinessAccountNameResponse) Status() string
Status returns HTTPResponse.Status
func (SetBusinessAccountNameResponse) StatusCode ¶
func (r SetBusinessAccountNameResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetBusinessAccountProfilePhoto200Ok ¶
type SetBusinessAccountProfilePhoto200Ok bool
type SetBusinessAccountProfilePhotoJSONBody ¶
type SetBusinessAccountProfilePhotoJSONBody struct {
// BusinessConnectionId Unique identifier of the business connection
BusinessConnectionId string `json:"business_connection_id"`
// IsPublic Pass True to set the public photo, which will be visible even if the main photo is hidden by the business account's privacy settings. An account can have only one public photo.
IsPublic *bool `json:"is_public,omitempty"`
// Photo The new profile photo to set
Photo InputProfilePhoto `json:"photo"`
}
SetBusinessAccountProfilePhotoJSONBody defines parameters for SetBusinessAccountProfilePhoto.
type SetBusinessAccountProfilePhotoJSONRequestBody ¶
type SetBusinessAccountProfilePhotoJSONRequestBody SetBusinessAccountProfilePhotoJSONBody
SetBusinessAccountProfilePhotoJSONRequestBody defines body for SetBusinessAccountProfilePhoto for application/json ContentType.
type SetBusinessAccountProfilePhotoResponse ¶
type SetBusinessAccountProfilePhotoResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SetBusinessAccountProfilePhoto200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSetBusinessAccountProfilePhotoResponse ¶
func ParseSetBusinessAccountProfilePhotoResponse(rsp *http.Response) (*SetBusinessAccountProfilePhotoResponse, error)
ParseSetBusinessAccountProfilePhotoResponse parses an HTTP response from a SetBusinessAccountProfilePhotoWithResponse call
func (SetBusinessAccountProfilePhotoResponse) Status ¶
func (r SetBusinessAccountProfilePhotoResponse) Status() string
Status returns HTTPResponse.Status
func (SetBusinessAccountProfilePhotoResponse) StatusCode ¶
func (r SetBusinessAccountProfilePhotoResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetBusinessAccountUsername200Ok ¶
type SetBusinessAccountUsername200Ok bool
type SetBusinessAccountUsernameJSONBody ¶
type SetBusinessAccountUsernameJSONBody struct {
// BusinessConnectionId Unique identifier of the business connection
BusinessConnectionId string `json:"business_connection_id"`
// Username The new value of the username for the business account; 0-32 characters
Username *string `json:"username,omitempty"`
}
SetBusinessAccountUsernameJSONBody defines parameters for SetBusinessAccountUsername.
type SetBusinessAccountUsernameJSONRequestBody ¶
type SetBusinessAccountUsernameJSONRequestBody SetBusinessAccountUsernameJSONBody
SetBusinessAccountUsernameJSONRequestBody defines body for SetBusinessAccountUsername for application/json ContentType.
type SetBusinessAccountUsernameResponse ¶
type SetBusinessAccountUsernameResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SetBusinessAccountUsername200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSetBusinessAccountUsernameResponse ¶
func ParseSetBusinessAccountUsernameResponse(rsp *http.Response) (*SetBusinessAccountUsernameResponse, error)
ParseSetBusinessAccountUsernameResponse parses an HTTP response from a SetBusinessAccountUsernameWithResponse call
func (SetBusinessAccountUsernameResponse) Status ¶
func (r SetBusinessAccountUsernameResponse) Status() string
Status returns HTTPResponse.Status
func (SetBusinessAccountUsernameResponse) StatusCode ¶
func (r SetBusinessAccountUsernameResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetChatAdministratorCustomTitle200Ok ¶
type SetChatAdministratorCustomTitle200Ok bool
type SetChatAdministratorCustomTitleJSONBody ¶
type SetChatAdministratorCustomTitleJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
ChatId int64 `json:"chat_id"`
// CustomTitle New custom title for the administrator; 0-16 characters, emoji are not allowed
CustomTitle string `json:"custom_title"`
// UserId Unique identifier of the target user
UserId int `json:"user_id"`
}
SetChatAdministratorCustomTitleJSONBody defines parameters for SetChatAdministratorCustomTitle.
type SetChatAdministratorCustomTitleJSONRequestBody ¶
type SetChatAdministratorCustomTitleJSONRequestBody SetChatAdministratorCustomTitleJSONBody
SetChatAdministratorCustomTitleJSONRequestBody defines body for SetChatAdministratorCustomTitle for application/json ContentType.
type SetChatAdministratorCustomTitleResponse ¶
type SetChatAdministratorCustomTitleResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SetChatAdministratorCustomTitle200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSetChatAdministratorCustomTitleResponse ¶
func ParseSetChatAdministratorCustomTitleResponse(rsp *http.Response) (*SetChatAdministratorCustomTitleResponse, error)
ParseSetChatAdministratorCustomTitleResponse parses an HTTP response from a SetChatAdministratorCustomTitleWithResponse call
func (SetChatAdministratorCustomTitleResponse) Status ¶
func (r SetChatAdministratorCustomTitleResponse) Status() string
Status returns HTTPResponse.Status
func (SetChatAdministratorCustomTitleResponse) StatusCode ¶
func (r SetChatAdministratorCustomTitleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetChatDescription200Ok ¶
type SetChatDescription200Ok bool
type SetChatDescriptionJSONBody ¶
type SetChatDescriptionJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// Description New chat description, 0-255 characters
Description *string `json:"description,omitempty"`
}
SetChatDescriptionJSONBody defines parameters for SetChatDescription.
type SetChatDescriptionJSONRequestBody ¶
type SetChatDescriptionJSONRequestBody SetChatDescriptionJSONBody
SetChatDescriptionJSONRequestBody defines body for SetChatDescription for application/json ContentType.
type SetChatDescriptionResponse ¶
type SetChatDescriptionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SetChatDescription200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSetChatDescriptionResponse ¶
func ParseSetChatDescriptionResponse(rsp *http.Response) (*SetChatDescriptionResponse, error)
ParseSetChatDescriptionResponse parses an HTTP response from a SetChatDescriptionWithResponse call
func (SetChatDescriptionResponse) Status ¶
func (r SetChatDescriptionResponse) Status() string
Status returns HTTPResponse.Status
func (SetChatDescriptionResponse) StatusCode ¶
func (r SetChatDescriptionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetChatMenuButton200Ok ¶
type SetChatMenuButton200Ok bool
type SetChatMenuButtonJSONBody ¶
type SetChatMenuButtonJSONBody struct {
// ChatId Unique identifier for the target private chat. If not specified, default bot's menu button will be changed
ChatId *int64 `json:"chat_id,omitempty"`
// MenuButton A JSON-serialized object for the bot's new menu button. Defaults to MenuButtonDefault
MenuButton *MenuButton `json:"menu_button,omitempty"`
}
SetChatMenuButtonJSONBody defines parameters for SetChatMenuButton.
type SetChatMenuButtonJSONRequestBody ¶
type SetChatMenuButtonJSONRequestBody SetChatMenuButtonJSONBody
SetChatMenuButtonJSONRequestBody defines body for SetChatMenuButton for application/json ContentType.
type SetChatMenuButtonResponse ¶
type SetChatMenuButtonResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SetChatMenuButton200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSetChatMenuButtonResponse ¶
func ParseSetChatMenuButtonResponse(rsp *http.Response) (*SetChatMenuButtonResponse, error)
ParseSetChatMenuButtonResponse parses an HTTP response from a SetChatMenuButtonWithResponse call
func (SetChatMenuButtonResponse) Status ¶
func (r SetChatMenuButtonResponse) Status() string
Status returns HTTPResponse.Status
func (SetChatMenuButtonResponse) StatusCode ¶
func (r SetChatMenuButtonResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetChatPermissions200Ok ¶
type SetChatPermissions200Ok bool
type SetChatPermissionsJSONBody ¶
type SetChatPermissionsJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
ChatId int64 `json:"chat_id"`
// Permissions A JSON-serialized object for new default chat permissions
Permissions ChatPermissions `json:"permissions"`
// UseIndependentChatPermissions Pass True if chat permissions are set independently. Otherwise, the can_send_other_messages and can_add_web_page_previews permissions will imply the can_send_messages, can_send_audios, can_send_documents, can_send_photos, can_send_videos, can_send_video_notes, and can_send_voice_notes permissions; the can_send_polls permission will imply the can_send_messages permission.
UseIndependentChatPermissions *bool `json:"use_independent_chat_permissions,omitempty"`
}
SetChatPermissionsJSONBody defines parameters for SetChatPermissions.
type SetChatPermissionsJSONRequestBody ¶
type SetChatPermissionsJSONRequestBody SetChatPermissionsJSONBody
SetChatPermissionsJSONRequestBody defines body for SetChatPermissions for application/json ContentType.
type SetChatPermissionsResponse ¶
type SetChatPermissionsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SetChatPermissions200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSetChatPermissionsResponse ¶
func ParseSetChatPermissionsResponse(rsp *http.Response) (*SetChatPermissionsResponse, error)
ParseSetChatPermissionsResponse parses an HTTP response from a SetChatPermissionsWithResponse call
func (SetChatPermissionsResponse) Status ¶
func (r SetChatPermissionsResponse) Status() string
Status returns HTTPResponse.Status
func (SetChatPermissionsResponse) StatusCode ¶
func (r SetChatPermissionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetChatPhoto200Ok ¶
type SetChatPhoto200Ok bool
type SetChatPhotoJSONBody ¶
type SetChatPhotoJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
}
SetChatPhotoJSONBody defines parameters for SetChatPhoto.
type SetChatPhotoJSONRequestBody ¶
type SetChatPhotoJSONRequestBody SetChatPhotoJSONBody
SetChatPhotoJSONRequestBody defines body for SetChatPhoto for application/json ContentType.
type SetChatPhotoMultipartBody ¶ added in v0.2.0
type SetChatPhotoMultipartBody struct {
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// Photo New chat photo, uploaded using multipart/form-data
Photo openapi_types.File `json:"photo"`
}
SetChatPhotoMultipartBody defines parameters for SetChatPhoto.
type SetChatPhotoMultipartRequestBody ¶ added in v0.2.0
type SetChatPhotoMultipartRequestBody SetChatPhotoMultipartBody
SetChatPhotoMultipartRequestBody defines body for SetChatPhoto for multipart/form-data ContentType.
type SetChatPhotoResponse ¶
type SetChatPhotoResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SetChatPhoto200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSetChatPhotoResponse ¶
func ParseSetChatPhotoResponse(rsp *http.Response) (*SetChatPhotoResponse, error)
ParseSetChatPhotoResponse parses an HTTP response from a SetChatPhotoWithResponse call
func (SetChatPhotoResponse) Status ¶
func (r SetChatPhotoResponse) Status() string
Status returns HTTPResponse.Status
func (SetChatPhotoResponse) StatusCode ¶
func (r SetChatPhotoResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetChatStickerSet200Ok ¶
type SetChatStickerSet200Ok bool
type SetChatStickerSetJSONBody ¶
type SetChatStickerSetJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
ChatId int64 `json:"chat_id"`
// StickerSetName Name of the sticker set to be set as the group sticker set
StickerSetName string `json:"sticker_set_name"`
}
SetChatStickerSetJSONBody defines parameters for SetChatStickerSet.
type SetChatStickerSetJSONRequestBody ¶
type SetChatStickerSetJSONRequestBody SetChatStickerSetJSONBody
SetChatStickerSetJSONRequestBody defines body for SetChatStickerSet for application/json ContentType.
type SetChatStickerSetResponse ¶
type SetChatStickerSetResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SetChatStickerSet200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSetChatStickerSetResponse ¶
func ParseSetChatStickerSetResponse(rsp *http.Response) (*SetChatStickerSetResponse, error)
ParseSetChatStickerSetResponse parses an HTTP response from a SetChatStickerSetWithResponse call
func (SetChatStickerSetResponse) Status ¶
func (r SetChatStickerSetResponse) Status() string
Status returns HTTPResponse.Status
func (SetChatStickerSetResponse) StatusCode ¶
func (r SetChatStickerSetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetChatTitle200Ok ¶
type SetChatTitle200Ok bool
type SetChatTitleJSONBody ¶
type SetChatTitleJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// Title New chat title, 1-128 characters
Title string `json:"title"`
}
SetChatTitleJSONBody defines parameters for SetChatTitle.
type SetChatTitleJSONRequestBody ¶
type SetChatTitleJSONRequestBody SetChatTitleJSONBody
SetChatTitleJSONRequestBody defines body for SetChatTitle for application/json ContentType.
type SetChatTitleResponse ¶
type SetChatTitleResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SetChatTitle200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSetChatTitleResponse ¶
func ParseSetChatTitleResponse(rsp *http.Response) (*SetChatTitleResponse, error)
ParseSetChatTitleResponse parses an HTTP response from a SetChatTitleWithResponse call
func (SetChatTitleResponse) Status ¶
func (r SetChatTitleResponse) Status() string
Status returns HTTPResponse.Status
func (SetChatTitleResponse) StatusCode ¶
func (r SetChatTitleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetCustomEmojiStickerSetThumbnail200Ok ¶
type SetCustomEmojiStickerSetThumbnail200Ok bool
type SetCustomEmojiStickerSetThumbnailJSONBody ¶
type SetCustomEmojiStickerSetThumbnailJSONBody struct {
// CustomEmojiId Custom emoji identifier of a sticker from the sticker set; pass an empty string to drop the thumbnail and use the first sticker as the thumbnail.
CustomEmojiId *string `json:"custom_emoji_id,omitempty"`
// Name Sticker set name
Name string `json:"name"`
}
SetCustomEmojiStickerSetThumbnailJSONBody defines parameters for SetCustomEmojiStickerSetThumbnail.
type SetCustomEmojiStickerSetThumbnailJSONRequestBody ¶
type SetCustomEmojiStickerSetThumbnailJSONRequestBody SetCustomEmojiStickerSetThumbnailJSONBody
SetCustomEmojiStickerSetThumbnailJSONRequestBody defines body for SetCustomEmojiStickerSetThumbnail for application/json ContentType.
type SetCustomEmojiStickerSetThumbnailResponse ¶
type SetCustomEmojiStickerSetThumbnailResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SetCustomEmojiStickerSetThumbnail200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSetCustomEmojiStickerSetThumbnailResponse ¶
func ParseSetCustomEmojiStickerSetThumbnailResponse(rsp *http.Response) (*SetCustomEmojiStickerSetThumbnailResponse, error)
ParseSetCustomEmojiStickerSetThumbnailResponse parses an HTTP response from a SetCustomEmojiStickerSetThumbnailWithResponse call
func (SetCustomEmojiStickerSetThumbnailResponse) Status ¶
func (r SetCustomEmojiStickerSetThumbnailResponse) Status() string
Status returns HTTPResponse.Status
func (SetCustomEmojiStickerSetThumbnailResponse) StatusCode ¶
func (r SetCustomEmojiStickerSetThumbnailResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetGameScore200Ok ¶
type SetGameScore200Ok bool
type SetGameScore200Result1 ¶
type SetGameScore200Result1 = bool
type SetGameScoreJSONBody ¶
type SetGameScoreJSONBody struct {
// ChatId Required if inline_message_id is not specified. Unique identifier for the target chat
ChatId *int64 `json:"chat_id,omitempty"`
// DisableEditMessage Pass True if the game message should not be automatically edited to include the current scoreboard
DisableEditMessage *bool `json:"disable_edit_message,omitempty"`
// Force Pass True if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters
Force *bool `json:"force,omitempty"`
// InlineMessageId Required if chat_id and message_id are not specified. Identifier of the inline message
InlineMessageId *string `json:"inline_message_id,omitempty"`
// MessageId Required if inline_message_id is not specified. Identifier of the sent message
MessageId *int `json:"message_id,omitempty"`
// Score New score, must be non-negative
Score int `json:"score"`
// UserId User identifier
UserId int `json:"user_id"`
}
SetGameScoreJSONBody defines parameters for SetGameScore.
type SetGameScoreJSONRequestBody ¶
type SetGameScoreJSONRequestBody SetGameScoreJSONBody
SetGameScoreJSONRequestBody defines body for SetGameScore for application/json ContentType.
type SetGameScoreResponse ¶
type SetGameScoreResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SetGameScore200Ok `json:"ok"`
Result SetGameScore_200_Result `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSetGameScoreResponse ¶
func ParseSetGameScoreResponse(rsp *http.Response) (*SetGameScoreResponse, error)
ParseSetGameScoreResponse parses an HTTP response from a SetGameScoreWithResponse call
func (SetGameScoreResponse) Status ¶
func (r SetGameScoreResponse) Status() string
Status returns HTTPResponse.Status
func (SetGameScoreResponse) StatusCode ¶
func (r SetGameScoreResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetGameScore_200_Result ¶
type SetGameScore_200_Result struct {
// contains filtered or unexported fields
}
type SetMessageReaction200Ok ¶
type SetMessageReaction200Ok bool
type SetMessageReactionJSONBody ¶
type SetMessageReactionJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// IsBig Pass True to set the reaction with a big animation
IsBig *bool `json:"is_big,omitempty"`
// MessageId Identifier of the target message. If the message belongs to a media group, the reaction is set to the first non-deleted message in the group instead.
MessageId int `json:"message_id"`
// Reaction A JSON-serialized list of reaction types to set on the message. Currently, as non-premium users, bots can set up to one reaction per message. A custom emoji reaction can be used if it is either already present on the message or explicitly allowed by chat administrators. Paid reactions can't be used by bots.
Reaction *[]ReactionType `json:"reaction,omitempty"`
}
SetMessageReactionJSONBody defines parameters for SetMessageReaction.
type SetMessageReactionJSONRequestBody ¶
type SetMessageReactionJSONRequestBody SetMessageReactionJSONBody
SetMessageReactionJSONRequestBody defines body for SetMessageReaction for application/json ContentType.
type SetMessageReactionResponse ¶
type SetMessageReactionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SetMessageReaction200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSetMessageReactionResponse ¶
func ParseSetMessageReactionResponse(rsp *http.Response) (*SetMessageReactionResponse, error)
ParseSetMessageReactionResponse parses an HTTP response from a SetMessageReactionWithResponse call
func (SetMessageReactionResponse) Status ¶
func (r SetMessageReactionResponse) Status() string
Status returns HTTPResponse.Status
func (SetMessageReactionResponse) StatusCode ¶
func (r SetMessageReactionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetMyCommands200Ok ¶
type SetMyCommands200Ok bool
type SetMyCommandsJSONBody ¶
type SetMyCommandsJSONBody struct {
// Commands A JSON-serialized list of bot commands to be set as the list of the bot's commands. At most 100 commands can be specified.
Commands []BotCommand `json:"commands"`
// LanguageCode A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands
LanguageCode *string `json:"language_code,omitempty"`
// Scope A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault.
Scope *BotCommandScope `json:"scope,omitempty"`
}
SetMyCommandsJSONBody defines parameters for SetMyCommands.
type SetMyCommandsJSONRequestBody ¶
type SetMyCommandsJSONRequestBody SetMyCommandsJSONBody
SetMyCommandsJSONRequestBody defines body for SetMyCommands for application/json ContentType.
type SetMyCommandsResponse ¶
type SetMyCommandsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SetMyCommands200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSetMyCommandsResponse ¶
func ParseSetMyCommandsResponse(rsp *http.Response) (*SetMyCommandsResponse, error)
ParseSetMyCommandsResponse parses an HTTP response from a SetMyCommandsWithResponse call
func (SetMyCommandsResponse) Status ¶
func (r SetMyCommandsResponse) Status() string
Status returns HTTPResponse.Status
func (SetMyCommandsResponse) StatusCode ¶
func (r SetMyCommandsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetMyDefaultAdministratorRights200Ok ¶
type SetMyDefaultAdministratorRights200Ok bool
type SetMyDefaultAdministratorRightsJSONBody ¶
type SetMyDefaultAdministratorRightsJSONBody struct {
// ForChannels Pass True to change the default administrator rights of the bot in channels. Otherwise, the default administrator rights of the bot for groups and supergroups will be changed.
ForChannels *bool `json:"for_channels,omitempty"`
// Rights A JSON-serialized object describing new default administrator rights. If not specified, the default administrator rights will be cleared.
Rights *ChatAdministratorRights `json:"rights,omitempty"`
}
SetMyDefaultAdministratorRightsJSONBody defines parameters for SetMyDefaultAdministratorRights.
type SetMyDefaultAdministratorRightsJSONRequestBody ¶
type SetMyDefaultAdministratorRightsJSONRequestBody SetMyDefaultAdministratorRightsJSONBody
SetMyDefaultAdministratorRightsJSONRequestBody defines body for SetMyDefaultAdministratorRights for application/json ContentType.
type SetMyDefaultAdministratorRightsResponse ¶
type SetMyDefaultAdministratorRightsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SetMyDefaultAdministratorRights200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSetMyDefaultAdministratorRightsResponse ¶
func ParseSetMyDefaultAdministratorRightsResponse(rsp *http.Response) (*SetMyDefaultAdministratorRightsResponse, error)
ParseSetMyDefaultAdministratorRightsResponse parses an HTTP response from a SetMyDefaultAdministratorRightsWithResponse call
func (SetMyDefaultAdministratorRightsResponse) Status ¶
func (r SetMyDefaultAdministratorRightsResponse) Status() string
Status returns HTTPResponse.Status
func (SetMyDefaultAdministratorRightsResponse) StatusCode ¶
func (r SetMyDefaultAdministratorRightsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetMyDescription200Ok ¶
type SetMyDescription200Ok bool
type SetMyDescriptionJSONBody ¶
type SetMyDescriptionJSONBody struct {
// Description New bot description; 0-512 characters. Pass an empty string to remove the dedicated description for the given language.
Description *string `json:"description,omitempty"`
// LanguageCode A two-letter ISO 639-1 language code. If empty, the description will be applied to all users for whose language there is no dedicated description.
LanguageCode *string `json:"language_code,omitempty"`
}
SetMyDescriptionJSONBody defines parameters for SetMyDescription.
type SetMyDescriptionJSONRequestBody ¶
type SetMyDescriptionJSONRequestBody SetMyDescriptionJSONBody
SetMyDescriptionJSONRequestBody defines body for SetMyDescription for application/json ContentType.
type SetMyDescriptionResponse ¶
type SetMyDescriptionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SetMyDescription200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSetMyDescriptionResponse ¶
func ParseSetMyDescriptionResponse(rsp *http.Response) (*SetMyDescriptionResponse, error)
ParseSetMyDescriptionResponse parses an HTTP response from a SetMyDescriptionWithResponse call
func (SetMyDescriptionResponse) Status ¶
func (r SetMyDescriptionResponse) Status() string
Status returns HTTPResponse.Status
func (SetMyDescriptionResponse) StatusCode ¶
func (r SetMyDescriptionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetMyName200Ok ¶
type SetMyName200Ok bool
type SetMyNameJSONBody ¶
type SetMyNameJSONBody struct {
// LanguageCode A two-letter ISO 639-1 language code. If empty, the name will be shown to all users for whose language there is no dedicated name.
LanguageCode *string `json:"language_code,omitempty"`
// Name New bot name; 0-64 characters. Pass an empty string to remove the dedicated name for the given language.
Name *string `json:"name,omitempty"`
}
SetMyNameJSONBody defines parameters for SetMyName.
type SetMyNameJSONRequestBody ¶
type SetMyNameJSONRequestBody SetMyNameJSONBody
SetMyNameJSONRequestBody defines body for SetMyName for application/json ContentType.
type SetMyNameResponse ¶
type SetMyNameResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SetMyName200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSetMyNameResponse ¶
func ParseSetMyNameResponse(rsp *http.Response) (*SetMyNameResponse, error)
ParseSetMyNameResponse parses an HTTP response from a SetMyNameWithResponse call
func (SetMyNameResponse) Status ¶
func (r SetMyNameResponse) Status() string
Status returns HTTPResponse.Status
func (SetMyNameResponse) StatusCode ¶
func (r SetMyNameResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetMyShortDescription200Ok ¶
type SetMyShortDescription200Ok bool
type SetMyShortDescriptionJSONBody ¶
type SetMyShortDescriptionJSONBody struct {
// LanguageCode A two-letter ISO 639-1 language code. If empty, the short description will be applied to all users for whose language there is no dedicated short description.
LanguageCode *string `json:"language_code,omitempty"`
// ShortDescription New short description for the bot; 0-120 characters. Pass an empty string to remove the dedicated short description for the given language.
ShortDescription *string `json:"short_description,omitempty"`
}
SetMyShortDescriptionJSONBody defines parameters for SetMyShortDescription.
type SetMyShortDescriptionJSONRequestBody ¶
type SetMyShortDescriptionJSONRequestBody SetMyShortDescriptionJSONBody
SetMyShortDescriptionJSONRequestBody defines body for SetMyShortDescription for application/json ContentType.
type SetMyShortDescriptionResponse ¶
type SetMyShortDescriptionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SetMyShortDescription200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSetMyShortDescriptionResponse ¶
func ParseSetMyShortDescriptionResponse(rsp *http.Response) (*SetMyShortDescriptionResponse, error)
ParseSetMyShortDescriptionResponse parses an HTTP response from a SetMyShortDescriptionWithResponse call
func (SetMyShortDescriptionResponse) Status ¶
func (r SetMyShortDescriptionResponse) Status() string
Status returns HTTPResponse.Status
func (SetMyShortDescriptionResponse) StatusCode ¶
func (r SetMyShortDescriptionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetPassportDataErrors200Ok ¶
type SetPassportDataErrors200Ok bool
type SetPassportDataErrorsJSONBody ¶
type SetPassportDataErrorsJSONBody struct {
// Errors A JSON-serialized array describing the errors
Errors []PassportElementError `json:"errors"`
// UserId User identifier
UserId int `json:"user_id"`
}
SetPassportDataErrorsJSONBody defines parameters for SetPassportDataErrors.
type SetPassportDataErrorsJSONRequestBody ¶
type SetPassportDataErrorsJSONRequestBody SetPassportDataErrorsJSONBody
SetPassportDataErrorsJSONRequestBody defines body for SetPassportDataErrors for application/json ContentType.
type SetPassportDataErrorsResponse ¶
type SetPassportDataErrorsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SetPassportDataErrors200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSetPassportDataErrorsResponse ¶
func ParseSetPassportDataErrorsResponse(rsp *http.Response) (*SetPassportDataErrorsResponse, error)
ParseSetPassportDataErrorsResponse parses an HTTP response from a SetPassportDataErrorsWithResponse call
func (SetPassportDataErrorsResponse) Status ¶
func (r SetPassportDataErrorsResponse) Status() string
Status returns HTTPResponse.Status
func (SetPassportDataErrorsResponse) StatusCode ¶
func (r SetPassportDataErrorsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetStickerEmojiList200Ok ¶
type SetStickerEmojiList200Ok bool
type SetStickerEmojiListJSONBody ¶
type SetStickerEmojiListJSONBody struct {
// EmojiList A JSON-serialized list of 1-20 emoji associated with the sticker
EmojiList []string `json:"emoji_list"`
// Sticker File identifier of the sticker
Sticker string `json:"sticker"`
}
SetStickerEmojiListJSONBody defines parameters for SetStickerEmojiList.
type SetStickerEmojiListJSONRequestBody ¶
type SetStickerEmojiListJSONRequestBody SetStickerEmojiListJSONBody
SetStickerEmojiListJSONRequestBody defines body for SetStickerEmojiList for application/json ContentType.
type SetStickerEmojiListResponse ¶
type SetStickerEmojiListResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SetStickerEmojiList200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSetStickerEmojiListResponse ¶
func ParseSetStickerEmojiListResponse(rsp *http.Response) (*SetStickerEmojiListResponse, error)
ParseSetStickerEmojiListResponse parses an HTTP response from a SetStickerEmojiListWithResponse call
func (SetStickerEmojiListResponse) Status ¶
func (r SetStickerEmojiListResponse) Status() string
Status returns HTTPResponse.Status
func (SetStickerEmojiListResponse) StatusCode ¶
func (r SetStickerEmojiListResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetStickerKeywords200Ok ¶
type SetStickerKeywords200Ok bool
type SetStickerKeywordsJSONBody ¶
type SetStickerKeywordsJSONBody struct {
// Keywords A JSON-serialized list of 0-20 search keywords for the sticker with total length of up to 64 characters
Keywords *[]string `json:"keywords,omitempty"`
// Sticker File identifier of the sticker
Sticker string `json:"sticker"`
}
SetStickerKeywordsJSONBody defines parameters for SetStickerKeywords.
type SetStickerKeywordsJSONRequestBody ¶
type SetStickerKeywordsJSONRequestBody SetStickerKeywordsJSONBody
SetStickerKeywordsJSONRequestBody defines body for SetStickerKeywords for application/json ContentType.
type SetStickerKeywordsResponse ¶
type SetStickerKeywordsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SetStickerKeywords200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSetStickerKeywordsResponse ¶
func ParseSetStickerKeywordsResponse(rsp *http.Response) (*SetStickerKeywordsResponse, error)
ParseSetStickerKeywordsResponse parses an HTTP response from a SetStickerKeywordsWithResponse call
func (SetStickerKeywordsResponse) Status ¶
func (r SetStickerKeywordsResponse) Status() string
Status returns HTTPResponse.Status
func (SetStickerKeywordsResponse) StatusCode ¶
func (r SetStickerKeywordsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetStickerMaskPosition200Ok ¶
type SetStickerMaskPosition200Ok bool
type SetStickerMaskPositionJSONBody ¶
type SetStickerMaskPositionJSONBody struct {
// MaskPosition A JSON-serialized object with the position where the mask should be placed on faces. Omit the parameter to remove the mask position.
MaskPosition *MaskPosition `json:"mask_position,omitempty"`
// Sticker File identifier of the sticker
Sticker string `json:"sticker"`
}
SetStickerMaskPositionJSONBody defines parameters for SetStickerMaskPosition.
type SetStickerMaskPositionJSONRequestBody ¶
type SetStickerMaskPositionJSONRequestBody SetStickerMaskPositionJSONBody
SetStickerMaskPositionJSONRequestBody defines body for SetStickerMaskPosition for application/json ContentType.
type SetStickerMaskPositionResponse ¶
type SetStickerMaskPositionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SetStickerMaskPosition200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSetStickerMaskPositionResponse ¶
func ParseSetStickerMaskPositionResponse(rsp *http.Response) (*SetStickerMaskPositionResponse, error)
ParseSetStickerMaskPositionResponse parses an HTTP response from a SetStickerMaskPositionWithResponse call
func (SetStickerMaskPositionResponse) Status ¶
func (r SetStickerMaskPositionResponse) Status() string
Status returns HTTPResponse.Status
func (SetStickerMaskPositionResponse) StatusCode ¶
func (r SetStickerMaskPositionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetStickerPositionInSet200Ok ¶
type SetStickerPositionInSet200Ok bool
type SetStickerPositionInSetJSONBody ¶
type SetStickerPositionInSetJSONBody struct {
// Position New sticker position in the set, zero-based
Position int `json:"position"`
// Sticker File identifier of the sticker
Sticker string `json:"sticker"`
}
SetStickerPositionInSetJSONBody defines parameters for SetStickerPositionInSet.
type SetStickerPositionInSetJSONRequestBody ¶
type SetStickerPositionInSetJSONRequestBody SetStickerPositionInSetJSONBody
SetStickerPositionInSetJSONRequestBody defines body for SetStickerPositionInSet for application/json ContentType.
type SetStickerPositionInSetResponse ¶
type SetStickerPositionInSetResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SetStickerPositionInSet200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSetStickerPositionInSetResponse ¶
func ParseSetStickerPositionInSetResponse(rsp *http.Response) (*SetStickerPositionInSetResponse, error)
ParseSetStickerPositionInSetResponse parses an HTTP response from a SetStickerPositionInSetWithResponse call
func (SetStickerPositionInSetResponse) Status ¶
func (r SetStickerPositionInSetResponse) Status() string
Status returns HTTPResponse.Status
func (SetStickerPositionInSetResponse) StatusCode ¶
func (r SetStickerPositionInSetResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetStickerSetThumbnail200Ok ¶
type SetStickerSetThumbnail200Ok bool
type SetStickerSetThumbnailJSONBody ¶
type SetStickerSetThumbnailJSONBody struct {
// Format Format of the thumbnail, must be one of “static” for a .WEBP or .PNG image, “animated” for a .TGS animation, or “video” for a .WEBM video
Format string `json:"format"`
// Name Sticker set name
Name string `json:"name"`
// Thumbnail A .WEBP or .PNG image with the thumbnail, must be up to 128 kilobytes in size and have a width and height of exactly 100px, or a .TGS animation with a thumbnail up to 32 kilobytes in size (see https://core.telegram.org/stickers#animation-requirements for animated sticker technical requirements), or a .WEBM video with the thumbnail up to 32 kilobytes in size; see https://core.telegram.org/stickers#video-requirements for video sticker technical requirements. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More information on Sending Files ». Animated and video sticker set thumbnails can't be uploaded via HTTP URL. If omitted, then the thumbnail is dropped and the first sticker is used as the thumbnail.
Thumbnail *string `json:"thumbnail,omitempty"`
// UserId User identifier of the sticker set owner
UserId int `json:"user_id"`
}
SetStickerSetThumbnailJSONBody defines parameters for SetStickerSetThumbnail.
type SetStickerSetThumbnailJSONRequestBody ¶
type SetStickerSetThumbnailJSONRequestBody SetStickerSetThumbnailJSONBody
SetStickerSetThumbnailJSONRequestBody defines body for SetStickerSetThumbnail for application/json ContentType.
type SetStickerSetThumbnailMultipartBody ¶ added in v0.2.0
type SetStickerSetThumbnailMultipartBody struct {
// Format Format of the thumbnail, must be one of “static” for a .WEBP or .PNG image, “animated” for a .TGS animation, or “video” for a .WEBM video
Format string `json:"format"`
// Name Sticker set name
Name string `json:"name"`
// Thumbnail A .WEBP or .PNG image with the thumbnail, must be up to 128 kilobytes in size and have a width and height of exactly 100px, or a .TGS animation with a thumbnail up to 32 kilobytes in size (see https://core.telegram.org/stickers#animation-requirements for animated sticker technical requirements), or a .WEBM video with the thumbnail up to 32 kilobytes in size; see https://core.telegram.org/stickers#video-requirements for video sticker technical requirements. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More information on Sending Files ». Animated and video sticker set thumbnails can't be uploaded via HTTP URL. If omitted, then the thumbnail is dropped and the first sticker is used as the thumbnail.
Thumbnail *openapi_types.File `json:"thumbnail,omitempty"`
// UserId User identifier of the sticker set owner
UserId int `json:"user_id"`
}
SetStickerSetThumbnailMultipartBody defines parameters for SetStickerSetThumbnail.
type SetStickerSetThumbnailMultipartRequestBody ¶ added in v0.2.0
type SetStickerSetThumbnailMultipartRequestBody SetStickerSetThumbnailMultipartBody
SetStickerSetThumbnailMultipartRequestBody defines body for SetStickerSetThumbnail for multipart/form-data ContentType.
type SetStickerSetThumbnailResponse ¶
type SetStickerSetThumbnailResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SetStickerSetThumbnail200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSetStickerSetThumbnailResponse ¶
func ParseSetStickerSetThumbnailResponse(rsp *http.Response) (*SetStickerSetThumbnailResponse, error)
ParseSetStickerSetThumbnailResponse parses an HTTP response from a SetStickerSetThumbnailWithResponse call
func (SetStickerSetThumbnailResponse) Status ¶
func (r SetStickerSetThumbnailResponse) Status() string
Status returns HTTPResponse.Status
func (SetStickerSetThumbnailResponse) StatusCode ¶
func (r SetStickerSetThumbnailResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetStickerSetTitle200Ok ¶
type SetStickerSetTitle200Ok bool
type SetStickerSetTitleJSONBody ¶
type SetStickerSetTitleJSONBody struct {
// Name Sticker set name
Name string `json:"name"`
// Title Sticker set title, 1-64 characters
Title string `json:"title"`
}
SetStickerSetTitleJSONBody defines parameters for SetStickerSetTitle.
type SetStickerSetTitleJSONRequestBody ¶
type SetStickerSetTitleJSONRequestBody SetStickerSetTitleJSONBody
SetStickerSetTitleJSONRequestBody defines body for SetStickerSetTitle for application/json ContentType.
type SetStickerSetTitleResponse ¶
type SetStickerSetTitleResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SetStickerSetTitle200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSetStickerSetTitleResponse ¶
func ParseSetStickerSetTitleResponse(rsp *http.Response) (*SetStickerSetTitleResponse, error)
ParseSetStickerSetTitleResponse parses an HTTP response from a SetStickerSetTitleWithResponse call
func (SetStickerSetTitleResponse) Status ¶
func (r SetStickerSetTitleResponse) Status() string
Status returns HTTPResponse.Status
func (SetStickerSetTitleResponse) StatusCode ¶
func (r SetStickerSetTitleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetUserEmojiStatus200Ok ¶
type SetUserEmojiStatus200Ok bool
type SetUserEmojiStatusJSONBody ¶
type SetUserEmojiStatusJSONBody struct {
// EmojiStatusCustomEmojiId Custom emoji identifier of the emoji status to set. Pass an empty string to remove the status.
EmojiStatusCustomEmojiId *string `json:"emoji_status_custom_emoji_id,omitempty"`
// EmojiStatusExpirationDate Expiration date of the emoji status, if any
EmojiStatusExpirationDate *int `json:"emoji_status_expiration_date,omitempty"`
// UserId Unique identifier of the target user
UserId int `json:"user_id"`
}
SetUserEmojiStatusJSONBody defines parameters for SetUserEmojiStatus.
type SetUserEmojiStatusJSONRequestBody ¶
type SetUserEmojiStatusJSONRequestBody SetUserEmojiStatusJSONBody
SetUserEmojiStatusJSONRequestBody defines body for SetUserEmojiStatus for application/json ContentType.
type SetUserEmojiStatusResponse ¶
type SetUserEmojiStatusResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SetUserEmojiStatus200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSetUserEmojiStatusResponse ¶
func ParseSetUserEmojiStatusResponse(rsp *http.Response) (*SetUserEmojiStatusResponse, error)
ParseSetUserEmojiStatusResponse parses an HTTP response from a SetUserEmojiStatusWithResponse call
func (SetUserEmojiStatusResponse) Status ¶
func (r SetUserEmojiStatusResponse) Status() string
Status returns HTTPResponse.Status
func (SetUserEmojiStatusResponse) StatusCode ¶
func (r SetUserEmojiStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetWebhook200Ok ¶
type SetWebhook200Ok bool
type SetWebhookJSONBody ¶
type SetWebhookJSONBody struct {
// AllowedUpdates A JSON-serialized list of the update types you want your bot to receive. For example, specify ["message", "edited_channel_post", "callback_query"] to only receive updates of these types. See Update for a complete list of available update types. Specify an empty list to receive all update types except chat_member, message_reaction, and message_reaction_count (default). If not specified, the previous setting will be used.Please note that this parameter doesn't affect updates created before the call to the setWebhook, so unwanted updates may be received for a short period of time.
AllowedUpdates *[]string `json:"allowed_updates,omitempty"`
// DropPendingUpdates Pass True to drop all pending updates
DropPendingUpdates *bool `json:"drop_pending_updates,omitempty"`
// IpAddress The fixed IP address which will be used to send webhook requests instead of the IP address resolved through DNS
IpAddress *string `json:"ip_address,omitempty"`
// MaxConnections The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery, 1-100. Defaults to 40. Use lower values to limit the load on your bot's server, and higher values to increase your bot's throughput.
MaxConnections *int `json:"max_connections,omitempty"`
// SecretToken A secret token to be sent in a header “X-Telegram-Bot-Api-Secret-Token” in every webhook request, 1-256 characters. Only characters A-Z, a-z, 0-9, _ and - are allowed. The header is useful to ensure that the request comes from a webhook set by you.
SecretToken *string `json:"secret_token,omitempty"`
// Url HTTPS URL to send updates to. Use an empty string to remove webhook integration
Url string `json:"url"`
}
SetWebhookJSONBody defines parameters for SetWebhook.
type SetWebhookJSONRequestBody ¶
type SetWebhookJSONRequestBody SetWebhookJSONBody
SetWebhookJSONRequestBody defines body for SetWebhook for application/json ContentType.
type SetWebhookMultipartBody ¶ added in v0.2.0
type SetWebhookMultipartBody struct {
// AllowedUpdates A JSON-serialized list of the update types you want your bot to receive. For example, specify ["message", "edited_channel_post", "callback_query"] to only receive updates of these types. See Update for a complete list of available update types. Specify an empty list to receive all update types except chat_member, message_reaction, and message_reaction_count (default). If not specified, the previous setting will be used.Please note that this parameter doesn't affect updates created before the call to the setWebhook, so unwanted updates may be received for a short period of time.
AllowedUpdates *[]string `json:"allowed_updates,omitempty"`
// Certificate Upload your public key certificate so that the root certificate in use can be checked. See our self-signed guide for details.
Certificate *openapi_types.File `json:"certificate,omitempty"`
// DropPendingUpdates Pass True to drop all pending updates
DropPendingUpdates *bool `json:"drop_pending_updates,omitempty"`
// IpAddress The fixed IP address which will be used to send webhook requests instead of the IP address resolved through DNS
IpAddress *string `json:"ip_address,omitempty"`
// MaxConnections The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery, 1-100. Defaults to 40. Use lower values to limit the load on your bot's server, and higher values to increase your bot's throughput.
MaxConnections *int `json:"max_connections,omitempty"`
// SecretToken A secret token to be sent in a header “X-Telegram-Bot-Api-Secret-Token” in every webhook request, 1-256 characters. Only characters A-Z, a-z, 0-9, _ and - are allowed. The header is useful to ensure that the request comes from a webhook set by you.
SecretToken *string `json:"secret_token,omitempty"`
// Url HTTPS URL to send updates to. Use an empty string to remove webhook integration
Url string `json:"url"`
}
SetWebhookMultipartBody defines parameters for SetWebhook.
type SetWebhookMultipartRequestBody ¶ added in v0.2.0
type SetWebhookMultipartRequestBody SetWebhookMultipartBody
SetWebhookMultipartRequestBody defines body for SetWebhook for multipart/form-data ContentType.
type SetWebhookResponse ¶
type SetWebhookResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok SetWebhook200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseSetWebhookResponse ¶
func ParseSetWebhookResponse(rsp *http.Response) (*SetWebhookResponse, error)
ParseSetWebhookResponse parses an HTTP response from a SetWebhookWithResponse call
func (SetWebhookResponse) Status ¶
func (r SetWebhookResponse) Status() string
Status returns HTTPResponse.Status
func (SetWebhookResponse) StatusCode ¶
func (r SetWebhookResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SharedUser ¶
type SharedUser struct {
FirstName *string `json:"first_name,omitempty"`
LastName *string `json:"last_name,omitempty"`
Photo *[]PhotoSize `json:"photo,omitempty"`
UserId int64 `json:"user_id"`
Username *string `json:"username,omitempty"`
}
SharedUser This object contains information about a user that was shared with the bot using a KeyboardButtonRequestUsers button.
type ShippingAddress ¶
type ShippingAddress struct {
// City City
City string `json:"city"`
// CountryCode Two-letter ISO 3166-1 alpha-2 country code
CountryCode string `json:"country_code"`
// PostCode Address post code
PostCode string `json:"post_code"`
// State State, if applicable
State string `json:"state"`
// StreetLine1 First line for the address
StreetLine1 string `json:"street_line1"`
// StreetLine2 Second line for the address
StreetLine2 string `json:"street_line2"`
}
ShippingAddress This object represents a shipping address.
type ShippingOption ¶ added in v0.2.0
type ShippingOption struct {
// Id Shipping option identifier
Id string `json:"id"`
// Prices List of price portions
Prices []LabeledPrice `json:"prices"`
// Title Option title
Title string `json:"title"`
}
ShippingOption This object represents one shipping option.
type ShippingQuery ¶
type ShippingQuery struct {
// From User who sent the query
From User `json:"from"`
// Id Unique query identifier
Id string `json:"id"`
// InvoicePayload Bot-specified invoice payload
InvoicePayload string `json:"invoice_payload"`
// ShippingAddress User specified shipping address
ShippingAddress ShippingAddress `json:"shipping_address"`
}
ShippingQuery This object contains information about an incoming shipping query.
type StarAmount ¶
type StarAmount struct {
// Amount Integer amount of Telegram Stars, rounded to 0; can be negative
Amount int `json:"amount"`
// NanostarAmount Optional. The number of 1/1000000000 shares of Telegram Stars; from -999999999 to 999999999; can be negative if and only if amount is non-positive
NanostarAmount *int `json:"nanostar_amount,omitempty"`
}
StarAmount Describes an amount of Telegram Stars.
type StarTransaction ¶
type StarTransaction struct {
// Amount Integer amount of Telegram Stars transferred by the transaction
Amount int `json:"amount"`
// Date Date the transaction was created in Unix time
Date int `json:"date"`
// Id Unique identifier of the transaction. Coincides with the identifier of the original transaction for refund transactions. Coincides with SuccessfulPayment.telegram_payment_charge_id for successful incoming payments from users.
Id string `json:"id"`
// NanostarAmount Optional. The number of 1/1000000000 shares of Telegram Stars transferred by the transaction; from 0 to 999999999
NanostarAmount *int `json:"nanostar_amount,omitempty"`
// Receiver Optional. Receiver of an outgoing transaction (e.g., a user for a purchase refund, Fragment for a withdrawal). Only for outgoing transactions
Receiver *TransactionPartner `json:"receiver,omitempty"`
// Source Optional. Source of an incoming transaction (e.g., a user purchasing goods or services, Fragment refunding a failed withdrawal). Only for incoming transactions
Source *TransactionPartner `json:"source,omitempty"`
}
StarTransaction Describes a Telegram Star transaction. Note that if the buyer initiates a chargeback with the payment provider from whom they acquired Stars (e.g., Apple, Google) following this transaction, the refunded Stars will be deducted from the bot's balance. This is outside of Telegram's control.
type StarTransactions ¶
type StarTransactions struct {
// Transactions The list of transactions
Transactions []StarTransaction `json:"transactions"`
}
StarTransactions Contains a list of Telegram Star transactions.
type Sticker ¶
type Sticker struct {
// CustomEmojiId Optional. For custom emoji stickers, unique identifier of the custom emoji
CustomEmojiId *string `json:"custom_emoji_id,omitempty"`
// Emoji Optional. Emoji associated with the sticker
Emoji *string `json:"emoji,omitempty"`
// FileId Identifier for this file, which can be used to download or reuse the file
FileId string `json:"file_id"`
// FileSize Optional. File size in bytes
FileSize *int `json:"file_size,omitempty"`
// FileUniqueId Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
FileUniqueId string `json:"file_unique_id"`
// Height Sticker height
Height int `json:"height"`
// IsAnimated True, if the sticker is animated
IsAnimated bool `json:"is_animated"`
// IsVideo True, if the sticker is a video sticker
IsVideo bool `json:"is_video"`
// MaskPosition Optional. For mask stickers, the position where the mask should be placed
MaskPosition *MaskPosition `json:"mask_position,omitempty"`
// NeedsRepainting Optional. True, if the sticker must be repainted to a text color in messages, the color of the Telegram Premium badge in emoji status, white color on chat photos, or another appropriate color in other places
NeedsRepainting *bool `json:"needs_repainting,omitempty"`
// PremiumAnimation Optional. For premium regular stickers, premium animation for the sticker
PremiumAnimation *File `json:"premium_animation,omitempty"`
// SetName Optional. Name of the sticker set to which the sticker belongs
SetName *string `json:"set_name,omitempty"`
// Thumbnail Optional. Sticker thumbnail in the .WEBP or .JPG format
Thumbnail *PhotoSize `json:"thumbnail,omitempty"`
// Type Type of the sticker, currently one of “regular”, “mask”, “custom_emoji”. The type of the sticker is independent from its format, which is determined by the fields is_animated and is_video.
Type string `json:"type"`
// Width Sticker width
Width int `json:"width"`
}
Sticker This object represents a sticker.
type StickerSet ¶
type StickerSet struct {
// Name Sticker set name
Name string `json:"name"`
// StickerType Type of stickers in the set, currently one of “regular”, “mask”, “custom_emoji”
StickerType string `json:"sticker_type"`
// Stickers List of all set stickers
Stickers []Sticker `json:"stickers"`
// Thumbnail Optional. Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format
Thumbnail *PhotoSize `json:"thumbnail,omitempty"`
// Title Sticker set title
Title string `json:"title"`
}
StickerSet This object represents a sticker set.
type StopMessageLiveLocation200Ok ¶
type StopMessageLiveLocation200Ok bool
type StopMessageLiveLocation200Result1 ¶
type StopMessageLiveLocation200Result1 = bool
type StopMessageLiveLocationJSONBody ¶
type StopMessageLiveLocationJSONBody struct {
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message to be edited was sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// ChatId Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId *int64 `json:"chat_id,omitempty"`
// InlineMessageId Required if chat_id and message_id are not specified. Identifier of the inline message
InlineMessageId *string `json:"inline_message_id,omitempty"`
// MessageId Required if inline_message_id is not specified. Identifier of the message with live location to stop
MessageId *int `json:"message_id,omitempty"`
// ReplyMarkup A JSON-serialized object for a new inline keyboard.
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
StopMessageLiveLocationJSONBody defines parameters for StopMessageLiveLocation.
type StopMessageLiveLocationJSONRequestBody ¶
type StopMessageLiveLocationJSONRequestBody StopMessageLiveLocationJSONBody
StopMessageLiveLocationJSONRequestBody defines body for StopMessageLiveLocation for application/json ContentType.
type StopMessageLiveLocationResponse ¶
type StopMessageLiveLocationResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok StopMessageLiveLocation200Ok `json:"ok"`
Result StopMessageLiveLocation_200_Result `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseStopMessageLiveLocationResponse ¶
func ParseStopMessageLiveLocationResponse(rsp *http.Response) (*StopMessageLiveLocationResponse, error)
ParseStopMessageLiveLocationResponse parses an HTTP response from a StopMessageLiveLocationWithResponse call
func (StopMessageLiveLocationResponse) Status ¶
func (r StopMessageLiveLocationResponse) Status() string
Status returns HTTPResponse.Status
func (StopMessageLiveLocationResponse) StatusCode ¶
func (r StopMessageLiveLocationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StopMessageLiveLocation_200_Result ¶
type StopMessageLiveLocation_200_Result struct {
// contains filtered or unexported fields
}
type StopPoll200Ok ¶
type StopPoll200Ok bool
type StopPollJSONBody ¶
type StopPollJSONBody struct {
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message to be edited was sent
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// MessageId Identifier of the original message with the poll
MessageId int `json:"message_id"`
// ReplyMarkup A JSON-serialized object for a new message inline keyboard.
ReplyMarkup *InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
StopPollJSONBody defines parameters for StopPoll.
type StopPollJSONRequestBody ¶
type StopPollJSONRequestBody StopPollJSONBody
StopPollJSONRequestBody defines body for StopPoll for application/json ContentType.
type StopPollResponse ¶
type StopPollResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok StopPoll200Ok `json:"ok"`
// Result This object contains information about a poll.
Result Poll `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseStopPollResponse ¶
func ParseStopPollResponse(rsp *http.Response) (*StopPollResponse, error)
ParseStopPollResponse parses an HTTP response from a StopPollWithResponse call
func (StopPollResponse) Status ¶
func (r StopPollResponse) Status() string
Status returns HTTPResponse.Status
func (StopPollResponse) StatusCode ¶
func (r StopPollResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Story ¶
type Story struct {
// Chat Chat that posted the story
Chat Chat `json:"chat"`
// Id Unique identifier for the story in the chat
Id int `json:"id"`
}
Story This object represents a story.
type StoryArea ¶ added in v0.2.0
type StoryArea struct {
// Position Position of the area
Position StoryAreaPosition `json:"position"`
// Type Type of the area
Type StoryAreaType `json:"type"`
}
StoryArea Describes a clickable area on a story media.
type StoryAreaPosition ¶ added in v0.2.0
type StoryAreaPosition struct {
// CornerRadiusPercentage The radius of the rectangle corner rounding, as a percentage of the media width
CornerRadiusPercentage float32 `json:"corner_radius_percentage"`
// HeightPercentage The height of the area's rectangle, as a percentage of the media height
HeightPercentage float32 `json:"height_percentage"`
// RotationAngle The clockwise rotation angle of the rectangle, in degrees; 0-360
RotationAngle float32 `json:"rotation_angle"`
// WidthPercentage The width of the area's rectangle, as a percentage of the media width
WidthPercentage float32 `json:"width_percentage"`
// XPercentage The abscissa of the area's center, as a percentage of the media width
XPercentage float32 `json:"x_percentage"`
// YPercentage The ordinate of the area's center, as a percentage of the media height
YPercentage float32 `json:"y_percentage"`
}
StoryAreaPosition Describes the position of a clickable area within a story.
type StoryAreaType ¶ added in v0.2.0
type StoryAreaType = map[string]interface{}
StoryAreaType Describes the type of a clickable area on a story. Currently, it can be one of StoryAreaTypeLocation StoryAreaTypeSuggestedReaction StoryAreaTypeLink StoryAreaTypeWeather StoryAreaTypeUniqueGift
type SuccessfulPayment ¶
type SuccessfulPayment struct {
// Currency Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars
Currency string `json:"currency"`
// InvoicePayload Bot-specified invoice payload
InvoicePayload string `json:"invoice_payload"`
// IsFirstRecurring Optional. True, if the payment is the first payment for a subscription
IsFirstRecurring *bool `json:"is_first_recurring,omitempty"`
// IsRecurring Optional. True, if the payment is a recurring payment for a subscription
IsRecurring *bool `json:"is_recurring,omitempty"`
// OrderInfo Optional. Order information provided by the user
OrderInfo *OrderInfo `json:"order_info,omitempty"`
// ProviderPaymentChargeId Provider payment identifier
ProviderPaymentChargeId string `json:"provider_payment_charge_id"`
// ShippingOptionId Optional. Identifier of the shipping option chosen by the user
ShippingOptionId *string `json:"shipping_option_id,omitempty"`
// SubscriptionExpirationDate Optional. Expiration date of the subscription, in Unix time; for recurring payments only
SubscriptionExpirationDate *int `json:"subscription_expiration_date,omitempty"`
// TelegramPaymentChargeId Telegram payment identifier
TelegramPaymentChargeId string `json:"telegram_payment_charge_id"`
// TotalAmount Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
TotalAmount int `json:"total_amount"`
}
SuccessfulPayment This object contains basic information about a successful payment. Note that if the buyer initiates a chargeback with the relevant payment provider following this transaction, the funds may be debited from your balance. This is outside of Telegram's control.
type SuggestedPostApprovalFailed ¶
type SuggestedPostApprovalFailed struct {
// Price Expected price of the post
Price SuggestedPostPrice `json:"price"`
// SuggestedPostMessage Optional. Message containing the suggested post whose approval has failed. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply.
SuggestedPostMessage *Message `json:"suggested_post_message,omitempty"`
}
SuggestedPostApprovalFailed Describes a service message about the failed approval of a suggested post. Currently, only caused by insufficient user funds at the time of approval.
type SuggestedPostApproved ¶
type SuggestedPostApproved struct {
// Price Optional. Amount paid for the post
Price *SuggestedPostPrice `json:"price,omitempty"`
// SendDate Date when the post will be published
SendDate int `json:"send_date"`
// SuggestedPostMessage Optional. Message containing the suggested post. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply.
SuggestedPostMessage *Message `json:"suggested_post_message,omitempty"`
}
SuggestedPostApproved Describes a service message about the approval of a suggested post.
type SuggestedPostDeclined ¶
type SuggestedPostDeclined struct {
// Comment Optional. Comment with which the post was declined
Comment *string `json:"comment,omitempty"`
// SuggestedPostMessage Optional. Message containing the suggested post. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply.
SuggestedPostMessage *Message `json:"suggested_post_message,omitempty"`
}
SuggestedPostDeclined Describes a service message about the rejection of a suggested post.
type SuggestedPostInfo ¶
type SuggestedPostInfo struct {
// Price Optional. Proposed price of the post. If the field is omitted, then the post is unpaid.
Price *SuggestedPostPrice `json:"price,omitempty"`
// SendDate Optional. Proposed send date of the post. If the field is omitted, then the post can be published at any time within 30 days at the sole discretion of the user or administrator who approves it.
SendDate *int `json:"send_date,omitempty"`
// State State of the suggested post. Currently, it can be one of “pending”, “approved”, “declined”.
State string `json:"state"`
}
SuggestedPostInfo Contains information about a suggested post.
type SuggestedPostPaid ¶
type SuggestedPostPaid struct {
// Amount Optional. The amount of the currency that was received by the channel in nanotoncoins; for payments in toncoins only
Amount *int `json:"amount,omitempty"`
// Currency Currency in which the payment was made. Currently, one of “XTR” for Telegram Stars or “TON” for toncoins
Currency string `json:"currency"`
// StarAmount Optional. The amount of Telegram Stars that was received by the channel; for payments in Telegram Stars only
StarAmount *StarAmount `json:"star_amount,omitempty"`
// SuggestedPostMessage Optional. Message containing the suggested post. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply.
SuggestedPostMessage *Message `json:"suggested_post_message,omitempty"`
}
SuggestedPostPaid Describes a service message about a successful payment for a suggested post.
type SuggestedPostParameters ¶ added in v0.2.0
type SuggestedPostParameters struct {
// Price Optional. Proposed price for the post. If the field is omitted, then the post is unpaid.
Price *SuggestedPostPrice `json:"price,omitempty"`
// SendDate Optional. Proposed send date of the post. If specified, then the date must be between 300 second and 2678400 seconds (30 days) in the future. If the field is omitted, then the post can be published at any time within 30 days at the sole discretion of the user who approves it.
SendDate *int `json:"send_date,omitempty"`
}
SuggestedPostParameters Contains parameters of a post that is being suggested by the bot.
type SuggestedPostPrice ¶
type SuggestedPostPrice struct {
// Amount The amount of the currency that will be paid for the post in the smallest units of the currency, i.e. Telegram Stars or nanotoncoins. Currently, price in Telegram Stars must be between 5 and 100000, and price in nanotoncoins must be between 10000000 and 10000000000000.
Amount int `json:"amount"`
// Currency Currency in which the post will be paid. Currently, must be one of “XTR” for Telegram Stars or “TON” for toncoins
Currency string `json:"currency"`
}
SuggestedPostPrice Describes the price of a suggested post.
type SuggestedPostRefunded ¶
type SuggestedPostRefunded struct {
// Reason Reason for the refund. Currently, one of “post_deleted” if the post was deleted within 24 hours of being posted or removed from scheduled messages without being posted, or “payment_refunded” if the payer refunded their payment.
Reason string `json:"reason"`
// SuggestedPostMessage Optional. Message containing the suggested post. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply.
SuggestedPostMessage *Message `json:"suggested_post_message,omitempty"`
}
SuggestedPostRefunded Describes a service message about a payment refund for a suggested post.
type SwitchInlineQueryChosenChat ¶
type SwitchInlineQueryChosenChat struct {
// AllowBotChats Optional. True, if private chats with bots can be chosen
AllowBotChats *bool `json:"allow_bot_chats,omitempty"`
// AllowChannelChats Optional. True, if channel chats can be chosen
AllowChannelChats *bool `json:"allow_channel_chats,omitempty"`
// AllowGroupChats Optional. True, if group and supergroup chats can be chosen
AllowGroupChats *bool `json:"allow_group_chats,omitempty"`
// AllowUserChats Optional. True, if private chats with users can be chosen
AllowUserChats *bool `json:"allow_user_chats,omitempty"`
// Query Optional. The default inline query to be inserted in the input field. If left empty, only the bot's username will be inserted
Query *string `json:"query,omitempty"`
}
SwitchInlineQueryChosenChat This object represents an inline button that switches the current user to inline mode in a chosen chat, with an optional default inline query.
type TextQuote ¶
type TextQuote struct {
// Entities Optional. Special entities that appear in the quote. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are kept in quotes.
Entities *[]MessageEntity `json:"entities,omitempty"`
// IsManual Optional. True, if the quote was chosen manually by the message sender. Otherwise, the quote was added automatically by the server.
IsManual *bool `json:"is_manual,omitempty"`
// Position Approximate quote position in the original message in UTF-16 code units as specified by the sender
Position int `json:"position"`
// Text Text of the quoted part of a message that is replied to by the given message
Text string `json:"text"`
}
TextQuote This object contains information about the quoted part of a message that is replied to by the given message.
type TransactionPartner ¶
type TransactionPartner = map[string]interface{}
TransactionPartner This object describes the source of a transaction, or its recipient for outgoing transactions. Currently, it can be one of TransactionPartnerUser TransactionPartnerChat TransactionPartnerAffiliateProgram TransactionPartnerFragment TransactionPartnerTelegramAds TransactionPartnerTelegramApi TransactionPartnerOther
type TransferBusinessAccountStars200Ok ¶
type TransferBusinessAccountStars200Ok bool
type TransferBusinessAccountStarsJSONBody ¶
type TransferBusinessAccountStarsJSONBody struct {
// BusinessConnectionId Unique identifier of the business connection
BusinessConnectionId string `json:"business_connection_id"`
// StarCount Number of Telegram Stars to transfer; 1-10000
StarCount int `json:"star_count"`
}
TransferBusinessAccountStarsJSONBody defines parameters for TransferBusinessAccountStars.
type TransferBusinessAccountStarsJSONRequestBody ¶
type TransferBusinessAccountStarsJSONRequestBody TransferBusinessAccountStarsJSONBody
TransferBusinessAccountStarsJSONRequestBody defines body for TransferBusinessAccountStars for application/json ContentType.
type TransferBusinessAccountStarsResponse ¶
type TransferBusinessAccountStarsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok TransferBusinessAccountStars200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseTransferBusinessAccountStarsResponse ¶
func ParseTransferBusinessAccountStarsResponse(rsp *http.Response) (*TransferBusinessAccountStarsResponse, error)
ParseTransferBusinessAccountStarsResponse parses an HTTP response from a TransferBusinessAccountStarsWithResponse call
func (TransferBusinessAccountStarsResponse) Status ¶
func (r TransferBusinessAccountStarsResponse) Status() string
Status returns HTTPResponse.Status
func (TransferBusinessAccountStarsResponse) StatusCode ¶
func (r TransferBusinessAccountStarsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TransferGift200Ok ¶
type TransferGift200Ok bool
type TransferGiftJSONBody ¶
type TransferGiftJSONBody struct {
// BusinessConnectionId Unique identifier of the business connection
BusinessConnectionId string `json:"business_connection_id"`
// NewOwnerChatId Unique identifier of the chat which will own the gift. The chat must be active in the last 24 hours.
NewOwnerChatId int64 `json:"new_owner_chat_id"`
// OwnedGiftId Unique identifier of the regular gift that should be transferred
OwnedGiftId string `json:"owned_gift_id"`
// StarCount The amount of Telegram Stars that will be paid for the transfer from the business account balance. If positive, then the can_transfer_stars business bot right is required.
StarCount *int `json:"star_count,omitempty"`
}
TransferGiftJSONBody defines parameters for TransferGift.
type TransferGiftJSONRequestBody ¶
type TransferGiftJSONRequestBody TransferGiftJSONBody
TransferGiftJSONRequestBody defines body for TransferGift for application/json ContentType.
type TransferGiftResponse ¶
type TransferGiftResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok TransferGift200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseTransferGiftResponse ¶
func ParseTransferGiftResponse(rsp *http.Response) (*TransferGiftResponse, error)
ParseTransferGiftResponse parses an HTTP response from a TransferGiftWithResponse call
func (TransferGiftResponse) Status ¶
func (r TransferGiftResponse) Status() string
Status returns HTTPResponse.Status
func (TransferGiftResponse) StatusCode ¶
func (r TransferGiftResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UnbanChatMember200Ok ¶
type UnbanChatMember200Ok bool
type UnbanChatMemberJSONBody ¶
type UnbanChatMemberJSONBody struct {
// ChatId Unique identifier for the target group or username of the target supergroup or channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// OnlyIfBanned Do nothing if the user is not banned
OnlyIfBanned *bool `json:"only_if_banned,omitempty"`
// UserId Unique identifier of the target user
UserId int `json:"user_id"`
}
UnbanChatMemberJSONBody defines parameters for UnbanChatMember.
type UnbanChatMemberJSONRequestBody ¶
type UnbanChatMemberJSONRequestBody UnbanChatMemberJSONBody
UnbanChatMemberJSONRequestBody defines body for UnbanChatMember for application/json ContentType.
type UnbanChatMemberResponse ¶
type UnbanChatMemberResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok UnbanChatMember200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseUnbanChatMemberResponse ¶
func ParseUnbanChatMemberResponse(rsp *http.Response) (*UnbanChatMemberResponse, error)
ParseUnbanChatMemberResponse parses an HTTP response from a UnbanChatMemberWithResponse call
func (UnbanChatMemberResponse) Status ¶
func (r UnbanChatMemberResponse) Status() string
Status returns HTTPResponse.Status
func (UnbanChatMemberResponse) StatusCode ¶
func (r UnbanChatMemberResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UnbanChatSenderChat200Ok ¶
type UnbanChatSenderChat200Ok bool
type UnbanChatSenderChatJSONBody ¶
type UnbanChatSenderChatJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// SenderChatId Unique identifier of the target sender chat
SenderChatId int64 `json:"sender_chat_id"`
}
UnbanChatSenderChatJSONBody defines parameters for UnbanChatSenderChat.
type UnbanChatSenderChatJSONRequestBody ¶
type UnbanChatSenderChatJSONRequestBody UnbanChatSenderChatJSONBody
UnbanChatSenderChatJSONRequestBody defines body for UnbanChatSenderChat for application/json ContentType.
type UnbanChatSenderChatResponse ¶
type UnbanChatSenderChatResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok UnbanChatSenderChat200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseUnbanChatSenderChatResponse ¶
func ParseUnbanChatSenderChatResponse(rsp *http.Response) (*UnbanChatSenderChatResponse, error)
ParseUnbanChatSenderChatResponse parses an HTTP response from a UnbanChatSenderChatWithResponse call
func (UnbanChatSenderChatResponse) Status ¶
func (r UnbanChatSenderChatResponse) Status() string
Status returns HTTPResponse.Status
func (UnbanChatSenderChatResponse) StatusCode ¶
func (r UnbanChatSenderChatResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UnhideGeneralForumTopic200Ok ¶
type UnhideGeneralForumTopic200Ok bool
type UnhideGeneralForumTopicJSONBody ¶
type UnhideGeneralForumTopicJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
ChatId int64 `json:"chat_id"`
}
UnhideGeneralForumTopicJSONBody defines parameters for UnhideGeneralForumTopic.
type UnhideGeneralForumTopicJSONRequestBody ¶
type UnhideGeneralForumTopicJSONRequestBody UnhideGeneralForumTopicJSONBody
UnhideGeneralForumTopicJSONRequestBody defines body for UnhideGeneralForumTopic for application/json ContentType.
type UnhideGeneralForumTopicResponse ¶
type UnhideGeneralForumTopicResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok UnhideGeneralForumTopic200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseUnhideGeneralForumTopicResponse ¶
func ParseUnhideGeneralForumTopicResponse(rsp *http.Response) (*UnhideGeneralForumTopicResponse, error)
ParseUnhideGeneralForumTopicResponse parses an HTTP response from a UnhideGeneralForumTopicWithResponse call
func (UnhideGeneralForumTopicResponse) Status ¶
func (r UnhideGeneralForumTopicResponse) Status() string
Status returns HTTPResponse.Status
func (UnhideGeneralForumTopicResponse) StatusCode ¶
func (r UnhideGeneralForumTopicResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UniqueGift ¶
type UniqueGift struct {
// Backdrop Backdrop of the gift
Backdrop UniqueGiftBackdrop `json:"backdrop"`
// BaseName Human-readable name of the regular gift from which this unique gift was upgraded
BaseName string `json:"base_name"`
// Colors Optional. The color scheme that can be used by the gift's owner for the chat's name, replies to messages and link previews; for business account gifts and gifts that are currently on sale only
Colors *UniqueGiftColors `json:"colors,omitempty"`
// GiftId Identifier of the regular gift from which the gift was upgraded
GiftId string `json:"gift_id"`
// IsFromBlockchain Optional. True, if the gift is assigned from the TON blockchain and can't be resold or transferred in Telegram
IsFromBlockchain *bool `json:"is_from_blockchain,omitempty"`
// IsPremium Optional. True, if the original regular gift was exclusively purchaseable by Telegram Premium subscribers
IsPremium *bool `json:"is_premium,omitempty"`
// Model Model of the gift
Model UniqueGiftModel `json:"model"`
// Name Unique name of the gift. This name can be used in https://t.me/nft/... links and story areas
Name string `json:"name"`
// Number Unique number of the upgraded gift among gifts upgraded from the same regular gift
Number int `json:"number"`
// PublisherChat Optional. Information about the chat that published the gift
PublisherChat *Chat `json:"publisher_chat,omitempty"`
// Symbol Symbol of the gift
Symbol UniqueGiftSymbol `json:"symbol"`
}
UniqueGift This object describes a unique gift that was upgraded from a regular gift.
type UniqueGiftBackdrop ¶
type UniqueGiftBackdrop struct {
// Colors Colors of the backdrop
Colors UniqueGiftBackdropColors `json:"colors"`
// Name Name of the backdrop
Name string `json:"name"`
// RarityPerMille The number of unique gifts that receive this backdrop for every 1000 gifts upgraded
RarityPerMille int `json:"rarity_per_mille"`
}
UniqueGiftBackdrop This object describes the backdrop of a unique gift.
type UniqueGiftBackdropColors ¶
type UniqueGiftBackdropColors struct {
// CenterColor The color in the center of the backdrop in RGB format
CenterColor int `json:"center_color"`
// EdgeColor The color on the edges of the backdrop in RGB format
EdgeColor int `json:"edge_color"`
// SymbolColor The color to be applied to the symbol in RGB format
SymbolColor int `json:"symbol_color"`
// TextColor The color for the text on the backdrop in RGB format
TextColor int `json:"text_color"`
}
UniqueGiftBackdropColors This object describes the colors of the backdrop of a unique gift.
type UniqueGiftColors ¶ added in v0.3.0
type UniqueGiftColors struct {
// DarkThemeMainColor Main color used in dark themes; RGB format
DarkThemeMainColor int `json:"dark_theme_main_color"`
// DarkThemeOtherColors List of 1-3 additional colors used in dark themes; RGB format
DarkThemeOtherColors []int `json:"dark_theme_other_colors"`
// LightThemeMainColor Main color used in light themes; RGB format
LightThemeMainColor int `json:"light_theme_main_color"`
// LightThemeOtherColors List of 1-3 additional colors used in light themes; RGB format
LightThemeOtherColors []int `json:"light_theme_other_colors"`
// ModelCustomEmojiId Custom emoji identifier of the unique gift's model
ModelCustomEmojiId string `json:"model_custom_emoji_id"`
// SymbolCustomEmojiId Custom emoji identifier of the unique gift's symbol
SymbolCustomEmojiId string `json:"symbol_custom_emoji_id"`
}
UniqueGiftColors This object contains information about the color scheme for a user's name, message replies and link previews based on a unique gift.
type UniqueGiftInfo ¶
type UniqueGiftInfo struct {
// Gift Information about the gift
Gift UniqueGift `json:"gift"`
// LastResaleAmount Optional. For gifts bought from other users, the price paid for the gift in either Telegram Stars or nanotoncoins
LastResaleAmount *int `json:"last_resale_amount,omitempty"`
// LastResaleCurrency Optional. For gifts bought from other users, the currency in which the payment for the gift was done. Currently, one of “XTR” for Telegram Stars or “TON” for toncoins.
LastResaleCurrency *string `json:"last_resale_currency,omitempty"`
// NextTransferDate Optional. Point in time (Unix timestamp) when the gift can be transferred. If it is in the past, then the gift can be transferred now
NextTransferDate *int `json:"next_transfer_date,omitempty"`
// Origin Origin of the gift. Currently, either “upgrade” for gifts upgraded from regular gifts, “transfer” for gifts transferred from other users or channels, “resale” for gifts bought from other users, “gifted_upgrade” for upgrades purchased after the gift was sent, or “offer” for gifts bought or sold through gift purchase offers
Origin string `json:"origin"`
// OwnedGiftId Optional. Unique identifier of the received gift for the bot; only present for gifts received on behalf of business accounts
OwnedGiftId *string `json:"owned_gift_id,omitempty"`
// TransferStarCount Optional. Number of Telegram Stars that must be paid to transfer the gift; omitted if the bot cannot transfer the gift
TransferStarCount *int `json:"transfer_star_count,omitempty"`
}
UniqueGiftInfo Describes a service message about a unique gift that was sent or received.
type UniqueGiftModel ¶
type UniqueGiftModel struct {
// Name Name of the model
Name string `json:"name"`
// RarityPerMille The number of unique gifts that receive this model for every 1000 gifts upgraded
RarityPerMille int `json:"rarity_per_mille"`
// Sticker The sticker that represents the unique gift
Sticker Sticker `json:"sticker"`
}
UniqueGiftModel This object describes the model of a unique gift.
type UniqueGiftSymbol ¶
type UniqueGiftSymbol struct {
// Name Name of the symbol
Name string `json:"name"`
// RarityPerMille The number of unique gifts that receive this model for every 1000 gifts upgraded
RarityPerMille int `json:"rarity_per_mille"`
// Sticker The sticker that represents the unique gift
Sticker Sticker `json:"sticker"`
}
UniqueGiftSymbol This object describes the symbol shown on the pattern of a unique gift.
type UnpinAllChatMessages200Ok ¶
type UnpinAllChatMessages200Ok bool
type UnpinAllChatMessagesJSONBody ¶
type UnpinAllChatMessagesJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
}
UnpinAllChatMessagesJSONBody defines parameters for UnpinAllChatMessages.
type UnpinAllChatMessagesJSONRequestBody ¶
type UnpinAllChatMessagesJSONRequestBody UnpinAllChatMessagesJSONBody
UnpinAllChatMessagesJSONRequestBody defines body for UnpinAllChatMessages for application/json ContentType.
type UnpinAllChatMessagesResponse ¶
type UnpinAllChatMessagesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok UnpinAllChatMessages200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseUnpinAllChatMessagesResponse ¶
func ParseUnpinAllChatMessagesResponse(rsp *http.Response) (*UnpinAllChatMessagesResponse, error)
ParseUnpinAllChatMessagesResponse parses an HTTP response from a UnpinAllChatMessagesWithResponse call
func (UnpinAllChatMessagesResponse) Status ¶
func (r UnpinAllChatMessagesResponse) Status() string
Status returns HTTPResponse.Status
func (UnpinAllChatMessagesResponse) StatusCode ¶
func (r UnpinAllChatMessagesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UnpinAllForumTopicMessages200Ok ¶
type UnpinAllForumTopicMessages200Ok bool
type UnpinAllForumTopicMessagesJSONBody ¶
type UnpinAllForumTopicMessagesJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
ChatId int64 `json:"chat_id"`
// MessageThreadId Unique identifier for the target message thread of the forum topic
MessageThreadId int `json:"message_thread_id"`
}
UnpinAllForumTopicMessagesJSONBody defines parameters for UnpinAllForumTopicMessages.
type UnpinAllForumTopicMessagesJSONRequestBody ¶
type UnpinAllForumTopicMessagesJSONRequestBody UnpinAllForumTopicMessagesJSONBody
UnpinAllForumTopicMessagesJSONRequestBody defines body for UnpinAllForumTopicMessages for application/json ContentType.
type UnpinAllForumTopicMessagesResponse ¶
type UnpinAllForumTopicMessagesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok UnpinAllForumTopicMessages200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseUnpinAllForumTopicMessagesResponse ¶
func ParseUnpinAllForumTopicMessagesResponse(rsp *http.Response) (*UnpinAllForumTopicMessagesResponse, error)
ParseUnpinAllForumTopicMessagesResponse parses an HTTP response from a UnpinAllForumTopicMessagesWithResponse call
func (UnpinAllForumTopicMessagesResponse) Status ¶
func (r UnpinAllForumTopicMessagesResponse) Status() string
Status returns HTTPResponse.Status
func (UnpinAllForumTopicMessagesResponse) StatusCode ¶
func (r UnpinAllForumTopicMessagesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UnpinAllGeneralForumTopicMessages200Ok ¶
type UnpinAllGeneralForumTopicMessages200Ok bool
type UnpinAllGeneralForumTopicMessagesJSONBody ¶
type UnpinAllGeneralForumTopicMessagesJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
ChatId int64 `json:"chat_id"`
}
UnpinAllGeneralForumTopicMessagesJSONBody defines parameters for UnpinAllGeneralForumTopicMessages.
type UnpinAllGeneralForumTopicMessagesJSONRequestBody ¶
type UnpinAllGeneralForumTopicMessagesJSONRequestBody UnpinAllGeneralForumTopicMessagesJSONBody
UnpinAllGeneralForumTopicMessagesJSONRequestBody defines body for UnpinAllGeneralForumTopicMessages for application/json ContentType.
type UnpinAllGeneralForumTopicMessagesResponse ¶
type UnpinAllGeneralForumTopicMessagesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok UnpinAllGeneralForumTopicMessages200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseUnpinAllGeneralForumTopicMessagesResponse ¶
func ParseUnpinAllGeneralForumTopicMessagesResponse(rsp *http.Response) (*UnpinAllGeneralForumTopicMessagesResponse, error)
ParseUnpinAllGeneralForumTopicMessagesResponse parses an HTTP response from a UnpinAllGeneralForumTopicMessagesWithResponse call
func (UnpinAllGeneralForumTopicMessagesResponse) Status ¶
func (r UnpinAllGeneralForumTopicMessagesResponse) Status() string
Status returns HTTPResponse.Status
func (UnpinAllGeneralForumTopicMessagesResponse) StatusCode ¶
func (r UnpinAllGeneralForumTopicMessagesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UnpinChatMessage200Ok ¶
type UnpinChatMessage200Ok bool
type UnpinChatMessageJSONBody ¶
type UnpinChatMessageJSONBody struct {
// BusinessConnectionId Unique identifier of the business connection on behalf of which the message will be unpinned
BusinessConnectionId *string `json:"business_connection_id,omitempty"`
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername)
ChatId int64 `json:"chat_id"`
// MessageId Identifier of the message to unpin. Required if business_connection_id is specified. If not specified, the most recent pinned message (by sending date) will be unpinned.
MessageId *int `json:"message_id,omitempty"`
}
UnpinChatMessageJSONBody defines parameters for UnpinChatMessage.
type UnpinChatMessageJSONRequestBody ¶
type UnpinChatMessageJSONRequestBody UnpinChatMessageJSONBody
UnpinChatMessageJSONRequestBody defines body for UnpinChatMessage for application/json ContentType.
type UnpinChatMessageResponse ¶
type UnpinChatMessageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok UnpinChatMessage200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseUnpinChatMessageResponse ¶
func ParseUnpinChatMessageResponse(rsp *http.Response) (*UnpinChatMessageResponse, error)
ParseUnpinChatMessageResponse parses an HTTP response from a UnpinChatMessageWithResponse call
func (UnpinChatMessageResponse) Status ¶
func (r UnpinChatMessageResponse) Status() string
Status returns HTTPResponse.Status
func (UnpinChatMessageResponse) StatusCode ¶
func (r UnpinChatMessageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Update ¶
type Update struct {
// BusinessConnection Optional. The bot was connected to or disconnected from a business account, or a user edited an existing connection with the bot
BusinessConnection *BusinessConnection `json:"business_connection,omitempty"`
// BusinessMessage Optional. New message from a connected business account
BusinessMessage *Message `json:"business_message,omitempty"`
// CallbackQuery Optional. New incoming callback query
CallbackQuery *CallbackQuery `json:"callback_query,omitempty"`
// ChannelPost Optional. New incoming channel post of any kind - text, photo, sticker, etc.
ChannelPost *Message `json:"channel_post,omitempty"`
// ChatBoost Optional. A chat boost was added or changed. The bot must be an administrator in the chat to receive these updates.
ChatBoost *ChatBoostUpdated `json:"chat_boost,omitempty"`
// ChatJoinRequest Optional. A request to join the chat has been sent. The bot must have the can_invite_users administrator right in the chat to receive these updates.
ChatJoinRequest *ChatJoinRequest `json:"chat_join_request,omitempty"`
// ChatMember Optional. A chat member's status was updated in a chat. The bot must be an administrator in the chat and must explicitly specify "chat_member" in the list of allowed_updates to receive these updates.
ChatMember *ChatMemberUpdated `json:"chat_member,omitempty"`
// ChosenInlineResult Optional. The result of an inline query that was chosen by a user and sent to their chat partner. Please see our documentation on the feedback collecting for details on how to enable these updates for your bot.
ChosenInlineResult *ChosenInlineResult `json:"chosen_inline_result,omitempty"`
// DeletedBusinessMessages Optional. Messages were deleted from a connected business account
DeletedBusinessMessages *BusinessMessagesDeleted `json:"deleted_business_messages,omitempty"`
// EditedBusinessMessage Optional. New version of a message from a connected business account
EditedBusinessMessage *Message `json:"edited_business_message,omitempty"`
// EditedChannelPost Optional. New version of a channel post that is known to the bot and was edited. This update may at times be triggered by changes to message fields that are either unavailable or not actively used by your bot.
EditedChannelPost *Message `json:"edited_channel_post,omitempty"`
// EditedMessage Optional. New version of a message that is known to the bot and was edited. This update may at times be triggered by changes to message fields that are either unavailable or not actively used by your bot.
EditedMessage *Message `json:"edited_message,omitempty"`
// InlineQuery Optional. New incoming inline query
InlineQuery *InlineQuery `json:"inline_query,omitempty"`
// Message Optional. New incoming message of any kind - text, photo, sticker, etc.
Message *Message `json:"message,omitempty"`
// MessageReaction Optional. A reaction to a message was changed by a user. The bot must be an administrator in the chat and must explicitly specify "message_reaction" in the list of allowed_updates to receive these updates. The update isn't received for reactions set by bots.
MessageReaction *MessageReactionUpdated `json:"message_reaction,omitempty"`
// MessageReactionCount Optional. Reactions to a message with anonymous reactions were changed. The bot must be an administrator in the chat and must explicitly specify "message_reaction_count" in the list of allowed_updates to receive these updates. The updates are grouped and can be sent with delay up to a few minutes.
MessageReactionCount *MessageReactionCountUpdated `json:"message_reaction_count,omitempty"`
// MyChatMember Optional. The bot's chat member status was updated in a chat. For private chats, this update is received only when the bot is blocked or unblocked by the user.
MyChatMember *ChatMemberUpdated `json:"my_chat_member,omitempty"`
// Poll Optional. New poll state. Bots receive only updates about manually stopped polls and polls, which are sent by the bot
Poll *Poll `json:"poll,omitempty"`
// PollAnswer Optional. A user changed their answer in a non-anonymous poll. Bots receive new votes only in polls that were sent by the bot itself.
PollAnswer *PollAnswer `json:"poll_answer,omitempty"`
// PreCheckoutQuery Optional. New incoming pre-checkout query. Contains full information about checkout
PreCheckoutQuery *PreCheckoutQuery `json:"pre_checkout_query,omitempty"`
// PurchasedPaidMedia Optional. A user purchased paid media with a non-empty payload sent by the bot in a non-channel chat
PurchasedPaidMedia *PaidMediaPurchased `json:"purchased_paid_media,omitempty"`
// RemovedChatBoost Optional. A boost was removed from a chat. The bot must be an administrator in the chat to receive these updates.
RemovedChatBoost *ChatBoostRemoved `json:"removed_chat_boost,omitempty"`
// ShippingQuery Optional. New incoming shipping query. Only for invoices with flexible price
ShippingQuery *ShippingQuery `json:"shipping_query,omitempty"`
// UpdateId The update's unique identifier. Update identifiers start from a certain positive number and increase sequentially. This identifier becomes especially handy if you're using webhooks, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order. If there are no new updates for at least a week, then identifier of the next update will be chosen randomly instead of sequentially.
UpdateId int `json:"update_id"`
}
Update This object represents an incoming update.At most one of the optional parameters can be present in any given update.
type UpgradeGift200Ok ¶
type UpgradeGift200Ok bool
type UpgradeGiftJSONBody ¶
type UpgradeGiftJSONBody struct {
// BusinessConnectionId Unique identifier of the business connection
BusinessConnectionId string `json:"business_connection_id"`
// KeepOriginalDetails Pass True to keep the original gift text, sender and receiver in the upgraded gift
KeepOriginalDetails *bool `json:"keep_original_details,omitempty"`
// OwnedGiftId Unique identifier of the regular gift that should be upgraded to a unique one
OwnedGiftId string `json:"owned_gift_id"`
// StarCount The amount of Telegram Stars that will be paid for the upgrade from the business account balance. If gift.prepaid_upgrade_star_count > 0, then pass 0, otherwise, the can_transfer_stars business bot right is required and gift.upgrade_star_count must be passed.
StarCount *int `json:"star_count,omitempty"`
}
UpgradeGiftJSONBody defines parameters for UpgradeGift.
type UpgradeGiftJSONRequestBody ¶
type UpgradeGiftJSONRequestBody UpgradeGiftJSONBody
UpgradeGiftJSONRequestBody defines body for UpgradeGift for application/json ContentType.
type UpgradeGiftResponse ¶
type UpgradeGiftResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok UpgradeGift200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseUpgradeGiftResponse ¶
func ParseUpgradeGiftResponse(rsp *http.Response) (*UpgradeGiftResponse, error)
ParseUpgradeGiftResponse parses an HTTP response from a UpgradeGiftWithResponse call
func (UpgradeGiftResponse) Status ¶
func (r UpgradeGiftResponse) Status() string
Status returns HTTPResponse.Status
func (UpgradeGiftResponse) StatusCode ¶
func (r UpgradeGiftResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UploadStickerFile200Ok ¶
type UploadStickerFile200Ok bool
type UploadStickerFileJSONBody ¶
type UploadStickerFileJSONBody struct {
// StickerFormat Format of the sticker, must be one of “static”, “animated”, “video”
StickerFormat string `json:"sticker_format"`
// UserId User identifier of sticker file owner
UserId int `json:"user_id"`
}
UploadStickerFileJSONBody defines parameters for UploadStickerFile.
type UploadStickerFileJSONRequestBody ¶
type UploadStickerFileJSONRequestBody UploadStickerFileJSONBody
UploadStickerFileJSONRequestBody defines body for UploadStickerFile for application/json ContentType.
type UploadStickerFileMultipartBody ¶ added in v0.2.0
type UploadStickerFileMultipartBody struct {
// Sticker A file with the sticker in .WEBP, .PNG, .TGS, or .WEBM format. See https://core.telegram.org/stickers for technical requirements. More information on Sending Files »
Sticker openapi_types.File `json:"sticker"`
// StickerFormat Format of the sticker, must be one of “static”, “animated”, “video”
StickerFormat string `json:"sticker_format"`
// UserId User identifier of sticker file owner
UserId int `json:"user_id"`
}
UploadStickerFileMultipartBody defines parameters for UploadStickerFile.
type UploadStickerFileMultipartRequestBody ¶ added in v0.2.0
type UploadStickerFileMultipartRequestBody UploadStickerFileMultipartBody
UploadStickerFileMultipartRequestBody defines body for UploadStickerFile for multipart/form-data ContentType.
type UploadStickerFileResponse ¶
type UploadStickerFileResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok UploadStickerFile200Ok `json:"ok"`
// Result This object represents a file ready to be downloaded. The file can be downloaded via the link https://api.telegram.org/file/bot<token>/<file_path>. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling getFile.
Result File `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseUploadStickerFileResponse ¶
func ParseUploadStickerFileResponse(rsp *http.Response) (*UploadStickerFileResponse, error)
ParseUploadStickerFileResponse parses an HTTP response from a UploadStickerFileWithResponse call
func (UploadStickerFileResponse) Status ¶
func (r UploadStickerFileResponse) Status() string
Status returns HTTPResponse.Status
func (UploadStickerFileResponse) StatusCode ¶
func (r UploadStickerFileResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type User ¶
type User struct {
// AddedToAttachmentMenu Optional. True, if this user added the bot to the attachment menu
AddedToAttachmentMenu *bool `json:"added_to_attachment_menu,omitempty"`
// CanConnectToBusiness Optional. True, if the bot can be connected to a Telegram Business account to receive its messages. Returned only in getMe.
CanConnectToBusiness *bool `json:"can_connect_to_business,omitempty"`
// CanJoinGroups Optional. True, if the bot can be invited to groups. Returned only in getMe.
CanJoinGroups *bool `json:"can_join_groups,omitempty"`
// CanReadAllGroupMessages Optional. True, if privacy mode is disabled for the bot. Returned only in getMe.
CanReadAllGroupMessages *bool `json:"can_read_all_group_messages,omitempty"`
// FirstName User's or bot's first name
FirstName string `json:"first_name"`
// HasMainWebApp Optional. True, if the bot has a main Web App. Returned only in getMe.
HasMainWebApp *bool `json:"has_main_web_app,omitempty"`
// HasTopicsEnabled Optional. True, if the bot has forum topic mode enabled in private chats. Returned only in getMe.
HasTopicsEnabled *bool `json:"has_topics_enabled,omitempty"`
// Id Unique identifier for this user or bot. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.
Id int64 `json:"id"`
// IsBot True, if this user is a bot
IsBot bool `json:"is_bot"`
// IsPremium Optional. True, if this user is a Telegram Premium user
IsPremium *bool `json:"is_premium,omitempty"`
// LanguageCode Optional. IETF language tag of the user's language
LanguageCode *string `json:"language_code,omitempty"`
// LastName Optional. User's or bot's last name
LastName *string `json:"last_name,omitempty"`
// SupportsInlineQueries Optional. True, if the bot supports inline queries. Returned only in getMe.
SupportsInlineQueries *bool `json:"supports_inline_queries,omitempty"`
// Username Optional. User's or bot's username
Username *string `json:"username,omitempty"`
}
User This object represents a Telegram user or bot.
type UserChatBoosts ¶
type UserChatBoosts struct {
// Boosts The list of boosts added to the chat by the user
Boosts []ChatBoost `json:"boosts"`
}
UserChatBoosts This object represents a list of boosts added to a chat by a user.
type UserProfilePhotos ¶
type UserProfilePhotos struct {
// Photos Requested profile pictures (in up to 4 sizes each)
Photos [][]PhotoSize `json:"photos"`
// TotalCount Total number of profile pictures the target user has
TotalCount int `json:"total_count"`
}
UserProfilePhotos This object represent a user's profile pictures.
type UserRating ¶ added in v0.3.0
type UserRating struct {
// CurrentLevelRating The rating value required to get the current level
CurrentLevelRating int `json:"current_level_rating"`
// Level Current level of the user, indicating their reliability when purchasing digital goods and services. A higher level suggests a more trustworthy customer; a negative level is likely reason for concern.
Level int `json:"level"`
// NextLevelRating Optional. The rating value required to get to the next level; omitted if the maximum level was reached
NextLevelRating *int `json:"next_level_rating,omitempty"`
// Rating Numerical value of the user's rating; the higher the rating, the better
Rating int `json:"rating"`
}
UserRating This object describes the rating of a user based on their Telegram Star spendings.
type UsersShared ¶
type UsersShared struct {
RequestId int `json:"request_id"`
Users []SharedUser `json:"users"`
}
UsersShared This object contains information about the users whose identifiers were shared with the bot using a KeyboardButtonRequestUsers button.
type Venue ¶
type Venue struct {
// Address Address of the venue
Address string `json:"address"`
// FoursquareId Optional. Foursquare identifier of the venue
FoursquareId *string `json:"foursquare_id,omitempty"`
// FoursquareType Optional. Foursquare type of the venue. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)
FoursquareType *string `json:"foursquare_type,omitempty"`
// GooglePlaceId Optional. Google Places identifier of the venue
GooglePlaceId *string `json:"google_place_id,omitempty"`
// GooglePlaceType Optional. Google Places type of the venue. (See supported types.)
GooglePlaceType *string `json:"google_place_type,omitempty"`
// Location Venue location. Can't be a live location
Location Location `json:"location"`
// Title Name of the venue
Title string `json:"title"`
}
Venue This object represents a venue.
type VerifyChat200Ok ¶
type VerifyChat200Ok bool
type VerifyChatJSONBody ¶
type VerifyChatJSONBody struct {
// ChatId Unique identifier for the target chat or username of the target channel (in the format @channelusername). Channel direct messages chats can't be verified.
ChatId int64 `json:"chat_id"`
// CustomDescription Custom description for the verification; 0-70 characters. Must be empty if the organization isn't allowed to provide a custom verification description.
CustomDescription *string `json:"custom_description,omitempty"`
}
VerifyChatJSONBody defines parameters for VerifyChat.
type VerifyChatJSONRequestBody ¶
type VerifyChatJSONRequestBody VerifyChatJSONBody
VerifyChatJSONRequestBody defines body for VerifyChat for application/json ContentType.
type VerifyChatResponse ¶
type VerifyChatResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok VerifyChat200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseVerifyChatResponse ¶
func ParseVerifyChatResponse(rsp *http.Response) (*VerifyChatResponse, error)
ParseVerifyChatResponse parses an HTTP response from a VerifyChatWithResponse call
func (VerifyChatResponse) Status ¶
func (r VerifyChatResponse) Status() string
Status returns HTTPResponse.Status
func (VerifyChatResponse) StatusCode ¶
func (r VerifyChatResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type VerifyUser200Ok ¶
type VerifyUser200Ok bool
type VerifyUserJSONBody ¶
type VerifyUserJSONBody struct {
// CustomDescription Custom description for the verification; 0-70 characters. Must be empty if the organization isn't allowed to provide a custom verification description.
CustomDescription *string `json:"custom_description,omitempty"`
// UserId Unique identifier of the target user
UserId int `json:"user_id"`
}
VerifyUserJSONBody defines parameters for VerifyUser.
type VerifyUserJSONRequestBody ¶
type VerifyUserJSONRequestBody VerifyUserJSONBody
VerifyUserJSONRequestBody defines body for VerifyUser for application/json ContentType.
type VerifyUserResponse ¶
type VerifyUserResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Ok VerifyUser200Ok `json:"ok"`
Result bool `json:"result"`
}
JSON400 *ErrorResponse
JSON401 *ErrorResponse
}
func ParseVerifyUserResponse ¶
func ParseVerifyUserResponse(rsp *http.Response) (*VerifyUserResponse, error)
ParseVerifyUserResponse parses an HTTP response from a VerifyUserWithResponse call
func (VerifyUserResponse) Status ¶
func (r VerifyUserResponse) Status() string
Status returns HTTPResponse.Status
func (VerifyUserResponse) StatusCode ¶
func (r VerifyUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Video ¶
type Video struct {
// Cover Optional. Available sizes of the cover of the video in the message
Cover *[]PhotoSize `json:"cover,omitempty"`
// Duration Duration of the video in seconds as defined by the sender
Duration int `json:"duration"`
// FileId Identifier for this file, which can be used to download or reuse the file
FileId string `json:"file_id"`
// FileName Optional. Original filename as defined by the sender
FileName *string `json:"file_name,omitempty"`
// FileSize Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value.
FileSize *int64 `json:"file_size,omitempty"`
// FileUniqueId Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
FileUniqueId string `json:"file_unique_id"`
// Height Video height as defined by the sender
Height int `json:"height"`
// MimeType Optional. MIME type of the file as defined by the sender
MimeType *string `json:"mime_type,omitempty"`
// StartTimestamp Optional. Timestamp in seconds from which the video will play in the message
StartTimestamp *int `json:"start_timestamp,omitempty"`
// Thumbnail Optional. Video thumbnail
Thumbnail *PhotoSize `json:"thumbnail,omitempty"`
// Width Video width as defined by the sender
Width int `json:"width"`
}
Video This object represents a video file.
type VideoChatEnded ¶
type VideoChatEnded struct {
// Duration Video chat duration in seconds
Duration int `json:"duration"`
}
VideoChatEnded This object represents a service message about a video chat ended in the chat.
type VideoChatParticipantsInvited ¶
type VideoChatParticipantsInvited struct {
// Users New members that were invited to the video chat
Users []User `json:"users"`
}
VideoChatParticipantsInvited This object represents a service message about new members invited to a video chat.
type VideoChatScheduled ¶
type VideoChatScheduled struct {
// StartDate Point in time (Unix timestamp) when the video chat is supposed to be started by a chat administrator
StartDate int `json:"start_date"`
}
VideoChatScheduled This object represents a service message about a video chat scheduled in the chat.
type VideoChatStarted ¶
type VideoChatStarted = map[string]interface{}
VideoChatStarted This object represents a service message about a video chat started in the chat. Currently holds no information.
type VideoNote ¶
type VideoNote struct {
// Duration Duration of the video in seconds as defined by the sender
Duration int `json:"duration"`
// FileId Identifier for this file, which can be used to download or reuse the file
FileId string `json:"file_id"`
// FileSize Optional. File size in bytes
FileSize *int `json:"file_size,omitempty"`
// FileUniqueId Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
FileUniqueId string `json:"file_unique_id"`
// Length Video width and height (diameter of the video message) as defined by the sender
Length int `json:"length"`
// Thumbnail Optional. Video thumbnail
Thumbnail *PhotoSize `json:"thumbnail,omitempty"`
}
VideoNote This object represents a video message (available in Telegram apps as of v.4.0).
type Voice ¶
type Voice struct {
// Duration Duration of the audio in seconds as defined by the sender
Duration int `json:"duration"`
// FileId Identifier for this file, which can be used to download or reuse the file
FileId string `json:"file_id"`
// FileSize Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value.
FileSize *int64 `json:"file_size,omitempty"`
// FileUniqueId Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
FileUniqueId string `json:"file_unique_id"`
// MimeType Optional. MIME type of the file as defined by the sender
MimeType *string `json:"mime_type,omitempty"`
}
Voice This object represents a voice note.
type WebAppData ¶
type WebAppData struct {
// ButtonText Text of the web_app keyboard button from which the Web App was opened. Be aware that a bad client can send arbitrary data in this field.
ButtonText string `json:"button_text"`
// Data The data. Be aware that a bad client can send arbitrary data in this field.
Data string `json:"data"`
}
WebAppData Describes data sent from a Web App to the bot.
type WebAppInfo ¶
type WebAppInfo struct {
// Url An HTTPS URL of a Web App to be opened with additional data as specified in Initializing Web Apps
Url string `json:"url"`
}
WebAppInfo Describes a Web App.
type WebhookInfo ¶
type WebhookInfo struct {
// AllowedUpdates Optional. A list of update types the bot is subscribed to. Defaults to all update types except chat_member
AllowedUpdates *[]string `json:"allowed_updates,omitempty"`
// HasCustomCertificate True, if a custom certificate was provided for webhook certificate checks
HasCustomCertificate bool `json:"has_custom_certificate"`
// IpAddress Optional. Currently used webhook IP address
IpAddress *string `json:"ip_address,omitempty"`
// LastErrorDate Optional. Unix time for the most recent error that happened when trying to deliver an update via webhook
LastErrorDate *int `json:"last_error_date,omitempty"`
// LastErrorMessage Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook
LastErrorMessage *string `json:"last_error_message,omitempty"`
// LastSynchronizationErrorDate Optional. Unix time of the most recent error that happened when trying to synchronize available updates with Telegram datacenters
LastSynchronizationErrorDate *int `json:"last_synchronization_error_date,omitempty"`
// MaxConnections Optional. The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery
MaxConnections *int `json:"max_connections,omitempty"`
// PendingUpdateCount Number of updates awaiting delivery
PendingUpdateCount int `json:"pending_update_count"`
// Url Webhook URL, may be empty if webhook is not set up
Url string `json:"url"`
}
WebhookInfo Describes the current status of a webhook.
type WriteAccessAllowed ¶
type WriteAccessAllowed struct {
// FromAttachmentMenu Optional. True, if the access was granted when the bot was added to the attachment or side menu
FromAttachmentMenu *bool `json:"from_attachment_menu,omitempty"`
// FromRequest Optional. True, if the access was granted after the user accepted an explicit request from a Web App sent by the method requestWriteAccess
FromRequest *bool `json:"from_request,omitempty"`
// WebAppName Optional. Name of the Web App, if the access was granted when the Web App was launched from a link
WebAppName *string `json:"web_app_name,omitempty"`
}
WriteAccessAllowed This object represents a service message about a user allowing a bot to write messages after adding it to the attachment menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess.