Documentation
¶
Index ¶
- type AddStickerToSet
- type AnswerCallbackQuery
- type AnswerInlineQuery
- type AnswerPreCheckoutQuery
- type AnswerShippingQuery
- type AnswerWebAppQuery
- type ApproveChatJoinRequest
- type BanChatMember
- type BanChatSenderChat
- type Close
- type CopyMessage
- type CreateChatInviteLink
- type CreateNewStickerSet
- type DeclineChatJoinRequest
- type DeleteChatPhoto
- type DeleteChatStickerSet
- type DeleteMessage
- type DeleteMyCommands
- type DeleteStickerFromSet
- type DeleteWebhook
- type EditChatInviteLink
- type EditMessageCaption
- type EditMessageLiveLocation
- type EditMessageMedia
- type EditMessageReplyMarkup
- type EditMessageText
- type ExportChatInviteLink
- type ForwardMessage
- type GetChat
- type GetChatAdministrators
- type GetChatMember
- type GetChatMemberCount
- type GetChatMenuButton
- type GetFile
- type GetGameHighScores
- type GetMe
- type GetMyCommands
- type GetMyDefaultAdministratorRights
- type GetStickerSet
- type GetUpdates
- type GetUserProfilePhotos
- type GetWebhookInfo
- type LeaveChat
- type LogOut
- type PinChatMessage
- type PromoteChatMember
- type RestrictChatMember
- type RevokeChatInviteLink
- type SendAnimation
- type SendAudio
- type SendChatAction
- type SendContact
- type SendDice
- type SendDocument
- type SendGame
- type SendInvoice
- type SendLocation
- type SendMediaGroup
- type SendMessage
- type SendPhoto
- type SendPoll
- type SendSticker
- type SendVenue
- type SendVideo
- type SendVideoNote
- type SendVoice
- type SetChatAdministratorCustomTitle
- type SetChatDescription
- type SetChatMenuButton
- type SetChatPermissions
- type SetChatPhoto
- type SetChatStickerSet
- type SetChatTitle
- type SetGameScore
- type SetMyCommands
- type SetMyDefaultAdministratorRights
- type SetPassportDataErrors
- type SetStickerPositionInSet
- type SetStickerSetThumb
- type SetWebhook
- type StopMessageLiveLocation
- type StopPoll
- type UnbanChatMember
- type UnbanChatSenderChat
- type UnpinAllChatMessages
- type UnpinChatMessage
- type UploadStickerFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddStickerToSet ¶
type AddStickerToSet struct {
Emojis string `json:"emojis"`
MaskPosition *types.MaskPosition `json:"mask_position,omitempty"`
Name string `json:"name"`
PngSticker rawTypes.InputFile `json:"png_sticker,omitempty"`
TgsSticker rawTypes.InputFile `json:"tgs_sticker,omitempty"`
UserId int64 `json:"user_id"`
WebmSticker rawTypes.InputFile `json:"webm_sticker,omitempty"`
}
func (*AddStickerToSet) Files ¶
func (entity *AddStickerToSet) Files() map[string]rawTypes.InputFile
func (AddStickerToSet) MethodName ¶
func (AddStickerToSet) MethodName() string
func (AddStickerToSet) ParseResult ¶
func (AddStickerToSet) ParseResult(response []byte) (*rawTypes.Result, error)
type AnswerCallbackQuery ¶
type AnswerCallbackQuery struct {
CacheTime int `json:"cache_time,omitempty"`
CallbackQueryId string `json:"callback_query_id"`
ShowAlert bool `json:"show_alert,omitempty"`
Text string `json:"text,omitempty"`
Url string `json:"url,omitempty"`
}
func (*AnswerCallbackQuery) Files ¶
func (entity *AnswerCallbackQuery) Files() map[string]rawTypes.InputFile
func (AnswerCallbackQuery) MethodName ¶
func (AnswerCallbackQuery) MethodName() string
func (AnswerCallbackQuery) ParseResult ¶
func (AnswerCallbackQuery) ParseResult(response []byte) (*rawTypes.Result, error)
type AnswerInlineQuery ¶
type AnswerInlineQuery struct {
CacheTime int `json:"cache_time,omitempty"`
InlineQueryId string `json:"inline_query_id"`
IsPersonal bool `json:"is_personal,omitempty"`
NextOffset string `json:"next_offset,omitempty"`
Results []types.InlineQueryResult `json:"results"`
SwitchPmParameter string `json:"switch_pm_parameter,omitempty"`
SwitchPmText string `json:"switch_pm_text,omitempty"`
}
func (*AnswerInlineQuery) Files ¶
func (entity *AnswerInlineQuery) Files() map[string]rawTypes.InputFile
func (AnswerInlineQuery) MethodName ¶
func (AnswerInlineQuery) MethodName() string
func (AnswerInlineQuery) ParseResult ¶
func (AnswerInlineQuery) ParseResult(response []byte) (*rawTypes.Result, error)
type AnswerPreCheckoutQuery ¶
type AnswerPreCheckoutQuery struct {
ErrorMessage string `json:"error_message,omitempty"`
Ok bool `json:"ok"`
PreCheckoutQueryId string `json:"pre_checkout_query_id"`
}
func (*AnswerPreCheckoutQuery) Files ¶
func (entity *AnswerPreCheckoutQuery) Files() map[string]rawTypes.InputFile
func (AnswerPreCheckoutQuery) MethodName ¶
func (AnswerPreCheckoutQuery) MethodName() string
func (AnswerPreCheckoutQuery) ParseResult ¶
func (AnswerPreCheckoutQuery) ParseResult(response []byte) (*rawTypes.Result, error)
type AnswerShippingQuery ¶
type AnswerShippingQuery struct {
ErrorMessage string `json:"error_message,omitempty"`
Ok bool `json:"ok"`
ShippingOptions []types.ShippingOption `json:"shipping_options,omitempty"`
ShippingQueryId string `json:"shipping_query_id"`
}
func (*AnswerShippingQuery) Files ¶
func (entity *AnswerShippingQuery) Files() map[string]rawTypes.InputFile
func (AnswerShippingQuery) MethodName ¶
func (AnswerShippingQuery) MethodName() string
func (AnswerShippingQuery) ParseResult ¶
func (AnswerShippingQuery) ParseResult(response []byte) (*rawTypes.Result, error)
type AnswerWebAppQuery ¶
type AnswerWebAppQuery struct {
Result types.InlineQueryResult `json:"result"`
WebAppQueryId string `json:"web_app_query_id"`
}
func (*AnswerWebAppQuery) Files ¶
func (entity *AnswerWebAppQuery) Files() map[string]rawTypes.InputFile
func (AnswerWebAppQuery) MethodName ¶
func (AnswerWebAppQuery) MethodName() string
func (AnswerWebAppQuery) ParseResult ¶
func (AnswerWebAppQuery) ParseResult(response []byte) (*rawTypes.Result, error)
type ApproveChatJoinRequest ¶
func (*ApproveChatJoinRequest) Files ¶
func (entity *ApproveChatJoinRequest) Files() map[string]rawTypes.InputFile
func (ApproveChatJoinRequest) MethodName ¶
func (ApproveChatJoinRequest) MethodName() string
func (ApproveChatJoinRequest) ParseResult ¶
func (ApproveChatJoinRequest) ParseResult(response []byte) (*rawTypes.Result, error)
type BanChatMember ¶
type BanChatMember struct {
ChatId int64 `json:"chat_id"`
RevokeMessages bool `json:"revoke_messages,omitempty"`
UntilDate int64 `json:"until_date,omitempty"`
UserId int64 `json:"user_id"`
}
func (BanChatMember) MethodName ¶
func (BanChatMember) MethodName() string
func (BanChatMember) ParseResult ¶
func (BanChatMember) ParseResult(response []byte) (*rawTypes.Result, error)
type BanChatSenderChat ¶
type BanChatSenderChat struct {
ChatId int64 `json:"chat_id"`
SenderChatId int64 `json:"sender_chat_id"`
}
func (*BanChatSenderChat) Files ¶
func (entity *BanChatSenderChat) Files() map[string]rawTypes.InputFile
func (BanChatSenderChat) MethodName ¶
func (BanChatSenderChat) MethodName() string
func (BanChatSenderChat) ParseResult ¶
func (BanChatSenderChat) ParseResult(response []byte) (*rawTypes.Result, error)
type CopyMessage ¶
type CopyMessage struct {
AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"`
Caption string `json:"caption,omitempty"`
CaptionEntities []types.MessageEntity `json:"caption_entities,omitempty"`
ChatId int64 `json:"chat_id"`
DisableNotification bool `json:"disable_notification,omitempty"`
FromChatId int64 `json:"from_chat_id"`
MessageId int64 `json:"message_id"`
ParseMode string `json:"parse_mode,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"`
}
func (CopyMessage) MarshalJSON ¶
func (entity CopyMessage) MarshalJSON() ([]byte, error)
func (CopyMessage) MethodName ¶
func (CopyMessage) MethodName() string
func (CopyMessage) ParseResult ¶
func (CopyMessage) ParseResult(response []byte) (*rawTypes.Result, error)
type CreateChatInviteLink ¶
type CreateChatInviteLink struct {
ChatId int64 `json:"chat_id"`
CreatesJoinRequest bool `json:"creates_join_request,omitempty"`
ExpireDate int64 `json:"expire_date,omitempty"`
MemberLimit int `json:"member_limit,omitempty"`
Name string `json:"name,omitempty"`
}
func (*CreateChatInviteLink) Files ¶
func (entity *CreateChatInviteLink) Files() map[string]rawTypes.InputFile
func (CreateChatInviteLink) MethodName ¶
func (CreateChatInviteLink) MethodName() string
func (CreateChatInviteLink) ParseResult ¶
func (CreateChatInviteLink) ParseResult(response []byte) (*rawTypes.Result, error)
type CreateNewStickerSet ¶
type CreateNewStickerSet struct {
ContainsMasks bool `json:"contains_masks,omitempty"`
Emojis string `json:"emojis"`
MaskPosition *types.MaskPosition `json:"mask_position,omitempty"`
Name string `json:"name"`
PngSticker rawTypes.InputFile `json:"png_sticker,omitempty"`
TgsSticker rawTypes.InputFile `json:"tgs_sticker,omitempty"`
Title string `json:"title"`
UserId int64 `json:"user_id"`
WebmSticker rawTypes.InputFile `json:"webm_sticker,omitempty"`
}
func (*CreateNewStickerSet) Files ¶
func (entity *CreateNewStickerSet) Files() map[string]rawTypes.InputFile
func (CreateNewStickerSet) MethodName ¶
func (CreateNewStickerSet) MethodName() string
func (CreateNewStickerSet) ParseResult ¶
func (CreateNewStickerSet) ParseResult(response []byte) (*rawTypes.Result, error)
type DeclineChatJoinRequest ¶
func (*DeclineChatJoinRequest) Files ¶
func (entity *DeclineChatJoinRequest) Files() map[string]rawTypes.InputFile
func (DeclineChatJoinRequest) MethodName ¶
func (DeclineChatJoinRequest) MethodName() string
func (DeclineChatJoinRequest) ParseResult ¶
func (DeclineChatJoinRequest) ParseResult(response []byte) (*rawTypes.Result, error)
type DeleteChatPhoto ¶
type DeleteChatPhoto struct {
ChatId int64 `json:"chat_id"`
}
func (*DeleteChatPhoto) Files ¶
func (entity *DeleteChatPhoto) Files() map[string]rawTypes.InputFile
func (DeleteChatPhoto) MethodName ¶
func (DeleteChatPhoto) MethodName() string
func (DeleteChatPhoto) ParseResult ¶
func (DeleteChatPhoto) ParseResult(response []byte) (*rawTypes.Result, error)
type DeleteChatStickerSet ¶
type DeleteChatStickerSet struct {
ChatId int64 `json:"chat_id"`
}
func (*DeleteChatStickerSet) Files ¶
func (entity *DeleteChatStickerSet) Files() map[string]rawTypes.InputFile
func (DeleteChatStickerSet) MethodName ¶
func (DeleteChatStickerSet) MethodName() string
func (DeleteChatStickerSet) ParseResult ¶
func (DeleteChatStickerSet) ParseResult(response []byte) (*rawTypes.Result, error)
type DeleteMessage ¶
func (DeleteMessage) MethodName ¶
func (DeleteMessage) MethodName() string
func (DeleteMessage) ParseResult ¶
func (DeleteMessage) ParseResult(response []byte) (*rawTypes.Result, error)
type DeleteMyCommands ¶
type DeleteMyCommands struct {
LanguageCode string `json:"language_code,omitempty"`
Scope *types.BotCommandScope `json:"scope,omitempty"`
}
func (*DeleteMyCommands) Files ¶
func (entity *DeleteMyCommands) Files() map[string]rawTypes.InputFile
func (DeleteMyCommands) MethodName ¶
func (DeleteMyCommands) MethodName() string
func (DeleteMyCommands) ParseResult ¶
func (DeleteMyCommands) ParseResult(response []byte) (*rawTypes.Result, error)
type DeleteStickerFromSet ¶
type DeleteStickerFromSet struct {
Sticker string `json:"sticker"`
}
func (*DeleteStickerFromSet) Files ¶
func (entity *DeleteStickerFromSet) Files() map[string]rawTypes.InputFile
func (DeleteStickerFromSet) MethodName ¶
func (DeleteStickerFromSet) MethodName() string
func (DeleteStickerFromSet) ParseResult ¶
func (DeleteStickerFromSet) ParseResult(response []byte) (*rawTypes.Result, error)
type DeleteWebhook ¶
type DeleteWebhook struct {
DropPendingUpdates bool `json:"drop_pending_updates,omitempty"`
}
func (DeleteWebhook) MethodName ¶
func (DeleteWebhook) MethodName() string
func (DeleteWebhook) ParseResult ¶
func (DeleteWebhook) ParseResult(response []byte) (*rawTypes.Result, error)
type EditChatInviteLink ¶
type EditChatInviteLink struct {
ChatId int64 `json:"chat_id"`
CreatesJoinRequest bool `json:"creates_join_request,omitempty"`
ExpireDate int64 `json:"expire_date,omitempty"`
InviteLink string `json:"invite_link"`
MemberLimit int `json:"member_limit,omitempty"`
Name string `json:"name,omitempty"`
}
func (*EditChatInviteLink) Files ¶
func (entity *EditChatInviteLink) Files() map[string]rawTypes.InputFile
func (EditChatInviteLink) MethodName ¶
func (EditChatInviteLink) MethodName() string
func (EditChatInviteLink) ParseResult ¶
func (EditChatInviteLink) ParseResult(response []byte) (*rawTypes.Result, error)
type EditMessageCaption ¶
type EditMessageCaption struct {
Caption string `json:"caption,omitempty"`
CaptionEntities []types.MessageEntity `json:"caption_entities,omitempty"`
ChatId int64 `json:"chat_id,omitempty"`
InlineMessageId string `json:"inline_message_id,omitempty"`
MessageId int64 `json:"message_id,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
ReplyMarkup *types.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
func (*EditMessageCaption) Files ¶
func (entity *EditMessageCaption) Files() map[string]rawTypes.InputFile
func (EditMessageCaption) MethodName ¶
func (EditMessageCaption) MethodName() string
func (EditMessageCaption) ParseResult ¶
func (EditMessageCaption) ParseResult(response []byte) (*rawTypes.Result, error)
type EditMessageLiveLocation ¶
type EditMessageLiveLocation struct {
ChatId int64 `json:"chat_id,omitempty"`
Heading int `json:"heading,omitempty"`
HorizontalAccuracy float64 `json:"horizontal_accuracy,omitempty"`
InlineMessageId string `json:"inline_message_id,omitempty"`
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
MessageId int64 `json:"message_id,omitempty"`
ProximityAlertRadius int `json:"proximity_alert_radius,omitempty"`
ReplyMarkup *types.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
func (*EditMessageLiveLocation) Files ¶
func (entity *EditMessageLiveLocation) Files() map[string]rawTypes.InputFile
func (EditMessageLiveLocation) MethodName ¶
func (EditMessageLiveLocation) MethodName() string
func (EditMessageLiveLocation) ParseResult ¶
func (EditMessageLiveLocation) ParseResult(response []byte) (*rawTypes.Result, error)
type EditMessageMedia ¶
type EditMessageMedia struct {
ChatId int64 `json:"chat_id,omitempty"`
InlineMessageId string `json:"inline_message_id,omitempty"`
Media types.InputMedia `json:"media"`
MessageId int64 `json:"message_id,omitempty"`
ReplyMarkup *types.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
func (*EditMessageMedia) Files ¶
func (entity *EditMessageMedia) Files() map[string]rawTypes.InputFile
func (EditMessageMedia) MethodName ¶
func (EditMessageMedia) MethodName() string
func (EditMessageMedia) ParseResult ¶
func (EditMessageMedia) ParseResult(response []byte) (*rawTypes.Result, error)
type EditMessageReplyMarkup ¶
type EditMessageReplyMarkup struct {
ChatId int64 `json:"chat_id,omitempty"`
InlineMessageId string `json:"inline_message_id,omitempty"`
MessageId int64 `json:"message_id,omitempty"`
ReplyMarkup *types.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
func (*EditMessageReplyMarkup) Files ¶
func (entity *EditMessageReplyMarkup) Files() map[string]rawTypes.InputFile
func (EditMessageReplyMarkup) MethodName ¶
func (EditMessageReplyMarkup) MethodName() string
func (EditMessageReplyMarkup) ParseResult ¶
func (EditMessageReplyMarkup) ParseResult(response []byte) (*rawTypes.Result, error)
type EditMessageText ¶
type EditMessageText struct {
ChatId int64 `json:"chat_id,omitempty"`
DisableWebPagePreview bool `json:"disable_web_page_preview,omitempty"`
Entities []types.MessageEntity `json:"entities,omitempty"`
InlineMessageId string `json:"inline_message_id,omitempty"`
MessageId int64 `json:"message_id,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
ReplyMarkup *types.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
Text string `json:"text"`
}
func (*EditMessageText) Files ¶
func (entity *EditMessageText) Files() map[string]rawTypes.InputFile
func (EditMessageText) MethodName ¶
func (EditMessageText) MethodName() string
func (EditMessageText) ParseResult ¶
func (EditMessageText) ParseResult(response []byte) (*rawTypes.Result, error)
type ExportChatInviteLink ¶
type ExportChatInviteLink struct {
ChatId int64 `json:"chat_id"`
}
func (*ExportChatInviteLink) Files ¶
func (entity *ExportChatInviteLink) Files() map[string]rawTypes.InputFile
func (ExportChatInviteLink) MethodName ¶
func (ExportChatInviteLink) MethodName() string
func (ExportChatInviteLink) ParseResult ¶
func (ExportChatInviteLink) ParseResult(response []byte) (*rawTypes.Result, error)
type ForwardMessage ¶
type ForwardMessage struct {
ChatId int64 `json:"chat_id"`
DisableNotification bool `json:"disable_notification,omitempty"`
FromChatId int64 `json:"from_chat_id"`
MessageId int64 `json:"message_id"`
ProtectContent bool `json:"protect_content,omitempty"`
}
func (ForwardMessage) MethodName ¶
func (ForwardMessage) MethodName() string
func (ForwardMessage) ParseResult ¶
func (ForwardMessage) ParseResult(response []byte) (*rawTypes.Result, error)
type GetChatAdministrators ¶
type GetChatAdministrators struct {
ChatId int64 `json:"chat_id"`
}
func (*GetChatAdministrators) Files ¶
func (entity *GetChatAdministrators) Files() map[string]rawTypes.InputFile
func (GetChatAdministrators) MethodName ¶
func (GetChatAdministrators) MethodName() string
func (GetChatAdministrators) ParseResult ¶
func (GetChatAdministrators) ParseResult(response []byte) (*rawTypes.Result, error)
type GetChatMember ¶
func (GetChatMember) MethodName ¶
func (GetChatMember) MethodName() string
func (GetChatMember) ParseResult ¶
func (GetChatMember) ParseResult(response []byte) (*rawTypes.Result, error)
type GetChatMemberCount ¶
type GetChatMemberCount struct {
ChatId int64 `json:"chat_id"`
}
func (*GetChatMemberCount) Files ¶
func (entity *GetChatMemberCount) Files() map[string]rawTypes.InputFile
func (GetChatMemberCount) MethodName ¶
func (GetChatMemberCount) MethodName() string
func (GetChatMemberCount) ParseResult ¶
func (GetChatMemberCount) ParseResult(response []byte) (*rawTypes.Result, error)
type GetChatMenuButton ¶
type GetChatMenuButton struct {
ChatId int64 `json:"chat_id,omitempty"`
}
func (*GetChatMenuButton) Files ¶
func (entity *GetChatMenuButton) Files() map[string]rawTypes.InputFile
func (GetChatMenuButton) MethodName ¶
func (GetChatMenuButton) MethodName() string
func (GetChatMenuButton) ParseResult ¶
func (GetChatMenuButton) ParseResult(response []byte) (*rawTypes.Result, error)
type GetGameHighScores ¶
type GetGameHighScores struct {
ChatId int64 `json:"chat_id,omitempty"`
InlineMessageId string `json:"inline_message_id,omitempty"`
MessageId int64 `json:"message_id,omitempty"`
UserId int64 `json:"user_id"`
}
func (*GetGameHighScores) Files ¶
func (entity *GetGameHighScores) Files() map[string]rawTypes.InputFile
func (GetGameHighScores) MethodName ¶
func (GetGameHighScores) MethodName() string
func (GetGameHighScores) ParseResult ¶
func (GetGameHighScores) ParseResult(response []byte) (*rawTypes.Result, error)
type GetMyCommands ¶
type GetMyCommands struct {
LanguageCode string `json:"language_code,omitempty"`
Scope *types.BotCommandScope `json:"scope,omitempty"`
}
func (GetMyCommands) MethodName ¶
func (GetMyCommands) MethodName() string
func (GetMyCommands) ParseResult ¶
func (GetMyCommands) ParseResult(response []byte) (*rawTypes.Result, error)
type GetMyDefaultAdministratorRights ¶
type GetMyDefaultAdministratorRights struct {
ForChannels bool `json:"for_channels,omitempty"`
}
func (*GetMyDefaultAdministratorRights) Files ¶
func (entity *GetMyDefaultAdministratorRights) Files() map[string]rawTypes.InputFile
func (GetMyDefaultAdministratorRights) MethodName ¶
func (GetMyDefaultAdministratorRights) MethodName() string
func (GetMyDefaultAdministratorRights) ParseResult ¶
func (GetMyDefaultAdministratorRights) ParseResult(response []byte) (*rawTypes.Result, error)
type GetStickerSet ¶
type GetStickerSet struct {
Name string `json:"name"`
}
func (GetStickerSet) MethodName ¶
func (GetStickerSet) MethodName() string
func (GetStickerSet) ParseResult ¶
func (GetStickerSet) ParseResult(response []byte) (*rawTypes.Result, error)
type GetUpdates ¶
type GetUpdates struct {
AllowedUpdates []string `json:"allowed_updates,omitempty"`
Limit int `json:"limit,omitempty"`
Offset int `json:"offset,omitempty"`
Timeout int `json:"timeout,omitempty"`
}
func (GetUpdates) MethodName ¶
func (GetUpdates) MethodName() string
func (GetUpdates) ParseResult ¶
func (GetUpdates) ParseResult(response []byte) (*rawTypes.Result, error)
type GetUserProfilePhotos ¶
type GetUserProfilePhotos struct {
Limit int `json:"limit,omitempty"`
Offset int `json:"offset,omitempty"`
UserId int64 `json:"user_id"`
}
func (*GetUserProfilePhotos) Files ¶
func (entity *GetUserProfilePhotos) Files() map[string]rawTypes.InputFile
func (GetUserProfilePhotos) MethodName ¶
func (GetUserProfilePhotos) MethodName() string
func (GetUserProfilePhotos) ParseResult ¶
func (GetUserProfilePhotos) ParseResult(response []byte) (*rawTypes.Result, error)
type GetWebhookInfo ¶
type GetWebhookInfo struct{}
func (GetWebhookInfo) MethodName ¶
func (GetWebhookInfo) MethodName() string
func (GetWebhookInfo) ParseResult ¶
func (GetWebhookInfo) ParseResult(response []byte) (*rawTypes.Result, error)
type LeaveChat ¶
type LeaveChat struct {
ChatId int64 `json:"chat_id"`
}
func (LeaveChat) MethodName ¶
type PinChatMessage ¶
type PinChatMessage struct {
ChatId int64 `json:"chat_id"`
DisableNotification bool `json:"disable_notification,omitempty"`
MessageId int64 `json:"message_id"`
}
func (PinChatMessage) MethodName ¶
func (PinChatMessage) MethodName() string
func (PinChatMessage) ParseResult ¶
func (PinChatMessage) ParseResult(response []byte) (*rawTypes.Result, error)
type PromoteChatMember ¶
type PromoteChatMember struct {
CanChangeInfo bool `json:"can_change_info,omitempty"`
CanDeleteMessages bool `json:"can_delete_messages,omitempty"`
CanEditMessages bool `json:"can_edit_messages,omitempty"`
CanInviteUsers bool `json:"can_invite_users,omitempty"`
CanManageChat bool `json:"can_manage_chat,omitempty"`
CanManageVideoChats bool `json:"can_manage_video_chats,omitempty"`
CanPinMessages bool `json:"can_pin_messages,omitempty"`
CanPostMessages bool `json:"can_post_messages,omitempty"`
CanPromoteMembers bool `json:"can_promote_members,omitempty"`
CanRestrictMembers bool `json:"can_restrict_members,omitempty"`
ChatId int64 `json:"chat_id"`
IsAnonymous bool `json:"is_anonymous,omitempty"`
UserId int64 `json:"user_id"`
}
func (*PromoteChatMember) Files ¶
func (entity *PromoteChatMember) Files() map[string]rawTypes.InputFile
func (PromoteChatMember) MethodName ¶
func (PromoteChatMember) MethodName() string
func (PromoteChatMember) ParseResult ¶
func (PromoteChatMember) ParseResult(response []byte) (*rawTypes.Result, error)
type RestrictChatMember ¶
type RestrictChatMember struct {
ChatId int64 `json:"chat_id"`
Permissions types.ChatPermissions `json:"permissions"`
UntilDate int64 `json:"until_date,omitempty"`
UserId int64 `json:"user_id"`
}
func (*RestrictChatMember) Files ¶
func (entity *RestrictChatMember) Files() map[string]rawTypes.InputFile
func (RestrictChatMember) MethodName ¶
func (RestrictChatMember) MethodName() string
func (RestrictChatMember) ParseResult ¶
func (RestrictChatMember) ParseResult(response []byte) (*rawTypes.Result, error)
type RevokeChatInviteLink ¶
type RevokeChatInviteLink struct {
ChatId int64 `json:"chat_id"`
InviteLink string `json:"invite_link"`
}
func (*RevokeChatInviteLink) Files ¶
func (entity *RevokeChatInviteLink) Files() map[string]rawTypes.InputFile
func (RevokeChatInviteLink) MethodName ¶
func (RevokeChatInviteLink) MethodName() string
func (RevokeChatInviteLink) ParseResult ¶
func (RevokeChatInviteLink) ParseResult(response []byte) (*rawTypes.Result, error)
type SendAnimation ¶
type SendAnimation struct {
AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"`
Animation rawTypes.InputFile `json:"animation,omitempty"`
Caption string `json:"caption,omitempty"`
CaptionEntities []types.MessageEntity `json:"caption_entities,omitempty"`
ChatId int64 `json:"chat_id"`
DisableNotification bool `json:"disable_notification,omitempty"`
Duration int `json:"duration,omitempty"`
Height int `json:"height,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"`
Thumb rawTypes.InputFile `json:"thumb,omitempty"`
Width int64 `json:"width,omitempty"`
}
func (SendAnimation) MarshalJSON ¶
func (entity SendAnimation) MarshalJSON() ([]byte, error)
func (SendAnimation) MethodName ¶
func (SendAnimation) MethodName() string
func (SendAnimation) ParseResult ¶
func (SendAnimation) ParseResult(response []byte) (*rawTypes.Result, error)
type SendAudio ¶
type SendAudio struct {
AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"`
Audio rawTypes.InputFile `json:"audio,omitempty"`
Caption string `json:"caption,omitempty"`
CaptionEntities []types.MessageEntity `json:"caption_entities,omitempty"`
ChatId int64 `json:"chat_id"`
DisableNotification bool `json:"disable_notification,omitempty"`
Duration int `json:"duration,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
Performer string `json:"performer,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"`
Thumb rawTypes.InputFile `json:"thumb,omitempty"`
Title string `json:"title,omitempty"`
}
func (SendAudio) MarshalJSON ¶
func (SendAudio) MethodName ¶
type SendChatAction ¶
func (SendChatAction) MethodName ¶
func (SendChatAction) MethodName() string
func (SendChatAction) ParseResult ¶
func (SendChatAction) ParseResult(response []byte) (*rawTypes.Result, error)
type SendContact ¶
type SendContact struct {
AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"`
ChatId int64 `json:"chat_id"`
DisableNotification bool `json:"disable_notification,omitempty"`
FirstName string `json:"first_name"`
LastName string `json:"last_name,omitempty"`
PhoneNumber string `json:"phone_number"`
ProtectContent bool `json:"protect_content,omitempty"`
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"`
Vcard string `json:"vcard,omitempty"`
}
func (SendContact) MarshalJSON ¶
func (entity SendContact) MarshalJSON() ([]byte, error)
func (SendContact) MethodName ¶
func (SendContact) MethodName() string
func (SendContact) ParseResult ¶
func (SendContact) ParseResult(response []byte) (*rawTypes.Result, error)
type SendDice ¶
type SendDice struct {
AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"`
ChatId int64 `json:"chat_id"`
DisableNotification bool `json:"disable_notification,omitempty"`
Emoji string `json:"emoji,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"`
}
func (SendDice) MarshalJSON ¶
func (SendDice) MethodName ¶
type SendDocument ¶
type SendDocument struct {
AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"`
Caption string `json:"caption,omitempty"`
CaptionEntities []types.MessageEntity `json:"caption_entities,omitempty"`
ChatId int64 `json:"chat_id"`
DisableContentTypeDetection bool `json:"disable_content_type_detection,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty"`
Document rawTypes.InputFile `json:"document,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"`
Thumb rawTypes.InputFile `json:"thumb,omitempty"`
}
func (SendDocument) MarshalJSON ¶
func (entity SendDocument) MarshalJSON() ([]byte, error)
func (SendDocument) MethodName ¶
func (SendDocument) MethodName() string
func (SendDocument) ParseResult ¶
func (SendDocument) ParseResult(response []byte) (*rawTypes.Result, error)
type SendGame ¶
type SendGame struct {
AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"`
ChatId int64 `json:"chat_id"`
DisableNotification bool `json:"disable_notification,omitempty"`
GameShortName string `json:"game_short_name"`
ProtectContent bool `json:"protect_content,omitempty"`
ReplyMarkup *types.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"`
}
func (SendGame) MethodName ¶
type SendInvoice ¶
type SendInvoice struct {
AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"`
ChatId int64 `json:"chat_id"`
Currency string `json:"currency"`
Description string `json:"description"`
DisableNotification bool `json:"disable_notification,omitempty"`
IsFlexible bool `json:"is_flexible,omitempty"`
MaxTipAmount int `json:"max_tip_amount,omitempty"`
NeedEmail bool `json:"need_email,omitempty"`
NeedName bool `json:"need_name,omitempty"`
NeedPhoneNumber bool `json:"need_phone_number,omitempty"`
NeedShippingAddress bool `json:"need_shipping_address,omitempty"`
Payload string `json:"payload"`
PhotoHeight int `json:"photo_height,omitempty"`
PhotoSize int `json:"photo_size,omitempty"`
PhotoUrl string `json:"photo_url,omitempty"`
PhotoWidth int64 `json:"photo_width,omitempty"`
Prices []types.LabeledPrice `json:"prices"`
ProtectContent bool `json:"protect_content,omitempty"`
ProviderData string `json:"provider_data,omitempty"`
ProviderToken string `json:"provider_token"`
ReplyMarkup *types.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"`
SendEmailToProvider bool `json:"send_email_to_provider,omitempty"`
SendPhoneNumberToProvider bool `json:"send_phone_number_to_provider,omitempty"`
StartParameter string `json:"start_parameter,omitempty"`
SuggestedTipAmounts []int `json:"suggested_tip_amounts,omitempty"`
Title string `json:"title"`
}
func (SendInvoice) MethodName ¶
func (SendInvoice) MethodName() string
func (SendInvoice) ParseResult ¶
func (SendInvoice) ParseResult(response []byte) (*rawTypes.Result, error)
type SendLocation ¶
type SendLocation struct {
AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"`
ChatId int64 `json:"chat_id"`
DisableNotification bool `json:"disable_notification,omitempty"`
Heading int `json:"heading,omitempty"`
HorizontalAccuracy float64 `json:"horizontal_accuracy,omitempty"`
Latitude float64 `json:"latitude"`
LivePeriod int `json:"live_period,omitempty"`
Longitude float64 `json:"longitude"`
ProtectContent bool `json:"protect_content,omitempty"`
ProximityAlertRadius int `json:"proximity_alert_radius,omitempty"`
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"`
}
func (SendLocation) MarshalJSON ¶
func (entity SendLocation) MarshalJSON() ([]byte, error)
func (SendLocation) MethodName ¶
func (SendLocation) MethodName() string
func (SendLocation) ParseResult ¶
func (SendLocation) ParseResult(response []byte) (*rawTypes.Result, error)
type SendMediaGroup ¶
type SendMediaGroup struct {
AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"`
ChatId int64 `json:"chat_id"`
DisableNotification bool `json:"disable_notification,omitempty"`
Media []types.InputMedia `json:"media"`
ProtectContent bool `json:"protect_content,omitempty"`
ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"`
}
func (SendMediaGroup) MarshalJSON ¶
func (entity SendMediaGroup) MarshalJSON() ([]byte, error)
func (SendMediaGroup) MethodName ¶
func (SendMediaGroup) MethodName() string
func (SendMediaGroup) ParseResult ¶
func (SendMediaGroup) ParseResult(response []byte) (*rawTypes.Result, error)
type SendMessage ¶
type SendMessage struct {
AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"`
ChatId int64 `json:"chat_id"`
DisableNotification bool `json:"disable_notification,omitempty"`
DisableWebPagePreview bool `json:"disable_web_page_preview,omitempty"`
Entities []types.MessageEntity `json:"entities,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"`
Text string `json:"text"`
}
func (SendMessage) MarshalJSON ¶
func (entity SendMessage) MarshalJSON() ([]byte, error)
func (SendMessage) MethodName ¶
func (SendMessage) MethodName() string
func (SendMessage) ParseResult ¶
func (SendMessage) ParseResult(response []byte) (*rawTypes.Result, error)
type SendPhoto ¶
type SendPhoto struct {
AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"`
Caption string `json:"caption,omitempty"`
CaptionEntities []types.MessageEntity `json:"caption_entities,omitempty"`
ChatId int64 `json:"chat_id"`
DisableNotification bool `json:"disable_notification,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
Photo rawTypes.InputFile `json:"photo,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"`
}
func (SendPhoto) MarshalJSON ¶
func (SendPhoto) MethodName ¶
type SendPoll ¶
type SendPoll struct {
AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"`
AllowsMultipleAnswers bool `json:"allows_multiple_answers,omitempty"`
ChatId int64 `json:"chat_id"`
CloseDate int64 `json:"close_date,omitempty"`
CorrectOptionId int64 `json:"correct_option_id,omitempty"`
DisableNotification bool `json:"disable_notification,omitempty"`
Explanation string `json:"explanation,omitempty"`
ExplanationEntities []types.MessageEntity `json:"explanation_entities,omitempty"`
ExplanationParseMode string `json:"explanation_parse_mode,omitempty"`
IsAnonymous bool `json:"is_anonymous,omitempty"`
IsClosed bool `json:"is_closed,omitempty"`
OpenPeriod int `json:"open_period,omitempty"`
Options []string `json:"options"`
ProtectContent bool `json:"protect_content,omitempty"`
Question string `json:"question"`
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"`
Type string `json:"type,omitempty"`
}
func (SendPoll) MarshalJSON ¶
func (SendPoll) MethodName ¶
type SendSticker ¶
type SendSticker struct {
AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"`
ChatId int64 `json:"chat_id"`
DisableNotification bool `json:"disable_notification,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"`
Sticker rawTypes.InputFile `json:"sticker,omitempty"`
}
func (SendSticker) MarshalJSON ¶
func (entity SendSticker) MarshalJSON() ([]byte, error)
func (SendSticker) MethodName ¶
func (SendSticker) MethodName() string
func (SendSticker) ParseResult ¶
func (SendSticker) ParseResult(response []byte) (*rawTypes.Result, error)
type SendVenue ¶
type SendVenue struct {
Address string `json:"address"`
AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"`
ChatId int64 `json:"chat_id"`
DisableNotification bool `json:"disable_notification,omitempty"`
FoursquareId string `json:"foursquare_id,omitempty"`
FoursquareType string `json:"foursquare_type,omitempty"`
GooglePlaceId string `json:"google_place_id,omitempty"`
GooglePlaceType string `json:"google_place_type,omitempty"`
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
ProtectContent bool `json:"protect_content,omitempty"`
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"`
Title string `json:"title"`
}
func (SendVenue) MarshalJSON ¶
func (SendVenue) MethodName ¶
type SendVideo ¶
type SendVideo struct {
AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"`
Caption string `json:"caption,omitempty"`
CaptionEntities []types.MessageEntity `json:"caption_entities,omitempty"`
ChatId int64 `json:"chat_id"`
DisableNotification bool `json:"disable_notification,omitempty"`
Duration int `json:"duration,omitempty"`
Height int `json:"height,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"`
SupportsStreaming bool `json:"supports_streaming,omitempty"`
Thumb rawTypes.InputFile `json:"thumb,omitempty"`
Video rawTypes.InputFile `json:"video,omitempty"`
Width int64 `json:"width,omitempty"`
}
func (SendVideo) MarshalJSON ¶
func (SendVideo) MethodName ¶
type SendVideoNote ¶
type SendVideoNote struct {
AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"`
ChatId int64 `json:"chat_id"`
DisableNotification bool `json:"disable_notification,omitempty"`
Duration int `json:"duration,omitempty"`
Length int `json:"length,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"`
Thumb rawTypes.InputFile `json:"thumb,omitempty"`
VideoNote rawTypes.InputFile `json:"video_note,omitempty"`
}
func (SendVideoNote) MarshalJSON ¶
func (entity SendVideoNote) MarshalJSON() ([]byte, error)
func (SendVideoNote) MethodName ¶
func (SendVideoNote) MethodName() string
func (SendVideoNote) ParseResult ¶
func (SendVideoNote) ParseResult(response []byte) (*rawTypes.Result, error)
type SendVoice ¶
type SendVoice struct {
AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"`
Caption string `json:"caption,omitempty"`
CaptionEntities []types.MessageEntity `json:"caption_entities,omitempty"`
ChatId int64 `json:"chat_id"`
DisableNotification bool `json:"disable_notification,omitempty"`
Duration int `json:"duration,omitempty"`
ParseMode string `json:"parse_mode,omitempty"`
ProtectContent bool `json:"protect_content,omitempty"`
ReplyMarkup interface{} `json:"reply_markup,omitempty"`
ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"`
Voice rawTypes.InputFile `json:"voice,omitempty"`
}
func (SendVoice) MarshalJSON ¶
func (SendVoice) MethodName ¶
type SetChatAdministratorCustomTitle ¶
type SetChatAdministratorCustomTitle struct {
ChatId int64 `json:"chat_id"`
CustomTitle string `json:"custom_title"`
UserId int64 `json:"user_id"`
}
func (*SetChatAdministratorCustomTitle) Files ¶
func (entity *SetChatAdministratorCustomTitle) Files() map[string]rawTypes.InputFile
func (SetChatAdministratorCustomTitle) MethodName ¶
func (SetChatAdministratorCustomTitle) MethodName() string
func (SetChatAdministratorCustomTitle) ParseResult ¶
func (SetChatAdministratorCustomTitle) ParseResult(response []byte) (*rawTypes.Result, error)
type SetChatDescription ¶
type SetChatDescription struct {
ChatId int64 `json:"chat_id"`
Description string `json:"description,omitempty"`
}
func (*SetChatDescription) Files ¶
func (entity *SetChatDescription) Files() map[string]rawTypes.InputFile
func (SetChatDescription) MethodName ¶
func (SetChatDescription) MethodName() string
func (SetChatDescription) ParseResult ¶
func (SetChatDescription) ParseResult(response []byte) (*rawTypes.Result, error)
type SetChatMenuButton ¶
type SetChatMenuButton struct {
ChatId int64 `json:"chat_id,omitempty"`
MenuButton *types.MenuButton `json:"menu_button,omitempty"`
}
func (*SetChatMenuButton) Files ¶
func (entity *SetChatMenuButton) Files() map[string]rawTypes.InputFile
func (SetChatMenuButton) MethodName ¶
func (SetChatMenuButton) MethodName() string
func (SetChatMenuButton) ParseResult ¶
func (SetChatMenuButton) ParseResult(response []byte) (*rawTypes.Result, error)
type SetChatPermissions ¶
type SetChatPermissions struct {
ChatId int64 `json:"chat_id"`
Permissions types.ChatPermissions `json:"permissions"`
}
func (*SetChatPermissions) Files ¶
func (entity *SetChatPermissions) Files() map[string]rawTypes.InputFile
func (SetChatPermissions) MethodName ¶
func (SetChatPermissions) MethodName() string
func (SetChatPermissions) ParseResult ¶
func (SetChatPermissions) ParseResult(response []byte) (*rawTypes.Result, error)
type SetChatPhoto ¶
type SetChatPhoto struct {
ChatId int64 `json:"chat_id"`
Photo rawTypes.InputFile `json:"photo,omitempty"`
}
func (SetChatPhoto) MethodName ¶
func (SetChatPhoto) MethodName() string
func (SetChatPhoto) ParseResult ¶
func (SetChatPhoto) ParseResult(response []byte) (*rawTypes.Result, error)
type SetChatStickerSet ¶
type SetChatStickerSet struct {
ChatId int64 `json:"chat_id"`
StickerSetName string `json:"sticker_set_name"`
}
func (*SetChatStickerSet) Files ¶
func (entity *SetChatStickerSet) Files() map[string]rawTypes.InputFile
func (SetChatStickerSet) MethodName ¶
func (SetChatStickerSet) MethodName() string
func (SetChatStickerSet) ParseResult ¶
func (SetChatStickerSet) ParseResult(response []byte) (*rawTypes.Result, error)
type SetChatTitle ¶
func (SetChatTitle) MethodName ¶
func (SetChatTitle) MethodName() string
func (SetChatTitle) ParseResult ¶
func (SetChatTitle) ParseResult(response []byte) (*rawTypes.Result, error)
type SetGameScore ¶
type SetGameScore struct {
ChatId int64 `json:"chat_id,omitempty"`
DisableEditMessage bool `json:"disable_edit_message,omitempty"`
Force bool `json:"force,omitempty"`
InlineMessageId string `json:"inline_message_id,omitempty"`
MessageId int64 `json:"message_id,omitempty"`
Score int `json:"score"`
UserId int64 `json:"user_id"`
}
func (SetGameScore) MethodName ¶
func (SetGameScore) MethodName() string
func (SetGameScore) ParseResult ¶
func (SetGameScore) ParseResult(response []byte) (*rawTypes.Result, error)
type SetMyCommands ¶
type SetMyCommands struct {
Commands []types.BotCommand `json:"commands"`
LanguageCode string `json:"language_code,omitempty"`
Scope *types.BotCommandScope `json:"scope,omitempty"`
}
func (SetMyCommands) MethodName ¶
func (SetMyCommands) MethodName() string
func (SetMyCommands) ParseResult ¶
func (SetMyCommands) ParseResult(response []byte) (*rawTypes.Result, error)
type SetMyDefaultAdministratorRights ¶
type SetMyDefaultAdministratorRights struct {
ForChannels bool `json:"for_channels,omitempty"`
Rights *types.ChatAdministratorRights `json:"rights,omitempty"`
}
func (*SetMyDefaultAdministratorRights) Files ¶
func (entity *SetMyDefaultAdministratorRights) Files() map[string]rawTypes.InputFile
func (SetMyDefaultAdministratorRights) MethodName ¶
func (SetMyDefaultAdministratorRights) MethodName() string
func (SetMyDefaultAdministratorRights) ParseResult ¶
func (SetMyDefaultAdministratorRights) ParseResult(response []byte) (*rawTypes.Result, error)
type SetPassportDataErrors ¶
type SetPassportDataErrors struct {
Errors []types.PassportElementError `json:"errors"`
UserId int64 `json:"user_id"`
}
func (*SetPassportDataErrors) Files ¶
func (entity *SetPassportDataErrors) Files() map[string]rawTypes.InputFile
func (SetPassportDataErrors) MethodName ¶
func (SetPassportDataErrors) MethodName() string
func (SetPassportDataErrors) ParseResult ¶
func (SetPassportDataErrors) ParseResult(response []byte) (*rawTypes.Result, error)
type SetStickerPositionInSet ¶
type SetStickerPositionInSet struct {
Position int `json:"position"`
Sticker string `json:"sticker"`
}
func (*SetStickerPositionInSet) Files ¶
func (entity *SetStickerPositionInSet) Files() map[string]rawTypes.InputFile
func (SetStickerPositionInSet) MethodName ¶
func (SetStickerPositionInSet) MethodName() string
func (SetStickerPositionInSet) ParseResult ¶
func (SetStickerPositionInSet) ParseResult(response []byte) (*rawTypes.Result, error)
type SetStickerSetThumb ¶
type SetStickerSetThumb struct {
Name string `json:"name"`
Thumb rawTypes.InputFile `json:"thumb,omitempty"`
UserId int64 `json:"user_id"`
}
func (*SetStickerSetThumb) Files ¶
func (entity *SetStickerSetThumb) Files() map[string]rawTypes.InputFile
func (SetStickerSetThumb) MethodName ¶
func (SetStickerSetThumb) MethodName() string
func (SetStickerSetThumb) ParseResult ¶
func (SetStickerSetThumb) ParseResult(response []byte) (*rawTypes.Result, error)
type SetWebhook ¶
type SetWebhook struct {
AllowedUpdates []string `json:"allowed_updates,omitempty"`
Certificate rawTypes.InputFile `json:"certificate,omitempty"`
DropPendingUpdates bool `json:"drop_pending_updates,omitempty"`
IpAddress string `json:"ip_address,omitempty"`
MaxConnections int `json:"max_connections,omitempty"`
Url string `json:"url"`
}
func (SetWebhook) MethodName ¶
func (SetWebhook) MethodName() string
func (SetWebhook) ParseResult ¶
func (SetWebhook) ParseResult(response []byte) (*rawTypes.Result, error)
type StopMessageLiveLocation ¶
type StopMessageLiveLocation struct {
ChatId int64 `json:"chat_id,omitempty"`
InlineMessageId string `json:"inline_message_id,omitempty"`
MessageId int64 `json:"message_id,omitempty"`
ReplyMarkup *types.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
func (*StopMessageLiveLocation) Files ¶
func (entity *StopMessageLiveLocation) Files() map[string]rawTypes.InputFile
func (StopMessageLiveLocation) MethodName ¶
func (StopMessageLiveLocation) MethodName() string
func (StopMessageLiveLocation) ParseResult ¶
func (StopMessageLiveLocation) ParseResult(response []byte) (*rawTypes.Result, error)
type StopPoll ¶
type StopPoll struct {
ChatId int64 `json:"chat_id"`
MessageId int64 `json:"message_id"`
ReplyMarkup *types.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}
func (StopPoll) MethodName ¶
type UnbanChatMember ¶
type UnbanChatMember struct {
ChatId int64 `json:"chat_id"`
OnlyIfBanned bool `json:"only_if_banned,omitempty"`
UserId int64 `json:"user_id"`
}
func (*UnbanChatMember) Files ¶
func (entity *UnbanChatMember) Files() map[string]rawTypes.InputFile
func (UnbanChatMember) MethodName ¶
func (UnbanChatMember) MethodName() string
func (UnbanChatMember) ParseResult ¶
func (UnbanChatMember) ParseResult(response []byte) (*rawTypes.Result, error)
type UnbanChatSenderChat ¶
type UnbanChatSenderChat struct {
ChatId int64 `json:"chat_id"`
SenderChatId int64 `json:"sender_chat_id"`
}
func (*UnbanChatSenderChat) Files ¶
func (entity *UnbanChatSenderChat) Files() map[string]rawTypes.InputFile
func (UnbanChatSenderChat) MethodName ¶
func (UnbanChatSenderChat) MethodName() string
func (UnbanChatSenderChat) ParseResult ¶
func (UnbanChatSenderChat) ParseResult(response []byte) (*rawTypes.Result, error)
type UnpinAllChatMessages ¶
type UnpinAllChatMessages struct {
ChatId int64 `json:"chat_id"`
}
func (*UnpinAllChatMessages) Files ¶
func (entity *UnpinAllChatMessages) Files() map[string]rawTypes.InputFile
func (UnpinAllChatMessages) MethodName ¶
func (UnpinAllChatMessages) MethodName() string
func (UnpinAllChatMessages) ParseResult ¶
func (UnpinAllChatMessages) ParseResult(response []byte) (*rawTypes.Result, error)
type UnpinChatMessage ¶
type UnpinChatMessage struct {
ChatId int64 `json:"chat_id"`
MessageId int64 `json:"message_id,omitempty"`
}
func (*UnpinChatMessage) Files ¶
func (entity *UnpinChatMessage) Files() map[string]rawTypes.InputFile
func (UnpinChatMessage) MethodName ¶
func (UnpinChatMessage) MethodName() string
func (UnpinChatMessage) ParseResult ¶
func (UnpinChatMessage) ParseResult(response []byte) (*rawTypes.Result, error)
type UploadStickerFile ¶
type UploadStickerFile struct {
PngSticker rawTypes.InputFile `json:"png_sticker,omitempty"`
UserId int64 `json:"user_id"`
}
func (*UploadStickerFile) Files ¶
func (entity *UploadStickerFile) Files() map[string]rawTypes.InputFile
func (UploadStickerFile) MethodName ¶
func (UploadStickerFile) MethodName() string
func (UploadStickerFile) ParseResult ¶
func (UploadStickerFile) ParseResult(response []byte) (*rawTypes.Result, error)
Source Files
¶
- add_sticker_to_set.go
- answer_callback_query.go
- answer_inline_query.go
- answer_pre_checkout_query.go
- answer_shipping_query.go
- answer_web_app_query.go
- approve_chat_join_request.go
- ban_chat_member.go
- ban_chat_sender_chat.go
- close.go
- copy_message.go
- create_chat_invite_link.go
- create_new_sticker_set.go
- decline_chat_join_request.go
- delete_chat_photo.go
- delete_chat_sticker_set.go
- delete_message.go
- delete_my_commands.go
- delete_sticker_from_set.go
- delete_webhook.go
- edit_chat_invite_link.go
- edit_message_caption.go
- edit_message_live_location.go
- edit_message_media.go
- edit_message_reply_markup.go
- edit_message_text.go
- export_chat_invite_link.go
- forward_message.go
- get_chat.go
- get_chat_administrators.go
- get_chat_member.go
- get_chat_member_count.go
- get_chat_menu_button.go
- get_file.go
- get_game_high_scores.go
- get_me.go
- get_my_commands.go
- get_my_default_administrator_rights.go
- get_sticker_set.go
- get_updates.go
- get_user_profile_photos.go
- get_webhook_info.go
- leave_chat.go
- log_out.go
- pin_chat_message.go
- promote_chat_member.go
- restrict_chat_member.go
- revoke_chat_invite_link.go
- send_animation.go
- send_audio.go
- send_chat_action.go
- send_contact.go
- send_dice.go
- send_document.go
- send_game.go
- send_invoice.go
- send_location.go
- send_media_group.go
- send_message.go
- send_photo.go
- send_poll.go
- send_sticker.go
- send_venue.go
- send_video.go
- send_video_note.go
- send_voice.go
- set_chat_administrator_custom_title.go
- set_chat_description.go
- set_chat_menu_button.go
- set_chat_permissions.go
- set_chat_photo.go
- set_chat_sticker_set.go
- set_chat_title.go
- set_game_score.go
- set_my_commands.go
- set_my_default_administrator_rights.go
- set_passport_data_errors.go
- set_sticker_position_in_set.go
- set_sticker_set_thumb.go
- set_webhook.go
- stop_message_live_location.go
- stop_poll.go
- unban_chat_member.go
- unban_chat_sender_chat.go
- unpin_all_chat_messages.go
- unpin_chat_message.go
- upload_sticker_file.go
Click to show internal directories.
Click to hide internal directories.