methods

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

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

type ApproveChatJoinRequest struct {
	ChatId int64 `json:"chat_id"`
	UserId int64 `json:"user_id"`
}

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) Files

func (entity *BanChatMember) Files() map[string]rawTypes.InputFile

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 Close

type Close struct{}

func (*Close) Files

func (entity *Close) Files() map[string]rawTypes.InputFile

func (Close) MethodName

func (Close) MethodName() string

func (Close) ParseResult

func (Close) 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) Files

func (entity *CopyMessage) Files() map[string]rawTypes.InputFile

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 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

type DeclineChatJoinRequest struct {
	ChatId int64 `json:"chat_id"`
	UserId int64 `json:"user_id"`
}

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

type DeleteMessage struct {
	ChatId    int64 `json:"chat_id"`
	MessageId int64 `json:"message_id"`
}

func (*DeleteMessage) Files

func (entity *DeleteMessage) Files() map[string]rawTypes.InputFile

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) Files

func (entity *DeleteWebhook) Files() map[string]rawTypes.InputFile

func (DeleteWebhook) MethodName

func (DeleteWebhook) MethodName() string

func (DeleteWebhook) ParseResult

func (DeleteWebhook) ParseResult(response []byte) (*rawTypes.Result, error)
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 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) Files

func (entity *ForwardMessage) Files() map[string]rawTypes.InputFile

func (ForwardMessage) MethodName

func (ForwardMessage) MethodName() string

func (ForwardMessage) ParseResult

func (ForwardMessage) ParseResult(response []byte) (*rawTypes.Result, error)

type GetChat

type GetChat struct {
	ChatId int64 `json:"chat_id"`
}

func (*GetChat) Files

func (entity *GetChat) Files() map[string]rawTypes.InputFile

func (GetChat) MethodName

func (GetChat) MethodName() string

func (GetChat) ParseResult

func (GetChat) 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

type GetChatMember struct {
	ChatId int64 `json:"chat_id"`
	UserId int64 `json:"user_id"`
}

func (*GetChatMember) Files

func (entity *GetChatMember) Files() map[string]rawTypes.InputFile

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 GetFile

type GetFile struct {
	FileId string `json:"file_id"`
}

func (*GetFile) Files

func (entity *GetFile) Files() map[string]rawTypes.InputFile

func (GetFile) MethodName

func (GetFile) MethodName() string

func (GetFile) ParseResult

func (GetFile) 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 GetMe

type GetMe struct{}

func (*GetMe) Files

func (entity *GetMe) Files() map[string]rawTypes.InputFile

func (GetMe) MethodName

func (GetMe) MethodName() string

func (GetMe) ParseResult

func (GetMe) 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) Files

func (entity *GetMyCommands) Files() map[string]rawTypes.InputFile

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 (GetMyDefaultAdministratorRights) MethodName

func (GetMyDefaultAdministratorRights) ParseResult

func (GetMyDefaultAdministratorRights) ParseResult(response []byte) (*rawTypes.Result, error)

type GetStickerSet

type GetStickerSet struct {
	Name string `json:"name"`
}

func (*GetStickerSet) Files

func (entity *GetStickerSet) Files() map[string]rawTypes.InputFile

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) Files

func (entity *GetUpdates) Files() map[string]rawTypes.InputFile

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) Files

func (entity *GetWebhookInfo) Files() map[string]rawTypes.InputFile

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) Files

func (entity *LeaveChat) Files() map[string]rawTypes.InputFile

func (LeaveChat) MethodName

func (LeaveChat) MethodName() string

func (LeaveChat) ParseResult

func (LeaveChat) ParseResult(response []byte) (*rawTypes.Result, error)

type LogOut

type LogOut struct{}

func (*LogOut) Files

func (entity *LogOut) Files() map[string]rawTypes.InputFile

func (LogOut) MethodName

func (LogOut) MethodName() string

func (LogOut) ParseResult

func (LogOut) ParseResult(response []byte) (*rawTypes.Result, error)

type PinChatMessage

type PinChatMessage struct {
	ChatId              int64 `json:"chat_id"`
	DisableNotification bool  `json:"disable_notification,omitempty"`
	MessageId           int64 `json:"message_id"`
}

func (*PinChatMessage) Files

func (entity *PinChatMessage) Files() map[string]rawTypes.InputFile

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 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) Files

func (entity *SendAnimation) Files() map[string]rawTypes.InputFile

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) Files

func (entity *SendAudio) Files() map[string]rawTypes.InputFile

func (SendAudio) MarshalJSON

func (entity SendAudio) MarshalJSON() ([]byte, error)

func (SendAudio) MethodName

func (SendAudio) MethodName() string

func (SendAudio) ParseResult

func (SendAudio) ParseResult(response []byte) (*rawTypes.Result, error)

type SendChatAction

type SendChatAction struct {
	Action string `json:"action"`
	ChatId int64  `json:"chat_id"`
}

func (*SendChatAction) Files

func (entity *SendChatAction) Files() map[string]rawTypes.InputFile

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) Files

func (entity *SendContact) Files() map[string]rawTypes.InputFile

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) Files

func (entity *SendDice) Files() map[string]rawTypes.InputFile

func (SendDice) MarshalJSON

func (entity SendDice) MarshalJSON() ([]byte, error)

func (SendDice) MethodName

func (SendDice) MethodName() string

func (SendDice) ParseResult

func (SendDice) ParseResult(response []byte) (*rawTypes.Result, error)

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) Files

func (entity *SendDocument) Files() map[string]rawTypes.InputFile

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) Files

func (entity *SendGame) Files() map[string]rawTypes.InputFile

func (SendGame) MethodName

func (SendGame) MethodName() string

func (SendGame) ParseResult

func (SendGame) ParseResult(response []byte) (*rawTypes.Result, error)

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) Files

func (entity *SendInvoice) Files() map[string]rawTypes.InputFile

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) Files

func (entity *SendLocation) Files() map[string]rawTypes.InputFile

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) Files

func (entity *SendMediaGroup) Files() map[string]rawTypes.InputFile

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) Files

func (entity *SendMessage) Files() map[string]rawTypes.InputFile

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) Files

func (entity *SendPhoto) Files() map[string]rawTypes.InputFile

func (SendPhoto) MarshalJSON

func (entity SendPhoto) MarshalJSON() ([]byte, error)

func (SendPhoto) MethodName

func (SendPhoto) MethodName() string

func (SendPhoto) ParseResult

func (SendPhoto) ParseResult(response []byte) (*rawTypes.Result, error)

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) Files

func (entity *SendPoll) Files() map[string]rawTypes.InputFile

func (SendPoll) MarshalJSON

func (entity SendPoll) MarshalJSON() ([]byte, error)

func (SendPoll) MethodName

func (SendPoll) MethodName() string

func (SendPoll) ParseResult

func (SendPoll) ParseResult(response []byte) (*rawTypes.Result, error)

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) Files

func (entity *SendSticker) Files() map[string]rawTypes.InputFile

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) Files

func (entity *SendVenue) Files() map[string]rawTypes.InputFile

func (SendVenue) MarshalJSON

func (entity SendVenue) MarshalJSON() ([]byte, error)

func (SendVenue) MethodName

func (SendVenue) MethodName() string

func (SendVenue) ParseResult

func (SendVenue) ParseResult(response []byte) (*rawTypes.Result, error)

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) Files

func (entity *SendVideo) Files() map[string]rawTypes.InputFile

func (SendVideo) MarshalJSON

func (entity SendVideo) MarshalJSON() ([]byte, error)

func (SendVideo) MethodName

func (SendVideo) MethodName() string

func (SendVideo) ParseResult

func (SendVideo) ParseResult(response []byte) (*rawTypes.Result, error)

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) Files

func (entity *SendVideoNote) Files() map[string]rawTypes.InputFile

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) Files

func (entity *SendVoice) Files() map[string]rawTypes.InputFile

func (SendVoice) MarshalJSON

func (entity SendVoice) MarshalJSON() ([]byte, error)

func (SendVoice) MethodName

func (SendVoice) MethodName() string

func (SendVoice) ParseResult

func (SendVoice) ParseResult(response []byte) (*rawTypes.Result, error)

type SetChatAdministratorCustomTitle

type SetChatAdministratorCustomTitle struct {
	ChatId      int64  `json:"chat_id"`
	CustomTitle string `json:"custom_title"`
	UserId      int64  `json:"user_id"`
}

func (*SetChatAdministratorCustomTitle) Files

func (SetChatAdministratorCustomTitle) MethodName

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) Files

func (entity *SetChatPhoto) Files() map[string]rawTypes.InputFile

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

type SetChatTitle struct {
	ChatId int64  `json:"chat_id"`
	Title  string `json:"title"`
}

func (*SetChatTitle) Files

func (entity *SetChatTitle) Files() map[string]rawTypes.InputFile

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) Files

func (entity *SetGameScore) Files() map[string]rawTypes.InputFile

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) Files

func (entity *SetMyCommands) Files() map[string]rawTypes.InputFile

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 (SetMyDefaultAdministratorRights) MethodName

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) Files

func (entity *SetWebhook) Files() map[string]rawTypes.InputFile

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) Files

func (entity *StopPoll) Files() map[string]rawTypes.InputFile

func (StopPoll) MethodName

func (StopPoll) MethodName() string

func (StopPoll) ParseResult

func (StopPoll) ParseResult(response []byte) (*rawTypes.Result, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL