Documentation ¶
Index ¶
- func WithServerURL(ctx context.Context, u *url.URL) context.Context
- type AddStickerToSet
- func (s *AddStickerToSet) Decode(d *jx.Decoder) error
- func (s *AddStickerToSet) Encode(e *jx.Encoder)
- func (s *AddStickerToSet) GetEmojis() string
- func (s *AddStickerToSet) GetMaskPosition() OptMaskPosition
- func (s *AddStickerToSet) GetName() string
- func (s *AddStickerToSet) GetPNGSticker() OptString
- func (s *AddStickerToSet) GetTgsSticker() OptString
- func (s *AddStickerToSet) GetUserID() int64
- func (s *AddStickerToSet) MarshalJSON() ([]byte, error)
- func (s *AddStickerToSet) SetEmojis(val string)
- func (s *AddStickerToSet) SetFake()
- func (s *AddStickerToSet) SetMaskPosition(val OptMaskPosition)
- func (s *AddStickerToSet) SetName(val string)
- func (s *AddStickerToSet) SetPNGSticker(val OptString)
- func (s *AddStickerToSet) SetTgsSticker(val OptString)
- func (s *AddStickerToSet) SetUserID(val int64)
- func (s *AddStickerToSet) UnmarshalJSON(data []byte) error
- func (s *AddStickerToSet) Validate() error
- type Animation
- func (s *Animation) Decode(d *jx.Decoder) error
- func (s *Animation) Encode(e *jx.Encoder)
- func (s *Animation) GetDuration() int
- func (s *Animation) GetFileID() string
- func (s *Animation) GetFileName() OptString
- func (s *Animation) GetFileSize() OptInt
- func (s *Animation) GetFileUniqueID() string
- func (s *Animation) GetHeight() int
- func (s *Animation) GetMimeType() OptString
- func (s *Animation) GetThumb() OptPhotoSize
- func (s *Animation) GetWidth() int
- func (s *Animation) MarshalJSON() ([]byte, error)
- func (s *Animation) SetDuration(val int)
- func (s *Animation) SetFake()
- func (s *Animation) SetFileID(val string)
- func (s *Animation) SetFileName(val OptString)
- func (s *Animation) SetFileSize(val OptInt)
- func (s *Animation) SetFileUniqueID(val string)
- func (s *Animation) SetHeight(val int)
- func (s *Animation) SetMimeType(val OptString)
- func (s *Animation) SetThumb(val OptPhotoSize)
- func (s *Animation) SetWidth(val int)
- func (s *Animation) UnmarshalJSON(data []byte) error
- func (s *Animation) Validate() error
- type AnswerCallbackQuery
- func (s *AnswerCallbackQuery) Decode(d *jx.Decoder) error
- func (s *AnswerCallbackQuery) Encode(e *jx.Encoder)
- func (s *AnswerCallbackQuery) GetCacheTime() OptInt
- func (s *AnswerCallbackQuery) GetCallbackQueryID() string
- func (s *AnswerCallbackQuery) GetShowAlert() OptBool
- func (s *AnswerCallbackQuery) GetText() OptString
- func (s *AnswerCallbackQuery) GetURL() OptURI
- func (s *AnswerCallbackQuery) MarshalJSON() ([]byte, error)
- func (s *AnswerCallbackQuery) SetCacheTime(val OptInt)
- func (s *AnswerCallbackQuery) SetCallbackQueryID(val string)
- func (s *AnswerCallbackQuery) SetFake()
- func (s *AnswerCallbackQuery) SetShowAlert(val OptBool)
- func (s *AnswerCallbackQuery) SetText(val OptString)
- func (s *AnswerCallbackQuery) SetURL(val OptURI)
- func (s *AnswerCallbackQuery) UnmarshalJSON(data []byte) error
- func (s *AnswerCallbackQuery) Validate() error
- type AnswerInlineQuery
- func (s *AnswerInlineQuery) Decode(d *jx.Decoder) error
- func (s *AnswerInlineQuery) Encode(e *jx.Encoder)
- func (s *AnswerInlineQuery) GetCacheTime() OptInt
- func (s *AnswerInlineQuery) GetInlineQueryID() string
- func (s *AnswerInlineQuery) GetIsPersonal() OptBool
- func (s *AnswerInlineQuery) GetNextOffset() OptString
- func (s *AnswerInlineQuery) GetResults() []InlineQueryResult
- func (s *AnswerInlineQuery) GetSwitchPmParameter() OptString
- func (s *AnswerInlineQuery) GetSwitchPmText() OptString
- func (s *AnswerInlineQuery) MarshalJSON() ([]byte, error)
- func (s *AnswerInlineQuery) SetCacheTime(val OptInt)
- func (s *AnswerInlineQuery) SetFake()
- func (s *AnswerInlineQuery) SetInlineQueryID(val string)
- func (s *AnswerInlineQuery) SetIsPersonal(val OptBool)
- func (s *AnswerInlineQuery) SetNextOffset(val OptString)
- func (s *AnswerInlineQuery) SetResults(val []InlineQueryResult)
- func (s *AnswerInlineQuery) SetSwitchPmParameter(val OptString)
- func (s *AnswerInlineQuery) SetSwitchPmText(val OptString)
- func (s *AnswerInlineQuery) UnmarshalJSON(data []byte) error
- func (s *AnswerInlineQuery) Validate() error
- type AnswerPreCheckoutQuery
- func (s *AnswerPreCheckoutQuery) Decode(d *jx.Decoder) error
- func (s *AnswerPreCheckoutQuery) Encode(e *jx.Encoder)
- func (s *AnswerPreCheckoutQuery) GetErrorMessage() OptString
- func (s *AnswerPreCheckoutQuery) GetOk() bool
- func (s *AnswerPreCheckoutQuery) GetPreCheckoutQueryID() string
- func (s *AnswerPreCheckoutQuery) MarshalJSON() ([]byte, error)
- func (s *AnswerPreCheckoutQuery) SetErrorMessage(val OptString)
- func (s *AnswerPreCheckoutQuery) SetFake()
- func (s *AnswerPreCheckoutQuery) SetOk(val bool)
- func (s *AnswerPreCheckoutQuery) SetPreCheckoutQueryID(val string)
- func (s *AnswerPreCheckoutQuery) UnmarshalJSON(data []byte) error
- type AnswerShippingQuery
- func (s *AnswerShippingQuery) Decode(d *jx.Decoder) error
- func (s *AnswerShippingQuery) Encode(e *jx.Encoder)
- func (s *AnswerShippingQuery) GetErrorMessage() OptString
- func (s *AnswerShippingQuery) GetOk() bool
- func (s *AnswerShippingQuery) GetShippingOptions() []ShippingOption
- func (s *AnswerShippingQuery) GetShippingQueryID() string
- func (s *AnswerShippingQuery) MarshalJSON() ([]byte, error)
- func (s *AnswerShippingQuery) SetErrorMessage(val OptString)
- func (s *AnswerShippingQuery) SetFake()
- func (s *AnswerShippingQuery) SetOk(val bool)
- func (s *AnswerShippingQuery) SetShippingOptions(val []ShippingOption)
- func (s *AnswerShippingQuery) SetShippingQueryID(val string)
- func (s *AnswerShippingQuery) UnmarshalJSON(data []byte) error
- func (s *AnswerShippingQuery) Validate() error
- type ApproveChatJoinRequest
- func (s *ApproveChatJoinRequest) Decode(d *jx.Decoder) error
- func (s *ApproveChatJoinRequest) Encode(e *jx.Encoder)
- func (s *ApproveChatJoinRequest) GetChatID() ID
- func (s *ApproveChatJoinRequest) GetUserID() int64
- func (s *ApproveChatJoinRequest) MarshalJSON() ([]byte, error)
- func (s *ApproveChatJoinRequest) SetChatID(val ID)
- func (s *ApproveChatJoinRequest) SetFake()
- func (s *ApproveChatJoinRequest) SetUserID(val int64)
- func (s *ApproveChatJoinRequest) UnmarshalJSON(data []byte) error
- type Audio
- func (s *Audio) Decode(d *jx.Decoder) error
- func (s *Audio) Encode(e *jx.Encoder)
- func (s *Audio) GetDuration() int
- func (s *Audio) GetFileID() string
- func (s *Audio) GetFileName() OptString
- func (s *Audio) GetFileSize() OptInt
- func (s *Audio) GetFileUniqueID() string
- func (s *Audio) GetMimeType() OptString
- func (s *Audio) GetPerformer() OptString
- func (s *Audio) GetThumb() OptPhotoSize
- func (s *Audio) GetTitle() OptString
- func (s *Audio) MarshalJSON() ([]byte, error)
- func (s *Audio) SetDuration(val int)
- func (s *Audio) SetFake()
- func (s *Audio) SetFileID(val string)
- func (s *Audio) SetFileName(val OptString)
- func (s *Audio) SetFileSize(val OptInt)
- func (s *Audio) SetFileUniqueID(val string)
- func (s *Audio) SetMimeType(val OptString)
- func (s *Audio) SetPerformer(val OptString)
- func (s *Audio) SetThumb(val OptPhotoSize)
- func (s *Audio) SetTitle(val OptString)
- func (s *Audio) UnmarshalJSON(data []byte) error
- func (s *Audio) Validate() error
- type BanChatMember
- func (s *BanChatMember) Decode(d *jx.Decoder) error
- func (s *BanChatMember) Encode(e *jx.Encoder)
- func (s *BanChatMember) GetChatID() ID
- func (s *BanChatMember) GetRevokeMessages() OptBool
- func (s *BanChatMember) GetUntilDate() OptInt
- func (s *BanChatMember) GetUserID() int64
- func (s *BanChatMember) MarshalJSON() ([]byte, error)
- func (s *BanChatMember) SetChatID(val ID)
- func (s *BanChatMember) SetFake()
- func (s *BanChatMember) SetRevokeMessages(val OptBool)
- func (s *BanChatMember) SetUntilDate(val OptInt)
- func (s *BanChatMember) SetUserID(val int64)
- func (s *BanChatMember) UnmarshalJSON(data []byte) error
- type BanChatSenderChat
- func (s *BanChatSenderChat) Decode(d *jx.Decoder) error
- func (s *BanChatSenderChat) Encode(e *jx.Encoder)
- func (s *BanChatSenderChat) GetChatID() ID
- func (s *BanChatSenderChat) GetSenderChatID() int64
- func (s *BanChatSenderChat) MarshalJSON() ([]byte, error)
- func (s *BanChatSenderChat) SetChatID(val ID)
- func (s *BanChatSenderChat) SetFake()
- func (s *BanChatSenderChat) SetSenderChatID(val int64)
- func (s *BanChatSenderChat) UnmarshalJSON(data []byte) error
- type BotCommand
- func (s *BotCommand) Decode(d *jx.Decoder) error
- func (s *BotCommand) Encode(e *jx.Encoder)
- func (s *BotCommand) GetCommand() string
- func (s *BotCommand) GetDescription() string
- func (s *BotCommand) MarshalJSON() ([]byte, error)
- func (s *BotCommand) SetCommand(val string)
- func (s *BotCommand) SetDescription(val string)
- func (s *BotCommand) SetFake()
- func (s *BotCommand) UnmarshalJSON(data []byte) error
- func (s *BotCommand) Validate() error
- type BotCommandScope
- func NewBotCommandScopeAllChatAdministratorsBotCommandScope(v BotCommandScopeAllChatAdministrators) BotCommandScope
- func NewBotCommandScopeAllGroupChatsBotCommandScope(v BotCommandScopeAllGroupChats) BotCommandScope
- func NewBotCommandScopeAllPrivateChatsBotCommandScope(v BotCommandScopeAllPrivateChats) BotCommandScope
- func NewBotCommandScopeChatAdministratorsBotCommandScope(v BotCommandScopeChatAdministrators) BotCommandScope
- func NewBotCommandScopeChatBotCommandScope(v BotCommandScopeChat) BotCommandScope
- func NewBotCommandScopeChatMemberBotCommandScope(v BotCommandScopeChatMember) BotCommandScope
- func NewBotCommandScopeDefaultBotCommandScope(v BotCommandScopeDefault) BotCommandScope
- func (s *BotCommandScope) Decode(d *jx.Decoder) error
- func (s BotCommandScope) Encode(e *jx.Encoder)
- func (s BotCommandScope) GetBotCommandScopeAllChatAdministrators() (v BotCommandScopeAllChatAdministrators, ok bool)
- func (s BotCommandScope) GetBotCommandScopeAllGroupChats() (v BotCommandScopeAllGroupChats, ok bool)
- func (s BotCommandScope) GetBotCommandScopeAllPrivateChats() (v BotCommandScopeAllPrivateChats, ok bool)
- func (s BotCommandScope) GetBotCommandScopeChat() (v BotCommandScopeChat, ok bool)
- func (s BotCommandScope) GetBotCommandScopeChatAdministrators() (v BotCommandScopeChatAdministrators, ok bool)
- func (s BotCommandScope) GetBotCommandScopeChatMember() (v BotCommandScopeChatMember, ok bool)
- func (s BotCommandScope) GetBotCommandScopeDefault() (v BotCommandScopeDefault, ok bool)
- func (s BotCommandScope) IsBotCommandScopeAllChatAdministrators() bool
- func (s BotCommandScope) IsBotCommandScopeAllGroupChats() bool
- func (s BotCommandScope) IsBotCommandScopeAllPrivateChats() bool
- func (s BotCommandScope) IsBotCommandScopeChat() bool
- func (s BotCommandScope) IsBotCommandScopeChatAdministrators() bool
- func (s BotCommandScope) IsBotCommandScopeChatMember() bool
- func (s BotCommandScope) IsBotCommandScopeDefault() bool
- func (s BotCommandScope) MarshalJSON() ([]byte, error)
- func (s *BotCommandScope) SetBotCommandScopeAllChatAdministrators(v BotCommandScopeAllChatAdministrators)
- func (s *BotCommandScope) SetBotCommandScopeAllGroupChats(v BotCommandScopeAllGroupChats)
- func (s *BotCommandScope) SetBotCommandScopeAllPrivateChats(v BotCommandScopeAllPrivateChats)
- func (s *BotCommandScope) SetBotCommandScopeChat(v BotCommandScopeChat)
- func (s *BotCommandScope) SetBotCommandScopeChatAdministrators(v BotCommandScopeChatAdministrators)
- func (s *BotCommandScope) SetBotCommandScopeChatMember(v BotCommandScopeChatMember)
- func (s *BotCommandScope) SetBotCommandScopeDefault(v BotCommandScopeDefault)
- func (s *BotCommandScope) SetFake()
- func (s *BotCommandScope) UnmarshalJSON(data []byte) error
- type BotCommandScopeAllChatAdministrators
- func (s *BotCommandScopeAllChatAdministrators) Decode(d *jx.Decoder) error
- func (s *BotCommandScopeAllChatAdministrators) Encode(e *jx.Encoder)
- func (s *BotCommandScopeAllChatAdministrators) GetType() string
- func (s *BotCommandScopeAllChatAdministrators) MarshalJSON() ([]byte, error)
- func (s *BotCommandScopeAllChatAdministrators) SetFake()
- func (s *BotCommandScopeAllChatAdministrators) SetType(val string)
- func (s *BotCommandScopeAllChatAdministrators) UnmarshalJSON(data []byte) error
- type BotCommandScopeAllGroupChats
- func (s *BotCommandScopeAllGroupChats) Decode(d *jx.Decoder) error
- func (s *BotCommandScopeAllGroupChats) Encode(e *jx.Encoder)
- func (s *BotCommandScopeAllGroupChats) GetType() string
- func (s *BotCommandScopeAllGroupChats) MarshalJSON() ([]byte, error)
- func (s *BotCommandScopeAllGroupChats) SetFake()
- func (s *BotCommandScopeAllGroupChats) SetType(val string)
- func (s *BotCommandScopeAllGroupChats) UnmarshalJSON(data []byte) error
- type BotCommandScopeAllPrivateChats
- func (s *BotCommandScopeAllPrivateChats) Decode(d *jx.Decoder) error
- func (s *BotCommandScopeAllPrivateChats) Encode(e *jx.Encoder)
- func (s *BotCommandScopeAllPrivateChats) GetType() string
- func (s *BotCommandScopeAllPrivateChats) MarshalJSON() ([]byte, error)
- func (s *BotCommandScopeAllPrivateChats) SetFake()
- func (s *BotCommandScopeAllPrivateChats) SetType(val string)
- func (s *BotCommandScopeAllPrivateChats) UnmarshalJSON(data []byte) error
- type BotCommandScopeChat
- func (s *BotCommandScopeChat) Decode(d *jx.Decoder) error
- func (s *BotCommandScopeChat) Encode(e *jx.Encoder)
- func (s *BotCommandScopeChat) GetChatID() ID
- func (s *BotCommandScopeChat) GetType() string
- func (s *BotCommandScopeChat) MarshalJSON() ([]byte, error)
- func (s *BotCommandScopeChat) SetChatID(val ID)
- func (s *BotCommandScopeChat) SetFake()
- func (s *BotCommandScopeChat) SetType(val string)
- func (s *BotCommandScopeChat) UnmarshalJSON(data []byte) error
- type BotCommandScopeChatAdministrators
- func (s *BotCommandScopeChatAdministrators) Decode(d *jx.Decoder) error
- func (s *BotCommandScopeChatAdministrators) Encode(e *jx.Encoder)
- func (s *BotCommandScopeChatAdministrators) GetChatID() ID
- func (s *BotCommandScopeChatAdministrators) GetType() string
- func (s *BotCommandScopeChatAdministrators) MarshalJSON() ([]byte, error)
- func (s *BotCommandScopeChatAdministrators) SetChatID(val ID)
- func (s *BotCommandScopeChatAdministrators) SetFake()
- func (s *BotCommandScopeChatAdministrators) SetType(val string)
- func (s *BotCommandScopeChatAdministrators) UnmarshalJSON(data []byte) error
- type BotCommandScopeChatMember
- func (s *BotCommandScopeChatMember) Decode(d *jx.Decoder) error
- func (s *BotCommandScopeChatMember) Encode(e *jx.Encoder)
- func (s *BotCommandScopeChatMember) GetChatID() ID
- func (s *BotCommandScopeChatMember) GetType() string
- func (s *BotCommandScopeChatMember) GetUserID() int64
- func (s *BotCommandScopeChatMember) MarshalJSON() ([]byte, error)
- func (s *BotCommandScopeChatMember) SetChatID(val ID)
- func (s *BotCommandScopeChatMember) SetFake()
- func (s *BotCommandScopeChatMember) SetType(val string)
- func (s *BotCommandScopeChatMember) SetUserID(val int64)
- func (s *BotCommandScopeChatMember) UnmarshalJSON(data []byte) error
- type BotCommandScopeDefault
- func (s *BotCommandScopeDefault) Decode(d *jx.Decoder) error
- func (s *BotCommandScopeDefault) Encode(e *jx.Encoder)
- func (s *BotCommandScopeDefault) GetType() string
- func (s *BotCommandScopeDefault) MarshalJSON() ([]byte, error)
- func (s *BotCommandScopeDefault) SetFake()
- func (s *BotCommandScopeDefault) SetType(val string)
- func (s *BotCommandScopeDefault) UnmarshalJSON(data []byte) error
- type BotCommandScopeType
- type CallbackGame
- type CallbackQuery
- func (s *CallbackQuery) Decode(d *jx.Decoder) error
- func (s *CallbackQuery) Encode(e *jx.Encoder)
- func (s *CallbackQuery) GetChatInstance() string
- func (s *CallbackQuery) GetData() OptString
- func (s *CallbackQuery) GetFrom() User
- func (s *CallbackQuery) GetGameShortName() OptString
- func (s *CallbackQuery) GetID() string
- func (s *CallbackQuery) GetInlineMessageID() OptString
- func (s *CallbackQuery) GetMessage() *Message
- func (s *CallbackQuery) MarshalJSON() ([]byte, error)
- func (s *CallbackQuery) SetChatInstance(val string)
- func (s *CallbackQuery) SetData(val OptString)
- func (s *CallbackQuery) SetFake()
- func (s *CallbackQuery) SetFrom(val User)
- func (s *CallbackQuery) SetGameShortName(val OptString)
- func (s *CallbackQuery) SetID(val string)
- func (s *CallbackQuery) SetInlineMessageID(val OptString)
- func (s *CallbackQuery) SetMessage(val *Message)
- func (s *CallbackQuery) UnmarshalJSON(data []byte) error
- func (s *CallbackQuery) Validate() error
- type Chat
- func (s *Chat) Decode(d *jx.Decoder) error
- func (s *Chat) Encode(e *jx.Encoder)
- func (s *Chat) GetBio() OptString
- func (s *Chat) GetCanSetStickerSet() OptBool
- func (s *Chat) GetDescription() OptString
- func (s *Chat) GetFirstName() OptString
- func (s *Chat) GetHasPrivateForwards() OptBool
- func (s *Chat) GetHasProtectedContent() OptBool
- func (s *Chat) GetID() int64
- func (s *Chat) GetInviteLink() OptString
- func (s *Chat) GetLastName() OptString
- func (s *Chat) GetLinkedChatID() OptInt64
- func (s *Chat) GetLocation() OptChatLocation
- func (s *Chat) GetMessageAutoDeleteTime() OptInt
- func (s *Chat) GetPermissions() OptChatPermissions
- func (s *Chat) GetPhoto() OptChatPhoto
- func (s *Chat) GetPinnedMessage() *Message
- func (s *Chat) GetSlowModeDelay() OptInt
- func (s *Chat) GetStickerSetName() OptString
- func (s *Chat) GetTitle() OptString
- func (s *Chat) GetType() ChatType
- func (s *Chat) GetUsername() OptString
- func (s *Chat) MarshalJSON() ([]byte, error)
- func (s *Chat) SetBio(val OptString)
- func (s *Chat) SetCanSetStickerSet(val OptBool)
- func (s *Chat) SetDescription(val OptString)
- func (s *Chat) SetFake()
- func (s *Chat) SetFirstName(val OptString)
- func (s *Chat) SetHasPrivateForwards(val OptBool)
- func (s *Chat) SetHasProtectedContent(val OptBool)
- func (s *Chat) SetID(val int64)
- func (s *Chat) SetInviteLink(val OptString)
- func (s *Chat) SetLastName(val OptString)
- func (s *Chat) SetLinkedChatID(val OptInt64)
- func (s *Chat) SetLocation(val OptChatLocation)
- func (s *Chat) SetMessageAutoDeleteTime(val OptInt)
- func (s *Chat) SetPermissions(val OptChatPermissions)
- func (s *Chat) SetPhoto(val OptChatPhoto)
- func (s *Chat) SetPinnedMessage(val *Message)
- func (s *Chat) SetSlowModeDelay(val OptInt)
- func (s *Chat) SetStickerSetName(val OptString)
- func (s *Chat) SetTitle(val OptString)
- func (s *Chat) SetType(val ChatType)
- func (s *Chat) SetUsername(val OptString)
- func (s *Chat) UnmarshalJSON(data []byte) error
- func (s *Chat) Validate() error
- type ChatInviteLink
- func (s *ChatInviteLink) Decode(d *jx.Decoder) error
- func (s *ChatInviteLink) Encode(e *jx.Encoder)
- func (s *ChatInviteLink) GetCreatesJoinRequest() bool
- func (s *ChatInviteLink) GetCreator() User
- func (s *ChatInviteLink) GetExpireDate() OptInt
- func (s *ChatInviteLink) GetInviteLink() string
- func (s *ChatInviteLink) GetIsPrimary() bool
- func (s *ChatInviteLink) GetIsRevoked() bool
- func (s *ChatInviteLink) GetMemberLimit() OptInt
- func (s *ChatInviteLink) GetName() OptString
- func (s *ChatInviteLink) GetPendingJoinRequestCount() OptInt
- func (s *ChatInviteLink) MarshalJSON() ([]byte, error)
- func (s *ChatInviteLink) SetCreatesJoinRequest(val bool)
- func (s *ChatInviteLink) SetCreator(val User)
- func (s *ChatInviteLink) SetExpireDate(val OptInt)
- func (s *ChatInviteLink) SetFake()
- func (s *ChatInviteLink) SetInviteLink(val string)
- func (s *ChatInviteLink) SetIsPrimary(val bool)
- func (s *ChatInviteLink) SetIsRevoked(val bool)
- func (s *ChatInviteLink) SetMemberLimit(val OptInt)
- func (s *ChatInviteLink) SetName(val OptString)
- func (s *ChatInviteLink) SetPendingJoinRequestCount(val OptInt)
- func (s *ChatInviteLink) UnmarshalJSON(data []byte) error
- func (s *ChatInviteLink) Validate() error
- type ChatJoinRequest
- func (s *ChatJoinRequest) Decode(d *jx.Decoder) error
- func (s *ChatJoinRequest) Encode(e *jx.Encoder)
- func (s *ChatJoinRequest) GetBio() OptString
- func (s *ChatJoinRequest) GetChat() Chat
- func (s *ChatJoinRequest) GetDate() int
- func (s *ChatJoinRequest) GetFrom() User
- func (s *ChatJoinRequest) GetInviteLink() OptChatInviteLink
- func (s *ChatJoinRequest) MarshalJSON() ([]byte, error)
- func (s *ChatJoinRequest) SetBio(val OptString)
- func (s *ChatJoinRequest) SetChat(val Chat)
- func (s *ChatJoinRequest) SetDate(val int)
- func (s *ChatJoinRequest) SetFake()
- func (s *ChatJoinRequest) SetFrom(val User)
- func (s *ChatJoinRequest) SetInviteLink(val OptChatInviteLink)
- func (s *ChatJoinRequest) UnmarshalJSON(data []byte) error
- func (s *ChatJoinRequest) Validate() error
- type ChatLocation
- func (s *ChatLocation) Decode(d *jx.Decoder) error
- func (s *ChatLocation) Encode(e *jx.Encoder)
- func (s *ChatLocation) GetAddress() string
- func (s *ChatLocation) GetLocation() Location
- func (s *ChatLocation) MarshalJSON() ([]byte, error)
- func (s *ChatLocation) SetAddress(val string)
- func (s *ChatLocation) SetFake()
- func (s *ChatLocation) SetLocation(val Location)
- func (s *ChatLocation) UnmarshalJSON(data []byte) error
- func (s *ChatLocation) Validate() error
- type ChatMember
- func NewChatMemberAdministratorChatMember(v ChatMemberAdministrator) ChatMember
- func NewChatMemberBannedChatMember(v ChatMemberBanned) ChatMember
- func NewChatMemberLeftChatMember(v ChatMemberLeft) ChatMember
- func NewChatMemberMemberChatMember(v ChatMemberMember) ChatMember
- func NewChatMemberOwnerChatMember(v ChatMemberOwner) ChatMember
- func NewChatMemberRestrictedChatMember(v ChatMemberRestricted) ChatMember
- func (s *ChatMember) Decode(d *jx.Decoder) error
- func (s ChatMember) Encode(e *jx.Encoder)
- func (s ChatMember) GetChatMemberAdministrator() (v ChatMemberAdministrator, ok bool)
- func (s ChatMember) GetChatMemberBanned() (v ChatMemberBanned, ok bool)
- func (s ChatMember) GetChatMemberLeft() (v ChatMemberLeft, ok bool)
- func (s ChatMember) GetChatMemberMember() (v ChatMemberMember, ok bool)
- func (s ChatMember) GetChatMemberOwner() (v ChatMemberOwner, ok bool)
- func (s ChatMember) GetChatMemberRestricted() (v ChatMemberRestricted, ok bool)
- func (s ChatMember) IsChatMemberAdministrator() bool
- func (s ChatMember) IsChatMemberBanned() bool
- func (s ChatMember) IsChatMemberLeft() bool
- func (s ChatMember) IsChatMemberMember() bool
- func (s ChatMember) IsChatMemberOwner() bool
- func (s ChatMember) IsChatMemberRestricted() bool
- func (s ChatMember) MarshalJSON() ([]byte, error)
- func (s *ChatMember) SetChatMemberAdministrator(v ChatMemberAdministrator)
- func (s *ChatMember) SetChatMemberBanned(v ChatMemberBanned)
- func (s *ChatMember) SetChatMemberLeft(v ChatMemberLeft)
- func (s *ChatMember) SetChatMemberMember(v ChatMemberMember)
- func (s *ChatMember) SetChatMemberOwner(v ChatMemberOwner)
- func (s *ChatMember) SetChatMemberRestricted(v ChatMemberRestricted)
- func (s *ChatMember) SetFake()
- func (s *ChatMember) UnmarshalJSON(data []byte) error
- type ChatMemberAdministrator
- func (s *ChatMemberAdministrator) Decode(d *jx.Decoder) error
- func (s *ChatMemberAdministrator) Encode(e *jx.Encoder)
- func (s *ChatMemberAdministrator) GetCanBeEdited() bool
- func (s *ChatMemberAdministrator) GetCanChangeInfo() bool
- func (s *ChatMemberAdministrator) GetCanDeleteMessages() bool
- func (s *ChatMemberAdministrator) GetCanEditMessages() OptBool
- func (s *ChatMemberAdministrator) GetCanInviteUsers() bool
- func (s *ChatMemberAdministrator) GetCanManageChat() bool
- func (s *ChatMemberAdministrator) GetCanManageVoiceChats() bool
- func (s *ChatMemberAdministrator) GetCanPinMessages() OptBool
- func (s *ChatMemberAdministrator) GetCanPostMessages() OptBool
- func (s *ChatMemberAdministrator) GetCanPromoteMembers() bool
- func (s *ChatMemberAdministrator) GetCanRestrictMembers() bool
- func (s *ChatMemberAdministrator) GetCustomTitle() OptString
- func (s *ChatMemberAdministrator) GetIsAnonymous() bool
- func (s *ChatMemberAdministrator) GetStatus() string
- func (s *ChatMemberAdministrator) GetUser() User
- func (s *ChatMemberAdministrator) MarshalJSON() ([]byte, error)
- func (s *ChatMemberAdministrator) SetCanBeEdited(val bool)
- func (s *ChatMemberAdministrator) SetCanChangeInfo(val bool)
- func (s *ChatMemberAdministrator) SetCanDeleteMessages(val bool)
- func (s *ChatMemberAdministrator) SetCanEditMessages(val OptBool)
- func (s *ChatMemberAdministrator) SetCanInviteUsers(val bool)
- func (s *ChatMemberAdministrator) SetCanManageChat(val bool)
- func (s *ChatMemberAdministrator) SetCanManageVoiceChats(val bool)
- func (s *ChatMemberAdministrator) SetCanPinMessages(val OptBool)
- func (s *ChatMemberAdministrator) SetCanPostMessages(val OptBool)
- func (s *ChatMemberAdministrator) SetCanPromoteMembers(val bool)
- func (s *ChatMemberAdministrator) SetCanRestrictMembers(val bool)
- func (s *ChatMemberAdministrator) SetCustomTitle(val OptString)
- func (s *ChatMemberAdministrator) SetFake()
- func (s *ChatMemberAdministrator) SetIsAnonymous(val bool)
- func (s *ChatMemberAdministrator) SetStatus(val string)
- func (s *ChatMemberAdministrator) SetUser(val User)
- func (s *ChatMemberAdministrator) UnmarshalJSON(data []byte) error
- type ChatMemberBanned
- func (s *ChatMemberBanned) Decode(d *jx.Decoder) error
- func (s *ChatMemberBanned) Encode(e *jx.Encoder)
- func (s *ChatMemberBanned) GetStatus() string
- func (s *ChatMemberBanned) GetUntilDate() int
- func (s *ChatMemberBanned) GetUser() User
- func (s *ChatMemberBanned) MarshalJSON() ([]byte, error)
- func (s *ChatMemberBanned) SetFake()
- func (s *ChatMemberBanned) SetStatus(val string)
- func (s *ChatMemberBanned) SetUntilDate(val int)
- func (s *ChatMemberBanned) SetUser(val User)
- func (s *ChatMemberBanned) UnmarshalJSON(data []byte) error
- type ChatMemberLeft
- func (s *ChatMemberLeft) Decode(d *jx.Decoder) error
- func (s *ChatMemberLeft) Encode(e *jx.Encoder)
- func (s *ChatMemberLeft) GetStatus() string
- func (s *ChatMemberLeft) GetUser() User
- func (s *ChatMemberLeft) MarshalJSON() ([]byte, error)
- func (s *ChatMemberLeft) SetFake()
- func (s *ChatMemberLeft) SetStatus(val string)
- func (s *ChatMemberLeft) SetUser(val User)
- func (s *ChatMemberLeft) UnmarshalJSON(data []byte) error
- type ChatMemberMember
- func (s *ChatMemberMember) Decode(d *jx.Decoder) error
- func (s *ChatMemberMember) Encode(e *jx.Encoder)
- func (s *ChatMemberMember) GetStatus() string
- func (s *ChatMemberMember) GetUser() User
- func (s *ChatMemberMember) MarshalJSON() ([]byte, error)
- func (s *ChatMemberMember) SetFake()
- func (s *ChatMemberMember) SetStatus(val string)
- func (s *ChatMemberMember) SetUser(val User)
- func (s *ChatMemberMember) UnmarshalJSON(data []byte) error
- type ChatMemberOwner
- func (s *ChatMemberOwner) Decode(d *jx.Decoder) error
- func (s *ChatMemberOwner) Encode(e *jx.Encoder)
- func (s *ChatMemberOwner) GetCustomTitle() OptString
- func (s *ChatMemberOwner) GetIsAnonymous() bool
- func (s *ChatMemberOwner) GetStatus() string
- func (s *ChatMemberOwner) GetUser() User
- func (s *ChatMemberOwner) MarshalJSON() ([]byte, error)
- func (s *ChatMemberOwner) SetCustomTitle(val OptString)
- func (s *ChatMemberOwner) SetFake()
- func (s *ChatMemberOwner) SetIsAnonymous(val bool)
- func (s *ChatMemberOwner) SetStatus(val string)
- func (s *ChatMemberOwner) SetUser(val User)
- func (s *ChatMemberOwner) UnmarshalJSON(data []byte) error
- type ChatMemberRestricted
- func (s *ChatMemberRestricted) Decode(d *jx.Decoder) error
- func (s *ChatMemberRestricted) Encode(e *jx.Encoder)
- func (s *ChatMemberRestricted) GetCanAddWebPagePreviews() bool
- func (s *ChatMemberRestricted) GetCanChangeInfo() bool
- func (s *ChatMemberRestricted) GetCanInviteUsers() bool
- func (s *ChatMemberRestricted) GetCanPinMessages() bool
- func (s *ChatMemberRestricted) GetCanSendMediaMessages() bool
- func (s *ChatMemberRestricted) GetCanSendMessages() bool
- func (s *ChatMemberRestricted) GetCanSendOtherMessages() bool
- func (s *ChatMemberRestricted) GetCanSendPolls() bool
- func (s *ChatMemberRestricted) GetIsMember() bool
- func (s *ChatMemberRestricted) GetStatus() string
- func (s *ChatMemberRestricted) GetUntilDate() int
- func (s *ChatMemberRestricted) GetUser() User
- func (s *ChatMemberRestricted) MarshalJSON() ([]byte, error)
- func (s *ChatMemberRestricted) SetCanAddWebPagePreviews(val bool)
- func (s *ChatMemberRestricted) SetCanChangeInfo(val bool)
- func (s *ChatMemberRestricted) SetCanInviteUsers(val bool)
- func (s *ChatMemberRestricted) SetCanPinMessages(val bool)
- func (s *ChatMemberRestricted) SetCanSendMediaMessages(val bool)
- func (s *ChatMemberRestricted) SetCanSendMessages(val bool)
- func (s *ChatMemberRestricted) SetCanSendOtherMessages(val bool)
- func (s *ChatMemberRestricted) SetCanSendPolls(val bool)
- func (s *ChatMemberRestricted) SetFake()
- func (s *ChatMemberRestricted) SetIsMember(val bool)
- func (s *ChatMemberRestricted) SetStatus(val string)
- func (s *ChatMemberRestricted) SetUntilDate(val int)
- func (s *ChatMemberRestricted) SetUser(val User)
- func (s *ChatMemberRestricted) UnmarshalJSON(data []byte) error
- type ChatMemberType
- type ChatMemberUpdated
- func (s *ChatMemberUpdated) Decode(d *jx.Decoder) error
- func (s *ChatMemberUpdated) Encode(e *jx.Encoder)
- func (s *ChatMemberUpdated) GetChat() Chat
- func (s *ChatMemberUpdated) GetDate() int
- func (s *ChatMemberUpdated) GetFrom() User
- func (s *ChatMemberUpdated) GetInviteLink() OptChatInviteLink
- func (s *ChatMemberUpdated) GetNewChatMember() ChatMember
- func (s *ChatMemberUpdated) GetOldChatMember() ChatMember
- func (s *ChatMemberUpdated) MarshalJSON() ([]byte, error)
- func (s *ChatMemberUpdated) SetChat(val Chat)
- func (s *ChatMemberUpdated) SetDate(val int)
- func (s *ChatMemberUpdated) SetFake()
- func (s *ChatMemberUpdated) SetFrom(val User)
- func (s *ChatMemberUpdated) SetInviteLink(val OptChatInviteLink)
- func (s *ChatMemberUpdated) SetNewChatMember(val ChatMember)
- func (s *ChatMemberUpdated) SetOldChatMember(val ChatMember)
- func (s *ChatMemberUpdated) UnmarshalJSON(data []byte) error
- func (s *ChatMemberUpdated) Validate() error
- type ChatPermissions
- func (s *ChatPermissions) Decode(d *jx.Decoder) error
- func (s *ChatPermissions) Encode(e *jx.Encoder)
- func (s *ChatPermissions) GetCanAddWebPagePreviews() OptBool
- func (s *ChatPermissions) GetCanChangeInfo() OptBool
- func (s *ChatPermissions) GetCanInviteUsers() OptBool
- func (s *ChatPermissions) GetCanPinMessages() OptBool
- func (s *ChatPermissions) GetCanSendMediaMessages() OptBool
- func (s *ChatPermissions) GetCanSendMessages() OptBool
- func (s *ChatPermissions) GetCanSendOtherMessages() OptBool
- func (s *ChatPermissions) GetCanSendPolls() OptBool
- func (s *ChatPermissions) MarshalJSON() ([]byte, error)
- func (s *ChatPermissions) SetCanAddWebPagePreviews(val OptBool)
- func (s *ChatPermissions) SetCanChangeInfo(val OptBool)
- func (s *ChatPermissions) SetCanInviteUsers(val OptBool)
- func (s *ChatPermissions) SetCanPinMessages(val OptBool)
- func (s *ChatPermissions) SetCanSendMediaMessages(val OptBool)
- func (s *ChatPermissions) SetCanSendMessages(val OptBool)
- func (s *ChatPermissions) SetCanSendOtherMessages(val OptBool)
- func (s *ChatPermissions) SetCanSendPolls(val OptBool)
- func (s *ChatPermissions) SetFake()
- func (s *ChatPermissions) UnmarshalJSON(data []byte) error
- type ChatPhoto
- func (s *ChatPhoto) Decode(d *jx.Decoder) error
- func (s *ChatPhoto) Encode(e *jx.Encoder)
- func (s *ChatPhoto) GetBigFileID() string
- func (s *ChatPhoto) GetBigFileUniqueID() string
- func (s *ChatPhoto) GetSmallFileID() string
- func (s *ChatPhoto) GetSmallFileUniqueID() string
- func (s *ChatPhoto) MarshalJSON() ([]byte, error)
- func (s *ChatPhoto) SetBigFileID(val string)
- func (s *ChatPhoto) SetBigFileUniqueID(val string)
- func (s *ChatPhoto) SetFake()
- func (s *ChatPhoto) SetSmallFileID(val string)
- func (s *ChatPhoto) SetSmallFileUniqueID(val string)
- func (s *ChatPhoto) UnmarshalJSON(data []byte) error
- type ChatType
- func (ChatType) AllValues() []ChatType
- func (s *ChatType) Decode(d *jx.Decoder) error
- func (s ChatType) Encode(e *jx.Encoder)
- func (s ChatType) MarshalJSON() ([]byte, error)
- func (s ChatType) MarshalText() ([]byte, error)
- func (s *ChatType) SetFake()
- func (s *ChatType) UnmarshalJSON(data []byte) error
- func (s *ChatType) UnmarshalText(data []byte) error
- func (s ChatType) Validate() error
- type ChosenInlineResult
- func (s *ChosenInlineResult) Decode(d *jx.Decoder) error
- func (s *ChosenInlineResult) Encode(e *jx.Encoder)
- func (s *ChosenInlineResult) GetFrom() User
- func (s *ChosenInlineResult) GetInlineMessageID() OptString
- func (s *ChosenInlineResult) GetLocation() OptLocation
- func (s *ChosenInlineResult) GetQuery() string
- func (s *ChosenInlineResult) GetResultID() string
- func (s *ChosenInlineResult) MarshalJSON() ([]byte, error)
- func (s *ChosenInlineResult) SetFake()
- func (s *ChosenInlineResult) SetFrom(val User)
- func (s *ChosenInlineResult) SetInlineMessageID(val OptString)
- func (s *ChosenInlineResult) SetLocation(val OptLocation)
- func (s *ChosenInlineResult) SetQuery(val string)
- func (s *ChosenInlineResult) SetResultID(val string)
- func (s *ChosenInlineResult) UnmarshalJSON(data []byte) error
- func (s *ChosenInlineResult) Validate() error
- type Client
- func (c *Client) AddStickerToSet(ctx context.Context, request *AddStickerToSet) (*Result, error)
- func (c *Client) AnswerCallbackQuery(ctx context.Context, request *AnswerCallbackQuery) (*Result, error)
- func (c *Client) AnswerInlineQuery(ctx context.Context, request *AnswerInlineQuery) (*Result, error)
- func (c *Client) AnswerPreCheckoutQuery(ctx context.Context, request *AnswerPreCheckoutQuery) (*Result, error)
- func (c *Client) AnswerShippingQuery(ctx context.Context, request *AnswerShippingQuery) (*Result, error)
- func (c *Client) ApproveChatJoinRequest(ctx context.Context, request *ApproveChatJoinRequest) (*Result, error)
- func (c *Client) BanChatMember(ctx context.Context, request *BanChatMember) (*Result, error)
- func (c *Client) BanChatSenderChat(ctx context.Context, request *BanChatSenderChat) (*Result, error)
- func (c *Client) Close(ctx context.Context) (*Result, error)
- func (c *Client) CopyMessage(ctx context.Context, request *CopyMessage) (*ResultMessageId, error)
- func (c *Client) CreateChatInviteLink(ctx context.Context, request *CreateChatInviteLink) (*ResultChatInviteLink, error)
- func (c *Client) CreateNewStickerSet(ctx context.Context, request *CreateNewStickerSet) (*Result, error)
- func (c *Client) DeclineChatJoinRequest(ctx context.Context, request *DeclineChatJoinRequest) (*Result, error)
- func (c *Client) DeleteChatPhoto(ctx context.Context, request *DeleteChatPhoto) (*Result, error)
- func (c *Client) DeleteChatStickerSet(ctx context.Context, request *DeleteChatStickerSet) (*Result, error)
- func (c *Client) DeleteMessage(ctx context.Context, request *DeleteMessage) (*Result, error)
- func (c *Client) DeleteMyCommands(ctx context.Context, request OptDeleteMyCommands) (*Result, error)
- func (c *Client) DeleteStickerFromSet(ctx context.Context, request *DeleteStickerFromSet) (*Result, error)
- func (c *Client) DeleteWebhook(ctx context.Context, request OptDeleteWebhook) (*Result, error)
- func (c *Client) EditChatInviteLink(ctx context.Context, request *EditChatInviteLink) (*ResultChatInviteLink, error)
- func (c *Client) EditMessageCaption(ctx context.Context, request *EditMessageCaption) (*Result, error)
- func (c *Client) EditMessageLiveLocation(ctx context.Context, request *EditMessageLiveLocation) (*Result, error)
- func (c *Client) EditMessageMedia(ctx context.Context, request *EditMessageMedia) (*Result, error)
- func (c *Client) EditMessageReplyMarkup(ctx context.Context, request *EditMessageReplyMarkup) (*Result, error)
- func (c *Client) EditMessageText(ctx context.Context, request *EditMessageText) (*Result, error)
- func (c *Client) ExportChatInviteLink(ctx context.Context, request *ExportChatInviteLink) (*ResultString, error)
- func (c *Client) ForwardMessage(ctx context.Context, request *ForwardMessage) (*ResultMessage, error)
- func (c *Client) GetChat(ctx context.Context, request *GetChat) (*ResultChat, error)
- func (c *Client) GetChatAdministrators(ctx context.Context, request *GetChatAdministrators) (*ResultArrayOfChatMember, error)
- func (c *Client) GetChatMember(ctx context.Context, request *GetChatMember) (*ResultChatMember, error)
- func (c *Client) GetChatMemberCount(ctx context.Context, request *GetChatMemberCount) (*ResultInt, error)
- func (c *Client) GetFile(ctx context.Context, request *GetFile) (*Result, error)
- func (c *Client) GetGameHighScores(ctx context.Context, request *GetGameHighScores) (*ResultArrayOfGameHighScore, error)
- func (c *Client) GetMe(ctx context.Context) (*ResultUser, error)
- func (c *Client) GetMyCommands(ctx context.Context, request OptGetMyCommands) (*ResultArrayOfBotCommand, error)
- func (c *Client) GetStickerSet(ctx context.Context, request *GetStickerSet) (*Result, error)
- func (c *Client) GetUpdates(ctx context.Context, request OptGetUpdates) (*ResultArrayOfUpdate, error)
- func (c *Client) GetUserProfilePhotos(ctx context.Context, request *GetUserProfilePhotos) (*ResultUserProfilePhotos, error)
- func (c *Client) GetWebhookInfo(ctx context.Context) (*ResultWebhookInfo, error)
- func (c *Client) LeaveChat(ctx context.Context, request *LeaveChat) (*Result, error)
- func (c *Client) LogOut(ctx context.Context) (*Result, error)
- func (c *Client) PinChatMessage(ctx context.Context, request *PinChatMessage) (*Result, error)
- func (c *Client) PromoteChatMember(ctx context.Context, request *PromoteChatMember) (*Result, error)
- func (c *Client) RestrictChatMember(ctx context.Context, request *RestrictChatMember) (*Result, error)
- func (c *Client) RevokeChatInviteLink(ctx context.Context, request *RevokeChatInviteLink) (*ResultChatInviteLink, error)
- func (c *Client) SendAnimation(ctx context.Context, request *SendAnimation) (*ResultMessage, error)
- func (c *Client) SendAudio(ctx context.Context, request *SendAudio) (*ResultMessage, error)
- func (c *Client) SendChatAction(ctx context.Context, request *SendChatAction) (*Result, error)
- func (c *Client) SendContact(ctx context.Context, request *SendContact) (*ResultMessage, error)
- func (c *Client) SendDice(ctx context.Context, request *SendDice) (*ResultMessage, error)
- func (c *Client) SendDocument(ctx context.Context, request *SendDocument) (*ResultMessage, error)
- func (c *Client) SendGame(ctx context.Context, request *SendGame) (*ResultMessage, error)
- func (c *Client) SendInvoice(ctx context.Context, request *SendInvoice) (*ResultMessage, error)
- func (c *Client) SendLocation(ctx context.Context, request *SendLocation) (*ResultMessage, error)
- func (c *Client) SendMediaGroup(ctx context.Context, request *SendMediaGroup) (*ResultArrayOfMessage, error)
- func (c *Client) SendMessage(ctx context.Context, request *SendMessage) (*ResultMessage, error)
- func (c *Client) SendPhoto(ctx context.Context, request *SendPhoto) (*ResultMessage, error)
- func (c *Client) SendPoll(ctx context.Context, request *SendPoll) (*ResultMessage, error)
- func (c *Client) SendSticker(ctx context.Context, request *SendSticker) (*ResultMessage, error)
- func (c *Client) SendVenue(ctx context.Context, request *SendVenue) (*ResultMessage, error)
- func (c *Client) SendVideo(ctx context.Context, request *SendVideo) (*ResultMessage, error)
- func (c *Client) SendVideoNote(ctx context.Context, request *SendVideoNote) (*ResultMessage, error)
- func (c *Client) SendVoice(ctx context.Context, request *SendVoice) (*ResultMessage, error)
- func (c *Client) SetChatAdministratorCustomTitle(ctx context.Context, request *SetChatAdministratorCustomTitle) (*Result, error)
- func (c *Client) SetChatDescription(ctx context.Context, request *SetChatDescription) (*Result, error)
- func (c *Client) SetChatPermissions(ctx context.Context, request *SetChatPermissions) (*Result, error)
- func (c *Client) SetChatPhoto(ctx context.Context, request *SetChatPhoto) (*Result, error)
- func (c *Client) SetChatStickerSet(ctx context.Context, request *SetChatStickerSet) (*Result, error)
- func (c *Client) SetChatTitle(ctx context.Context, request *SetChatTitle) (*Result, error)
- func (c *Client) SetGameScore(ctx context.Context, request *SetGameScore) (*Result, error)
- func (c *Client) SetMyCommands(ctx context.Context, request *SetMyCommands) (*Result, error)
- func (c *Client) SetPassportDataErrors(ctx context.Context, request *SetPassportDataErrors) (*Result, error)
- func (c *Client) SetStickerPositionInSet(ctx context.Context, request *SetStickerPositionInSet) (*Result, error)
- func (c *Client) SetStickerSetThumb(ctx context.Context, request *SetStickerSetThumb) (*Result, error)
- func (c *Client) SetWebhook(ctx context.Context, request *SetWebhook) (*Result, error)
- func (c *Client) StopMessageLiveLocation(ctx context.Context, request *StopMessageLiveLocation) (*Result, error)
- func (c *Client) StopPoll(ctx context.Context, request *StopPoll) (*ResultPoll, error)
- func (c *Client) UnbanChatMember(ctx context.Context, request *UnbanChatMember) (*Result, error)
- func (c *Client) UnbanChatSenderChat(ctx context.Context, request *UnbanChatSenderChat) (*Result, error)
- func (c *Client) UnpinAllChatMessages(ctx context.Context, request *UnpinAllChatMessages) (*Result, error)
- func (c *Client) UnpinChatMessage(ctx context.Context, request *UnpinChatMessage) (*Result, error)
- func (c *Client) UploadStickerFile(ctx context.Context, request *UploadStickerFile) (*ResultFile, error)
- type ClientOption
- type Contact
- func (s *Contact) Decode(d *jx.Decoder) error
- func (s *Contact) Encode(e *jx.Encoder)
- func (s *Contact) GetFirstName() string
- func (s *Contact) GetLastName() OptString
- func (s *Contact) GetPhoneNumber() string
- func (s *Contact) GetUserID() OptInt64
- func (s *Contact) GetVcard() OptString
- func (s *Contact) MarshalJSON() ([]byte, error)
- func (s *Contact) SetFake()
- func (s *Contact) SetFirstName(val string)
- func (s *Contact) SetLastName(val OptString)
- func (s *Contact) SetPhoneNumber(val string)
- func (s *Contact) SetUserID(val OptInt64)
- func (s *Contact) SetVcard(val OptString)
- func (s *Contact) UnmarshalJSON(data []byte) error
- type CopyMessage
- func (s *CopyMessage) Decode(d *jx.Decoder) error
- func (s *CopyMessage) Encode(e *jx.Encoder)
- func (s *CopyMessage) GetAllowSendingWithoutReply() OptBool
- func (s *CopyMessage) GetCaption() OptString
- func (s *CopyMessage) GetCaptionEntities() []MessageEntity
- func (s *CopyMessage) GetChatID() ID
- func (s *CopyMessage) GetDisableNotification() OptBool
- func (s *CopyMessage) GetFromChatID() ID
- func (s *CopyMessage) GetMessageID() int
- func (s *CopyMessage) GetParseMode() OptString
- func (s *CopyMessage) GetReplyMarkup() OptCopyMessageReplyMarkup
- func (s *CopyMessage) GetReplyToMessageID() OptInt
- func (s *CopyMessage) MarshalJSON() ([]byte, error)
- func (s *CopyMessage) SetAllowSendingWithoutReply(val OptBool)
- func (s *CopyMessage) SetCaption(val OptString)
- func (s *CopyMessage) SetCaptionEntities(val []MessageEntity)
- func (s *CopyMessage) SetChatID(val ID)
- func (s *CopyMessage) SetDisableNotification(val OptBool)
- func (s *CopyMessage) SetFake()
- func (s *CopyMessage) SetFromChatID(val ID)
- func (s *CopyMessage) SetMessageID(val int)
- func (s *CopyMessage) SetParseMode(val OptString)
- func (s *CopyMessage) SetReplyMarkup(val OptCopyMessageReplyMarkup)
- func (s *CopyMessage) SetReplyToMessageID(val OptInt)
- func (s *CopyMessage) UnmarshalJSON(data []byte) error
- func (s *CopyMessage) Validate() error
- type CopyMessageReplyMarkup
- func NewForceReplyCopyMessageReplyMarkup(v ForceReply) CopyMessageReplyMarkup
- func NewInlineKeyboardMarkupCopyMessageReplyMarkup(v InlineKeyboardMarkup) CopyMessageReplyMarkup
- func NewReplyKeyboardMarkupCopyMessageReplyMarkup(v ReplyKeyboardMarkup) CopyMessageReplyMarkup
- func NewReplyKeyboardRemoveCopyMessageReplyMarkup(v ReplyKeyboardRemove) CopyMessageReplyMarkup
- func (s *CopyMessageReplyMarkup) Decode(d *jx.Decoder) error
- func (s CopyMessageReplyMarkup) Encode(e *jx.Encoder)
- func (s CopyMessageReplyMarkup) GetForceReply() (v ForceReply, ok bool)
- func (s CopyMessageReplyMarkup) GetInlineKeyboardMarkup() (v InlineKeyboardMarkup, ok bool)
- func (s CopyMessageReplyMarkup) GetReplyKeyboardMarkup() (v ReplyKeyboardMarkup, ok bool)
- func (s CopyMessageReplyMarkup) GetReplyKeyboardRemove() (v ReplyKeyboardRemove, ok bool)
- func (s CopyMessageReplyMarkup) IsForceReply() bool
- func (s CopyMessageReplyMarkup) IsInlineKeyboardMarkup() bool
- func (s CopyMessageReplyMarkup) IsReplyKeyboardMarkup() bool
- func (s CopyMessageReplyMarkup) IsReplyKeyboardRemove() bool
- func (s CopyMessageReplyMarkup) MarshalJSON() ([]byte, error)
- func (s *CopyMessageReplyMarkup) SetFake()
- func (s *CopyMessageReplyMarkup) SetForceReply(v ForceReply)
- func (s *CopyMessageReplyMarkup) SetInlineKeyboardMarkup(v InlineKeyboardMarkup)
- func (s *CopyMessageReplyMarkup) SetReplyKeyboardMarkup(v ReplyKeyboardMarkup)
- func (s *CopyMessageReplyMarkup) SetReplyKeyboardRemove(v ReplyKeyboardRemove)
- func (s *CopyMessageReplyMarkup) UnmarshalJSON(data []byte) error
- func (s CopyMessageReplyMarkup) Validate() error
- type CopyMessageReplyMarkupType
- type CreateChatInviteLink
- func (s *CreateChatInviteLink) Decode(d *jx.Decoder) error
- func (s *CreateChatInviteLink) Encode(e *jx.Encoder)
- func (s *CreateChatInviteLink) GetChatID() ID
- func (s *CreateChatInviteLink) GetCreatesJoinRequest() OptBool
- func (s *CreateChatInviteLink) GetExpireDate() OptInt
- func (s *CreateChatInviteLink) GetMemberLimit() OptInt
- func (s *CreateChatInviteLink) GetName() OptString
- func (s *CreateChatInviteLink) MarshalJSON() ([]byte, error)
- func (s *CreateChatInviteLink) SetChatID(val ID)
- func (s *CreateChatInviteLink) SetCreatesJoinRequest(val OptBool)
- func (s *CreateChatInviteLink) SetExpireDate(val OptInt)
- func (s *CreateChatInviteLink) SetFake()
- func (s *CreateChatInviteLink) SetMemberLimit(val OptInt)
- func (s *CreateChatInviteLink) SetName(val OptString)
- func (s *CreateChatInviteLink) UnmarshalJSON(data []byte) error
- func (s *CreateChatInviteLink) Validate() error
- type CreateNewStickerSet
- func (s *CreateNewStickerSet) Decode(d *jx.Decoder) error
- func (s *CreateNewStickerSet) Encode(e *jx.Encoder)
- func (s *CreateNewStickerSet) GetContainsMasks() OptBool
- func (s *CreateNewStickerSet) GetEmojis() string
- func (s *CreateNewStickerSet) GetMaskPosition() OptMaskPosition
- func (s *CreateNewStickerSet) GetName() string
- func (s *CreateNewStickerSet) GetPNGSticker() OptString
- func (s *CreateNewStickerSet) GetTgsSticker() OptString
- func (s *CreateNewStickerSet) GetTitle() string
- func (s *CreateNewStickerSet) GetUserID() int64
- func (s *CreateNewStickerSet) MarshalJSON() ([]byte, error)
- func (s *CreateNewStickerSet) SetContainsMasks(val OptBool)
- func (s *CreateNewStickerSet) SetEmojis(val string)
- func (s *CreateNewStickerSet) SetFake()
- func (s *CreateNewStickerSet) SetMaskPosition(val OptMaskPosition)
- func (s *CreateNewStickerSet) SetName(val string)
- func (s *CreateNewStickerSet) SetPNGSticker(val OptString)
- func (s *CreateNewStickerSet) SetTgsSticker(val OptString)
- func (s *CreateNewStickerSet) SetTitle(val string)
- func (s *CreateNewStickerSet) SetUserID(val int64)
- func (s *CreateNewStickerSet) UnmarshalJSON(data []byte) error
- func (s *CreateNewStickerSet) Validate() error
- type DeclineChatJoinRequest
- func (s *DeclineChatJoinRequest) Decode(d *jx.Decoder) error
- func (s *DeclineChatJoinRequest) Encode(e *jx.Encoder)
- func (s *DeclineChatJoinRequest) GetChatID() ID
- func (s *DeclineChatJoinRequest) GetUserID() int64
- func (s *DeclineChatJoinRequest) MarshalJSON() ([]byte, error)
- func (s *DeclineChatJoinRequest) SetChatID(val ID)
- func (s *DeclineChatJoinRequest) SetFake()
- func (s *DeclineChatJoinRequest) SetUserID(val int64)
- func (s *DeclineChatJoinRequest) UnmarshalJSON(data []byte) error
- type DeleteChatPhoto
- func (s *DeleteChatPhoto) Decode(d *jx.Decoder) error
- func (s *DeleteChatPhoto) Encode(e *jx.Encoder)
- func (s *DeleteChatPhoto) GetChatID() ID
- func (s *DeleteChatPhoto) MarshalJSON() ([]byte, error)
- func (s *DeleteChatPhoto) SetChatID(val ID)
- func (s *DeleteChatPhoto) SetFake()
- func (s *DeleteChatPhoto) UnmarshalJSON(data []byte) error
- type DeleteChatStickerSet
- func (s *DeleteChatStickerSet) Decode(d *jx.Decoder) error
- func (s *DeleteChatStickerSet) Encode(e *jx.Encoder)
- func (s *DeleteChatStickerSet) GetChatID() ID
- func (s *DeleteChatStickerSet) MarshalJSON() ([]byte, error)
- func (s *DeleteChatStickerSet) SetChatID(val ID)
- func (s *DeleteChatStickerSet) SetFake()
- func (s *DeleteChatStickerSet) UnmarshalJSON(data []byte) error
- type DeleteMessage
- func (s *DeleteMessage) Decode(d *jx.Decoder) error
- func (s *DeleteMessage) Encode(e *jx.Encoder)
- func (s *DeleteMessage) GetChatID() ID
- func (s *DeleteMessage) GetMessageID() int
- func (s *DeleteMessage) MarshalJSON() ([]byte, error)
- func (s *DeleteMessage) SetChatID(val ID)
- func (s *DeleteMessage) SetFake()
- func (s *DeleteMessage) SetMessageID(val int)
- func (s *DeleteMessage) UnmarshalJSON(data []byte) error
- type DeleteMyCommands
- func (s *DeleteMyCommands) Decode(d *jx.Decoder) error
- func (s *DeleteMyCommands) Encode(e *jx.Encoder)
- func (s *DeleteMyCommands) GetLanguageCode() OptString
- func (s *DeleteMyCommands) GetScope() OptBotCommandScope
- func (s *DeleteMyCommands) MarshalJSON() ([]byte, error)
- func (s *DeleteMyCommands) SetFake()
- func (s *DeleteMyCommands) SetLanguageCode(val OptString)
- func (s *DeleteMyCommands) SetScope(val OptBotCommandScope)
- func (s *DeleteMyCommands) UnmarshalJSON(data []byte) error
- type DeleteStickerFromSet
- func (s *DeleteStickerFromSet) Decode(d *jx.Decoder) error
- func (s *DeleteStickerFromSet) Encode(e *jx.Encoder)
- func (s *DeleteStickerFromSet) GetSticker() string
- func (s *DeleteStickerFromSet) MarshalJSON() ([]byte, error)
- func (s *DeleteStickerFromSet) SetFake()
- func (s *DeleteStickerFromSet) SetSticker(val string)
- func (s *DeleteStickerFromSet) UnmarshalJSON(data []byte) error
- type DeleteWebhook
- func (s *DeleteWebhook) Decode(d *jx.Decoder) error
- func (s *DeleteWebhook) Encode(e *jx.Encoder)
- func (s *DeleteWebhook) GetDropPendingUpdates() OptBool
- func (s *DeleteWebhook) MarshalJSON() ([]byte, error)
- func (s *DeleteWebhook) SetDropPendingUpdates(val OptBool)
- func (s *DeleteWebhook) SetFake()
- func (s *DeleteWebhook) UnmarshalJSON(data []byte) error
- type Dice
- func (s *Dice) Decode(d *jx.Decoder) error
- func (s *Dice) Encode(e *jx.Encoder)
- func (s *Dice) GetEmoji() string
- func (s *Dice) GetValue() int
- func (s *Dice) MarshalJSON() ([]byte, error)
- func (s *Dice) SetEmoji(val string)
- func (s *Dice) SetFake()
- func (s *Dice) SetValue(val int)
- func (s *Dice) UnmarshalJSON(data []byte) error
- type Document
- func (s *Document) Decode(d *jx.Decoder) error
- func (s *Document) Encode(e *jx.Encoder)
- func (s *Document) GetFileID() string
- func (s *Document) GetFileName() OptString
- func (s *Document) GetFileSize() OptInt
- func (s *Document) GetFileUniqueID() string
- func (s *Document) GetMimeType() OptString
- func (s *Document) GetThumb() OptPhotoSize
- func (s *Document) MarshalJSON() ([]byte, error)
- func (s *Document) SetFake()
- func (s *Document) SetFileID(val string)
- func (s *Document) SetFileName(val OptString)
- func (s *Document) SetFileSize(val OptInt)
- func (s *Document) SetFileUniqueID(val string)
- func (s *Document) SetMimeType(val OptString)
- func (s *Document) SetThumb(val OptPhotoSize)
- func (s *Document) UnmarshalJSON(data []byte) error
- func (s *Document) Validate() error
- type EditChatInviteLink
- func (s *EditChatInviteLink) Decode(d *jx.Decoder) error
- func (s *EditChatInviteLink) Encode(e *jx.Encoder)
- func (s *EditChatInviteLink) GetChatID() ID
- func (s *EditChatInviteLink) GetCreatesJoinRequest() OptBool
- func (s *EditChatInviteLink) GetExpireDate() OptInt
- func (s *EditChatInviteLink) GetInviteLink() string
- func (s *EditChatInviteLink) GetMemberLimit() OptInt
- func (s *EditChatInviteLink) GetName() OptString
- func (s *EditChatInviteLink) MarshalJSON() ([]byte, error)
- func (s *EditChatInviteLink) SetChatID(val ID)
- func (s *EditChatInviteLink) SetCreatesJoinRequest(val OptBool)
- func (s *EditChatInviteLink) SetExpireDate(val OptInt)
- func (s *EditChatInviteLink) SetFake()
- func (s *EditChatInviteLink) SetInviteLink(val string)
- func (s *EditChatInviteLink) SetMemberLimit(val OptInt)
- func (s *EditChatInviteLink) SetName(val OptString)
- func (s *EditChatInviteLink) UnmarshalJSON(data []byte) error
- func (s *EditChatInviteLink) Validate() error
- type EditMessageCaption
- func (s *EditMessageCaption) Decode(d *jx.Decoder) error
- func (s *EditMessageCaption) Encode(e *jx.Encoder)
- func (s *EditMessageCaption) GetCaption() OptString
- func (s *EditMessageCaption) GetCaptionEntities() []MessageEntity
- func (s *EditMessageCaption) GetChatID() OptID
- func (s *EditMessageCaption) GetInlineMessageID() OptString
- func (s *EditMessageCaption) GetMessageID() OptInt
- func (s *EditMessageCaption) GetParseMode() OptString
- func (s *EditMessageCaption) GetReplyMarkup() OptInlineKeyboardMarkup
- func (s *EditMessageCaption) MarshalJSON() ([]byte, error)
- func (s *EditMessageCaption) SetCaption(val OptString)
- func (s *EditMessageCaption) SetCaptionEntities(val []MessageEntity)
- func (s *EditMessageCaption) SetChatID(val OptID)
- func (s *EditMessageCaption) SetFake()
- func (s *EditMessageCaption) SetInlineMessageID(val OptString)
- func (s *EditMessageCaption) SetMessageID(val OptInt)
- func (s *EditMessageCaption) SetParseMode(val OptString)
- func (s *EditMessageCaption) SetReplyMarkup(val OptInlineKeyboardMarkup)
- func (s *EditMessageCaption) UnmarshalJSON(data []byte) error
- func (s *EditMessageCaption) Validate() error
- type EditMessageLiveLocation
- func (s *EditMessageLiveLocation) Decode(d *jx.Decoder) error
- func (s *EditMessageLiveLocation) Encode(e *jx.Encoder)
- func (s *EditMessageLiveLocation) GetChatID() OptID
- func (s *EditMessageLiveLocation) GetHeading() OptInt
- func (s *EditMessageLiveLocation) GetHorizontalAccuracy() OptFloat64
- func (s *EditMessageLiveLocation) GetInlineMessageID() OptString
- func (s *EditMessageLiveLocation) GetLatitude() float64
- func (s *EditMessageLiveLocation) GetLongitude() float64
- func (s *EditMessageLiveLocation) GetMessageID() OptInt
- func (s *EditMessageLiveLocation) GetProximityAlertRadius() OptInt
- func (s *EditMessageLiveLocation) GetReplyMarkup() OptInlineKeyboardMarkup
- func (s *EditMessageLiveLocation) MarshalJSON() ([]byte, error)
- func (s *EditMessageLiveLocation) SetChatID(val OptID)
- func (s *EditMessageLiveLocation) SetFake()
- func (s *EditMessageLiveLocation) SetHeading(val OptInt)
- func (s *EditMessageLiveLocation) SetHorizontalAccuracy(val OptFloat64)
- func (s *EditMessageLiveLocation) SetInlineMessageID(val OptString)
- func (s *EditMessageLiveLocation) SetLatitude(val float64)
- func (s *EditMessageLiveLocation) SetLongitude(val float64)
- func (s *EditMessageLiveLocation) SetMessageID(val OptInt)
- func (s *EditMessageLiveLocation) SetProximityAlertRadius(val OptInt)
- func (s *EditMessageLiveLocation) SetReplyMarkup(val OptInlineKeyboardMarkup)
- func (s *EditMessageLiveLocation) UnmarshalJSON(data []byte) error
- func (s *EditMessageLiveLocation) Validate() error
- type EditMessageMedia
- func (s *EditMessageMedia) Decode(d *jx.Decoder) error
- func (s *EditMessageMedia) Encode(e *jx.Encoder)
- func (s *EditMessageMedia) GetChatID() OptID
- func (s *EditMessageMedia) GetInlineMessageID() OptString
- func (s *EditMessageMedia) GetMedia() InputMedia
- func (s *EditMessageMedia) GetMessageID() OptInt
- func (s *EditMessageMedia) GetReplyMarkup() OptInlineKeyboardMarkup
- func (s *EditMessageMedia) MarshalJSON() ([]byte, error)
- func (s *EditMessageMedia) SetChatID(val OptID)
- func (s *EditMessageMedia) SetFake()
- func (s *EditMessageMedia) SetInlineMessageID(val OptString)
- func (s *EditMessageMedia) SetMedia(val InputMedia)
- func (s *EditMessageMedia) SetMessageID(val OptInt)
- func (s *EditMessageMedia) SetReplyMarkup(val OptInlineKeyboardMarkup)
- func (s *EditMessageMedia) UnmarshalJSON(data []byte) error
- func (s *EditMessageMedia) Validate() error
- type EditMessageReplyMarkup
- func (s *EditMessageReplyMarkup) Decode(d *jx.Decoder) error
- func (s *EditMessageReplyMarkup) Encode(e *jx.Encoder)
- func (s *EditMessageReplyMarkup) GetChatID() OptID
- func (s *EditMessageReplyMarkup) GetInlineMessageID() OptString
- func (s *EditMessageReplyMarkup) GetMessageID() OptInt
- func (s *EditMessageReplyMarkup) GetReplyMarkup() OptInlineKeyboardMarkup
- func (s *EditMessageReplyMarkup) MarshalJSON() ([]byte, error)
- func (s *EditMessageReplyMarkup) SetChatID(val OptID)
- func (s *EditMessageReplyMarkup) SetFake()
- func (s *EditMessageReplyMarkup) SetInlineMessageID(val OptString)
- func (s *EditMessageReplyMarkup) SetMessageID(val OptInt)
- func (s *EditMessageReplyMarkup) SetReplyMarkup(val OptInlineKeyboardMarkup)
- func (s *EditMessageReplyMarkup) UnmarshalJSON(data []byte) error
- func (s *EditMessageReplyMarkup) Validate() error
- type EditMessageText
- func (s *EditMessageText) Decode(d *jx.Decoder) error
- func (s *EditMessageText) Encode(e *jx.Encoder)
- func (s *EditMessageText) GetChatID() OptID
- func (s *EditMessageText) GetDisableWebPagePreview() OptBool
- func (s *EditMessageText) GetEntities() []MessageEntity
- func (s *EditMessageText) GetInlineMessageID() OptString
- func (s *EditMessageText) GetMessageID() OptInt
- func (s *EditMessageText) GetParseMode() OptString
- func (s *EditMessageText) GetReplyMarkup() OptInlineKeyboardMarkup
- func (s *EditMessageText) GetText() string
- func (s *EditMessageText) MarshalJSON() ([]byte, error)
- func (s *EditMessageText) SetChatID(val OptID)
- func (s *EditMessageText) SetDisableWebPagePreview(val OptBool)
- func (s *EditMessageText) SetEntities(val []MessageEntity)
- func (s *EditMessageText) SetFake()
- func (s *EditMessageText) SetInlineMessageID(val OptString)
- func (s *EditMessageText) SetMessageID(val OptInt)
- func (s *EditMessageText) SetParseMode(val OptString)
- func (s *EditMessageText) SetReplyMarkup(val OptInlineKeyboardMarkup)
- func (s *EditMessageText) SetText(val string)
- func (s *EditMessageText) UnmarshalJSON(data []byte) error
- func (s *EditMessageText) Validate() error
- type EncryptedCredentials
- func (s *EncryptedCredentials) Decode(d *jx.Decoder) error
- func (s *EncryptedCredentials) Encode(e *jx.Encoder)
- func (s *EncryptedCredentials) GetData() string
- func (s *EncryptedCredentials) GetHash() string
- func (s *EncryptedCredentials) GetSecret() string
- func (s *EncryptedCredentials) MarshalJSON() ([]byte, error)
- func (s *EncryptedCredentials) SetData(val string)
- func (s *EncryptedCredentials) SetFake()
- func (s *EncryptedCredentials) SetHash(val string)
- func (s *EncryptedCredentials) SetSecret(val string)
- func (s *EncryptedCredentials) UnmarshalJSON(data []byte) error
- type EncryptedPassportElement
- func (s *EncryptedPassportElement) Decode(d *jx.Decoder) error
- func (s *EncryptedPassportElement) Encode(e *jx.Encoder)
- func (s *EncryptedPassportElement) GetData() OptString
- func (s *EncryptedPassportElement) GetEmail() OptString
- func (s *EncryptedPassportElement) GetFiles() []PassportFile
- func (s *EncryptedPassportElement) GetFrontSide() OptPassportFile
- func (s *EncryptedPassportElement) GetHash() string
- func (s *EncryptedPassportElement) GetPhoneNumber() OptString
- func (s *EncryptedPassportElement) GetReverseSide() OptPassportFile
- func (s *EncryptedPassportElement) GetSelfie() OptPassportFile
- func (s *EncryptedPassportElement) GetTranslation() []PassportFile
- func (s *EncryptedPassportElement) GetType() EncryptedPassportElementType
- func (s *EncryptedPassportElement) MarshalJSON() ([]byte, error)
- func (s *EncryptedPassportElement) SetData(val OptString)
- func (s *EncryptedPassportElement) SetEmail(val OptString)
- func (s *EncryptedPassportElement) SetFake()
- func (s *EncryptedPassportElement) SetFiles(val []PassportFile)
- func (s *EncryptedPassportElement) SetFrontSide(val OptPassportFile)
- func (s *EncryptedPassportElement) SetHash(val string)
- func (s *EncryptedPassportElement) SetPhoneNumber(val OptString)
- func (s *EncryptedPassportElement) SetReverseSide(val OptPassportFile)
- func (s *EncryptedPassportElement) SetSelfie(val OptPassportFile)
- func (s *EncryptedPassportElement) SetTranslation(val []PassportFile)
- func (s *EncryptedPassportElement) SetType(val EncryptedPassportElementType)
- func (s *EncryptedPassportElement) UnmarshalJSON(data []byte) error
- func (s *EncryptedPassportElement) Validate() error
- type EncryptedPassportElementType
- func (EncryptedPassportElementType) AllValues() []EncryptedPassportElementType
- func (s *EncryptedPassportElementType) Decode(d *jx.Decoder) error
- func (s EncryptedPassportElementType) Encode(e *jx.Encoder)
- func (s EncryptedPassportElementType) MarshalJSON() ([]byte, error)
- func (s EncryptedPassportElementType) MarshalText() ([]byte, error)
- func (s *EncryptedPassportElementType) SetFake()
- func (s *EncryptedPassportElementType) UnmarshalJSON(data []byte) error
- func (s *EncryptedPassportElementType) UnmarshalText(data []byte) error
- func (s EncryptedPassportElementType) Validate() error
- type Error
- func (s *Error) Decode(d *jx.Decoder) error
- func (s *Error) Encode(e *jx.Encoder)
- func (s *Error) GetDescription() string
- func (s *Error) GetErrorCode() int
- func (s *Error) GetOk() bool
- func (s *Error) GetParameters() OptResponse
- func (s *Error) MarshalJSON() ([]byte, error)
- func (s *Error) SetDescription(val string)
- func (s *Error) SetErrorCode(val int)
- func (s *Error) SetFake()
- func (s *Error) SetOk(val bool)
- func (s *Error) SetParameters(val OptResponse)
- func (s *Error) UnmarshalJSON(data []byte) error
- type ErrorHandler
- type ErrorStatusCode
- type ExportChatInviteLink
- func (s *ExportChatInviteLink) Decode(d *jx.Decoder) error
- func (s *ExportChatInviteLink) Encode(e *jx.Encoder)
- func (s *ExportChatInviteLink) GetChatID() ID
- func (s *ExportChatInviteLink) MarshalJSON() ([]byte, error)
- func (s *ExportChatInviteLink) SetChatID(val ID)
- func (s *ExportChatInviteLink) SetFake()
- func (s *ExportChatInviteLink) UnmarshalJSON(data []byte) error
- type File
- func (s *File) Decode(d *jx.Decoder) error
- func (s *File) Encode(e *jx.Encoder)
- func (s *File) GetFileID() string
- func (s *File) GetFilePath() OptString
- func (s *File) GetFileSize() OptInt
- func (s *File) GetFileUniqueID() string
- func (s *File) MarshalJSON() ([]byte, error)
- func (s *File) SetFake()
- func (s *File) SetFileID(val string)
- func (s *File) SetFilePath(val OptString)
- func (s *File) SetFileSize(val OptInt)
- func (s *File) SetFileUniqueID(val string)
- func (s *File) UnmarshalJSON(data []byte) error
- type ForceReply
- func (s *ForceReply) Decode(d *jx.Decoder) error
- func (s *ForceReply) Encode(e *jx.Encoder)
- func (s *ForceReply) GetForceReply() bool
- func (s *ForceReply) GetInputFieldPlaceholder() OptString
- func (s *ForceReply) GetSelective() OptBool
- func (s *ForceReply) MarshalJSON() ([]byte, error)
- func (s *ForceReply) SetFake()
- func (s *ForceReply) SetForceReply(val bool)
- func (s *ForceReply) SetInputFieldPlaceholder(val OptString)
- func (s *ForceReply) SetSelective(val OptBool)
- func (s *ForceReply) UnmarshalJSON(data []byte) error
- func (s *ForceReply) Validate() error
- type ForwardMessage
- func (s *ForwardMessage) Decode(d *jx.Decoder) error
- func (s *ForwardMessage) Encode(e *jx.Encoder)
- func (s *ForwardMessage) GetChatID() ID
- func (s *ForwardMessage) GetDisableNotification() OptBool
- func (s *ForwardMessage) GetFromChatID() ID
- func (s *ForwardMessage) GetMessageID() int
- func (s *ForwardMessage) MarshalJSON() ([]byte, error)
- func (s *ForwardMessage) SetChatID(val ID)
- func (s *ForwardMessage) SetDisableNotification(val OptBool)
- func (s *ForwardMessage) SetFake()
- func (s *ForwardMessage) SetFromChatID(val ID)
- func (s *ForwardMessage) SetMessageID(val int)
- func (s *ForwardMessage) UnmarshalJSON(data []byte) error
- type Game
- func (s *Game) Decode(d *jx.Decoder) error
- func (s *Game) Encode(e *jx.Encoder)
- func (s *Game) GetAnimation() OptAnimation
- func (s *Game) GetDescription() string
- func (s *Game) GetPhoto() []PhotoSize
- func (s *Game) GetText() OptString
- func (s *Game) GetTextEntities() []MessageEntity
- func (s *Game) GetTitle() string
- func (s *Game) MarshalJSON() ([]byte, error)
- func (s *Game) SetAnimation(val OptAnimation)
- func (s *Game) SetDescription(val string)
- func (s *Game) SetFake()
- func (s *Game) SetPhoto(val []PhotoSize)
- func (s *Game) SetText(val OptString)
- func (s *Game) SetTextEntities(val []MessageEntity)
- func (s *Game) SetTitle(val string)
- func (s *Game) UnmarshalJSON(data []byte) error
- func (s *Game) Validate() error
- type GameHighScore
- func (s *GameHighScore) Decode(d *jx.Decoder) error
- func (s *GameHighScore) Encode(e *jx.Encoder)
- func (s *GameHighScore) GetPosition() int
- func (s *GameHighScore) GetScore() int
- func (s *GameHighScore) GetUser() User
- func (s *GameHighScore) MarshalJSON() ([]byte, error)
- func (s *GameHighScore) SetFake()
- func (s *GameHighScore) SetPosition(val int)
- func (s *GameHighScore) SetScore(val int)
- func (s *GameHighScore) SetUser(val User)
- func (s *GameHighScore) UnmarshalJSON(data []byte) error
- type GetChat
- type GetChatAdministrators
- func (s *GetChatAdministrators) Decode(d *jx.Decoder) error
- func (s *GetChatAdministrators) Encode(e *jx.Encoder)
- func (s *GetChatAdministrators) GetChatID() ID
- func (s *GetChatAdministrators) MarshalJSON() ([]byte, error)
- func (s *GetChatAdministrators) SetChatID(val ID)
- func (s *GetChatAdministrators) SetFake()
- func (s *GetChatAdministrators) UnmarshalJSON(data []byte) error
- type GetChatMember
- func (s *GetChatMember) Decode(d *jx.Decoder) error
- func (s *GetChatMember) Encode(e *jx.Encoder)
- func (s *GetChatMember) GetChatID() ID
- func (s *GetChatMember) GetUserID() int64
- func (s *GetChatMember) MarshalJSON() ([]byte, error)
- func (s *GetChatMember) SetChatID(val ID)
- func (s *GetChatMember) SetFake()
- func (s *GetChatMember) SetUserID(val int64)
- func (s *GetChatMember) UnmarshalJSON(data []byte) error
- type GetChatMemberCount
- func (s *GetChatMemberCount) Decode(d *jx.Decoder) error
- func (s *GetChatMemberCount) Encode(e *jx.Encoder)
- func (s *GetChatMemberCount) GetChatID() ID
- func (s *GetChatMemberCount) MarshalJSON() ([]byte, error)
- func (s *GetChatMemberCount) SetChatID(val ID)
- func (s *GetChatMemberCount) SetFake()
- func (s *GetChatMemberCount) UnmarshalJSON(data []byte) error
- type GetFile
- type GetGameHighScores
- func (s *GetGameHighScores) Decode(d *jx.Decoder) error
- func (s *GetGameHighScores) Encode(e *jx.Encoder)
- func (s *GetGameHighScores) GetChatID() OptInt64
- func (s *GetGameHighScores) GetInlineMessageID() OptString
- func (s *GetGameHighScores) GetMessageID() OptInt
- func (s *GetGameHighScores) GetUserID() int64
- func (s *GetGameHighScores) MarshalJSON() ([]byte, error)
- func (s *GetGameHighScores) SetChatID(val OptInt64)
- func (s *GetGameHighScores) SetFake()
- func (s *GetGameHighScores) SetInlineMessageID(val OptString)
- func (s *GetGameHighScores) SetMessageID(val OptInt)
- func (s *GetGameHighScores) SetUserID(val int64)
- func (s *GetGameHighScores) UnmarshalJSON(data []byte) error
- type GetMyCommands
- func (s *GetMyCommands) Decode(d *jx.Decoder) error
- func (s *GetMyCommands) Encode(e *jx.Encoder)
- func (s *GetMyCommands) GetLanguageCode() OptString
- func (s *GetMyCommands) GetScope() OptBotCommandScope
- func (s *GetMyCommands) MarshalJSON() ([]byte, error)
- func (s *GetMyCommands) SetFake()
- func (s *GetMyCommands) SetLanguageCode(val OptString)
- func (s *GetMyCommands) SetScope(val OptBotCommandScope)
- func (s *GetMyCommands) UnmarshalJSON(data []byte) error
- type GetStickerSet
- func (s *GetStickerSet) Decode(d *jx.Decoder) error
- func (s *GetStickerSet) Encode(e *jx.Encoder)
- func (s *GetStickerSet) GetName() string
- func (s *GetStickerSet) MarshalJSON() ([]byte, error)
- func (s *GetStickerSet) SetFake()
- func (s *GetStickerSet) SetName(val string)
- func (s *GetStickerSet) UnmarshalJSON(data []byte) error
- type GetUpdates
- func (s *GetUpdates) Decode(d *jx.Decoder) error
- func (s *GetUpdates) Encode(e *jx.Encoder)
- func (s *GetUpdates) GetAllowedUpdates() []string
- func (s *GetUpdates) GetLimit() OptInt
- func (s *GetUpdates) GetOffset() OptInt
- func (s *GetUpdates) GetTimeout() OptInt
- func (s *GetUpdates) MarshalJSON() ([]byte, error)
- func (s *GetUpdates) SetAllowedUpdates(val []string)
- func (s *GetUpdates) SetFake()
- func (s *GetUpdates) SetLimit(val OptInt)
- func (s *GetUpdates) SetOffset(val OptInt)
- func (s *GetUpdates) SetTimeout(val OptInt)
- func (s *GetUpdates) UnmarshalJSON(data []byte) error
- func (s *GetUpdates) Validate() error
- type GetUserProfilePhotos
- func (s *GetUserProfilePhotos) Decode(d *jx.Decoder) error
- func (s *GetUserProfilePhotos) Encode(e *jx.Encoder)
- func (s *GetUserProfilePhotos) GetLimit() OptInt
- func (s *GetUserProfilePhotos) GetOffset() OptInt
- func (s *GetUserProfilePhotos) GetUserID() int64
- func (s *GetUserProfilePhotos) MarshalJSON() ([]byte, error)
- func (s *GetUserProfilePhotos) SetFake()
- func (s *GetUserProfilePhotos) SetLimit(val OptInt)
- func (s *GetUserProfilePhotos) SetOffset(val OptInt)
- func (s *GetUserProfilePhotos) SetUserID(val int64)
- func (s *GetUserProfilePhotos) UnmarshalJSON(data []byte) error
- func (s *GetUserProfilePhotos) Validate() error
- type Handler
- type ID
- func (s *ID) Decode(d *jx.Decoder) error
- func (s ID) Encode(e *jx.Encoder)
- func (s ID) GetInt64() (v int64, ok bool)
- func (s ID) GetString() (v string, ok bool)
- func (s ID) IsInt64() bool
- func (s ID) IsString() bool
- func (s ID) MarshalJSON() ([]byte, error)
- func (s *ID) SetFake()
- func (s *ID) SetInt64(v int64)
- func (s *ID) SetString(v string)
- func (s *ID) UnmarshalJSON(data []byte) error
- type IDType
- type InlineKeyboardButton
- func (s *InlineKeyboardButton) Decode(d *jx.Decoder) error
- func (s *InlineKeyboardButton) Encode(e *jx.Encoder)
- func (s *InlineKeyboardButton) GetCallbackData() OptString
- func (s *InlineKeyboardButton) GetCallbackGame() *CallbackGame
- func (s *InlineKeyboardButton) GetLoginURL() OptLoginUrl
- func (s *InlineKeyboardButton) GetPay() OptBool
- func (s *InlineKeyboardButton) GetSwitchInlineQuery() OptString
- func (s *InlineKeyboardButton) GetSwitchInlineQueryCurrentChat() OptString
- func (s *InlineKeyboardButton) GetText() string
- func (s *InlineKeyboardButton) GetURL() OptURI
- func (s *InlineKeyboardButton) MarshalJSON() ([]byte, error)
- func (s *InlineKeyboardButton) SetCallbackData(val OptString)
- func (s *InlineKeyboardButton) SetCallbackGame(val *CallbackGame)
- func (s *InlineKeyboardButton) SetFake()
- func (s *InlineKeyboardButton) SetLoginURL(val OptLoginUrl)
- func (s *InlineKeyboardButton) SetPay(val OptBool)
- func (s *InlineKeyboardButton) SetSwitchInlineQuery(val OptString)
- func (s *InlineKeyboardButton) SetSwitchInlineQueryCurrentChat(val OptString)
- func (s *InlineKeyboardButton) SetText(val string)
- func (s *InlineKeyboardButton) SetURL(val OptURI)
- func (s *InlineKeyboardButton) UnmarshalJSON(data []byte) error
- func (s *InlineKeyboardButton) Validate() error
- type InlineKeyboardMarkup
- func (s *InlineKeyboardMarkup) Decode(d *jx.Decoder) error
- func (s *InlineKeyboardMarkup) Encode(e *jx.Encoder)
- func (s *InlineKeyboardMarkup) GetInlineKeyboard() [][]InlineKeyboardButton
- func (s *InlineKeyboardMarkup) MarshalJSON() ([]byte, error)
- func (s *InlineKeyboardMarkup) SetFake()
- func (s *InlineKeyboardMarkup) SetInlineKeyboard(val [][]InlineKeyboardButton)
- func (s *InlineKeyboardMarkup) UnmarshalJSON(data []byte) error
- func (s *InlineKeyboardMarkup) Validate() error
- type InlineQuery
- func (s *InlineQuery) Decode(d *jx.Decoder) error
- func (s *InlineQuery) Encode(e *jx.Encoder)
- func (s *InlineQuery) GetChatType() OptInlineQueryChatType
- func (s *InlineQuery) GetFrom() User
- func (s *InlineQuery) GetID() string
- func (s *InlineQuery) GetLocation() OptLocation
- func (s *InlineQuery) GetOffset() string
- func (s *InlineQuery) GetQuery() string
- func (s *InlineQuery) MarshalJSON() ([]byte, error)
- func (s *InlineQuery) SetChatType(val OptInlineQueryChatType)
- func (s *InlineQuery) SetFake()
- func (s *InlineQuery) SetFrom(val User)
- func (s *InlineQuery) SetID(val string)
- func (s *InlineQuery) SetLocation(val OptLocation)
- func (s *InlineQuery) SetOffset(val string)
- func (s *InlineQuery) SetQuery(val string)
- func (s *InlineQuery) UnmarshalJSON(data []byte) error
- func (s *InlineQuery) Validate() error
- type InlineQueryChatType
- func (InlineQueryChatType) AllValues() []InlineQueryChatType
- func (s *InlineQueryChatType) Decode(d *jx.Decoder) error
- func (s InlineQueryChatType) Encode(e *jx.Encoder)
- func (s InlineQueryChatType) MarshalJSON() ([]byte, error)
- func (s InlineQueryChatType) MarshalText() ([]byte, error)
- func (s *InlineQueryChatType) SetFake()
- func (s *InlineQueryChatType) UnmarshalJSON(data []byte) error
- func (s *InlineQueryChatType) UnmarshalText(data []byte) error
- func (s InlineQueryChatType) Validate() error
- type InlineQueryResult
- func NewInlineQueryResultArticleInlineQueryResult(v InlineQueryResultArticle) InlineQueryResult
- func NewInlineQueryResultAudioInlineQueryResult(v InlineQueryResultAudio) InlineQueryResult
- func NewInlineQueryResultCachedAudioInlineQueryResult(v InlineQueryResultCachedAudio) InlineQueryResult
- func NewInlineQueryResultCachedDocumentInlineQueryResult(v InlineQueryResultCachedDocument) InlineQueryResult
- func NewInlineQueryResultCachedGifInlineQueryResult(v InlineQueryResultCachedGif) InlineQueryResult
- func NewInlineQueryResultCachedMpeg4GifInlineQueryResult(v InlineQueryResultCachedMpeg4Gif) InlineQueryResult
- func NewInlineQueryResultCachedPhotoInlineQueryResult(v InlineQueryResultCachedPhoto) InlineQueryResult
- func NewInlineQueryResultCachedStickerInlineQueryResult(v InlineQueryResultCachedSticker) InlineQueryResult
- func NewInlineQueryResultCachedVideoInlineQueryResult(v InlineQueryResultCachedVideo) InlineQueryResult
- func NewInlineQueryResultCachedVoiceInlineQueryResult(v InlineQueryResultCachedVoice) InlineQueryResult
- func NewInlineQueryResultContactInlineQueryResult(v InlineQueryResultContact) InlineQueryResult
- func NewInlineQueryResultDocumentInlineQueryResult(v InlineQueryResultDocument) InlineQueryResult
- func NewInlineQueryResultGameInlineQueryResult(v InlineQueryResultGame) InlineQueryResult
- func NewInlineQueryResultGifInlineQueryResult(v InlineQueryResultGif) InlineQueryResult
- func NewInlineQueryResultLocationInlineQueryResult(v InlineQueryResultLocation) InlineQueryResult
- func NewInlineQueryResultMpeg4GifInlineQueryResult(v InlineQueryResultMpeg4Gif) InlineQueryResult
- func NewInlineQueryResultPhotoInlineQueryResult(v InlineQueryResultPhoto) InlineQueryResult
- func NewInlineQueryResultVenueInlineQueryResult(v InlineQueryResultVenue) InlineQueryResult
- func NewInlineQueryResultVideoInlineQueryResult(v InlineQueryResultVideo) InlineQueryResult
- func NewInlineQueryResultVoiceInlineQueryResult(v InlineQueryResultVoice) InlineQueryResult
- func (s *InlineQueryResult) Decode(d *jx.Decoder) error
- func (s InlineQueryResult) Encode(e *jx.Encoder)
- func (s InlineQueryResult) GetInlineQueryResultArticle() (v InlineQueryResultArticle, ok bool)
- func (s InlineQueryResult) GetInlineQueryResultAudio() (v InlineQueryResultAudio, ok bool)
- func (s InlineQueryResult) GetInlineQueryResultCachedAudio() (v InlineQueryResultCachedAudio, ok bool)
- func (s InlineQueryResult) GetInlineQueryResultCachedDocument() (v InlineQueryResultCachedDocument, ok bool)
- func (s InlineQueryResult) GetInlineQueryResultCachedGif() (v InlineQueryResultCachedGif, ok bool)
- func (s InlineQueryResult) GetInlineQueryResultCachedMpeg4Gif() (v InlineQueryResultCachedMpeg4Gif, ok bool)
- func (s InlineQueryResult) GetInlineQueryResultCachedPhoto() (v InlineQueryResultCachedPhoto, ok bool)
- func (s InlineQueryResult) GetInlineQueryResultCachedSticker() (v InlineQueryResultCachedSticker, ok bool)
- func (s InlineQueryResult) GetInlineQueryResultCachedVideo() (v InlineQueryResultCachedVideo, ok bool)
- func (s InlineQueryResult) GetInlineQueryResultCachedVoice() (v InlineQueryResultCachedVoice, ok bool)
- func (s InlineQueryResult) GetInlineQueryResultContact() (v InlineQueryResultContact, ok bool)
- func (s InlineQueryResult) GetInlineQueryResultDocument() (v InlineQueryResultDocument, ok bool)
- func (s InlineQueryResult) GetInlineQueryResultGame() (v InlineQueryResultGame, ok bool)
- func (s InlineQueryResult) GetInlineQueryResultGif() (v InlineQueryResultGif, ok bool)
- func (s InlineQueryResult) GetInlineQueryResultLocation() (v InlineQueryResultLocation, ok bool)
- func (s InlineQueryResult) GetInlineQueryResultMpeg4Gif() (v InlineQueryResultMpeg4Gif, ok bool)
- func (s InlineQueryResult) GetInlineQueryResultPhoto() (v InlineQueryResultPhoto, ok bool)
- func (s InlineQueryResult) GetInlineQueryResultVenue() (v InlineQueryResultVenue, ok bool)
- func (s InlineQueryResult) GetInlineQueryResultVideo() (v InlineQueryResultVideo, ok bool)
- func (s InlineQueryResult) GetInlineQueryResultVoice() (v InlineQueryResultVoice, ok bool)
- func (s InlineQueryResult) IsInlineQueryResultArticle() bool
- func (s InlineQueryResult) IsInlineQueryResultAudio() bool
- func (s InlineQueryResult) IsInlineQueryResultCachedAudio() bool
- func (s InlineQueryResult) IsInlineQueryResultCachedDocument() bool
- func (s InlineQueryResult) IsInlineQueryResultCachedGif() bool
- func (s InlineQueryResult) IsInlineQueryResultCachedMpeg4Gif() bool
- func (s InlineQueryResult) IsInlineQueryResultCachedPhoto() bool
- func (s InlineQueryResult) IsInlineQueryResultCachedSticker() bool
- func (s InlineQueryResult) IsInlineQueryResultCachedVideo() bool
- func (s InlineQueryResult) IsInlineQueryResultCachedVoice() bool
- func (s InlineQueryResult) IsInlineQueryResultContact() bool
- func (s InlineQueryResult) IsInlineQueryResultDocument() bool
- func (s InlineQueryResult) IsInlineQueryResultGame() bool
- func (s InlineQueryResult) IsInlineQueryResultGif() bool
- func (s InlineQueryResult) IsInlineQueryResultLocation() bool
- func (s InlineQueryResult) IsInlineQueryResultMpeg4Gif() bool
- func (s InlineQueryResult) IsInlineQueryResultPhoto() bool
- func (s InlineQueryResult) IsInlineQueryResultVenue() bool
- func (s InlineQueryResult) IsInlineQueryResultVideo() bool
- func (s InlineQueryResult) IsInlineQueryResultVoice() bool
- func (s InlineQueryResult) MarshalJSON() ([]byte, error)
- func (s *InlineQueryResult) SetFake()
- func (s *InlineQueryResult) SetInlineQueryResultArticle(v InlineQueryResultArticle)
- func (s *InlineQueryResult) SetInlineQueryResultAudio(v InlineQueryResultAudio)
- func (s *InlineQueryResult) SetInlineQueryResultCachedAudio(v InlineQueryResultCachedAudio)
- func (s *InlineQueryResult) SetInlineQueryResultCachedDocument(v InlineQueryResultCachedDocument)
- func (s *InlineQueryResult) SetInlineQueryResultCachedGif(v InlineQueryResultCachedGif)
- func (s *InlineQueryResult) SetInlineQueryResultCachedMpeg4Gif(v InlineQueryResultCachedMpeg4Gif)
- func (s *InlineQueryResult) SetInlineQueryResultCachedPhoto(v InlineQueryResultCachedPhoto)
- func (s *InlineQueryResult) SetInlineQueryResultCachedSticker(v InlineQueryResultCachedSticker)
- func (s *InlineQueryResult) SetInlineQueryResultCachedVideo(v InlineQueryResultCachedVideo)
- func (s *InlineQueryResult) SetInlineQueryResultCachedVoice(v InlineQueryResultCachedVoice)
- func (s *InlineQueryResult) SetInlineQueryResultContact(v InlineQueryResultContact)
- func (s *InlineQueryResult) SetInlineQueryResultDocument(v InlineQueryResultDocument)
- func (s *InlineQueryResult) SetInlineQueryResultGame(v InlineQueryResultGame)
- func (s *InlineQueryResult) SetInlineQueryResultGif(v InlineQueryResultGif)
- func (s *InlineQueryResult) SetInlineQueryResultLocation(v InlineQueryResultLocation)
- func (s *InlineQueryResult) SetInlineQueryResultMpeg4Gif(v InlineQueryResultMpeg4Gif)
- func (s *InlineQueryResult) SetInlineQueryResultPhoto(v InlineQueryResultPhoto)
- func (s *InlineQueryResult) SetInlineQueryResultVenue(v InlineQueryResultVenue)
- func (s *InlineQueryResult) SetInlineQueryResultVideo(v InlineQueryResultVideo)
- func (s *InlineQueryResult) SetInlineQueryResultVoice(v InlineQueryResultVoice)
- func (s *InlineQueryResult) UnmarshalJSON(data []byte) error
- func (s InlineQueryResult) Validate() error
- type InlineQueryResultArticle
- func (s *InlineQueryResultArticle) Decode(d *jx.Decoder) error
- func (s *InlineQueryResultArticle) Encode(e *jx.Encoder)
- func (s *InlineQueryResultArticle) GetDescription() OptString
- func (s *InlineQueryResultArticle) GetHideURL() OptBool
- func (s *InlineQueryResultArticle) GetID() string
- func (s *InlineQueryResultArticle) GetInputMessageContent() InputMessageContent
- func (s *InlineQueryResultArticle) GetReplyMarkup() OptInlineKeyboardMarkup
- func (s *InlineQueryResultArticle) GetThumbHeight() OptInt
- func (s *InlineQueryResultArticle) GetThumbURL() OptURI
- func (s *InlineQueryResultArticle) GetThumbWidth() OptInt
- func (s *InlineQueryResultArticle) GetTitle() string
- func (s *InlineQueryResultArticle) GetType() string
- func (s *InlineQueryResultArticle) GetURL() OptURI
- func (s *InlineQueryResultArticle) MarshalJSON() ([]byte, error)
- func (s *InlineQueryResultArticle) SetDescription(val OptString)
- func (s *InlineQueryResultArticle) SetFake()
- func (s *InlineQueryResultArticle) SetHideURL(val OptBool)
- func (s *InlineQueryResultArticle) SetID(val string)
- func (s *InlineQueryResultArticle) SetInputMessageContent(val InputMessageContent)
- func (s *InlineQueryResultArticle) SetReplyMarkup(val OptInlineKeyboardMarkup)
- func (s *InlineQueryResultArticle) SetThumbHeight(val OptInt)
- func (s *InlineQueryResultArticle) SetThumbURL(val OptURI)
- func (s *InlineQueryResultArticle) SetThumbWidth(val OptInt)
- func (s *InlineQueryResultArticle) SetTitle(val string)
- func (s *InlineQueryResultArticle) SetType(val string)
- func (s *InlineQueryResultArticle) SetURL(val OptURI)
- func (s *InlineQueryResultArticle) UnmarshalJSON(data []byte) error
- func (s *InlineQueryResultArticle) Validate() error
- type InlineQueryResultAudio
- func (s *InlineQueryResultAudio) Decode(d *jx.Decoder) error
- func (s *InlineQueryResultAudio) Encode(e *jx.Encoder)
- func (s *InlineQueryResultAudio) GetAudioDuration() OptInt
- func (s *InlineQueryResultAudio) GetAudioURL() url.URL
- func (s *InlineQueryResultAudio) GetCaption() OptString
- func (s *InlineQueryResultAudio) GetCaptionEntities() []MessageEntity
- func (s *InlineQueryResultAudio) GetID() string
- func (s *InlineQueryResultAudio) GetInputMessageContent() OptInputMessageContent
- func (s *InlineQueryResultAudio) GetParseMode() OptString
- func (s *InlineQueryResultAudio) GetPerformer() OptString
- func (s *InlineQueryResultAudio) GetReplyMarkup() OptInlineKeyboardMarkup
- func (s *InlineQueryResultAudio) GetTitle() string
- func (s *InlineQueryResultAudio) GetType() string
- func (s *InlineQueryResultAudio) MarshalJSON() ([]byte, error)
- func (s *InlineQueryResultAudio) SetAudioDuration(val OptInt)
- func (s *InlineQueryResultAudio) SetAudioURL(val url.URL)
- func (s *InlineQueryResultAudio) SetCaption(val OptString)
- func (s *InlineQueryResultAudio) SetCaptionEntities(val []MessageEntity)
- func (s *InlineQueryResultAudio) SetFake()
- func (s *InlineQueryResultAudio) SetID(val string)
- func (s *InlineQueryResultAudio) SetInputMessageContent(val OptInputMessageContent)
- func (s *InlineQueryResultAudio) SetParseMode(val OptString)
- func (s *InlineQueryResultAudio) SetPerformer(val OptString)
- func (s *InlineQueryResultAudio) SetReplyMarkup(val OptInlineKeyboardMarkup)
- func (s *InlineQueryResultAudio) SetTitle(val string)
- func (s *InlineQueryResultAudio) SetType(val string)
- func (s *InlineQueryResultAudio) UnmarshalJSON(data []byte) error
- func (s *InlineQueryResultAudio) Validate() error
- type InlineQueryResultCachedAudio
- func (s *InlineQueryResultCachedAudio) Decode(d *jx.Decoder) error
- func (s *InlineQueryResultCachedAudio) Encode(e *jx.Encoder)
- func (s *InlineQueryResultCachedAudio) GetAudioFileID() string
- func (s *InlineQueryResultCachedAudio) GetCaption() OptString
- func (s *InlineQueryResultCachedAudio) GetCaptionEntities() []MessageEntity
- func (s *InlineQueryResultCachedAudio) GetID() string
- func (s *InlineQueryResultCachedAudio) GetInputMessageContent() OptInputMessageContent
- func (s *InlineQueryResultCachedAudio) GetParseMode() OptString
- func (s *InlineQueryResultCachedAudio) GetReplyMarkup() OptInlineKeyboardMarkup
- func (s *InlineQueryResultCachedAudio) GetType() string
- func (s *InlineQueryResultCachedAudio) MarshalJSON() ([]byte, error)
- func (s *InlineQueryResultCachedAudio) SetAudioFileID(val string)
- func (s *InlineQueryResultCachedAudio) SetCaption(val OptString)
- func (s *InlineQueryResultCachedAudio) SetCaptionEntities(val []MessageEntity)
- func (s *InlineQueryResultCachedAudio) SetFake()
- func (s *InlineQueryResultCachedAudio) SetID(val string)
- func (s *InlineQueryResultCachedAudio) SetInputMessageContent(val OptInputMessageContent)
- func (s *InlineQueryResultCachedAudio) SetParseMode(val OptString)
- func (s *InlineQueryResultCachedAudio) SetReplyMarkup(val OptInlineKeyboardMarkup)
- func (s *InlineQueryResultCachedAudio) SetType(val string)
- func (s *InlineQueryResultCachedAudio) UnmarshalJSON(data []byte) error
- func (s *InlineQueryResultCachedAudio) Validate() error
- type InlineQueryResultCachedDocument
- func (s *InlineQueryResultCachedDocument) Decode(d *jx.Decoder) error
- func (s *InlineQueryResultCachedDocument) Encode(e *jx.Encoder)
- func (s *InlineQueryResultCachedDocument) GetCaption() OptString
- func (s *InlineQueryResultCachedDocument) GetCaptionEntities() []MessageEntity
- func (s *InlineQueryResultCachedDocument) GetDescription() OptString
- func (s *InlineQueryResultCachedDocument) GetDocumentFileID() string
- func (s *InlineQueryResultCachedDocument) GetID() string
- func (s *InlineQueryResultCachedDocument) GetInputMessageContent() OptInputMessageContent
- func (s *InlineQueryResultCachedDocument) GetParseMode() OptString
- func (s *InlineQueryResultCachedDocument) GetReplyMarkup() OptInlineKeyboardMarkup
- func (s *InlineQueryResultCachedDocument) GetTitle() string
- func (s *InlineQueryResultCachedDocument) GetType() string
- func (s *InlineQueryResultCachedDocument) MarshalJSON() ([]byte, error)
- func (s *InlineQueryResultCachedDocument) SetCaption(val OptString)
- func (s *InlineQueryResultCachedDocument) SetCaptionEntities(val []MessageEntity)
- func (s *InlineQueryResultCachedDocument) SetDescription(val OptString)
- func (s *InlineQueryResultCachedDocument) SetDocumentFileID(val string)
- func (s *InlineQueryResultCachedDocument) SetFake()
- func (s *InlineQueryResultCachedDocument) SetID(val string)
- func (s *InlineQueryResultCachedDocument) SetInputMessageContent(val OptInputMessageContent)
- func (s *InlineQueryResultCachedDocument) SetParseMode(val OptString)
- func (s *InlineQueryResultCachedDocument) SetReplyMarkup(val OptInlineKeyboardMarkup)
- func (s *InlineQueryResultCachedDocument) SetTitle(val string)
- func (s *InlineQueryResultCachedDocument) SetType(val string)
- func (s *InlineQueryResultCachedDocument) UnmarshalJSON(data []byte) error
- func (s *InlineQueryResultCachedDocument) Validate() error
- type InlineQueryResultCachedGif
- func (s *InlineQueryResultCachedGif) Decode(d *jx.Decoder) error
- func (s *InlineQueryResultCachedGif) Encode(e *jx.Encoder)
- func (s *InlineQueryResultCachedGif) GetCaption() OptString
- func (s *InlineQueryResultCachedGif) GetCaptionEntities() []MessageEntity
- func (s *InlineQueryResultCachedGif) GetGIFFileID() string
- func (s *InlineQueryResultCachedGif) GetID() string
- func (s *InlineQueryResultCachedGif) GetInputMessageContent() OptInputMessageContent
- func (s *InlineQueryResultCachedGif) GetParseMode() OptString
- func (s *InlineQueryResultCachedGif) GetReplyMarkup() OptInlineKeyboardMarkup
- func (s *InlineQueryResultCachedGif) GetTitle() OptString
- func (s *InlineQueryResultCachedGif) GetType() string
- func (s *InlineQueryResultCachedGif) MarshalJSON() ([]byte, error)
- func (s *InlineQueryResultCachedGif) SetCaption(val OptString)
- func (s *InlineQueryResultCachedGif) SetCaptionEntities(val []MessageEntity)
- func (s *InlineQueryResultCachedGif) SetFake()
- func (s *InlineQueryResultCachedGif) SetGIFFileID(val string)
- func (s *InlineQueryResultCachedGif) SetID(val string)
- func (s *InlineQueryResultCachedGif) SetInputMessageContent(val OptInputMessageContent)
- func (s *InlineQueryResultCachedGif) SetParseMode(val OptString)
- func (s *InlineQueryResultCachedGif) SetReplyMarkup(val OptInlineKeyboardMarkup)
- func (s *InlineQueryResultCachedGif) SetTitle(val OptString)
- func (s *InlineQueryResultCachedGif) SetType(val string)
- func (s *InlineQueryResultCachedGif) UnmarshalJSON(data []byte) error
- func (s *InlineQueryResultCachedGif) Validate() error
- type InlineQueryResultCachedMpeg4Gif
- func (s *InlineQueryResultCachedMpeg4Gif) Decode(d *jx.Decoder) error
- func (s *InlineQueryResultCachedMpeg4Gif) Encode(e *jx.Encoder)
- func (s *InlineQueryResultCachedMpeg4Gif) GetCaption() OptString
- func (s *InlineQueryResultCachedMpeg4Gif) GetCaptionEntities() []MessageEntity
- func (s *InlineQueryResultCachedMpeg4Gif) GetID() string
- func (s *InlineQueryResultCachedMpeg4Gif) GetInputMessageContent() OptInputMessageContent
- func (s *InlineQueryResultCachedMpeg4Gif) GetMpeg4FileID() string
- func (s *InlineQueryResultCachedMpeg4Gif) GetParseMode() OptString
- func (s *InlineQueryResultCachedMpeg4Gif) GetReplyMarkup() OptInlineKeyboardMarkup
- func (s *InlineQueryResultCachedMpeg4Gif) GetTitle() OptString
- func (s *InlineQueryResultCachedMpeg4Gif) GetType() string
- func (s *InlineQueryResultCachedMpeg4Gif) MarshalJSON() ([]byte, error)
- func (s *InlineQueryResultCachedMpeg4Gif) SetCaption(val OptString)
- func (s *InlineQueryResultCachedMpeg4Gif) SetCaptionEntities(val []MessageEntity)
- func (s *InlineQueryResultCachedMpeg4Gif) SetFake()
- func (s *InlineQueryResultCachedMpeg4Gif) SetID(val string)
- func (s *InlineQueryResultCachedMpeg4Gif) SetInputMessageContent(val OptInputMessageContent)
- func (s *InlineQueryResultCachedMpeg4Gif) SetMpeg4FileID(val string)
- func (s *InlineQueryResultCachedMpeg4Gif) SetParseMode(val OptString)
- func (s *InlineQueryResultCachedMpeg4Gif) SetReplyMarkup(val OptInlineKeyboardMarkup)
- func (s *InlineQueryResultCachedMpeg4Gif) SetTitle(val OptString)
- func (s *InlineQueryResultCachedMpeg4Gif) SetType(val string)
- func (s *InlineQueryResultCachedMpeg4Gif) UnmarshalJSON(data []byte) error
- func (s *InlineQueryResultCachedMpeg4Gif) Validate() error
- type InlineQueryResultCachedPhoto
- func (s *InlineQueryResultCachedPhoto) Decode(d *jx.Decoder) error
- func (s *InlineQueryResultCachedPhoto) Encode(e *jx.Encoder)
- func (s *InlineQueryResultCachedPhoto) GetCaption() OptString
- func (s *InlineQueryResultCachedPhoto) GetCaptionEntities() []MessageEntity
- func (s *InlineQueryResultCachedPhoto) GetDescription() OptString
- func (s *InlineQueryResultCachedPhoto) GetID() string
- func (s *InlineQueryResultCachedPhoto) GetInputMessageContent() OptInputMessageContent
- func (s *InlineQueryResultCachedPhoto) GetParseMode() OptString
- func (s *InlineQueryResultCachedPhoto) GetPhotoFileID() string
- func (s *InlineQueryResultCachedPhoto) GetReplyMarkup() OptInlineKeyboardMarkup
- func (s *InlineQueryResultCachedPhoto) GetTitle() OptString
- func (s *InlineQueryResultCachedPhoto) GetType() string
- func (s *InlineQueryResultCachedPhoto) MarshalJSON() ([]byte, error)
- func (s *InlineQueryResultCachedPhoto) SetCaption(val OptString)
- func (s *InlineQueryResultCachedPhoto) SetCaptionEntities(val []MessageEntity)
- func (s *InlineQueryResultCachedPhoto) SetDescription(val OptString)
- func (s *InlineQueryResultCachedPhoto) SetFake()
- func (s *InlineQueryResultCachedPhoto) SetID(val string)
- func (s *InlineQueryResultCachedPhoto) SetInputMessageContent(val OptInputMessageContent)
- func (s *InlineQueryResultCachedPhoto) SetParseMode(val OptString)
- func (s *InlineQueryResultCachedPhoto) SetPhotoFileID(val string)
- func (s *InlineQueryResultCachedPhoto) SetReplyMarkup(val OptInlineKeyboardMarkup)
- func (s *InlineQueryResultCachedPhoto) SetTitle(val OptString)
- func (s *InlineQueryResultCachedPhoto) SetType(val string)
- func (s *InlineQueryResultCachedPhoto) UnmarshalJSON(data []byte) error
- func (s *InlineQueryResultCachedPhoto) Validate() error
- type InlineQueryResultCachedSticker
- func (s *InlineQueryResultCachedSticker) Decode(d *jx.Decoder) error
- func (s *InlineQueryResultCachedSticker) Encode(e *jx.Encoder)
- func (s *InlineQueryResultCachedSticker) GetID() string
- func (s *InlineQueryResultCachedSticker) GetInputMessageContent() OptInputMessageContent
- func (s *InlineQueryResultCachedSticker) GetReplyMarkup() OptInlineKeyboardMarkup
- func (s *InlineQueryResultCachedSticker) GetStickerFileID() string
- func (s *InlineQueryResultCachedSticker) GetType() string
- func (s *InlineQueryResultCachedSticker) MarshalJSON() ([]byte, error)
- func (s *InlineQueryResultCachedSticker) SetFake()
- func (s *InlineQueryResultCachedSticker) SetID(val string)
- func (s *InlineQueryResultCachedSticker) SetInputMessageContent(val OptInputMessageContent)
- func (s *InlineQueryResultCachedSticker) SetReplyMarkup(val OptInlineKeyboardMarkup)
- func (s *InlineQueryResultCachedSticker) SetStickerFileID(val string)
- func (s *InlineQueryResultCachedSticker) SetType(val string)
- func (s *InlineQueryResultCachedSticker) UnmarshalJSON(data []byte) error
- func (s *InlineQueryResultCachedSticker) Validate() error
- type InlineQueryResultCachedVideo
- func (s *InlineQueryResultCachedVideo) Decode(d *jx.Decoder) error
- func (s *InlineQueryResultCachedVideo) Encode(e *jx.Encoder)
- func (s *InlineQueryResultCachedVideo) GetCaption() OptString
- func (s *InlineQueryResultCachedVideo) GetCaptionEntities() []MessageEntity
- func (s *InlineQueryResultCachedVideo) GetDescription() OptString
- func (s *InlineQueryResultCachedVideo) GetID() string
- func (s *InlineQueryResultCachedVideo) GetInputMessageContent() OptInputMessageContent
- func (s *InlineQueryResultCachedVideo) GetParseMode() OptString
- func (s *InlineQueryResultCachedVideo) GetReplyMarkup() OptInlineKeyboardMarkup
- func (s *InlineQueryResultCachedVideo) GetTitle() string
- func (s *InlineQueryResultCachedVideo) GetType() string
- func (s *InlineQueryResultCachedVideo) GetVideoFileID() string
- func (s *InlineQueryResultCachedVideo) MarshalJSON() ([]byte, error)
- func (s *InlineQueryResultCachedVideo) SetCaption(val OptString)
- func (s *InlineQueryResultCachedVideo) SetCaptionEntities(val []MessageEntity)
- func (s *InlineQueryResultCachedVideo) SetDescription(val OptString)
- func (s *InlineQueryResultCachedVideo) SetFake()
- func (s *InlineQueryResultCachedVideo) SetID(val string)
- func (s *InlineQueryResultCachedVideo) SetInputMessageContent(val OptInputMessageContent)
- func (s *InlineQueryResultCachedVideo) SetParseMode(val OptString)
- func (s *InlineQueryResultCachedVideo) SetReplyMarkup(val OptInlineKeyboardMarkup)
- func (s *InlineQueryResultCachedVideo) SetTitle(val string)
- func (s *InlineQueryResultCachedVideo) SetType(val string)
- func (s *InlineQueryResultCachedVideo) SetVideoFileID(val string)
- func (s *InlineQueryResultCachedVideo) UnmarshalJSON(data []byte) error
- func (s *InlineQueryResultCachedVideo) Validate() error
- type InlineQueryResultCachedVoice
- func (s *InlineQueryResultCachedVoice) Decode(d *jx.Decoder) error
- func (s *InlineQueryResultCachedVoice) Encode(e *jx.Encoder)
- func (s *InlineQueryResultCachedVoice) GetCaption() OptString
- func (s *InlineQueryResultCachedVoice) GetCaptionEntities() []MessageEntity
- func (s *InlineQueryResultCachedVoice) GetID() string
- func (s *InlineQueryResultCachedVoice) GetInputMessageContent() OptInputMessageContent
- func (s *InlineQueryResultCachedVoice) GetParseMode() OptString
- func (s *InlineQueryResultCachedVoice) GetReplyMarkup() OptInlineKeyboardMarkup
- func (s *InlineQueryResultCachedVoice) GetTitle() string
- func (s *InlineQueryResultCachedVoice) GetType() string
- func (s *InlineQueryResultCachedVoice) GetVoiceFileID() string
- func (s *InlineQueryResultCachedVoice) MarshalJSON() ([]byte, error)
- func (s *InlineQueryResultCachedVoice) SetCaption(val OptString)
- func (s *InlineQueryResultCachedVoice) SetCaptionEntities(val []MessageEntity)
- func (s *InlineQueryResultCachedVoice) SetFake()
- func (s *InlineQueryResultCachedVoice) SetID(val string)
- func (s *InlineQueryResultCachedVoice) SetInputMessageContent(val OptInputMessageContent)
- func (s *InlineQueryResultCachedVoice) SetParseMode(val OptString)
- func (s *InlineQueryResultCachedVoice) SetReplyMarkup(val OptInlineKeyboardMarkup)
- func (s *InlineQueryResultCachedVoice) SetTitle(val string)
- func (s *InlineQueryResultCachedVoice) SetType(val string)
- func (s *InlineQueryResultCachedVoice) SetVoiceFileID(val string)
- func (s *InlineQueryResultCachedVoice) UnmarshalJSON(data []byte) error
- func (s *InlineQueryResultCachedVoice) Validate() error
- type InlineQueryResultContact
- func (s *InlineQueryResultContact) Decode(d *jx.Decoder) error
- func (s *InlineQueryResultContact) Encode(e *jx.Encoder)
- func (s *InlineQueryResultContact) GetFirstName() string
- func (s *InlineQueryResultContact) GetID() string
- func (s *InlineQueryResultContact) GetInputMessageContent() OptInputMessageContent
- func (s *InlineQueryResultContact) GetLastName() OptString
- func (s *InlineQueryResultContact) GetPhoneNumber() string
- func (s *InlineQueryResultContact) GetReplyMarkup() OptInlineKeyboardMarkup
- func (s *InlineQueryResultContact) GetThumbHeight() OptInt
- func (s *InlineQueryResultContact) GetThumbURL() OptURI
- func (s *InlineQueryResultContact) GetThumbWidth() OptInt
- func (s *InlineQueryResultContact) GetType() string
- func (s *InlineQueryResultContact) GetVcard() OptString
- func (s *InlineQueryResultContact) MarshalJSON() ([]byte, error)
- func (s *InlineQueryResultContact) SetFake()
- func (s *InlineQueryResultContact) SetFirstName(val string)
- func (s *InlineQueryResultContact) SetID(val string)
- func (s *InlineQueryResultContact) SetInputMessageContent(val OptInputMessageContent)
- func (s *InlineQueryResultContact) SetLastName(val OptString)
- func (s *InlineQueryResultContact) SetPhoneNumber(val string)
- func (s *InlineQueryResultContact) SetReplyMarkup(val OptInlineKeyboardMarkup)
- func (s *InlineQueryResultContact) SetThumbHeight(val OptInt)
- func (s *InlineQueryResultContact) SetThumbURL(val OptURI)
- func (s *InlineQueryResultContact) SetThumbWidth(val OptInt)
- func (s *InlineQueryResultContact) SetType(val string)
- func (s *InlineQueryResultContact) SetVcard(val OptString)
- func (s *InlineQueryResultContact) UnmarshalJSON(data []byte) error
- func (s *InlineQueryResultContact) Validate() error
- type InlineQueryResultDocument
- func (s *InlineQueryResultDocument) Decode(d *jx.Decoder) error
- func (s *InlineQueryResultDocument) Encode(e *jx.Encoder)
- func (s *InlineQueryResultDocument) GetCaption() OptString
- func (s *InlineQueryResultDocument) GetCaptionEntities() []MessageEntity
- func (s *InlineQueryResultDocument) GetDescription() OptString
- func (s *InlineQueryResultDocument) GetDocumentURL() url.URL
- func (s *InlineQueryResultDocument) GetID() string
- func (s *InlineQueryResultDocument) GetInputMessageContent() OptInputMessageContent
- func (s *InlineQueryResultDocument) GetMimeType() string
- func (s *InlineQueryResultDocument) GetParseMode() OptString
- func (s *InlineQueryResultDocument) GetReplyMarkup() OptInlineKeyboardMarkup
- func (s *InlineQueryResultDocument) GetThumbHeight() OptInt
- func (s *InlineQueryResultDocument) GetThumbURL() OptURI
- func (s *InlineQueryResultDocument) GetThumbWidth() OptInt
- func (s *InlineQueryResultDocument) GetTitle() string
- func (s *InlineQueryResultDocument) GetType() string
- func (s *InlineQueryResultDocument) MarshalJSON() ([]byte, error)
- func (s *InlineQueryResultDocument) SetCaption(val OptString)
- func (s *InlineQueryResultDocument) SetCaptionEntities(val []MessageEntity)
- func (s *InlineQueryResultDocument) SetDescription(val OptString)
- func (s *InlineQueryResultDocument) SetDocumentURL(val url.URL)
- func (s *InlineQueryResultDocument) SetFake()
- func (s *InlineQueryResultDocument) SetID(val string)
- func (s *InlineQueryResultDocument) SetInputMessageContent(val OptInputMessageContent)
- func (s *InlineQueryResultDocument) SetMimeType(val string)
- func (s *InlineQueryResultDocument) SetParseMode(val OptString)
- func (s *InlineQueryResultDocument) SetReplyMarkup(val OptInlineKeyboardMarkup)
- func (s *InlineQueryResultDocument) SetThumbHeight(val OptInt)
- func (s *InlineQueryResultDocument) SetThumbURL(val OptURI)
- func (s *InlineQueryResultDocument) SetThumbWidth(val OptInt)
- func (s *InlineQueryResultDocument) SetTitle(val string)
- func (s *InlineQueryResultDocument) SetType(val string)
- func (s *InlineQueryResultDocument) UnmarshalJSON(data []byte) error
- func (s *InlineQueryResultDocument) Validate() error
- type InlineQueryResultGame
- func (s *InlineQueryResultGame) Decode(d *jx.Decoder) error
- func (s *InlineQueryResultGame) Encode(e *jx.Encoder)
- func (s *InlineQueryResultGame) GetGameShortName() string
- func (s *InlineQueryResultGame) GetID() string
- func (s *InlineQueryResultGame) GetReplyMarkup() OptInlineKeyboardMarkup
- func (s *InlineQueryResultGame) GetType() string
- func (s *InlineQueryResultGame) MarshalJSON() ([]byte, error)
- func (s *InlineQueryResultGame) SetFake()
- func (s *InlineQueryResultGame) SetGameShortName(val string)
- func (s *InlineQueryResultGame) SetID(val string)
- func (s *InlineQueryResultGame) SetReplyMarkup(val OptInlineKeyboardMarkup)
- func (s *InlineQueryResultGame) SetType(val string)
- func (s *InlineQueryResultGame) UnmarshalJSON(data []byte) error
- func (s *InlineQueryResultGame) Validate() error
- type InlineQueryResultGif
- func (s *InlineQueryResultGif) Decode(d *jx.Decoder) error
- func (s *InlineQueryResultGif) Encode(e *jx.Encoder)
- func (s *InlineQueryResultGif) GetCaption() OptString
- func (s *InlineQueryResultGif) GetCaptionEntities() []MessageEntity
- func (s *InlineQueryResultGif) GetGIFDuration() OptInt
- func (s *InlineQueryResultGif) GetGIFHeight() OptInt
- func (s *InlineQueryResultGif) GetGIFURL() url.URL
- func (s *InlineQueryResultGif) GetGIFWidth() OptInt
- func (s *InlineQueryResultGif) GetID() string
- func (s *InlineQueryResultGif) GetInputMessageContent() OptInputMessageContent
- func (s *InlineQueryResultGif) GetParseMode() OptString
- func (s *InlineQueryResultGif) GetReplyMarkup() OptInlineKeyboardMarkup
- func (s *InlineQueryResultGif) GetThumbMimeType() OptString
- func (s *InlineQueryResultGif) GetThumbURL() url.URL
- func (s *InlineQueryResultGif) GetTitle() OptString
- func (s *InlineQueryResultGif) GetType() string
- func (s *InlineQueryResultGif) MarshalJSON() ([]byte, error)
- func (s *InlineQueryResultGif) SetCaption(val OptString)
- func (s *InlineQueryResultGif) SetCaptionEntities(val []MessageEntity)
- func (s *InlineQueryResultGif) SetFake()
- func (s *InlineQueryResultGif) SetGIFDuration(val OptInt)
- func (s *InlineQueryResultGif) SetGIFHeight(val OptInt)
- func (s *InlineQueryResultGif) SetGIFURL(val url.URL)
- func (s *InlineQueryResultGif) SetGIFWidth(val OptInt)
- func (s *InlineQueryResultGif) SetID(val string)
- func (s *InlineQueryResultGif) SetInputMessageContent(val OptInputMessageContent)
- func (s *InlineQueryResultGif) SetParseMode(val OptString)
- func (s *InlineQueryResultGif) SetReplyMarkup(val OptInlineKeyboardMarkup)
- func (s *InlineQueryResultGif) SetThumbMimeType(val OptString)
- func (s *InlineQueryResultGif) SetThumbURL(val url.URL)
- func (s *InlineQueryResultGif) SetTitle(val OptString)
- func (s *InlineQueryResultGif) SetType(val string)
- func (s *InlineQueryResultGif) UnmarshalJSON(data []byte) error
- func (s *InlineQueryResultGif) Validate() error
- type InlineQueryResultLocation
- func (s *InlineQueryResultLocation) Decode(d *jx.Decoder) error
- func (s *InlineQueryResultLocation) Encode(e *jx.Encoder)
- func (s *InlineQueryResultLocation) GetHeading() OptInt
- func (s *InlineQueryResultLocation) GetHorizontalAccuracy() OptFloat64
- func (s *InlineQueryResultLocation) GetID() string
- func (s *InlineQueryResultLocation) GetInputMessageContent() OptInputMessageContent
- func (s *InlineQueryResultLocation) GetLatitude() float64
- func (s *InlineQueryResultLocation) GetLivePeriod() OptInt
- func (s *InlineQueryResultLocation) GetLongitude() float64
- func (s *InlineQueryResultLocation) GetProximityAlertRadius() OptInt
- func (s *InlineQueryResultLocation) GetReplyMarkup() OptInlineKeyboardMarkup
- func (s *InlineQueryResultLocation) GetThumbHeight() OptInt
- func (s *InlineQueryResultLocation) GetThumbURL() OptURI
- func (s *InlineQueryResultLocation) GetThumbWidth() OptInt
- func (s *InlineQueryResultLocation) GetTitle() string
- func (s *InlineQueryResultLocation) GetType() string
- func (s *InlineQueryResultLocation) MarshalJSON() ([]byte, error)
- func (s *InlineQueryResultLocation) SetFake()
- func (s *InlineQueryResultLocation) SetHeading(val OptInt)
- func (s *InlineQueryResultLocation) SetHorizontalAccuracy(val OptFloat64)
- func (s *InlineQueryResultLocation) SetID(val string)
- func (s *InlineQueryResultLocation) SetInputMessageContent(val OptInputMessageContent)
- func (s *InlineQueryResultLocation) SetLatitude(val float64)
- func (s *InlineQueryResultLocation) SetLivePeriod(val OptInt)
- func (s *InlineQueryResultLocation) SetLongitude(val float64)
- func (s *InlineQueryResultLocation) SetProximityAlertRadius(val OptInt)
- func (s *InlineQueryResultLocation) SetReplyMarkup(val OptInlineKeyboardMarkup)
- func (s *InlineQueryResultLocation) SetThumbHeight(val OptInt)
- func (s *InlineQueryResultLocation) SetThumbURL(val OptURI)
- func (s *InlineQueryResultLocation) SetThumbWidth(val OptInt)
- func (s *InlineQueryResultLocation) SetTitle(val string)
- func (s *InlineQueryResultLocation) SetType(val string)
- func (s *InlineQueryResultLocation) UnmarshalJSON(data []byte) error
- func (s *InlineQueryResultLocation) Validate() error
- type InlineQueryResultMpeg4Gif
- func (s *InlineQueryResultMpeg4Gif) Decode(d *jx.Decoder) error
- func (s *InlineQueryResultMpeg4Gif) Encode(e *jx.Encoder)
- func (s *InlineQueryResultMpeg4Gif) GetCaption() OptString
- func (s *InlineQueryResultMpeg4Gif) GetCaptionEntities() []MessageEntity
- func (s *InlineQueryResultMpeg4Gif) GetID() string
- func (s *InlineQueryResultMpeg4Gif) GetInputMessageContent() OptInputMessageContent
- func (s *InlineQueryResultMpeg4Gif) GetMpeg4Duration() OptInt
- func (s *InlineQueryResultMpeg4Gif) GetMpeg4Height() OptInt
- func (s *InlineQueryResultMpeg4Gif) GetMpeg4URL() url.URL
- func (s *InlineQueryResultMpeg4Gif) GetMpeg4Width() OptInt
- func (s *InlineQueryResultMpeg4Gif) GetParseMode() OptString
- func (s *InlineQueryResultMpeg4Gif) GetReplyMarkup() OptInlineKeyboardMarkup
- func (s *InlineQueryResultMpeg4Gif) GetThumbMimeType() OptString
- func (s *InlineQueryResultMpeg4Gif) GetThumbURL() url.URL
- func (s *InlineQueryResultMpeg4Gif) GetTitle() OptString
- func (s *InlineQueryResultMpeg4Gif) GetType() string
- func (s *InlineQueryResultMpeg4Gif) MarshalJSON() ([]byte, error)
- func (s *InlineQueryResultMpeg4Gif) SetCaption(val OptString)
- func (s *InlineQueryResultMpeg4Gif) SetCaptionEntities(val []MessageEntity)
- func (s *InlineQueryResultMpeg4Gif) SetFake()
- func (s *InlineQueryResultMpeg4Gif) SetID(val string)
- func (s *InlineQueryResultMpeg4Gif) SetInputMessageContent(val OptInputMessageContent)
- func (s *InlineQueryResultMpeg4Gif) SetMpeg4Duration(val OptInt)
- func (s *InlineQueryResultMpeg4Gif) SetMpeg4Height(val OptInt)
- func (s *InlineQueryResultMpeg4Gif) SetMpeg4URL(val url.URL)
- func (s *InlineQueryResultMpeg4Gif) SetMpeg4Width(val OptInt)
- func (s *InlineQueryResultMpeg4Gif) SetParseMode(val OptString)
- func (s *InlineQueryResultMpeg4Gif) SetReplyMarkup(val OptInlineKeyboardMarkup)
- func (s *InlineQueryResultMpeg4Gif) SetThumbMimeType(val OptString)
- func (s *InlineQueryResultMpeg4Gif) SetThumbURL(val url.URL)
- func (s *InlineQueryResultMpeg4Gif) SetTitle(val OptString)
- func (s *InlineQueryResultMpeg4Gif) SetType(val string)
- func (s *InlineQueryResultMpeg4Gif) UnmarshalJSON(data []byte) error
- func (s *InlineQueryResultMpeg4Gif) Validate() error
- type InlineQueryResultPhoto
- func (s *InlineQueryResultPhoto) Decode(d *jx.Decoder) error
- func (s *InlineQueryResultPhoto) Encode(e *jx.Encoder)
- func (s *InlineQueryResultPhoto) GetCaption() OptString
- func (s *InlineQueryResultPhoto) GetCaptionEntities() []MessageEntity
- func (s *InlineQueryResultPhoto) GetDescription() OptString
- func (s *InlineQueryResultPhoto) GetID() string
- func (s *InlineQueryResultPhoto) GetInputMessageContent() OptInputMessageContent
- func (s *InlineQueryResultPhoto) GetParseMode() OptString
- func (s *InlineQueryResultPhoto) GetPhotoHeight() OptInt
- func (s *InlineQueryResultPhoto) GetPhotoURL() url.URL
- func (s *InlineQueryResultPhoto) GetPhotoWidth() OptInt
- func (s *InlineQueryResultPhoto) GetReplyMarkup() OptInlineKeyboardMarkup
- func (s *InlineQueryResultPhoto) GetThumbURL() url.URL
- func (s *InlineQueryResultPhoto) GetTitle() OptString
- func (s *InlineQueryResultPhoto) GetType() string
- func (s *InlineQueryResultPhoto) MarshalJSON() ([]byte, error)
- func (s *InlineQueryResultPhoto) SetCaption(val OptString)
- func (s *InlineQueryResultPhoto) SetCaptionEntities(val []MessageEntity)
- func (s *InlineQueryResultPhoto) SetDescription(val OptString)
- func (s *InlineQueryResultPhoto) SetFake()
- func (s *InlineQueryResultPhoto) SetID(val string)
- func (s *InlineQueryResultPhoto) SetInputMessageContent(val OptInputMessageContent)
- func (s *InlineQueryResultPhoto) SetParseMode(val OptString)
- func (s *InlineQueryResultPhoto) SetPhotoHeight(val OptInt)
- func (s *InlineQueryResultPhoto) SetPhotoURL(val url.URL)
- func (s *InlineQueryResultPhoto) SetPhotoWidth(val OptInt)
- func (s *InlineQueryResultPhoto) SetReplyMarkup(val OptInlineKeyboardMarkup)
- func (s *InlineQueryResultPhoto) SetThumbURL(val url.URL)
- func (s *InlineQueryResultPhoto) SetTitle(val OptString)
- func (s *InlineQueryResultPhoto) SetType(val string)
- func (s *InlineQueryResultPhoto) UnmarshalJSON(data []byte) error
- func (s *InlineQueryResultPhoto) Validate() error
- type InlineQueryResultType
- type InlineQueryResultVenue
- func (s *InlineQueryResultVenue) Decode(d *jx.Decoder) error
- func (s *InlineQueryResultVenue) Encode(e *jx.Encoder)
- func (s *InlineQueryResultVenue) GetAddress() string
- func (s *InlineQueryResultVenue) GetFoursquareID() OptString
- func (s *InlineQueryResultVenue) GetFoursquareType() OptString
- func (s *InlineQueryResultVenue) GetGooglePlaceID() OptString
- func (s *InlineQueryResultVenue) GetGooglePlaceType() OptString
- func (s *InlineQueryResultVenue) GetID() string
- func (s *InlineQueryResultVenue) GetInputMessageContent() OptInputMessageContent
- func (s *InlineQueryResultVenue) GetLatitude() float64
- func (s *InlineQueryResultVenue) GetLongitude() float64
- func (s *InlineQueryResultVenue) GetReplyMarkup() OptInlineKeyboardMarkup
- func (s *InlineQueryResultVenue) GetThumbHeight() OptInt
- func (s *InlineQueryResultVenue) GetThumbURL() OptURI
- func (s *InlineQueryResultVenue) GetThumbWidth() OptInt
- func (s *InlineQueryResultVenue) GetTitle() string
- func (s *InlineQueryResultVenue) GetType() string
- func (s *InlineQueryResultVenue) MarshalJSON() ([]byte, error)
- func (s *InlineQueryResultVenue) SetAddress(val string)
- func (s *InlineQueryResultVenue) SetFake()
- func (s *InlineQueryResultVenue) SetFoursquareID(val OptString)
- func (s *InlineQueryResultVenue) SetFoursquareType(val OptString)
- func (s *InlineQueryResultVenue) SetGooglePlaceID(val OptString)
- func (s *InlineQueryResultVenue) SetGooglePlaceType(val OptString)
- func (s *InlineQueryResultVenue) SetID(val string)
- func (s *InlineQueryResultVenue) SetInputMessageContent(val OptInputMessageContent)
- func (s *InlineQueryResultVenue) SetLatitude(val float64)
- func (s *InlineQueryResultVenue) SetLongitude(val float64)
- func (s *InlineQueryResultVenue) SetReplyMarkup(val OptInlineKeyboardMarkup)
- func (s *InlineQueryResultVenue) SetThumbHeight(val OptInt)
- func (s *InlineQueryResultVenue) SetThumbURL(val OptURI)
- func (s *InlineQueryResultVenue) SetThumbWidth(val OptInt)
- func (s *InlineQueryResultVenue) SetTitle(val string)
- func (s *InlineQueryResultVenue) SetType(val string)
- func (s *InlineQueryResultVenue) UnmarshalJSON(data []byte) error
- func (s *InlineQueryResultVenue) Validate() error
- type InlineQueryResultVideo
- func (s *InlineQueryResultVideo) Decode(d *jx.Decoder) error
- func (s *InlineQueryResultVideo) Encode(e *jx.Encoder)
- func (s *InlineQueryResultVideo) GetCaption() OptString
- func (s *InlineQueryResultVideo) GetCaptionEntities() []MessageEntity
- func (s *InlineQueryResultVideo) GetDescription() OptString
- func (s *InlineQueryResultVideo) GetID() string
- func (s *InlineQueryResultVideo) GetInputMessageContent() OptInputMessageContent
- func (s *InlineQueryResultVideo) GetMimeType() string
- func (s *InlineQueryResultVideo) GetParseMode() OptString
- func (s *InlineQueryResultVideo) GetReplyMarkup() OptInlineKeyboardMarkup
- func (s *InlineQueryResultVideo) GetThumbURL() url.URL
- func (s *InlineQueryResultVideo) GetTitle() string
- func (s *InlineQueryResultVideo) GetType() string
- func (s *InlineQueryResultVideo) GetVideoDuration() OptInt
- func (s *InlineQueryResultVideo) GetVideoHeight() OptInt
- func (s *InlineQueryResultVideo) GetVideoURL() url.URL
- func (s *InlineQueryResultVideo) GetVideoWidth() OptInt
- func (s *InlineQueryResultVideo) MarshalJSON() ([]byte, error)
- func (s *InlineQueryResultVideo) SetCaption(val OptString)
- func (s *InlineQueryResultVideo) SetCaptionEntities(val []MessageEntity)
- func (s *InlineQueryResultVideo) SetDescription(val OptString)
- func (s *InlineQueryResultVideo) SetFake()
- func (s *InlineQueryResultVideo) SetID(val string)
- func (s *InlineQueryResultVideo) SetInputMessageContent(val OptInputMessageContent)
- func (s *InlineQueryResultVideo) SetMimeType(val string)
- func (s *InlineQueryResultVideo) SetParseMode(val OptString)
- func (s *InlineQueryResultVideo) SetReplyMarkup(val OptInlineKeyboardMarkup)
- func (s *InlineQueryResultVideo) SetThumbURL(val url.URL)
- func (s *InlineQueryResultVideo) SetTitle(val string)
- func (s *InlineQueryResultVideo) SetType(val string)
- func (s *InlineQueryResultVideo) SetVideoDuration(val OptInt)
- func (s *InlineQueryResultVideo) SetVideoHeight(val OptInt)
- func (s *InlineQueryResultVideo) SetVideoURL(val url.URL)
- func (s *InlineQueryResultVideo) SetVideoWidth(val OptInt)
- func (s *InlineQueryResultVideo) UnmarshalJSON(data []byte) error
- func (s *InlineQueryResultVideo) Validate() error
- type InlineQueryResultVoice
- func (s *InlineQueryResultVoice) Decode(d *jx.Decoder) error
- func (s *InlineQueryResultVoice) Encode(e *jx.Encoder)
- func (s *InlineQueryResultVoice) GetCaption() OptString
- func (s *InlineQueryResultVoice) GetCaptionEntities() []MessageEntity
- func (s *InlineQueryResultVoice) GetID() string
- func (s *InlineQueryResultVoice) GetInputMessageContent() OptInputMessageContent
- func (s *InlineQueryResultVoice) GetParseMode() OptString
- func (s *InlineQueryResultVoice) GetReplyMarkup() OptInlineKeyboardMarkup
- func (s *InlineQueryResultVoice) GetTitle() string
- func (s *InlineQueryResultVoice) GetType() string
- func (s *InlineQueryResultVoice) GetVoiceDuration() OptInt
- func (s *InlineQueryResultVoice) GetVoiceURL() url.URL
- func (s *InlineQueryResultVoice) MarshalJSON() ([]byte, error)
- func (s *InlineQueryResultVoice) SetCaption(val OptString)
- func (s *InlineQueryResultVoice) SetCaptionEntities(val []MessageEntity)
- func (s *InlineQueryResultVoice) SetFake()
- func (s *InlineQueryResultVoice) SetID(val string)
- func (s *InlineQueryResultVoice) SetInputMessageContent(val OptInputMessageContent)
- func (s *InlineQueryResultVoice) SetParseMode(val OptString)
- func (s *InlineQueryResultVoice) SetReplyMarkup(val OptInlineKeyboardMarkup)
- func (s *InlineQueryResultVoice) SetTitle(val string)
- func (s *InlineQueryResultVoice) SetType(val string)
- func (s *InlineQueryResultVoice) SetVoiceDuration(val OptInt)
- func (s *InlineQueryResultVoice) SetVoiceURL(val url.URL)
- func (s *InlineQueryResultVoice) UnmarshalJSON(data []byte) error
- func (s *InlineQueryResultVoice) Validate() error
- type InputContactMessageContent
- func (s *InputContactMessageContent) Decode(d *jx.Decoder) error
- func (s *InputContactMessageContent) Encode(e *jx.Encoder)
- func (s *InputContactMessageContent) GetFirstName() string
- func (s *InputContactMessageContent) GetLastName() OptString
- func (s *InputContactMessageContent) GetPhoneNumber() string
- func (s *InputContactMessageContent) GetVcard() OptString
- func (s *InputContactMessageContent) MarshalJSON() ([]byte, error)
- func (s *InputContactMessageContent) SetFake()
- func (s *InputContactMessageContent) SetFirstName(val string)
- func (s *InputContactMessageContent) SetLastName(val OptString)
- func (s *InputContactMessageContent) SetPhoneNumber(val string)
- func (s *InputContactMessageContent) SetVcard(val OptString)
- func (s *InputContactMessageContent) UnmarshalJSON(data []byte) error
- func (s *InputContactMessageContent) Validate() error
- type InputInvoiceMessageContent
- func (s *InputInvoiceMessageContent) Decode(d *jx.Decoder) error
- func (s *InputInvoiceMessageContent) Encode(e *jx.Encoder)
- func (s *InputInvoiceMessageContent) GetCurrency() string
- func (s *InputInvoiceMessageContent) GetDescription() string
- func (s *InputInvoiceMessageContent) GetIsFlexible() OptBool
- func (s *InputInvoiceMessageContent) GetMaxTipAmount() OptInt
- func (s *InputInvoiceMessageContent) GetNeedEmail() OptBool
- func (s *InputInvoiceMessageContent) GetNeedName() OptBool
- func (s *InputInvoiceMessageContent) GetNeedPhoneNumber() OptBool
- func (s *InputInvoiceMessageContent) GetNeedShippingAddress() OptBool
- func (s *InputInvoiceMessageContent) GetPayload() string
- func (s *InputInvoiceMessageContent) GetPhotoHeight() OptInt
- func (s *InputInvoiceMessageContent) GetPhotoSize() OptInt
- func (s *InputInvoiceMessageContent) GetPhotoURL() OptURI
- func (s *InputInvoiceMessageContent) GetPhotoWidth() OptInt
- func (s *InputInvoiceMessageContent) GetPrices() []LabeledPrice
- func (s *InputInvoiceMessageContent) GetProviderData() OptString
- func (s *InputInvoiceMessageContent) GetProviderToken() string
- func (s *InputInvoiceMessageContent) GetSendEmailToProvider() OptBool
- func (s *InputInvoiceMessageContent) GetSendPhoneNumberToProvider() OptBool
- func (s *InputInvoiceMessageContent) GetSuggestedTipAmounts() []int
- func (s *InputInvoiceMessageContent) GetTitle() string
- func (s *InputInvoiceMessageContent) MarshalJSON() ([]byte, error)
- func (s *InputInvoiceMessageContent) SetCurrency(val string)
- func (s *InputInvoiceMessageContent) SetDescription(val string)
- func (s *InputInvoiceMessageContent) SetFake()
- func (s *InputInvoiceMessageContent) SetIsFlexible(val OptBool)
- func (s *InputInvoiceMessageContent) SetMaxTipAmount(val OptInt)
- func (s *InputInvoiceMessageContent) SetNeedEmail(val OptBool)
- func (s *InputInvoiceMessageContent) SetNeedName(val OptBool)
- func (s *InputInvoiceMessageContent) SetNeedPhoneNumber(val OptBool)
- func (s *InputInvoiceMessageContent) SetNeedShippingAddress(val OptBool)
- func (s *InputInvoiceMessageContent) SetPayload(val string)
- func (s *InputInvoiceMessageContent) SetPhotoHeight(val OptInt)
- func (s *InputInvoiceMessageContent) SetPhotoSize(val OptInt)
- func (s *InputInvoiceMessageContent) SetPhotoURL(val OptURI)
- func (s *InputInvoiceMessageContent) SetPhotoWidth(val OptInt)
- func (s *InputInvoiceMessageContent) SetPrices(val []LabeledPrice)
- func (s *InputInvoiceMessageContent) SetProviderData(val OptString)
- func (s *InputInvoiceMessageContent) SetProviderToken(val string)
- func (s *InputInvoiceMessageContent) SetSendEmailToProvider(val OptBool)
- func (s *InputInvoiceMessageContent) SetSendPhoneNumberToProvider(val OptBool)
- func (s *InputInvoiceMessageContent) SetSuggestedTipAmounts(val []int)
- func (s *InputInvoiceMessageContent) SetTitle(val string)
- func (s *InputInvoiceMessageContent) UnmarshalJSON(data []byte) error
- func (s *InputInvoiceMessageContent) Validate() error
- type InputLocationMessageContent
- func (s *InputLocationMessageContent) Decode(d *jx.Decoder) error
- func (s *InputLocationMessageContent) Encode(e *jx.Encoder)
- func (s *InputLocationMessageContent) GetHeading() OptInt
- func (s *InputLocationMessageContent) GetHorizontalAccuracy() OptFloat64
- func (s *InputLocationMessageContent) GetLatitude() float64
- func (s *InputLocationMessageContent) GetLivePeriod() OptInt
- func (s *InputLocationMessageContent) GetLongitude() float64
- func (s *InputLocationMessageContent) GetProximityAlertRadius() OptInt
- func (s *InputLocationMessageContent) MarshalJSON() ([]byte, error)
- func (s *InputLocationMessageContent) SetFake()
- func (s *InputLocationMessageContent) SetHeading(val OptInt)
- func (s *InputLocationMessageContent) SetHorizontalAccuracy(val OptFloat64)
- func (s *InputLocationMessageContent) SetLatitude(val float64)
- func (s *InputLocationMessageContent) SetLivePeriod(val OptInt)
- func (s *InputLocationMessageContent) SetLongitude(val float64)
- func (s *InputLocationMessageContent) SetProximityAlertRadius(val OptInt)
- func (s *InputLocationMessageContent) UnmarshalJSON(data []byte) error
- func (s *InputLocationMessageContent) Validate() error
- type InputMedia
- func NewInputMediaAnimationInputMedia(v InputMediaAnimation) InputMedia
- func NewInputMediaAudioInputMedia(v InputMediaAudio) InputMedia
- func NewInputMediaDocumentInputMedia(v InputMediaDocument) InputMedia
- func NewInputMediaPhotoInputMedia(v InputMediaPhoto) InputMedia
- func NewInputMediaVideoInputMedia(v InputMediaVideo) InputMedia
- func (s *InputMedia) Decode(d *jx.Decoder) error
- func (s InputMedia) Encode(e *jx.Encoder)
- func (s InputMedia) GetInputMediaAnimation() (v InputMediaAnimation, ok bool)
- func (s InputMedia) GetInputMediaAudio() (v InputMediaAudio, ok bool)
- func (s InputMedia) GetInputMediaDocument() (v InputMediaDocument, ok bool)
- func (s InputMedia) GetInputMediaPhoto() (v InputMediaPhoto, ok bool)
- func (s InputMedia) GetInputMediaVideo() (v InputMediaVideo, ok bool)
- func (s InputMedia) IsInputMediaAnimation() bool
- func (s InputMedia) IsInputMediaAudio() bool
- func (s InputMedia) IsInputMediaDocument() bool
- func (s InputMedia) IsInputMediaPhoto() bool
- func (s InputMedia) IsInputMediaVideo() bool
- func (s InputMedia) MarshalJSON() ([]byte, error)
- func (s *InputMedia) SetFake()
- func (s *InputMedia) SetInputMediaAnimation(v InputMediaAnimation)
- func (s *InputMedia) SetInputMediaAudio(v InputMediaAudio)
- func (s *InputMedia) SetInputMediaDocument(v InputMediaDocument)
- func (s *InputMedia) SetInputMediaPhoto(v InputMediaPhoto)
- func (s *InputMedia) SetInputMediaVideo(v InputMediaVideo)
- func (s *InputMedia) UnmarshalJSON(data []byte) error
- func (s InputMedia) Validate() error
- type InputMediaAnimation
- func (s *InputMediaAnimation) Decode(d *jx.Decoder) error
- func (s *InputMediaAnimation) Encode(e *jx.Encoder)
- func (s *InputMediaAnimation) GetCaption() OptString
- func (s *InputMediaAnimation) GetCaptionEntities() []MessageEntity
- func (s *InputMediaAnimation) GetDuration() OptInt
- func (s *InputMediaAnimation) GetHeight() OptInt
- func (s *InputMediaAnimation) GetMedia() string
- func (s *InputMediaAnimation) GetParseMode() OptString
- func (s *InputMediaAnimation) GetThumb() OptString
- func (s *InputMediaAnimation) GetType() string
- func (s *InputMediaAnimation) GetWidth() OptInt
- func (s *InputMediaAnimation) MarshalJSON() ([]byte, error)
- func (s *InputMediaAnimation) SetCaption(val OptString)
- func (s *InputMediaAnimation) SetCaptionEntities(val []MessageEntity)
- func (s *InputMediaAnimation) SetDuration(val OptInt)
- func (s *InputMediaAnimation) SetFake()
- func (s *InputMediaAnimation) SetHeight(val OptInt)
- func (s *InputMediaAnimation) SetMedia(val string)
- func (s *InputMediaAnimation) SetParseMode(val OptString)
- func (s *InputMediaAnimation) SetThumb(val OptString)
- func (s *InputMediaAnimation) SetType(val string)
- func (s *InputMediaAnimation) SetWidth(val OptInt)
- func (s *InputMediaAnimation) UnmarshalJSON(data []byte) error
- func (s *InputMediaAnimation) Validate() error
- type InputMediaAudio
- func (s *InputMediaAudio) Decode(d *jx.Decoder) error
- func (s *InputMediaAudio) Encode(e *jx.Encoder)
- func (s *InputMediaAudio) GetCaption() OptString
- func (s *InputMediaAudio) GetCaptionEntities() []MessageEntity
- func (s *InputMediaAudio) GetDuration() OptInt
- func (s *InputMediaAudio) GetMedia() string
- func (s *InputMediaAudio) GetParseMode() OptString
- func (s *InputMediaAudio) GetPerformer() OptString
- func (s *InputMediaAudio) GetThumb() OptString
- func (s *InputMediaAudio) GetTitle() OptString
- func (s *InputMediaAudio) GetType() string
- func (s *InputMediaAudio) MarshalJSON() ([]byte, error)
- func (s *InputMediaAudio) SetCaption(val OptString)
- func (s *InputMediaAudio) SetCaptionEntities(val []MessageEntity)
- func (s *InputMediaAudio) SetDuration(val OptInt)
- func (s *InputMediaAudio) SetFake()
- func (s *InputMediaAudio) SetMedia(val string)
- func (s *InputMediaAudio) SetParseMode(val OptString)
- func (s *InputMediaAudio) SetPerformer(val OptString)
- func (s *InputMediaAudio) SetThumb(val OptString)
- func (s *InputMediaAudio) SetTitle(val OptString)
- func (s *InputMediaAudio) SetType(val string)
- func (s *InputMediaAudio) UnmarshalJSON(data []byte) error
- func (s *InputMediaAudio) Validate() error
- type InputMediaDocument
- func (s *InputMediaDocument) Decode(d *jx.Decoder) error
- func (s *InputMediaDocument) Encode(e *jx.Encoder)
- func (s *InputMediaDocument) GetCaption() OptString
- func (s *InputMediaDocument) GetCaptionEntities() []MessageEntity
- func (s *InputMediaDocument) GetDisableContentTypeDetection() OptBool
- func (s *InputMediaDocument) GetMedia() string
- func (s *InputMediaDocument) GetParseMode() OptString
- func (s *InputMediaDocument) GetThumb() OptString
- func (s *InputMediaDocument) GetType() string
- func (s *InputMediaDocument) MarshalJSON() ([]byte, error)
- func (s *InputMediaDocument) SetCaption(val OptString)
- func (s *InputMediaDocument) SetCaptionEntities(val []MessageEntity)
- func (s *InputMediaDocument) SetDisableContentTypeDetection(val OptBool)
- func (s *InputMediaDocument) SetFake()
- func (s *InputMediaDocument) SetMedia(val string)
- func (s *InputMediaDocument) SetParseMode(val OptString)
- func (s *InputMediaDocument) SetThumb(val OptString)
- func (s *InputMediaDocument) SetType(val string)
- func (s *InputMediaDocument) UnmarshalJSON(data []byte) error
- func (s *InputMediaDocument) Validate() error
- type InputMediaPhoto
- func (s *InputMediaPhoto) Decode(d *jx.Decoder) error
- func (s *InputMediaPhoto) Encode(e *jx.Encoder)
- func (s *InputMediaPhoto) GetCaption() OptString
- func (s *InputMediaPhoto) GetCaptionEntities() []MessageEntity
- func (s *InputMediaPhoto) GetMedia() string
- func (s *InputMediaPhoto) GetParseMode() OptString
- func (s *InputMediaPhoto) GetType() string
- func (s *InputMediaPhoto) MarshalJSON() ([]byte, error)
- func (s *InputMediaPhoto) SetCaption(val OptString)
- func (s *InputMediaPhoto) SetCaptionEntities(val []MessageEntity)
- func (s *InputMediaPhoto) SetFake()
- func (s *InputMediaPhoto) SetMedia(val string)
- func (s *InputMediaPhoto) SetParseMode(val OptString)
- func (s *InputMediaPhoto) SetType(val string)
- func (s *InputMediaPhoto) UnmarshalJSON(data []byte) error
- func (s *InputMediaPhoto) Validate() error
- type InputMediaType
- type InputMediaVideo
- func (s *InputMediaVideo) Decode(d *jx.Decoder) error
- func (s *InputMediaVideo) Encode(e *jx.Encoder)
- func (s *InputMediaVideo) GetCaption() OptString
- func (s *InputMediaVideo) GetCaptionEntities() []MessageEntity
- func (s *InputMediaVideo) GetDuration() OptInt
- func (s *InputMediaVideo) GetHeight() OptInt
- func (s *InputMediaVideo) GetMedia() string
- func (s *InputMediaVideo) GetParseMode() OptString
- func (s *InputMediaVideo) GetSupportsStreaming() OptBool
- func (s *InputMediaVideo) GetThumb() OptString
- func (s *InputMediaVideo) GetType() string
- func (s *InputMediaVideo) GetWidth() OptInt
- func (s *InputMediaVideo) MarshalJSON() ([]byte, error)
- func (s *InputMediaVideo) SetCaption(val OptString)
- func (s *InputMediaVideo) SetCaptionEntities(val []MessageEntity)
- func (s *InputMediaVideo) SetDuration(val OptInt)
- func (s *InputMediaVideo) SetFake()
- func (s *InputMediaVideo) SetHeight(val OptInt)
- func (s *InputMediaVideo) SetMedia(val string)
- func (s *InputMediaVideo) SetParseMode(val OptString)
- func (s *InputMediaVideo) SetSupportsStreaming(val OptBool)
- func (s *InputMediaVideo) SetThumb(val OptString)
- func (s *InputMediaVideo) SetType(val string)
- func (s *InputMediaVideo) SetWidth(val OptInt)
- func (s *InputMediaVideo) UnmarshalJSON(data []byte) error
- func (s *InputMediaVideo) Validate() error
- type InputMessageContent
- func NewInputContactMessageContentInputMessageContent(v InputContactMessageContent) InputMessageContent
- func NewInputInvoiceMessageContentInputMessageContent(v InputInvoiceMessageContent) InputMessageContent
- func NewInputLocationMessageContentInputMessageContent(v InputLocationMessageContent) InputMessageContent
- func NewInputTextMessageContentInputMessageContent(v InputTextMessageContent) InputMessageContent
- func NewInputVenueMessageContentInputMessageContent(v InputVenueMessageContent) InputMessageContent
- func (s *InputMessageContent) Decode(d *jx.Decoder) error
- func (s InputMessageContent) Encode(e *jx.Encoder)
- func (s InputMessageContent) GetInputContactMessageContent() (v InputContactMessageContent, ok bool)
- func (s InputMessageContent) GetInputInvoiceMessageContent() (v InputInvoiceMessageContent, ok bool)
- func (s InputMessageContent) GetInputLocationMessageContent() (v InputLocationMessageContent, ok bool)
- func (s InputMessageContent) GetInputTextMessageContent() (v InputTextMessageContent, ok bool)
- func (s InputMessageContent) GetInputVenueMessageContent() (v InputVenueMessageContent, ok bool)
- func (s InputMessageContent) IsInputContactMessageContent() bool
- func (s InputMessageContent) IsInputInvoiceMessageContent() bool
- func (s InputMessageContent) IsInputLocationMessageContent() bool
- func (s InputMessageContent) IsInputTextMessageContent() bool
- func (s InputMessageContent) IsInputVenueMessageContent() bool
- func (s InputMessageContent) MarshalJSON() ([]byte, error)
- func (s *InputMessageContent) SetFake()
- func (s *InputMessageContent) SetInputContactMessageContent(v InputContactMessageContent)
- func (s *InputMessageContent) SetInputInvoiceMessageContent(v InputInvoiceMessageContent)
- func (s *InputMessageContent) SetInputLocationMessageContent(v InputLocationMessageContent)
- func (s *InputMessageContent) SetInputTextMessageContent(v InputTextMessageContent)
- func (s *InputMessageContent) SetInputVenueMessageContent(v InputVenueMessageContent)
- func (s *InputMessageContent) UnmarshalJSON(data []byte) error
- func (s InputMessageContent) Validate() error
- type InputMessageContentType
- type InputTextMessageContent
- func (s *InputTextMessageContent) Decode(d *jx.Decoder) error
- func (s *InputTextMessageContent) Encode(e *jx.Encoder)
- func (s *InputTextMessageContent) GetDisableWebPagePreview() OptBool
- func (s *InputTextMessageContent) GetEntities() []MessageEntity
- func (s *InputTextMessageContent) GetMessageText() string
- func (s *InputTextMessageContent) GetParseMode() OptString
- func (s *InputTextMessageContent) MarshalJSON() ([]byte, error)
- func (s *InputTextMessageContent) SetDisableWebPagePreview(val OptBool)
- func (s *InputTextMessageContent) SetEntities(val []MessageEntity)
- func (s *InputTextMessageContent) SetFake()
- func (s *InputTextMessageContent) SetMessageText(val string)
- func (s *InputTextMessageContent) SetParseMode(val OptString)
- func (s *InputTextMessageContent) UnmarshalJSON(data []byte) error
- func (s *InputTextMessageContent) Validate() error
- type InputVenueMessageContent
- func (s *InputVenueMessageContent) Decode(d *jx.Decoder) error
- func (s *InputVenueMessageContent) Encode(e *jx.Encoder)
- func (s *InputVenueMessageContent) GetAddress() string
- func (s *InputVenueMessageContent) GetFoursquareID() OptString
- func (s *InputVenueMessageContent) GetFoursquareType() OptString
- func (s *InputVenueMessageContent) GetGooglePlaceID() OptString
- func (s *InputVenueMessageContent) GetGooglePlaceType() OptString
- func (s *InputVenueMessageContent) GetLatitude() float64
- func (s *InputVenueMessageContent) GetLongitude() float64
- func (s *InputVenueMessageContent) GetTitle() string
- func (s *InputVenueMessageContent) MarshalJSON() ([]byte, error)
- func (s *InputVenueMessageContent) SetAddress(val string)
- func (s *InputVenueMessageContent) SetFake()
- func (s *InputVenueMessageContent) SetFoursquareID(val OptString)
- func (s *InputVenueMessageContent) SetFoursquareType(val OptString)
- func (s *InputVenueMessageContent) SetGooglePlaceID(val OptString)
- func (s *InputVenueMessageContent) SetGooglePlaceType(val OptString)
- func (s *InputVenueMessageContent) SetLatitude(val float64)
- func (s *InputVenueMessageContent) SetLongitude(val float64)
- func (s *InputVenueMessageContent) SetTitle(val string)
- func (s *InputVenueMessageContent) UnmarshalJSON(data []byte) error
- func (s *InputVenueMessageContent) Validate() error
- type Invoice
- func (s *Invoice) Decode(d *jx.Decoder) error
- func (s *Invoice) Encode(e *jx.Encoder)
- func (s *Invoice) GetCurrency() string
- func (s *Invoice) GetDescription() string
- func (s *Invoice) GetStartParameter() string
- func (s *Invoice) GetTitle() string
- func (s *Invoice) GetTotalAmount() int
- func (s *Invoice) MarshalJSON() ([]byte, error)
- func (s *Invoice) SetCurrency(val string)
- func (s *Invoice) SetDescription(val string)
- func (s *Invoice) SetFake()
- func (s *Invoice) SetStartParameter(val string)
- func (s *Invoice) SetTitle(val string)
- func (s *Invoice) SetTotalAmount(val int)
- func (s *Invoice) UnmarshalJSON(data []byte) error
- type Invoker
- type KeyboardButton
- func (s *KeyboardButton) Decode(d *jx.Decoder) error
- func (s KeyboardButton) Encode(e *jx.Encoder)
- func (s KeyboardButton) GetKeyboardButtonObject() (v KeyboardButtonObject, ok bool)
- func (s KeyboardButton) GetString() (v string, ok bool)
- func (s KeyboardButton) IsKeyboardButtonObject() bool
- func (s KeyboardButton) IsString() bool
- func (s KeyboardButton) MarshalJSON() ([]byte, error)
- func (s *KeyboardButton) SetFake()
- func (s *KeyboardButton) SetKeyboardButtonObject(v KeyboardButtonObject)
- func (s *KeyboardButton) SetString(v string)
- func (s *KeyboardButton) UnmarshalJSON(data []byte) error
- type KeyboardButtonObject
- func (s *KeyboardButtonObject) Decode(d *jx.Decoder) error
- func (s *KeyboardButtonObject) Encode(e *jx.Encoder)
- func (s *KeyboardButtonObject) GetRequestContact() OptBool
- func (s *KeyboardButtonObject) GetRequestLocation() OptBool
- func (s *KeyboardButtonObject) GetRequestPoll() OptKeyboardButtonPollType
- func (s *KeyboardButtonObject) GetText() string
- func (s *KeyboardButtonObject) MarshalJSON() ([]byte, error)
- func (s *KeyboardButtonObject) SetFake()
- func (s *KeyboardButtonObject) SetRequestContact(val OptBool)
- func (s *KeyboardButtonObject) SetRequestLocation(val OptBool)
- func (s *KeyboardButtonObject) SetRequestPoll(val OptKeyboardButtonPollType)
- func (s *KeyboardButtonObject) SetText(val string)
- func (s *KeyboardButtonObject) UnmarshalJSON(data []byte) error
- type KeyboardButtonPollType
- func (s *KeyboardButtonPollType) Decode(d *jx.Decoder) error
- func (s *KeyboardButtonPollType) Encode(e *jx.Encoder)
- func (s *KeyboardButtonPollType) GetType() OptString
- func (s *KeyboardButtonPollType) MarshalJSON() ([]byte, error)
- func (s *KeyboardButtonPollType) SetFake()
- func (s *KeyboardButtonPollType) SetType(val OptString)
- func (s *KeyboardButtonPollType) UnmarshalJSON(data []byte) error
- type KeyboardButtonType
- type LabeledPrice
- func (s *LabeledPrice) Decode(d *jx.Decoder) error
- func (s *LabeledPrice) Encode(e *jx.Encoder)
- func (s *LabeledPrice) GetAmount() int
- func (s *LabeledPrice) GetLabel() string
- func (s *LabeledPrice) MarshalJSON() ([]byte, error)
- func (s *LabeledPrice) SetAmount(val int)
- func (s *LabeledPrice) SetFake()
- func (s *LabeledPrice) SetLabel(val string)
- func (s *LabeledPrice) UnmarshalJSON(data []byte) error
- type Labeler
- type LeaveChat
- type Location
- func (s *Location) Decode(d *jx.Decoder) error
- func (s *Location) Encode(e *jx.Encoder)
- func (s *Location) GetHeading() OptInt
- func (s *Location) GetHorizontalAccuracy() OptFloat64
- func (s *Location) GetLatitude() float64
- func (s *Location) GetLivePeriod() OptInt
- func (s *Location) GetLongitude() float64
- func (s *Location) GetProximityAlertRadius() OptInt
- func (s *Location) MarshalJSON() ([]byte, error)
- func (s *Location) SetFake()
- func (s *Location) SetHeading(val OptInt)
- func (s *Location) SetHorizontalAccuracy(val OptFloat64)
- func (s *Location) SetLatitude(val float64)
- func (s *Location) SetLivePeriod(val OptInt)
- func (s *Location) SetLongitude(val float64)
- func (s *Location) SetProximityAlertRadius(val OptInt)
- func (s *Location) UnmarshalJSON(data []byte) error
- func (s *Location) Validate() error
- type LoginUrl
- func (s *LoginUrl) Decode(d *jx.Decoder) error
- func (s *LoginUrl) Encode(e *jx.Encoder)
- func (s *LoginUrl) GetBotUsername() OptString
- func (s *LoginUrl) GetForwardText() OptString
- func (s *LoginUrl) GetRequestWriteAccess() OptBool
- func (s *LoginUrl) GetURL() url.URL
- func (s *LoginUrl) MarshalJSON() ([]byte, error)
- func (s *LoginUrl) SetBotUsername(val OptString)
- func (s *LoginUrl) SetFake()
- func (s *LoginUrl) SetForwardText(val OptString)
- func (s *LoginUrl) SetRequestWriteAccess(val OptBool)
- func (s *LoginUrl) SetURL(val url.URL)
- func (s *LoginUrl) UnmarshalJSON(data []byte) error
- type MaskPosition
- func (s *MaskPosition) Decode(d *jx.Decoder) error
- func (s *MaskPosition) Encode(e *jx.Encoder)
- func (s *MaskPosition) GetPoint() string
- func (s *MaskPosition) GetScale() float64
- func (s *MaskPosition) GetXShift() float64
- func (s *MaskPosition) GetYShift() float64
- func (s *MaskPosition) MarshalJSON() ([]byte, error)
- func (s *MaskPosition) SetFake()
- func (s *MaskPosition) SetPoint(val string)
- func (s *MaskPosition) SetScale(val float64)
- func (s *MaskPosition) SetXShift(val float64)
- func (s *MaskPosition) SetYShift(val float64)
- func (s *MaskPosition) UnmarshalJSON(data []byte) error
- func (s *MaskPosition) Validate() error
- type Message
- func (s *Message) Decode(d *jx.Decoder) error
- func (s *Message) Encode(e *jx.Encoder)
- func (s *Message) GetAnimation() OptAnimation
- func (s *Message) GetAudio() OptAudio
- func (s *Message) GetAuthorSignature() OptString
- func (s *Message) GetCaption() OptString
- func (s *Message) GetCaptionEntities() []MessageEntity
- func (s *Message) GetChannelChatCreated() OptBool
- func (s *Message) GetChat() Chat
- func (s *Message) GetConnectedWebsite() OptString
- func (s *Message) GetContact() OptContact
- func (s *Message) GetDate() int
- func (s *Message) GetDeleteChatPhoto() OptBool
- func (s *Message) GetDice() OptDice
- func (s *Message) GetDocument() OptDocument
- func (s *Message) GetEditDate() OptInt
- func (s *Message) GetEntities() []MessageEntity
- func (s *Message) GetForwardDate() OptInt
- func (s *Message) GetForwardFrom() OptUser
- func (s *Message) GetForwardFromChat() OptChat
- func (s *Message) GetForwardFromMessageID() OptInt
- func (s *Message) GetForwardSenderName() OptString
- func (s *Message) GetForwardSignature() OptString
- func (s *Message) GetFrom() OptUser
- func (s *Message) GetGame() OptGame
- func (s *Message) GetGroupChatCreated() OptBool
- func (s *Message) GetHasProtectedContent() OptBool
- func (s *Message) GetInvoice() OptInvoice
- func (s *Message) GetIsAutomaticForward() OptBool
- func (s *Message) GetLeftChatMember() OptUser
- func (s *Message) GetLocation() OptLocation
- func (s *Message) GetMediaGroupID() OptString
- func (s *Message) GetMessageAutoDeleteTimerChanged() OptMessageAutoDeleteTimerChanged
- func (s *Message) GetMessageID() int
- func (s *Message) GetMigrateFromChatID() OptInt64
- func (s *Message) GetMigrateToChatID() OptInt64
- func (s *Message) GetNewChatMembers() []User
- func (s *Message) GetNewChatPhoto() []PhotoSize
- func (s *Message) GetNewChatTitle() OptString
- func (s *Message) GetPassportData() OptPassportData
- func (s *Message) GetPhoto() []PhotoSize
- func (s *Message) GetPinnedMessage() *Message
- func (s *Message) GetPoll() OptPoll
- func (s *Message) GetProximityAlertTriggered() OptProximityAlertTriggered
- func (s *Message) GetReplyMarkup() OptInlineKeyboardMarkup
- func (s *Message) GetReplyToMessage() *Message
- func (s *Message) GetSenderChat() OptChat
- func (s *Message) GetSticker() OptSticker
- func (s *Message) GetSuccessfulPayment() OptSuccessfulPayment
- func (s *Message) GetSupergroupChatCreated() OptBool
- func (s *Message) GetText() OptString
- func (s *Message) GetVenue() OptVenue
- func (s *Message) GetViaBot() OptUser
- func (s *Message) GetVideo() OptVideo
- func (s *Message) GetVideoNote() OptVideoNote
- func (s *Message) GetVoice() OptVoice
- func (s *Message) GetVoiceChatEnded() OptVoiceChatEnded
- func (s *Message) GetVoiceChatParticipantsInvited() OptVoiceChatParticipantsInvited
- func (s *Message) GetVoiceChatScheduled() OptVoiceChatScheduled
- func (s *Message) GetVoiceChatStarted() *VoiceChatStarted
- func (s *Message) MarshalJSON() ([]byte, error)
- func (s *Message) SetAnimation(val OptAnimation)
- func (s *Message) SetAudio(val OptAudio)
- func (s *Message) SetAuthorSignature(val OptString)
- func (s *Message) SetCaption(val OptString)
- func (s *Message) SetCaptionEntities(val []MessageEntity)
- func (s *Message) SetChannelChatCreated(val OptBool)
- func (s *Message) SetChat(val Chat)
- func (s *Message) SetConnectedWebsite(val OptString)
- func (s *Message) SetContact(val OptContact)
- func (s *Message) SetDate(val int)
- func (s *Message) SetDeleteChatPhoto(val OptBool)
- func (s *Message) SetDice(val OptDice)
- func (s *Message) SetDocument(val OptDocument)
- func (s *Message) SetEditDate(val OptInt)
- func (s *Message) SetEntities(val []MessageEntity)
- func (s *Message) SetFake()
- func (s *Message) SetForwardDate(val OptInt)
- func (s *Message) SetForwardFrom(val OptUser)
- func (s *Message) SetForwardFromChat(val OptChat)
- func (s *Message) SetForwardFromMessageID(val OptInt)
- func (s *Message) SetForwardSenderName(val OptString)
- func (s *Message) SetForwardSignature(val OptString)
- func (s *Message) SetFrom(val OptUser)
- func (s *Message) SetGame(val OptGame)
- func (s *Message) SetGroupChatCreated(val OptBool)
- func (s *Message) SetHasProtectedContent(val OptBool)
- func (s *Message) SetInvoice(val OptInvoice)
- func (s *Message) SetIsAutomaticForward(val OptBool)
- func (s *Message) SetLeftChatMember(val OptUser)
- func (s *Message) SetLocation(val OptLocation)
- func (s *Message) SetMediaGroupID(val OptString)
- func (s *Message) SetMessageAutoDeleteTimerChanged(val OptMessageAutoDeleteTimerChanged)
- func (s *Message) SetMessageID(val int)
- func (s *Message) SetMigrateFromChatID(val OptInt64)
- func (s *Message) SetMigrateToChatID(val OptInt64)
- func (s *Message) SetNewChatMembers(val []User)
- func (s *Message) SetNewChatPhoto(val []PhotoSize)
- func (s *Message) SetNewChatTitle(val OptString)
- func (s *Message) SetPassportData(val OptPassportData)
- func (s *Message) SetPhoto(val []PhotoSize)
- func (s *Message) SetPinnedMessage(val *Message)
- func (s *Message) SetPoll(val OptPoll)
- func (s *Message) SetProximityAlertTriggered(val OptProximityAlertTriggered)
- func (s *Message) SetReplyMarkup(val OptInlineKeyboardMarkup)
- func (s *Message) SetReplyToMessage(val *Message)
- func (s *Message) SetSenderChat(val OptChat)
- func (s *Message) SetSticker(val OptSticker)
- func (s *Message) SetSuccessfulPayment(val OptSuccessfulPayment)
- func (s *Message) SetSupergroupChatCreated(val OptBool)
- func (s *Message) SetText(val OptString)
- func (s *Message) SetVenue(val OptVenue)
- func (s *Message) SetViaBot(val OptUser)
- func (s *Message) SetVideo(val OptVideo)
- func (s *Message) SetVideoNote(val OptVideoNote)
- func (s *Message) SetVoice(val OptVoice)
- func (s *Message) SetVoiceChatEnded(val OptVoiceChatEnded)
- func (s *Message) SetVoiceChatParticipantsInvited(val OptVoiceChatParticipantsInvited)
- func (s *Message) SetVoiceChatScheduled(val OptVoiceChatScheduled)
- func (s *Message) SetVoiceChatStarted(val *VoiceChatStarted)
- func (s *Message) UnmarshalJSON(data []byte) error
- func (s *Message) Validate() error
- type MessageAutoDeleteTimerChanged
- func (s *MessageAutoDeleteTimerChanged) Decode(d *jx.Decoder) error
- func (s *MessageAutoDeleteTimerChanged) Encode(e *jx.Encoder)
- func (s *MessageAutoDeleteTimerChanged) GetMessageAutoDeleteTime() int
- func (s *MessageAutoDeleteTimerChanged) MarshalJSON() ([]byte, error)
- func (s *MessageAutoDeleteTimerChanged) SetFake()
- func (s *MessageAutoDeleteTimerChanged) SetMessageAutoDeleteTime(val int)
- func (s *MessageAutoDeleteTimerChanged) UnmarshalJSON(data []byte) error
- type MessageEntity
- func (s *MessageEntity) Decode(d *jx.Decoder) error
- func (s *MessageEntity) Encode(e *jx.Encoder)
- func (s *MessageEntity) GetLanguage() OptString
- func (s *MessageEntity) GetLength() int
- func (s *MessageEntity) GetOffset() int
- func (s *MessageEntity) GetType() MessageEntityType
- func (s *MessageEntity) GetURL() OptURI
- func (s *MessageEntity) GetUser() OptUser
- func (s *MessageEntity) MarshalJSON() ([]byte, error)
- func (s *MessageEntity) SetFake()
- func (s *MessageEntity) SetLanguage(val OptString)
- func (s *MessageEntity) SetLength(val int)
- func (s *MessageEntity) SetOffset(val int)
- func (s *MessageEntity) SetType(val MessageEntityType)
- func (s *MessageEntity) SetURL(val OptURI)
- func (s *MessageEntity) SetUser(val OptUser)
- func (s *MessageEntity) UnmarshalJSON(data []byte) error
- func (s *MessageEntity) Validate() error
- type MessageEntityType
- func (MessageEntityType) AllValues() []MessageEntityType
- func (s *MessageEntityType) Decode(d *jx.Decoder) error
- func (s MessageEntityType) Encode(e *jx.Encoder)
- func (s MessageEntityType) MarshalJSON() ([]byte, error)
- func (s MessageEntityType) MarshalText() ([]byte, error)
- func (s *MessageEntityType) SetFake()
- func (s *MessageEntityType) UnmarshalJSON(data []byte) error
- func (s *MessageEntityType) UnmarshalText(data []byte) error
- func (s MessageEntityType) Validate() error
- type MessageId
- func (s *MessageId) Decode(d *jx.Decoder) error
- func (s *MessageId) Encode(e *jx.Encoder)
- func (s *MessageId) GetMessageID() int
- func (s *MessageId) MarshalJSON() ([]byte, error)
- func (s *MessageId) SetFake()
- func (s *MessageId) SetMessageID(val int)
- func (s *MessageId) UnmarshalJSON(data []byte) error
- type Middleware
- type OptAnimation
- func (o *OptAnimation) Decode(d *jx.Decoder) error
- func (o OptAnimation) Encode(e *jx.Encoder)
- func (o OptAnimation) Get() (v Animation, ok bool)
- func (o OptAnimation) IsSet() bool
- func (s OptAnimation) MarshalJSON() ([]byte, error)
- func (o OptAnimation) Or(d Animation) Animation
- func (o *OptAnimation) Reset()
- func (s *OptAnimation) SetFake()
- func (o *OptAnimation) SetTo(v Animation)
- func (s *OptAnimation) UnmarshalJSON(data []byte) error
- type OptAudio
- func (o *OptAudio) Decode(d *jx.Decoder) error
- func (o OptAudio) Encode(e *jx.Encoder)
- func (o OptAudio) Get() (v Audio, ok bool)
- func (o OptAudio) IsSet() bool
- func (s OptAudio) MarshalJSON() ([]byte, error)
- func (o OptAudio) Or(d Audio) Audio
- func (o *OptAudio) Reset()
- func (s *OptAudio) SetFake()
- func (o *OptAudio) SetTo(v Audio)
- func (s *OptAudio) UnmarshalJSON(data []byte) error
- type OptBool
- func (o *OptBool) Decode(d *jx.Decoder) error
- func (o OptBool) Encode(e *jx.Encoder)
- func (o OptBool) Get() (v bool, ok bool)
- func (o OptBool) IsSet() bool
- func (s OptBool) MarshalJSON() ([]byte, error)
- func (o OptBool) Or(d bool) bool
- func (o *OptBool) Reset()
- func (s *OptBool) SetFake()
- func (o *OptBool) SetTo(v bool)
- func (s *OptBool) UnmarshalJSON(data []byte) error
- type OptBotCommandScope
- func (o *OptBotCommandScope) Decode(d *jx.Decoder) error
- func (o OptBotCommandScope) Encode(e *jx.Encoder)
- func (o OptBotCommandScope) Get() (v BotCommandScope, ok bool)
- func (o OptBotCommandScope) IsSet() bool
- func (s OptBotCommandScope) MarshalJSON() ([]byte, error)
- func (o OptBotCommandScope) Or(d BotCommandScope) BotCommandScope
- func (o *OptBotCommandScope) Reset()
- func (s *OptBotCommandScope) SetFake()
- func (o *OptBotCommandScope) SetTo(v BotCommandScope)
- func (s *OptBotCommandScope) UnmarshalJSON(data []byte) error
- type OptCallbackQuery
- func (o *OptCallbackQuery) Decode(d *jx.Decoder) error
- func (o OptCallbackQuery) Encode(e *jx.Encoder)
- func (o OptCallbackQuery) Get() (v CallbackQuery, ok bool)
- func (o OptCallbackQuery) IsSet() bool
- func (s OptCallbackQuery) MarshalJSON() ([]byte, error)
- func (o OptCallbackQuery) Or(d CallbackQuery) CallbackQuery
- func (o *OptCallbackQuery) Reset()
- func (s *OptCallbackQuery) SetFake()
- func (o *OptCallbackQuery) SetTo(v CallbackQuery)
- func (s *OptCallbackQuery) UnmarshalJSON(data []byte) error
- type OptChat
- func (o *OptChat) Decode(d *jx.Decoder) error
- func (o OptChat) Encode(e *jx.Encoder)
- func (o OptChat) Get() (v Chat, ok bool)
- func (o OptChat) IsSet() bool
- func (s OptChat) MarshalJSON() ([]byte, error)
- func (o OptChat) Or(d Chat) Chat
- func (o *OptChat) Reset()
- func (s *OptChat) SetFake()
- func (o *OptChat) SetTo(v Chat)
- func (s *OptChat) UnmarshalJSON(data []byte) error
- type OptChatInviteLink
- func (o *OptChatInviteLink) Decode(d *jx.Decoder) error
- func (o OptChatInviteLink) Encode(e *jx.Encoder)
- func (o OptChatInviteLink) Get() (v ChatInviteLink, ok bool)
- func (o OptChatInviteLink) IsSet() bool
- func (s OptChatInviteLink) MarshalJSON() ([]byte, error)
- func (o OptChatInviteLink) Or(d ChatInviteLink) ChatInviteLink
- func (o *OptChatInviteLink) Reset()
- func (s *OptChatInviteLink) SetFake()
- func (o *OptChatInviteLink) SetTo(v ChatInviteLink)
- func (s *OptChatInviteLink) UnmarshalJSON(data []byte) error
- type OptChatJoinRequest
- func (o *OptChatJoinRequest) Decode(d *jx.Decoder) error
- func (o OptChatJoinRequest) Encode(e *jx.Encoder)
- func (o OptChatJoinRequest) Get() (v ChatJoinRequest, ok bool)
- func (o OptChatJoinRequest) IsSet() bool
- func (s OptChatJoinRequest) MarshalJSON() ([]byte, error)
- func (o OptChatJoinRequest) Or(d ChatJoinRequest) ChatJoinRequest
- func (o *OptChatJoinRequest) Reset()
- func (s *OptChatJoinRequest) SetFake()
- func (o *OptChatJoinRequest) SetTo(v ChatJoinRequest)
- func (s *OptChatJoinRequest) UnmarshalJSON(data []byte) error
- type OptChatLocation
- func (o *OptChatLocation) Decode(d *jx.Decoder) error
- func (o OptChatLocation) Encode(e *jx.Encoder)
- func (o OptChatLocation) Get() (v ChatLocation, ok bool)
- func (o OptChatLocation) IsSet() bool
- func (s OptChatLocation) MarshalJSON() ([]byte, error)
- func (o OptChatLocation) Or(d ChatLocation) ChatLocation
- func (o *OptChatLocation) Reset()
- func (s *OptChatLocation) SetFake()
- func (o *OptChatLocation) SetTo(v ChatLocation)
- func (s *OptChatLocation) UnmarshalJSON(data []byte) error
- type OptChatMember
- func (o *OptChatMember) Decode(d *jx.Decoder) error
- func (o OptChatMember) Encode(e *jx.Encoder)
- func (o OptChatMember) Get() (v ChatMember, ok bool)
- func (o OptChatMember) IsSet() bool
- func (s OptChatMember) MarshalJSON() ([]byte, error)
- func (o OptChatMember) Or(d ChatMember) ChatMember
- func (o *OptChatMember) Reset()
- func (s *OptChatMember) SetFake()
- func (o *OptChatMember) SetTo(v ChatMember)
- func (s *OptChatMember) UnmarshalJSON(data []byte) error
- type OptChatMemberUpdated
- func (o *OptChatMemberUpdated) Decode(d *jx.Decoder) error
- func (o OptChatMemberUpdated) Encode(e *jx.Encoder)
- func (o OptChatMemberUpdated) Get() (v ChatMemberUpdated, ok bool)
- func (o OptChatMemberUpdated) IsSet() bool
- func (s OptChatMemberUpdated) MarshalJSON() ([]byte, error)
- func (o OptChatMemberUpdated) Or(d ChatMemberUpdated) ChatMemberUpdated
- func (o *OptChatMemberUpdated) Reset()
- func (s *OptChatMemberUpdated) SetFake()
- func (o *OptChatMemberUpdated) SetTo(v ChatMemberUpdated)
- func (s *OptChatMemberUpdated) UnmarshalJSON(data []byte) error
- type OptChatPermissions
- func (o *OptChatPermissions) Decode(d *jx.Decoder) error
- func (o OptChatPermissions) Encode(e *jx.Encoder)
- func (o OptChatPermissions) Get() (v ChatPermissions, ok bool)
- func (o OptChatPermissions) IsSet() bool
- func (s OptChatPermissions) MarshalJSON() ([]byte, error)
- func (o OptChatPermissions) Or(d ChatPermissions) ChatPermissions
- func (o *OptChatPermissions) Reset()
- func (s *OptChatPermissions) SetFake()
- func (o *OptChatPermissions) SetTo(v ChatPermissions)
- func (s *OptChatPermissions) UnmarshalJSON(data []byte) error
- type OptChatPhoto
- func (o *OptChatPhoto) Decode(d *jx.Decoder) error
- func (o OptChatPhoto) Encode(e *jx.Encoder)
- func (o OptChatPhoto) Get() (v ChatPhoto, ok bool)
- func (o OptChatPhoto) IsSet() bool
- func (s OptChatPhoto) MarshalJSON() ([]byte, error)
- func (o OptChatPhoto) Or(d ChatPhoto) ChatPhoto
- func (o *OptChatPhoto) Reset()
- func (s *OptChatPhoto) SetFake()
- func (o *OptChatPhoto) SetTo(v ChatPhoto)
- func (s *OptChatPhoto) UnmarshalJSON(data []byte) error
- type OptChosenInlineResult
- func (o *OptChosenInlineResult) Decode(d *jx.Decoder) error
- func (o OptChosenInlineResult) Encode(e *jx.Encoder)
- func (o OptChosenInlineResult) Get() (v ChosenInlineResult, ok bool)
- func (o OptChosenInlineResult) IsSet() bool
- func (s OptChosenInlineResult) MarshalJSON() ([]byte, error)
- func (o OptChosenInlineResult) Or(d ChosenInlineResult) ChosenInlineResult
- func (o *OptChosenInlineResult) Reset()
- func (s *OptChosenInlineResult) SetFake()
- func (o *OptChosenInlineResult) SetTo(v ChosenInlineResult)
- func (s *OptChosenInlineResult) UnmarshalJSON(data []byte) error
- type OptContact
- func (o *OptContact) Decode(d *jx.Decoder) error
- func (o OptContact) Encode(e *jx.Encoder)
- func (o OptContact) Get() (v Contact, ok bool)
- func (o OptContact) IsSet() bool
- func (s OptContact) MarshalJSON() ([]byte, error)
- func (o OptContact) Or(d Contact) Contact
- func (o *OptContact) Reset()
- func (s *OptContact) SetFake()
- func (o *OptContact) SetTo(v Contact)
- func (s *OptContact) UnmarshalJSON(data []byte) error
- type OptCopyMessageReplyMarkup
- func (o *OptCopyMessageReplyMarkup) Decode(d *jx.Decoder) error
- func (o OptCopyMessageReplyMarkup) Encode(e *jx.Encoder)
- func (o OptCopyMessageReplyMarkup) Get() (v CopyMessageReplyMarkup, ok bool)
- func (o OptCopyMessageReplyMarkup) IsSet() bool
- func (s OptCopyMessageReplyMarkup) MarshalJSON() ([]byte, error)
- func (o OptCopyMessageReplyMarkup) Or(d CopyMessageReplyMarkup) CopyMessageReplyMarkup
- func (o *OptCopyMessageReplyMarkup) Reset()
- func (s *OptCopyMessageReplyMarkup) SetFake()
- func (o *OptCopyMessageReplyMarkup) SetTo(v CopyMessageReplyMarkup)
- func (s *OptCopyMessageReplyMarkup) UnmarshalJSON(data []byte) error
- type OptDeleteMyCommands
- func (o *OptDeleteMyCommands) Decode(d *jx.Decoder) error
- func (o OptDeleteMyCommands) Encode(e *jx.Encoder)
- func (o OptDeleteMyCommands) Get() (v DeleteMyCommands, ok bool)
- func (o OptDeleteMyCommands) IsSet() bool
- func (s OptDeleteMyCommands) MarshalJSON() ([]byte, error)
- func (o OptDeleteMyCommands) Or(d DeleteMyCommands) DeleteMyCommands
- func (o *OptDeleteMyCommands) Reset()
- func (s *OptDeleteMyCommands) SetFake()
- func (o *OptDeleteMyCommands) SetTo(v DeleteMyCommands)
- func (s *OptDeleteMyCommands) UnmarshalJSON(data []byte) error
- type OptDeleteWebhook
- func (o *OptDeleteWebhook) Decode(d *jx.Decoder) error
- func (o OptDeleteWebhook) Encode(e *jx.Encoder)
- func (o OptDeleteWebhook) Get() (v DeleteWebhook, ok bool)
- func (o OptDeleteWebhook) IsSet() bool
- func (s OptDeleteWebhook) MarshalJSON() ([]byte, error)
- func (o OptDeleteWebhook) Or(d DeleteWebhook) DeleteWebhook
- func (o *OptDeleteWebhook) Reset()
- func (s *OptDeleteWebhook) SetFake()
- func (o *OptDeleteWebhook) SetTo(v DeleteWebhook)
- func (s *OptDeleteWebhook) UnmarshalJSON(data []byte) error
- type OptDice
- func (o *OptDice) Decode(d *jx.Decoder) error
- func (o OptDice) Encode(e *jx.Encoder)
- func (o OptDice) Get() (v Dice, ok bool)
- func (o OptDice) IsSet() bool
- func (s OptDice) MarshalJSON() ([]byte, error)
- func (o OptDice) Or(d Dice) Dice
- func (o *OptDice) Reset()
- func (s *OptDice) SetFake()
- func (o *OptDice) SetTo(v Dice)
- func (s *OptDice) UnmarshalJSON(data []byte) error
- type OptDocument
- func (o *OptDocument) Decode(d *jx.Decoder) error
- func (o OptDocument) Encode(e *jx.Encoder)
- func (o OptDocument) Get() (v Document, ok bool)
- func (o OptDocument) IsSet() bool
- func (s OptDocument) MarshalJSON() ([]byte, error)
- func (o OptDocument) Or(d Document) Document
- func (o *OptDocument) Reset()
- func (s *OptDocument) SetFake()
- func (o *OptDocument) SetTo(v Document)
- func (s *OptDocument) UnmarshalJSON(data []byte) error
- type OptFile
- func (o *OptFile) Decode(d *jx.Decoder) error
- func (o OptFile) Encode(e *jx.Encoder)
- func (o OptFile) Get() (v File, ok bool)
- func (o OptFile) IsSet() bool
- func (s OptFile) MarshalJSON() ([]byte, error)
- func (o OptFile) Or(d File) File
- func (o *OptFile) Reset()
- func (s *OptFile) SetFake()
- func (o *OptFile) SetTo(v File)
- func (s *OptFile) UnmarshalJSON(data []byte) error
- type OptFloat64
- func (o *OptFloat64) Decode(d *jx.Decoder) error
- func (o OptFloat64) Encode(e *jx.Encoder)
- func (o OptFloat64) Get() (v float64, ok bool)
- func (o OptFloat64) IsSet() bool
- func (s OptFloat64) MarshalJSON() ([]byte, error)
- func (o OptFloat64) Or(d float64) float64
- func (o *OptFloat64) Reset()
- func (s *OptFloat64) SetFake()
- func (o *OptFloat64) SetTo(v float64)
- func (s *OptFloat64) UnmarshalJSON(data []byte) error
- type OptGame
- func (o *OptGame) Decode(d *jx.Decoder) error
- func (o OptGame) Encode(e *jx.Encoder)
- func (o OptGame) Get() (v Game, ok bool)
- func (o OptGame) IsSet() bool
- func (s OptGame) MarshalJSON() ([]byte, error)
- func (o OptGame) Or(d Game) Game
- func (o *OptGame) Reset()
- func (s *OptGame) SetFake()
- func (o *OptGame) SetTo(v Game)
- func (s *OptGame) UnmarshalJSON(data []byte) error
- type OptGetMyCommands
- func (o *OptGetMyCommands) Decode(d *jx.Decoder) error
- func (o OptGetMyCommands) Encode(e *jx.Encoder)
- func (o OptGetMyCommands) Get() (v GetMyCommands, ok bool)
- func (o OptGetMyCommands) IsSet() bool
- func (s OptGetMyCommands) MarshalJSON() ([]byte, error)
- func (o OptGetMyCommands) Or(d GetMyCommands) GetMyCommands
- func (o *OptGetMyCommands) Reset()
- func (s *OptGetMyCommands) SetFake()
- func (o *OptGetMyCommands) SetTo(v GetMyCommands)
- func (s *OptGetMyCommands) UnmarshalJSON(data []byte) error
- type OptGetUpdates
- func (o *OptGetUpdates) Decode(d *jx.Decoder) error
- func (o OptGetUpdates) Encode(e *jx.Encoder)
- func (o OptGetUpdates) Get() (v GetUpdates, ok bool)
- func (o OptGetUpdates) IsSet() bool
- func (s OptGetUpdates) MarshalJSON() ([]byte, error)
- func (o OptGetUpdates) Or(d GetUpdates) GetUpdates
- func (o *OptGetUpdates) Reset()
- func (s *OptGetUpdates) SetFake()
- func (o *OptGetUpdates) SetTo(v GetUpdates)
- func (s *OptGetUpdates) UnmarshalJSON(data []byte) error
- type OptID
- func (o *OptID) Decode(d *jx.Decoder) error
- func (o OptID) Encode(e *jx.Encoder)
- func (o OptID) Get() (v ID, ok bool)
- func (o OptID) IsSet() bool
- func (s OptID) MarshalJSON() ([]byte, error)
- func (o OptID) Or(d ID) ID
- func (o *OptID) Reset()
- func (s *OptID) SetFake()
- func (o *OptID) SetTo(v ID)
- func (s *OptID) UnmarshalJSON(data []byte) error
- type OptInlineKeyboardMarkup
- func (o *OptInlineKeyboardMarkup) Decode(d *jx.Decoder) error
- func (o OptInlineKeyboardMarkup) Encode(e *jx.Encoder)
- func (o OptInlineKeyboardMarkup) Get() (v InlineKeyboardMarkup, ok bool)
- func (o OptInlineKeyboardMarkup) IsSet() bool
- func (s OptInlineKeyboardMarkup) MarshalJSON() ([]byte, error)
- func (o OptInlineKeyboardMarkup) Or(d InlineKeyboardMarkup) InlineKeyboardMarkup
- func (o *OptInlineKeyboardMarkup) Reset()
- func (s *OptInlineKeyboardMarkup) SetFake()
- func (o *OptInlineKeyboardMarkup) SetTo(v InlineKeyboardMarkup)
- func (s *OptInlineKeyboardMarkup) UnmarshalJSON(data []byte) error
- type OptInlineQuery
- func (o *OptInlineQuery) Decode(d *jx.Decoder) error
- func (o OptInlineQuery) Encode(e *jx.Encoder)
- func (o OptInlineQuery) Get() (v InlineQuery, ok bool)
- func (o OptInlineQuery) IsSet() bool
- func (s OptInlineQuery) MarshalJSON() ([]byte, error)
- func (o OptInlineQuery) Or(d InlineQuery) InlineQuery
- func (o *OptInlineQuery) Reset()
- func (s *OptInlineQuery) SetFake()
- func (o *OptInlineQuery) SetTo(v InlineQuery)
- func (s *OptInlineQuery) UnmarshalJSON(data []byte) error
- type OptInlineQueryChatType
- func (o *OptInlineQueryChatType) Decode(d *jx.Decoder) error
- func (o OptInlineQueryChatType) Encode(e *jx.Encoder)
- func (o OptInlineQueryChatType) Get() (v InlineQueryChatType, ok bool)
- func (o OptInlineQueryChatType) IsSet() bool
- func (s OptInlineQueryChatType) MarshalJSON() ([]byte, error)
- func (o OptInlineQueryChatType) Or(d InlineQueryChatType) InlineQueryChatType
- func (o *OptInlineQueryChatType) Reset()
- func (s *OptInlineQueryChatType) SetFake()
- func (o *OptInlineQueryChatType) SetTo(v InlineQueryChatType)
- func (s *OptInlineQueryChatType) UnmarshalJSON(data []byte) error
- type OptInputMessageContent
- func (o *OptInputMessageContent) Decode(d *jx.Decoder) error
- func (o OptInputMessageContent) Encode(e *jx.Encoder)
- func (o OptInputMessageContent) Get() (v InputMessageContent, ok bool)
- func (o OptInputMessageContent) IsSet() bool
- func (s OptInputMessageContent) MarshalJSON() ([]byte, error)
- func (o OptInputMessageContent) Or(d InputMessageContent) InputMessageContent
- func (o *OptInputMessageContent) Reset()
- func (s *OptInputMessageContent) SetFake()
- func (o *OptInputMessageContent) SetTo(v InputMessageContent)
- func (s *OptInputMessageContent) UnmarshalJSON(data []byte) error
- type OptInt
- func (o *OptInt) Decode(d *jx.Decoder) error
- func (o OptInt) Encode(e *jx.Encoder)
- func (o OptInt) Get() (v int, ok bool)
- func (o OptInt) IsSet() bool
- func (s OptInt) MarshalJSON() ([]byte, error)
- func (o OptInt) Or(d int) int
- func (o *OptInt) Reset()
- func (s *OptInt) SetFake()
- func (o *OptInt) SetTo(v int)
- func (s *OptInt) UnmarshalJSON(data []byte) error
- type OptInt64
- func (o *OptInt64) Decode(d *jx.Decoder) error
- func (o OptInt64) Encode(e *jx.Encoder)
- func (o OptInt64) Get() (v int64, ok bool)
- func (o OptInt64) IsSet() bool
- func (s OptInt64) MarshalJSON() ([]byte, error)
- func (o OptInt64) Or(d int64) int64
- func (o *OptInt64) Reset()
- func (s *OptInt64) SetFake()
- func (o *OptInt64) SetTo(v int64)
- func (s *OptInt64) UnmarshalJSON(data []byte) error
- type OptInvoice
- func (o *OptInvoice) Decode(d *jx.Decoder) error
- func (o OptInvoice) Encode(e *jx.Encoder)
- func (o OptInvoice) Get() (v Invoice, ok bool)
- func (o OptInvoice) IsSet() bool
- func (s OptInvoice) MarshalJSON() ([]byte, error)
- func (o OptInvoice) Or(d Invoice) Invoice
- func (o *OptInvoice) Reset()
- func (s *OptInvoice) SetFake()
- func (o *OptInvoice) SetTo(v Invoice)
- func (s *OptInvoice) UnmarshalJSON(data []byte) error
- type OptKeyboardButtonPollType
- func (o *OptKeyboardButtonPollType) Decode(d *jx.Decoder) error
- func (o OptKeyboardButtonPollType) Encode(e *jx.Encoder)
- func (o OptKeyboardButtonPollType) Get() (v KeyboardButtonPollType, ok bool)
- func (o OptKeyboardButtonPollType) IsSet() bool
- func (s OptKeyboardButtonPollType) MarshalJSON() ([]byte, error)
- func (o OptKeyboardButtonPollType) Or(d KeyboardButtonPollType) KeyboardButtonPollType
- func (o *OptKeyboardButtonPollType) Reset()
- func (s *OptKeyboardButtonPollType) SetFake()
- func (o *OptKeyboardButtonPollType) SetTo(v KeyboardButtonPollType)
- func (s *OptKeyboardButtonPollType) UnmarshalJSON(data []byte) error
- type OptLocation
- func (o *OptLocation) Decode(d *jx.Decoder) error
- func (o OptLocation) Encode(e *jx.Encoder)
- func (o OptLocation) Get() (v Location, ok bool)
- func (o OptLocation) IsSet() bool
- func (s OptLocation) MarshalJSON() ([]byte, error)
- func (o OptLocation) Or(d Location) Location
- func (o *OptLocation) Reset()
- func (s *OptLocation) SetFake()
- func (o *OptLocation) SetTo(v Location)
- func (s *OptLocation) UnmarshalJSON(data []byte) error
- type OptLoginUrl
- func (o *OptLoginUrl) Decode(d *jx.Decoder) error
- func (o OptLoginUrl) Encode(e *jx.Encoder)
- func (o OptLoginUrl) Get() (v LoginUrl, ok bool)
- func (o OptLoginUrl) IsSet() bool
- func (s OptLoginUrl) MarshalJSON() ([]byte, error)
- func (o OptLoginUrl) Or(d LoginUrl) LoginUrl
- func (o *OptLoginUrl) Reset()
- func (s *OptLoginUrl) SetFake()
- func (o *OptLoginUrl) SetTo(v LoginUrl)
- func (s *OptLoginUrl) UnmarshalJSON(data []byte) error
- type OptMaskPosition
- func (o *OptMaskPosition) Decode(d *jx.Decoder) error
- func (o OptMaskPosition) Encode(e *jx.Encoder)
- func (o OptMaskPosition) Get() (v MaskPosition, ok bool)
- func (o OptMaskPosition) IsSet() bool
- func (s OptMaskPosition) MarshalJSON() ([]byte, error)
- func (o OptMaskPosition) Or(d MaskPosition) MaskPosition
- func (o *OptMaskPosition) Reset()
- func (s *OptMaskPosition) SetFake()
- func (o *OptMaskPosition) SetTo(v MaskPosition)
- func (s *OptMaskPosition) UnmarshalJSON(data []byte) error
- type OptMessage
- func (o *OptMessage) Decode(d *jx.Decoder) error
- func (o OptMessage) Encode(e *jx.Encoder)
- func (o OptMessage) Get() (v Message, ok bool)
- func (o OptMessage) IsSet() bool
- func (s OptMessage) MarshalJSON() ([]byte, error)
- func (o OptMessage) Or(d Message) Message
- func (o *OptMessage) Reset()
- func (s *OptMessage) SetFake()
- func (o *OptMessage) SetTo(v Message)
- func (s *OptMessage) UnmarshalJSON(data []byte) error
- type OptMessageAutoDeleteTimerChanged
- func (o *OptMessageAutoDeleteTimerChanged) Decode(d *jx.Decoder) error
- func (o OptMessageAutoDeleteTimerChanged) Encode(e *jx.Encoder)
- func (o OptMessageAutoDeleteTimerChanged) Get() (v MessageAutoDeleteTimerChanged, ok bool)
- func (o OptMessageAutoDeleteTimerChanged) IsSet() bool
- func (s OptMessageAutoDeleteTimerChanged) MarshalJSON() ([]byte, error)
- func (o OptMessageAutoDeleteTimerChanged) Or(d MessageAutoDeleteTimerChanged) MessageAutoDeleteTimerChanged
- func (o *OptMessageAutoDeleteTimerChanged) Reset()
- func (s *OptMessageAutoDeleteTimerChanged) SetFake()
- func (o *OptMessageAutoDeleteTimerChanged) SetTo(v MessageAutoDeleteTimerChanged)
- func (s *OptMessageAutoDeleteTimerChanged) UnmarshalJSON(data []byte) error
- type OptMessageId
- func (o *OptMessageId) Decode(d *jx.Decoder) error
- func (o OptMessageId) Encode(e *jx.Encoder)
- func (o OptMessageId) Get() (v MessageId, ok bool)
- func (o OptMessageId) IsSet() bool
- func (s OptMessageId) MarshalJSON() ([]byte, error)
- func (o OptMessageId) Or(d MessageId) MessageId
- func (o *OptMessageId) Reset()
- func (s *OptMessageId) SetFake()
- func (o *OptMessageId) SetTo(v MessageId)
- func (s *OptMessageId) UnmarshalJSON(data []byte) error
- type OptOrderInfo
- func (o *OptOrderInfo) Decode(d *jx.Decoder) error
- func (o OptOrderInfo) Encode(e *jx.Encoder)
- func (o OptOrderInfo) Get() (v OrderInfo, ok bool)
- func (o OptOrderInfo) IsSet() bool
- func (s OptOrderInfo) MarshalJSON() ([]byte, error)
- func (o OptOrderInfo) Or(d OrderInfo) OrderInfo
- func (o *OptOrderInfo) Reset()
- func (s *OptOrderInfo) SetFake()
- func (o *OptOrderInfo) SetTo(v OrderInfo)
- func (s *OptOrderInfo) UnmarshalJSON(data []byte) error
- type OptPassportData
- func (o *OptPassportData) Decode(d *jx.Decoder) error
- func (o OptPassportData) Encode(e *jx.Encoder)
- func (o OptPassportData) Get() (v PassportData, ok bool)
- func (o OptPassportData) IsSet() bool
- func (s OptPassportData) MarshalJSON() ([]byte, error)
- func (o OptPassportData) Or(d PassportData) PassportData
- func (o *OptPassportData) Reset()
- func (s *OptPassportData) SetFake()
- func (o *OptPassportData) SetTo(v PassportData)
- func (s *OptPassportData) UnmarshalJSON(data []byte) error
- type OptPassportFile
- func (o *OptPassportFile) Decode(d *jx.Decoder) error
- func (o OptPassportFile) Encode(e *jx.Encoder)
- func (o OptPassportFile) Get() (v PassportFile, ok bool)
- func (o OptPassportFile) IsSet() bool
- func (s OptPassportFile) MarshalJSON() ([]byte, error)
- func (o OptPassportFile) Or(d PassportFile) PassportFile
- func (o *OptPassportFile) Reset()
- func (s *OptPassportFile) SetFake()
- func (o *OptPassportFile) SetTo(v PassportFile)
- func (s *OptPassportFile) UnmarshalJSON(data []byte) error
- type OptPhotoSize
- func (o *OptPhotoSize) Decode(d *jx.Decoder) error
- func (o OptPhotoSize) Encode(e *jx.Encoder)
- func (o OptPhotoSize) Get() (v PhotoSize, ok bool)
- func (o OptPhotoSize) IsSet() bool
- func (s OptPhotoSize) MarshalJSON() ([]byte, error)
- func (o OptPhotoSize) Or(d PhotoSize) PhotoSize
- func (o *OptPhotoSize) Reset()
- func (s *OptPhotoSize) SetFake()
- func (o *OptPhotoSize) SetTo(v PhotoSize)
- func (s *OptPhotoSize) UnmarshalJSON(data []byte) error
- type OptPoll
- func (o *OptPoll) Decode(d *jx.Decoder) error
- func (o OptPoll) Encode(e *jx.Encoder)
- func (o OptPoll) Get() (v Poll, ok bool)
- func (o OptPoll) IsSet() bool
- func (s OptPoll) MarshalJSON() ([]byte, error)
- func (o OptPoll) Or(d Poll) Poll
- func (o *OptPoll) Reset()
- func (s *OptPoll) SetFake()
- func (o *OptPoll) SetTo(v Poll)
- func (s *OptPoll) UnmarshalJSON(data []byte) error
- type OptPollAnswer
- func (o *OptPollAnswer) Decode(d *jx.Decoder) error
- func (o OptPollAnswer) Encode(e *jx.Encoder)
- func (o OptPollAnswer) Get() (v PollAnswer, ok bool)
- func (o OptPollAnswer) IsSet() bool
- func (s OptPollAnswer) MarshalJSON() ([]byte, error)
- func (o OptPollAnswer) Or(d PollAnswer) PollAnswer
- func (o *OptPollAnswer) Reset()
- func (s *OptPollAnswer) SetFake()
- func (o *OptPollAnswer) SetTo(v PollAnswer)
- func (s *OptPollAnswer) UnmarshalJSON(data []byte) error
- type OptPreCheckoutQuery
- func (o *OptPreCheckoutQuery) Decode(d *jx.Decoder) error
- func (o OptPreCheckoutQuery) Encode(e *jx.Encoder)
- func (o OptPreCheckoutQuery) Get() (v PreCheckoutQuery, ok bool)
- func (o OptPreCheckoutQuery) IsSet() bool
- func (s OptPreCheckoutQuery) MarshalJSON() ([]byte, error)
- func (o OptPreCheckoutQuery) Or(d PreCheckoutQuery) PreCheckoutQuery
- func (o *OptPreCheckoutQuery) Reset()
- func (s *OptPreCheckoutQuery) SetFake()
- func (o *OptPreCheckoutQuery) SetTo(v PreCheckoutQuery)
- func (s *OptPreCheckoutQuery) UnmarshalJSON(data []byte) error
- type OptProximityAlertTriggered
- func (o *OptProximityAlertTriggered) Decode(d *jx.Decoder) error
- func (o OptProximityAlertTriggered) Encode(e *jx.Encoder)
- func (o OptProximityAlertTriggered) Get() (v ProximityAlertTriggered, ok bool)
- func (o OptProximityAlertTriggered) IsSet() bool
- func (s OptProximityAlertTriggered) MarshalJSON() ([]byte, error)
- func (o OptProximityAlertTriggered) Or(d ProximityAlertTriggered) ProximityAlertTriggered
- func (o *OptProximityAlertTriggered) Reset()
- func (s *OptProximityAlertTriggered) SetFake()
- func (o *OptProximityAlertTriggered) SetTo(v ProximityAlertTriggered)
- func (s *OptProximityAlertTriggered) UnmarshalJSON(data []byte) error
- type OptResponse
- func (o *OptResponse) Decode(d *jx.Decoder) error
- func (o OptResponse) Encode(e *jx.Encoder)
- func (o OptResponse) Get() (v Response, ok bool)
- func (o OptResponse) IsSet() bool
- func (s OptResponse) MarshalJSON() ([]byte, error)
- func (o OptResponse) Or(d Response) Response
- func (o *OptResponse) Reset()
- func (s *OptResponse) SetFake()
- func (o *OptResponse) SetTo(v Response)
- func (s *OptResponse) UnmarshalJSON(data []byte) error
- type OptSendAnimationReplyMarkup
- func (o *OptSendAnimationReplyMarkup) Decode(d *jx.Decoder) error
- func (o OptSendAnimationReplyMarkup) Encode(e *jx.Encoder)
- func (o OptSendAnimationReplyMarkup) Get() (v SendAnimationReplyMarkup, ok bool)
- func (o OptSendAnimationReplyMarkup) IsSet() bool
- func (s OptSendAnimationReplyMarkup) MarshalJSON() ([]byte, error)
- func (o OptSendAnimationReplyMarkup) Or(d SendAnimationReplyMarkup) SendAnimationReplyMarkup
- func (o *OptSendAnimationReplyMarkup) Reset()
- func (s *OptSendAnimationReplyMarkup) SetFake()
- func (o *OptSendAnimationReplyMarkup) SetTo(v SendAnimationReplyMarkup)
- func (s *OptSendAnimationReplyMarkup) UnmarshalJSON(data []byte) error
- type OptSendAudioReplyMarkup
- func (o *OptSendAudioReplyMarkup) Decode(d *jx.Decoder) error
- func (o OptSendAudioReplyMarkup) Encode(e *jx.Encoder)
- func (o OptSendAudioReplyMarkup) Get() (v SendAudioReplyMarkup, ok bool)
- func (o OptSendAudioReplyMarkup) IsSet() bool
- func (s OptSendAudioReplyMarkup) MarshalJSON() ([]byte, error)
- func (o OptSendAudioReplyMarkup) Or(d SendAudioReplyMarkup) SendAudioReplyMarkup
- func (o *OptSendAudioReplyMarkup) Reset()
- func (s *OptSendAudioReplyMarkup) SetFake()
- func (o *OptSendAudioReplyMarkup) SetTo(v SendAudioReplyMarkup)
- func (s *OptSendAudioReplyMarkup) UnmarshalJSON(data []byte) error
- type OptSendContactReplyMarkup
- func (o *OptSendContactReplyMarkup) Decode(d *jx.Decoder) error
- func (o OptSendContactReplyMarkup) Encode(e *jx.Encoder)
- func (o OptSendContactReplyMarkup) Get() (v SendContactReplyMarkup, ok bool)
- func (o OptSendContactReplyMarkup) IsSet() bool
- func (s OptSendContactReplyMarkup) MarshalJSON() ([]byte, error)
- func (o OptSendContactReplyMarkup) Or(d SendContactReplyMarkup) SendContactReplyMarkup
- func (o *OptSendContactReplyMarkup) Reset()
- func (s *OptSendContactReplyMarkup) SetFake()
- func (o *OptSendContactReplyMarkup) SetTo(v SendContactReplyMarkup)
- func (s *OptSendContactReplyMarkup) UnmarshalJSON(data []byte) error
- type OptSendDiceReplyMarkup
- func (o *OptSendDiceReplyMarkup) Decode(d *jx.Decoder) error
- func (o OptSendDiceReplyMarkup) Encode(e *jx.Encoder)
- func (o OptSendDiceReplyMarkup) Get() (v SendDiceReplyMarkup, ok bool)
- func (o OptSendDiceReplyMarkup) IsSet() bool
- func (s OptSendDiceReplyMarkup) MarshalJSON() ([]byte, error)
- func (o OptSendDiceReplyMarkup) Or(d SendDiceReplyMarkup) SendDiceReplyMarkup
- func (o *OptSendDiceReplyMarkup) Reset()
- func (s *OptSendDiceReplyMarkup) SetFake()
- func (o *OptSendDiceReplyMarkup) SetTo(v SendDiceReplyMarkup)
- func (s *OptSendDiceReplyMarkup) UnmarshalJSON(data []byte) error
- type OptSendDocumentReplyMarkup
- func (o *OptSendDocumentReplyMarkup) Decode(d *jx.Decoder) error
- func (o OptSendDocumentReplyMarkup) Encode(e *jx.Encoder)
- func (o OptSendDocumentReplyMarkup) Get() (v SendDocumentReplyMarkup, ok bool)
- func (o OptSendDocumentReplyMarkup) IsSet() bool
- func (s OptSendDocumentReplyMarkup) MarshalJSON() ([]byte, error)
- func (o OptSendDocumentReplyMarkup) Or(d SendDocumentReplyMarkup) SendDocumentReplyMarkup
- func (o *OptSendDocumentReplyMarkup) Reset()
- func (s *OptSendDocumentReplyMarkup) SetFake()
- func (o *OptSendDocumentReplyMarkup) SetTo(v SendDocumentReplyMarkup)
- func (s *OptSendDocumentReplyMarkup) UnmarshalJSON(data []byte) error
- type OptSendLocationReplyMarkup
- func (o *OptSendLocationReplyMarkup) Decode(d *jx.Decoder) error
- func (o OptSendLocationReplyMarkup) Encode(e *jx.Encoder)
- func (o OptSendLocationReplyMarkup) Get() (v SendLocationReplyMarkup, ok bool)
- func (o OptSendLocationReplyMarkup) IsSet() bool
- func (s OptSendLocationReplyMarkup) MarshalJSON() ([]byte, error)
- func (o OptSendLocationReplyMarkup) Or(d SendLocationReplyMarkup) SendLocationReplyMarkup
- func (o *OptSendLocationReplyMarkup) Reset()
- func (s *OptSendLocationReplyMarkup) SetFake()
- func (o *OptSendLocationReplyMarkup) SetTo(v SendLocationReplyMarkup)
- func (s *OptSendLocationReplyMarkup) UnmarshalJSON(data []byte) error
- type OptSendMessageReplyMarkup
- func (o *OptSendMessageReplyMarkup) Decode(d *jx.Decoder) error
- func (o OptSendMessageReplyMarkup) Encode(e *jx.Encoder)
- func (o OptSendMessageReplyMarkup) Get() (v SendMessageReplyMarkup, ok bool)
- func (o OptSendMessageReplyMarkup) IsSet() bool
- func (s OptSendMessageReplyMarkup) MarshalJSON() ([]byte, error)
- func (o OptSendMessageReplyMarkup) Or(d SendMessageReplyMarkup) SendMessageReplyMarkup
- func (o *OptSendMessageReplyMarkup) Reset()
- func (s *OptSendMessageReplyMarkup) SetFake()
- func (o *OptSendMessageReplyMarkup) SetTo(v SendMessageReplyMarkup)
- func (s *OptSendMessageReplyMarkup) UnmarshalJSON(data []byte) error
- type OptSendPhotoReplyMarkup
- func (o *OptSendPhotoReplyMarkup) Decode(d *jx.Decoder) error
- func (o OptSendPhotoReplyMarkup) Encode(e *jx.Encoder)
- func (o OptSendPhotoReplyMarkup) Get() (v SendPhotoReplyMarkup, ok bool)
- func (o OptSendPhotoReplyMarkup) IsSet() bool
- func (s OptSendPhotoReplyMarkup) MarshalJSON() ([]byte, error)
- func (o OptSendPhotoReplyMarkup) Or(d SendPhotoReplyMarkup) SendPhotoReplyMarkup
- func (o *OptSendPhotoReplyMarkup) Reset()
- func (s *OptSendPhotoReplyMarkup) SetFake()
- func (o *OptSendPhotoReplyMarkup) SetTo(v SendPhotoReplyMarkup)
- func (s *OptSendPhotoReplyMarkup) UnmarshalJSON(data []byte) error
- type OptSendPollReplyMarkup
- func (o *OptSendPollReplyMarkup) Decode(d *jx.Decoder) error
- func (o OptSendPollReplyMarkup) Encode(e *jx.Encoder)
- func (o OptSendPollReplyMarkup) Get() (v SendPollReplyMarkup, ok bool)
- func (o OptSendPollReplyMarkup) IsSet() bool
- func (s OptSendPollReplyMarkup) MarshalJSON() ([]byte, error)
- func (o OptSendPollReplyMarkup) Or(d SendPollReplyMarkup) SendPollReplyMarkup
- func (o *OptSendPollReplyMarkup) Reset()
- func (s *OptSendPollReplyMarkup) SetFake()
- func (o *OptSendPollReplyMarkup) SetTo(v SendPollReplyMarkup)
- func (s *OptSendPollReplyMarkup) UnmarshalJSON(data []byte) error
- type OptSendStickerReplyMarkup
- func (o *OptSendStickerReplyMarkup) Decode(d *jx.Decoder) error
- func (o OptSendStickerReplyMarkup) Encode(e *jx.Encoder)
- func (o OptSendStickerReplyMarkup) Get() (v SendStickerReplyMarkup, ok bool)
- func (o OptSendStickerReplyMarkup) IsSet() bool
- func (s OptSendStickerReplyMarkup) MarshalJSON() ([]byte, error)
- func (o OptSendStickerReplyMarkup) Or(d SendStickerReplyMarkup) SendStickerReplyMarkup
- func (o *OptSendStickerReplyMarkup) Reset()
- func (s *OptSendStickerReplyMarkup) SetFake()
- func (o *OptSendStickerReplyMarkup) SetTo(v SendStickerReplyMarkup)
- func (s *OptSendStickerReplyMarkup) UnmarshalJSON(data []byte) error
- type OptSendVenueReplyMarkup
- func (o *OptSendVenueReplyMarkup) Decode(d *jx.Decoder) error
- func (o OptSendVenueReplyMarkup) Encode(e *jx.Encoder)
- func (o OptSendVenueReplyMarkup) Get() (v SendVenueReplyMarkup, ok bool)
- func (o OptSendVenueReplyMarkup) IsSet() bool
- func (s OptSendVenueReplyMarkup) MarshalJSON() ([]byte, error)
- func (o OptSendVenueReplyMarkup) Or(d SendVenueReplyMarkup) SendVenueReplyMarkup
- func (o *OptSendVenueReplyMarkup) Reset()
- func (s *OptSendVenueReplyMarkup) SetFake()
- func (o *OptSendVenueReplyMarkup) SetTo(v SendVenueReplyMarkup)
- func (s *OptSendVenueReplyMarkup) UnmarshalJSON(data []byte) error
- type OptSendVideoNoteReplyMarkup
- func (o *OptSendVideoNoteReplyMarkup) Decode(d *jx.Decoder) error
- func (o OptSendVideoNoteReplyMarkup) Encode(e *jx.Encoder)
- func (o OptSendVideoNoteReplyMarkup) Get() (v SendVideoNoteReplyMarkup, ok bool)
- func (o OptSendVideoNoteReplyMarkup) IsSet() bool
- func (s OptSendVideoNoteReplyMarkup) MarshalJSON() ([]byte, error)
- func (o OptSendVideoNoteReplyMarkup) Or(d SendVideoNoteReplyMarkup) SendVideoNoteReplyMarkup
- func (o *OptSendVideoNoteReplyMarkup) Reset()
- func (s *OptSendVideoNoteReplyMarkup) SetFake()
- func (o *OptSendVideoNoteReplyMarkup) SetTo(v SendVideoNoteReplyMarkup)
- func (s *OptSendVideoNoteReplyMarkup) UnmarshalJSON(data []byte) error
- type OptSendVideoReplyMarkup
- func (o *OptSendVideoReplyMarkup) Decode(d *jx.Decoder) error
- func (o OptSendVideoReplyMarkup) Encode(e *jx.Encoder)
- func (o OptSendVideoReplyMarkup) Get() (v SendVideoReplyMarkup, ok bool)
- func (o OptSendVideoReplyMarkup) IsSet() bool
- func (s OptSendVideoReplyMarkup) MarshalJSON() ([]byte, error)
- func (o OptSendVideoReplyMarkup) Or(d SendVideoReplyMarkup) SendVideoReplyMarkup
- func (o *OptSendVideoReplyMarkup) Reset()
- func (s *OptSendVideoReplyMarkup) SetFake()
- func (o *OptSendVideoReplyMarkup) SetTo(v SendVideoReplyMarkup)
- func (s *OptSendVideoReplyMarkup) UnmarshalJSON(data []byte) error
- type OptSendVoiceReplyMarkup
- func (o *OptSendVoiceReplyMarkup) Decode(d *jx.Decoder) error
- func (o OptSendVoiceReplyMarkup) Encode(e *jx.Encoder)
- func (o OptSendVoiceReplyMarkup) Get() (v SendVoiceReplyMarkup, ok bool)
- func (o OptSendVoiceReplyMarkup) IsSet() bool
- func (s OptSendVoiceReplyMarkup) MarshalJSON() ([]byte, error)
- func (o OptSendVoiceReplyMarkup) Or(d SendVoiceReplyMarkup) SendVoiceReplyMarkup
- func (o *OptSendVoiceReplyMarkup) Reset()
- func (s *OptSendVoiceReplyMarkup) SetFake()
- func (o *OptSendVoiceReplyMarkup) SetTo(v SendVoiceReplyMarkup)
- func (s *OptSendVoiceReplyMarkup) UnmarshalJSON(data []byte) error
- type OptShippingAddress
- func (o *OptShippingAddress) Decode(d *jx.Decoder) error
- func (o OptShippingAddress) Encode(e *jx.Encoder)
- func (o OptShippingAddress) Get() (v ShippingAddress, ok bool)
- func (o OptShippingAddress) IsSet() bool
- func (s OptShippingAddress) MarshalJSON() ([]byte, error)
- func (o OptShippingAddress) Or(d ShippingAddress) ShippingAddress
- func (o *OptShippingAddress) Reset()
- func (s *OptShippingAddress) SetFake()
- func (o *OptShippingAddress) SetTo(v ShippingAddress)
- func (s *OptShippingAddress) UnmarshalJSON(data []byte) error
- type OptShippingQuery
- func (o *OptShippingQuery) Decode(d *jx.Decoder) error
- func (o OptShippingQuery) Encode(e *jx.Encoder)
- func (o OptShippingQuery) Get() (v ShippingQuery, ok bool)
- func (o OptShippingQuery) IsSet() bool
- func (s OptShippingQuery) MarshalJSON() ([]byte, error)
- func (o OptShippingQuery) Or(d ShippingQuery) ShippingQuery
- func (o *OptShippingQuery) Reset()
- func (s *OptShippingQuery) SetFake()
- func (o *OptShippingQuery) SetTo(v ShippingQuery)
- func (s *OptShippingQuery) UnmarshalJSON(data []byte) error
- type OptSticker
- func (o *OptSticker) Decode(d *jx.Decoder) error
- func (o OptSticker) Encode(e *jx.Encoder)
- func (o OptSticker) Get() (v Sticker, ok bool)
- func (o OptSticker) IsSet() bool
- func (s OptSticker) MarshalJSON() ([]byte, error)
- func (o OptSticker) Or(d Sticker) Sticker
- func (o *OptSticker) Reset()
- func (s *OptSticker) SetFake()
- func (o *OptSticker) SetTo(v Sticker)
- func (s *OptSticker) UnmarshalJSON(data []byte) error
- type OptString
- func (o *OptString) Decode(d *jx.Decoder) error
- func (o OptString) Encode(e *jx.Encoder)
- func (o OptString) Get() (v string, ok bool)
- func (o OptString) IsSet() bool
- func (s OptString) MarshalJSON() ([]byte, error)
- func (o OptString) Or(d string) string
- func (o *OptString) Reset()
- func (s *OptString) SetFake()
- func (o *OptString) SetTo(v string)
- func (s *OptString) UnmarshalJSON(data []byte) error
- type OptSuccessfulPayment
- func (o *OptSuccessfulPayment) Decode(d *jx.Decoder) error
- func (o OptSuccessfulPayment) Encode(e *jx.Encoder)
- func (o OptSuccessfulPayment) Get() (v SuccessfulPayment, ok bool)
- func (o OptSuccessfulPayment) IsSet() bool
- func (s OptSuccessfulPayment) MarshalJSON() ([]byte, error)
- func (o OptSuccessfulPayment) Or(d SuccessfulPayment) SuccessfulPayment
- func (o *OptSuccessfulPayment) Reset()
- func (s *OptSuccessfulPayment) SetFake()
- func (o *OptSuccessfulPayment) SetTo(v SuccessfulPayment)
- func (s *OptSuccessfulPayment) UnmarshalJSON(data []byte) error
- type OptURI
- func (o *OptURI) Decode(d *jx.Decoder) error
- func (o OptURI) Encode(e *jx.Encoder)
- func (o OptURI) Get() (v url.URL, ok bool)
- func (o OptURI) IsSet() bool
- func (s OptURI) MarshalJSON() ([]byte, error)
- func (o OptURI) Or(d url.URL) url.URL
- func (o *OptURI) Reset()
- func (s *OptURI) SetFake()
- func (o *OptURI) SetTo(v url.URL)
- func (s *OptURI) UnmarshalJSON(data []byte) error
- type OptUser
- func (o *OptUser) Decode(d *jx.Decoder) error
- func (o OptUser) Encode(e *jx.Encoder)
- func (o OptUser) Get() (v User, ok bool)
- func (o OptUser) IsSet() bool
- func (s OptUser) MarshalJSON() ([]byte, error)
- func (o OptUser) Or(d User) User
- func (o *OptUser) Reset()
- func (s *OptUser) SetFake()
- func (o *OptUser) SetTo(v User)
- func (s *OptUser) UnmarshalJSON(data []byte) error
- type OptUserProfilePhotos
- func (o *OptUserProfilePhotos) Decode(d *jx.Decoder) error
- func (o OptUserProfilePhotos) Encode(e *jx.Encoder)
- func (o OptUserProfilePhotos) Get() (v UserProfilePhotos, ok bool)
- func (o OptUserProfilePhotos) IsSet() bool
- func (s OptUserProfilePhotos) MarshalJSON() ([]byte, error)
- func (o OptUserProfilePhotos) Or(d UserProfilePhotos) UserProfilePhotos
- func (o *OptUserProfilePhotos) Reset()
- func (s *OptUserProfilePhotos) SetFake()
- func (o *OptUserProfilePhotos) SetTo(v UserProfilePhotos)
- func (s *OptUserProfilePhotos) UnmarshalJSON(data []byte) error
- type OptVenue
- func (o *OptVenue) Decode(d *jx.Decoder) error
- func (o OptVenue) Encode(e *jx.Encoder)
- func (o OptVenue) Get() (v Venue, ok bool)
- func (o OptVenue) IsSet() bool
- func (s OptVenue) MarshalJSON() ([]byte, error)
- func (o OptVenue) Or(d Venue) Venue
- func (o *OptVenue) Reset()
- func (s *OptVenue) SetFake()
- func (o *OptVenue) SetTo(v Venue)
- func (s *OptVenue) UnmarshalJSON(data []byte) error
- type OptVideo
- func (o *OptVideo) Decode(d *jx.Decoder) error
- func (o OptVideo) Encode(e *jx.Encoder)
- func (o OptVideo) Get() (v Video, ok bool)
- func (o OptVideo) IsSet() bool
- func (s OptVideo) MarshalJSON() ([]byte, error)
- func (o OptVideo) Or(d Video) Video
- func (o *OptVideo) Reset()
- func (s *OptVideo) SetFake()
- func (o *OptVideo) SetTo(v Video)
- func (s *OptVideo) UnmarshalJSON(data []byte) error
- type OptVideoNote
- func (o *OptVideoNote) Decode(d *jx.Decoder) error
- func (o OptVideoNote) Encode(e *jx.Encoder)
- func (o OptVideoNote) Get() (v VideoNote, ok bool)
- func (o OptVideoNote) IsSet() bool
- func (s OptVideoNote) MarshalJSON() ([]byte, error)
- func (o OptVideoNote) Or(d VideoNote) VideoNote
- func (o *OptVideoNote) Reset()
- func (s *OptVideoNote) SetFake()
- func (o *OptVideoNote) SetTo(v VideoNote)
- func (s *OptVideoNote) UnmarshalJSON(data []byte) error
- type OptVoice
- func (o *OptVoice) Decode(d *jx.Decoder) error
- func (o OptVoice) Encode(e *jx.Encoder)
- func (o OptVoice) Get() (v Voice, ok bool)
- func (o OptVoice) IsSet() bool
- func (s OptVoice) MarshalJSON() ([]byte, error)
- func (o OptVoice) Or(d Voice) Voice
- func (o *OptVoice) Reset()
- func (s *OptVoice) SetFake()
- func (o *OptVoice) SetTo(v Voice)
- func (s *OptVoice) UnmarshalJSON(data []byte) error
- type OptVoiceChatEnded
- func (o *OptVoiceChatEnded) Decode(d *jx.Decoder) error
- func (o OptVoiceChatEnded) Encode(e *jx.Encoder)
- func (o OptVoiceChatEnded) Get() (v VoiceChatEnded, ok bool)
- func (o OptVoiceChatEnded) IsSet() bool
- func (s OptVoiceChatEnded) MarshalJSON() ([]byte, error)
- func (o OptVoiceChatEnded) Or(d VoiceChatEnded) VoiceChatEnded
- func (o *OptVoiceChatEnded) Reset()
- func (s *OptVoiceChatEnded) SetFake()
- func (o *OptVoiceChatEnded) SetTo(v VoiceChatEnded)
- func (s *OptVoiceChatEnded) UnmarshalJSON(data []byte) error
- type OptVoiceChatParticipantsInvited
- func (o *OptVoiceChatParticipantsInvited) Decode(d *jx.Decoder) error
- func (o OptVoiceChatParticipantsInvited) Encode(e *jx.Encoder)
- func (o OptVoiceChatParticipantsInvited) Get() (v VoiceChatParticipantsInvited, ok bool)
- func (o OptVoiceChatParticipantsInvited) IsSet() bool
- func (s OptVoiceChatParticipantsInvited) MarshalJSON() ([]byte, error)
- func (o OptVoiceChatParticipantsInvited) Or(d VoiceChatParticipantsInvited) VoiceChatParticipantsInvited
- func (o *OptVoiceChatParticipantsInvited) Reset()
- func (s *OptVoiceChatParticipantsInvited) SetFake()
- func (o *OptVoiceChatParticipantsInvited) SetTo(v VoiceChatParticipantsInvited)
- func (s *OptVoiceChatParticipantsInvited) UnmarshalJSON(data []byte) error
- type OptVoiceChatScheduled
- func (o *OptVoiceChatScheduled) Decode(d *jx.Decoder) error
- func (o OptVoiceChatScheduled) Encode(e *jx.Encoder)
- func (o OptVoiceChatScheduled) Get() (v VoiceChatScheduled, ok bool)
- func (o OptVoiceChatScheduled) IsSet() bool
- func (s OptVoiceChatScheduled) MarshalJSON() ([]byte, error)
- func (o OptVoiceChatScheduled) Or(d VoiceChatScheduled) VoiceChatScheduled
- func (o *OptVoiceChatScheduled) Reset()
- func (s *OptVoiceChatScheduled) SetFake()
- func (o *OptVoiceChatScheduled) SetTo(v VoiceChatScheduled)
- func (s *OptVoiceChatScheduled) UnmarshalJSON(data []byte) error
- type OptWebhookInfo
- func (o *OptWebhookInfo) Decode(d *jx.Decoder) error
- func (o OptWebhookInfo) Encode(e *jx.Encoder)
- func (o OptWebhookInfo) Get() (v WebhookInfo, ok bool)
- func (o OptWebhookInfo) IsSet() bool
- func (s OptWebhookInfo) MarshalJSON() ([]byte, error)
- func (o OptWebhookInfo) Or(d WebhookInfo) WebhookInfo
- func (o *OptWebhookInfo) Reset()
- func (s *OptWebhookInfo) SetFake()
- func (o *OptWebhookInfo) SetTo(v WebhookInfo)
- func (s *OptWebhookInfo) UnmarshalJSON(data []byte) error
- type Option
- type OrderInfo
- func (s *OrderInfo) Decode(d *jx.Decoder) error
- func (s *OrderInfo) Encode(e *jx.Encoder)
- func (s *OrderInfo) GetEmail() OptString
- func (s *OrderInfo) GetName() OptString
- func (s *OrderInfo) GetPhoneNumber() OptString
- func (s *OrderInfo) GetShippingAddress() OptShippingAddress
- func (s *OrderInfo) MarshalJSON() ([]byte, error)
- func (s *OrderInfo) SetEmail(val OptString)
- func (s *OrderInfo) SetFake()
- func (s *OrderInfo) SetName(val OptString)
- func (s *OrderInfo) SetPhoneNumber(val OptString)
- func (s *OrderInfo) SetShippingAddress(val OptShippingAddress)
- func (s *OrderInfo) UnmarshalJSON(data []byte) error
- type PassportData
- func (s *PassportData) Decode(d *jx.Decoder) error
- func (s *PassportData) Encode(e *jx.Encoder)
- func (s *PassportData) GetCredentials() EncryptedCredentials
- func (s *PassportData) GetData() []EncryptedPassportElement
- func (s *PassportData) MarshalJSON() ([]byte, error)
- func (s *PassportData) SetCredentials(val EncryptedCredentials)
- func (s *PassportData) SetData(val []EncryptedPassportElement)
- func (s *PassportData) SetFake()
- func (s *PassportData) UnmarshalJSON(data []byte) error
- func (s *PassportData) Validate() error
- type PassportElementError
- func NewPassportElementErrorDataFieldPassportElementError(v PassportElementErrorDataField) PassportElementError
- func NewPassportElementErrorFilePassportElementError(v PassportElementErrorFile) PassportElementError
- func NewPassportElementErrorFilesPassportElementError(v PassportElementErrorFiles) PassportElementError
- func NewPassportElementErrorFrontSidePassportElementError(v PassportElementErrorFrontSide) PassportElementError
- func NewPassportElementErrorReverseSidePassportElementError(v PassportElementErrorReverseSide) PassportElementError
- func NewPassportElementErrorSelfiePassportElementError(v PassportElementErrorSelfie) PassportElementError
- func NewPassportElementErrorTranslationFilePassportElementError(v PassportElementErrorTranslationFile) PassportElementError
- func NewPassportElementErrorTranslationFilesPassportElementError(v PassportElementErrorTranslationFiles) PassportElementError
- func NewPassportElementErrorUnspecifiedPassportElementError(v PassportElementErrorUnspecified) PassportElementError
- func (s *PassportElementError) Decode(d *jx.Decoder) error
- func (s PassportElementError) Encode(e *jx.Encoder)
- func (s PassportElementError) GetPassportElementErrorDataField() (v PassportElementErrorDataField, ok bool)
- func (s PassportElementError) GetPassportElementErrorFile() (v PassportElementErrorFile, ok bool)
- func (s PassportElementError) GetPassportElementErrorFiles() (v PassportElementErrorFiles, ok bool)
- func (s PassportElementError) GetPassportElementErrorFrontSide() (v PassportElementErrorFrontSide, ok bool)
- func (s PassportElementError) GetPassportElementErrorReverseSide() (v PassportElementErrorReverseSide, ok bool)
- func (s PassportElementError) GetPassportElementErrorSelfie() (v PassportElementErrorSelfie, ok bool)
- func (s PassportElementError) GetPassportElementErrorTranslationFile() (v PassportElementErrorTranslationFile, ok bool)
- func (s PassportElementError) GetPassportElementErrorTranslationFiles() (v PassportElementErrorTranslationFiles, ok bool)
- func (s PassportElementError) GetPassportElementErrorUnspecified() (v PassportElementErrorUnspecified, ok bool)
- func (s PassportElementError) IsPassportElementErrorDataField() bool
- func (s PassportElementError) IsPassportElementErrorFile() bool
- func (s PassportElementError) IsPassportElementErrorFiles() bool
- func (s PassportElementError) IsPassportElementErrorFrontSide() bool
- func (s PassportElementError) IsPassportElementErrorReverseSide() bool
- func (s PassportElementError) IsPassportElementErrorSelfie() bool
- func (s PassportElementError) IsPassportElementErrorTranslationFile() bool
- func (s PassportElementError) IsPassportElementErrorTranslationFiles() bool
- func (s PassportElementError) IsPassportElementErrorUnspecified() bool
- func (s PassportElementError) MarshalJSON() ([]byte, error)
- func (s *PassportElementError) SetFake()
- func (s *PassportElementError) SetPassportElementErrorDataField(v PassportElementErrorDataField)
- func (s *PassportElementError) SetPassportElementErrorFile(v PassportElementErrorFile)
- func (s *PassportElementError) SetPassportElementErrorFiles(v PassportElementErrorFiles)
- func (s *PassportElementError) SetPassportElementErrorFrontSide(v PassportElementErrorFrontSide)
- func (s *PassportElementError) SetPassportElementErrorReverseSide(v PassportElementErrorReverseSide)
- func (s *PassportElementError) SetPassportElementErrorSelfie(v PassportElementErrorSelfie)
- func (s *PassportElementError) SetPassportElementErrorTranslationFile(v PassportElementErrorTranslationFile)
- func (s *PassportElementError) SetPassportElementErrorTranslationFiles(v PassportElementErrorTranslationFiles)
- func (s *PassportElementError) SetPassportElementErrorUnspecified(v PassportElementErrorUnspecified)
- func (s *PassportElementError) UnmarshalJSON(data []byte) error
- func (s PassportElementError) Validate() error
- type PassportElementErrorDataField
- func (s *PassportElementErrorDataField) Decode(d *jx.Decoder) error
- func (s *PassportElementErrorDataField) Encode(e *jx.Encoder)
- func (s *PassportElementErrorDataField) GetDataHash() string
- func (s *PassportElementErrorDataField) GetFieldName() string
- func (s *PassportElementErrorDataField) GetMessage() string
- func (s *PassportElementErrorDataField) GetSource() string
- func (s *PassportElementErrorDataField) GetType() PassportElementErrorDataFieldType
- func (s *PassportElementErrorDataField) MarshalJSON() ([]byte, error)
- func (s *PassportElementErrorDataField) SetDataHash(val string)
- func (s *PassportElementErrorDataField) SetFake()
- func (s *PassportElementErrorDataField) SetFieldName(val string)
- func (s *PassportElementErrorDataField) SetMessage(val string)
- func (s *PassportElementErrorDataField) SetSource(val string)
- func (s *PassportElementErrorDataField) SetType(val PassportElementErrorDataFieldType)
- func (s *PassportElementErrorDataField) UnmarshalJSON(data []byte) error
- func (s *PassportElementErrorDataField) Validate() error
- type PassportElementErrorDataFieldType
- func (PassportElementErrorDataFieldType) AllValues() []PassportElementErrorDataFieldType
- func (s *PassportElementErrorDataFieldType) Decode(d *jx.Decoder) error
- func (s PassportElementErrorDataFieldType) Encode(e *jx.Encoder)
- func (s PassportElementErrorDataFieldType) MarshalJSON() ([]byte, error)
- func (s PassportElementErrorDataFieldType) MarshalText() ([]byte, error)
- func (s *PassportElementErrorDataFieldType) SetFake()
- func (s *PassportElementErrorDataFieldType) UnmarshalJSON(data []byte) error
- func (s *PassportElementErrorDataFieldType) UnmarshalText(data []byte) error
- func (s PassportElementErrorDataFieldType) Validate() error
- type PassportElementErrorFile
- func (s *PassportElementErrorFile) Decode(d *jx.Decoder) error
- func (s *PassportElementErrorFile) Encode(e *jx.Encoder)
- func (s *PassportElementErrorFile) GetFileHash() string
- func (s *PassportElementErrorFile) GetMessage() string
- func (s *PassportElementErrorFile) GetSource() string
- func (s *PassportElementErrorFile) GetType() PassportElementErrorFileType
- func (s *PassportElementErrorFile) MarshalJSON() ([]byte, error)
- func (s *PassportElementErrorFile) SetFake()
- func (s *PassportElementErrorFile) SetFileHash(val string)
- func (s *PassportElementErrorFile) SetMessage(val string)
- func (s *PassportElementErrorFile) SetSource(val string)
- func (s *PassportElementErrorFile) SetType(val PassportElementErrorFileType)
- func (s *PassportElementErrorFile) UnmarshalJSON(data []byte) error
- func (s *PassportElementErrorFile) Validate() error
- type PassportElementErrorFileType
- func (PassportElementErrorFileType) AllValues() []PassportElementErrorFileType
- func (s *PassportElementErrorFileType) Decode(d *jx.Decoder) error
- func (s PassportElementErrorFileType) Encode(e *jx.Encoder)
- func (s PassportElementErrorFileType) MarshalJSON() ([]byte, error)
- func (s PassportElementErrorFileType) MarshalText() ([]byte, error)
- func (s *PassportElementErrorFileType) SetFake()
- func (s *PassportElementErrorFileType) UnmarshalJSON(data []byte) error
- func (s *PassportElementErrorFileType) UnmarshalText(data []byte) error
- func (s PassportElementErrorFileType) Validate() error
- type PassportElementErrorFiles
- func (s *PassportElementErrorFiles) Decode(d *jx.Decoder) error
- func (s *PassportElementErrorFiles) Encode(e *jx.Encoder)
- func (s *PassportElementErrorFiles) GetFileHashes() []string
- func (s *PassportElementErrorFiles) GetMessage() string
- func (s *PassportElementErrorFiles) GetSource() string
- func (s *PassportElementErrorFiles) GetType() PassportElementErrorFilesType
- func (s *PassportElementErrorFiles) MarshalJSON() ([]byte, error)
- func (s *PassportElementErrorFiles) SetFake()
- func (s *PassportElementErrorFiles) SetFileHashes(val []string)
- func (s *PassportElementErrorFiles) SetMessage(val string)
- func (s *PassportElementErrorFiles) SetSource(val string)
- func (s *PassportElementErrorFiles) SetType(val PassportElementErrorFilesType)
- func (s *PassportElementErrorFiles) UnmarshalJSON(data []byte) error
- func (s *PassportElementErrorFiles) Validate() error
- type PassportElementErrorFilesType
- func (PassportElementErrorFilesType) AllValues() []PassportElementErrorFilesType
- func (s *PassportElementErrorFilesType) Decode(d *jx.Decoder) error
- func (s PassportElementErrorFilesType) Encode(e *jx.Encoder)
- func (s PassportElementErrorFilesType) MarshalJSON() ([]byte, error)
- func (s PassportElementErrorFilesType) MarshalText() ([]byte, error)
- func (s *PassportElementErrorFilesType) SetFake()
- func (s *PassportElementErrorFilesType) UnmarshalJSON(data []byte) error
- func (s *PassportElementErrorFilesType) UnmarshalText(data []byte) error
- func (s PassportElementErrorFilesType) Validate() error
- type PassportElementErrorFrontSide
- func (s *PassportElementErrorFrontSide) Decode(d *jx.Decoder) error
- func (s *PassportElementErrorFrontSide) Encode(e *jx.Encoder)
- func (s *PassportElementErrorFrontSide) GetFileHash() string
- func (s *PassportElementErrorFrontSide) GetMessage() string
- func (s *PassportElementErrorFrontSide) GetSource() string
- func (s *PassportElementErrorFrontSide) GetType() PassportElementErrorFrontSideType
- func (s *PassportElementErrorFrontSide) MarshalJSON() ([]byte, error)
- func (s *PassportElementErrorFrontSide) SetFake()
- func (s *PassportElementErrorFrontSide) SetFileHash(val string)
- func (s *PassportElementErrorFrontSide) SetMessage(val string)
- func (s *PassportElementErrorFrontSide) SetSource(val string)
- func (s *PassportElementErrorFrontSide) SetType(val PassportElementErrorFrontSideType)
- func (s *PassportElementErrorFrontSide) UnmarshalJSON(data []byte) error
- func (s *PassportElementErrorFrontSide) Validate() error
- type PassportElementErrorFrontSideType
- func (PassportElementErrorFrontSideType) AllValues() []PassportElementErrorFrontSideType
- func (s *PassportElementErrorFrontSideType) Decode(d *jx.Decoder) error
- func (s PassportElementErrorFrontSideType) Encode(e *jx.Encoder)
- func (s PassportElementErrorFrontSideType) MarshalJSON() ([]byte, error)
- func (s PassportElementErrorFrontSideType) MarshalText() ([]byte, error)
- func (s *PassportElementErrorFrontSideType) SetFake()
- func (s *PassportElementErrorFrontSideType) UnmarshalJSON(data []byte) error
- func (s *PassportElementErrorFrontSideType) UnmarshalText(data []byte) error
- func (s PassportElementErrorFrontSideType) Validate() error
- type PassportElementErrorReverseSide
- func (s *PassportElementErrorReverseSide) Decode(d *jx.Decoder) error
- func (s *PassportElementErrorReverseSide) Encode(e *jx.Encoder)
- func (s *PassportElementErrorReverseSide) GetFileHash() string
- func (s *PassportElementErrorReverseSide) GetMessage() string
- func (s *PassportElementErrorReverseSide) GetSource() string
- func (s *PassportElementErrorReverseSide) GetType() PassportElementErrorReverseSideType
- func (s *PassportElementErrorReverseSide) MarshalJSON() ([]byte, error)
- func (s *PassportElementErrorReverseSide) SetFake()
- func (s *PassportElementErrorReverseSide) SetFileHash(val string)
- func (s *PassportElementErrorReverseSide) SetMessage(val string)
- func (s *PassportElementErrorReverseSide) SetSource(val string)
- func (s *PassportElementErrorReverseSide) SetType(val PassportElementErrorReverseSideType)
- func (s *PassportElementErrorReverseSide) UnmarshalJSON(data []byte) error
- func (s *PassportElementErrorReverseSide) Validate() error
- type PassportElementErrorReverseSideType
- func (PassportElementErrorReverseSideType) AllValues() []PassportElementErrorReverseSideType
- func (s *PassportElementErrorReverseSideType) Decode(d *jx.Decoder) error
- func (s PassportElementErrorReverseSideType) Encode(e *jx.Encoder)
- func (s PassportElementErrorReverseSideType) MarshalJSON() ([]byte, error)
- func (s PassportElementErrorReverseSideType) MarshalText() ([]byte, error)
- func (s *PassportElementErrorReverseSideType) SetFake()
- func (s *PassportElementErrorReverseSideType) UnmarshalJSON(data []byte) error
- func (s *PassportElementErrorReverseSideType) UnmarshalText(data []byte) error
- func (s PassportElementErrorReverseSideType) Validate() error
- type PassportElementErrorSelfie
- func (s *PassportElementErrorSelfie) Decode(d *jx.Decoder) error
- func (s *PassportElementErrorSelfie) Encode(e *jx.Encoder)
- func (s *PassportElementErrorSelfie) GetFileHash() string
- func (s *PassportElementErrorSelfie) GetMessage() string
- func (s *PassportElementErrorSelfie) GetSource() string
- func (s *PassportElementErrorSelfie) GetType() PassportElementErrorSelfieType
- func (s *PassportElementErrorSelfie) MarshalJSON() ([]byte, error)
- func (s *PassportElementErrorSelfie) SetFake()
- func (s *PassportElementErrorSelfie) SetFileHash(val string)
- func (s *PassportElementErrorSelfie) SetMessage(val string)
- func (s *PassportElementErrorSelfie) SetSource(val string)
- func (s *PassportElementErrorSelfie) SetType(val PassportElementErrorSelfieType)
- func (s *PassportElementErrorSelfie) UnmarshalJSON(data []byte) error
- func (s *PassportElementErrorSelfie) Validate() error
- type PassportElementErrorSelfieType
- func (PassportElementErrorSelfieType) AllValues() []PassportElementErrorSelfieType
- func (s *PassportElementErrorSelfieType) Decode(d *jx.Decoder) error
- func (s PassportElementErrorSelfieType) Encode(e *jx.Encoder)
- func (s PassportElementErrorSelfieType) MarshalJSON() ([]byte, error)
- func (s PassportElementErrorSelfieType) MarshalText() ([]byte, error)
- func (s *PassportElementErrorSelfieType) SetFake()
- func (s *PassportElementErrorSelfieType) UnmarshalJSON(data []byte) error
- func (s *PassportElementErrorSelfieType) UnmarshalText(data []byte) error
- func (s PassportElementErrorSelfieType) Validate() error
- type PassportElementErrorTranslationFile
- func (s *PassportElementErrorTranslationFile) Decode(d *jx.Decoder) error
- func (s *PassportElementErrorTranslationFile) Encode(e *jx.Encoder)
- func (s *PassportElementErrorTranslationFile) GetFileHash() string
- func (s *PassportElementErrorTranslationFile) GetMessage() string
- func (s *PassportElementErrorTranslationFile) GetSource() string
- func (s *PassportElementErrorTranslationFile) GetType() PassportElementErrorTranslationFileType
- func (s *PassportElementErrorTranslationFile) MarshalJSON() ([]byte, error)
- func (s *PassportElementErrorTranslationFile) SetFake()
- func (s *PassportElementErrorTranslationFile) SetFileHash(val string)
- func (s *PassportElementErrorTranslationFile) SetMessage(val string)
- func (s *PassportElementErrorTranslationFile) SetSource(val string)
- func (s *PassportElementErrorTranslationFile) SetType(val PassportElementErrorTranslationFileType)
- func (s *PassportElementErrorTranslationFile) UnmarshalJSON(data []byte) error
- func (s *PassportElementErrorTranslationFile) Validate() error
- type PassportElementErrorTranslationFileType
- func (PassportElementErrorTranslationFileType) AllValues() []PassportElementErrorTranslationFileType
- func (s *PassportElementErrorTranslationFileType) Decode(d *jx.Decoder) error
- func (s PassportElementErrorTranslationFileType) Encode(e *jx.Encoder)
- func (s PassportElementErrorTranslationFileType) MarshalJSON() ([]byte, error)
- func (s PassportElementErrorTranslationFileType) MarshalText() ([]byte, error)
- func (s *PassportElementErrorTranslationFileType) SetFake()
- func (s *PassportElementErrorTranslationFileType) UnmarshalJSON(data []byte) error
- func (s *PassportElementErrorTranslationFileType) UnmarshalText(data []byte) error
- func (s PassportElementErrorTranslationFileType) Validate() error
- type PassportElementErrorTranslationFiles
- func (s *PassportElementErrorTranslationFiles) Decode(d *jx.Decoder) error
- func (s *PassportElementErrorTranslationFiles) Encode(e *jx.Encoder)
- func (s *PassportElementErrorTranslationFiles) GetFileHashes() []string
- func (s *PassportElementErrorTranslationFiles) GetMessage() string
- func (s *PassportElementErrorTranslationFiles) GetSource() string
- func (s *PassportElementErrorTranslationFiles) GetType() PassportElementErrorTranslationFilesType
- func (s *PassportElementErrorTranslationFiles) MarshalJSON() ([]byte, error)
- func (s *PassportElementErrorTranslationFiles) SetFake()
- func (s *PassportElementErrorTranslationFiles) SetFileHashes(val []string)
- func (s *PassportElementErrorTranslationFiles) SetMessage(val string)
- func (s *PassportElementErrorTranslationFiles) SetSource(val string)
- func (s *PassportElementErrorTranslationFiles) SetType(val PassportElementErrorTranslationFilesType)
- func (s *PassportElementErrorTranslationFiles) UnmarshalJSON(data []byte) error
- func (s *PassportElementErrorTranslationFiles) Validate() error
- type PassportElementErrorTranslationFilesType
- func (PassportElementErrorTranslationFilesType) AllValues() []PassportElementErrorTranslationFilesType
- func (s *PassportElementErrorTranslationFilesType) Decode(d *jx.Decoder) error
- func (s PassportElementErrorTranslationFilesType) Encode(e *jx.Encoder)
- func (s PassportElementErrorTranslationFilesType) MarshalJSON() ([]byte, error)
- func (s PassportElementErrorTranslationFilesType) MarshalText() ([]byte, error)
- func (s *PassportElementErrorTranslationFilesType) SetFake()
- func (s *PassportElementErrorTranslationFilesType) UnmarshalJSON(data []byte) error
- func (s *PassportElementErrorTranslationFilesType) UnmarshalText(data []byte) error
- func (s PassportElementErrorTranslationFilesType) Validate() error
- type PassportElementErrorType
- type PassportElementErrorUnspecified
- func (s *PassportElementErrorUnspecified) Decode(d *jx.Decoder) error
- func (s *PassportElementErrorUnspecified) Encode(e *jx.Encoder)
- func (s *PassportElementErrorUnspecified) GetElementHash() string
- func (s *PassportElementErrorUnspecified) GetMessage() string
- func (s *PassportElementErrorUnspecified) GetSource() string
- func (s *PassportElementErrorUnspecified) GetType() string
- func (s *PassportElementErrorUnspecified) MarshalJSON() ([]byte, error)
- func (s *PassportElementErrorUnspecified) SetElementHash(val string)
- func (s *PassportElementErrorUnspecified) SetFake()
- func (s *PassportElementErrorUnspecified) SetMessage(val string)
- func (s *PassportElementErrorUnspecified) SetSource(val string)
- func (s *PassportElementErrorUnspecified) SetType(val string)
- func (s *PassportElementErrorUnspecified) UnmarshalJSON(data []byte) error
- type PassportFile
- func (s *PassportFile) Decode(d *jx.Decoder) error
- func (s *PassportFile) Encode(e *jx.Encoder)
- func (s *PassportFile) GetFileDate() int
- func (s *PassportFile) GetFileID() string
- func (s *PassportFile) GetFileSize() int
- func (s *PassportFile) GetFileUniqueID() string
- func (s *PassportFile) MarshalJSON() ([]byte, error)
- func (s *PassportFile) SetFake()
- func (s *PassportFile) SetFileDate(val int)
- func (s *PassportFile) SetFileID(val string)
- func (s *PassportFile) SetFileSize(val int)
- func (s *PassportFile) SetFileUniqueID(val string)
- func (s *PassportFile) UnmarshalJSON(data []byte) error
- type PhotoSize
- func (s *PhotoSize) Decode(d *jx.Decoder) error
- func (s *PhotoSize) Encode(e *jx.Encoder)
- func (s *PhotoSize) GetFileID() string
- func (s *PhotoSize) GetFileSize() OptInt
- func (s *PhotoSize) GetFileUniqueID() string
- func (s *PhotoSize) GetHeight() int
- func (s *PhotoSize) GetWidth() int
- func (s *PhotoSize) MarshalJSON() ([]byte, error)
- func (s *PhotoSize) SetFake()
- func (s *PhotoSize) SetFileID(val string)
- func (s *PhotoSize) SetFileSize(val OptInt)
- func (s *PhotoSize) SetFileUniqueID(val string)
- func (s *PhotoSize) SetHeight(val int)
- func (s *PhotoSize) SetWidth(val int)
- func (s *PhotoSize) UnmarshalJSON(data []byte) error
- func (s *PhotoSize) Validate() error
- type PinChatMessage
- func (s *PinChatMessage) Decode(d *jx.Decoder) error
- func (s *PinChatMessage) Encode(e *jx.Encoder)
- func (s *PinChatMessage) GetChatID() ID
- func (s *PinChatMessage) GetDisableNotification() OptBool
- func (s *PinChatMessage) GetMessageID() int
- func (s *PinChatMessage) MarshalJSON() ([]byte, error)
- func (s *PinChatMessage) SetChatID(val ID)
- func (s *PinChatMessage) SetDisableNotification(val OptBool)
- func (s *PinChatMessage) SetFake()
- func (s *PinChatMessage) SetMessageID(val int)
- func (s *PinChatMessage) UnmarshalJSON(data []byte) error
- type Poll
- func (s *Poll) Decode(d *jx.Decoder) error
- func (s *Poll) Encode(e *jx.Encoder)
- func (s *Poll) GetAllowsMultipleAnswers() bool
- func (s *Poll) GetCloseDate() OptInt
- func (s *Poll) GetCorrectOptionID() OptInt
- func (s *Poll) GetExplanation() OptString
- func (s *Poll) GetExplanationEntities() []MessageEntity
- func (s *Poll) GetID() string
- func (s *Poll) GetIsAnonymous() bool
- func (s *Poll) GetIsClosed() bool
- func (s *Poll) GetOpenPeriod() OptInt
- func (s *Poll) GetOptions() []PollOption
- func (s *Poll) GetQuestion() string
- func (s *Poll) GetTotalVoterCount() int
- func (s *Poll) GetType() PollType
- func (s *Poll) MarshalJSON() ([]byte, error)
- func (s *Poll) SetAllowsMultipleAnswers(val bool)
- func (s *Poll) SetCloseDate(val OptInt)
- func (s *Poll) SetCorrectOptionID(val OptInt)
- func (s *Poll) SetExplanation(val OptString)
- func (s *Poll) SetExplanationEntities(val []MessageEntity)
- func (s *Poll) SetFake()
- func (s *Poll) SetID(val string)
- func (s *Poll) SetIsAnonymous(val bool)
- func (s *Poll) SetIsClosed(val bool)
- func (s *Poll) SetOpenPeriod(val OptInt)
- func (s *Poll) SetOptions(val []PollOption)
- func (s *Poll) SetQuestion(val string)
- func (s *Poll) SetTotalVoterCount(val int)
- func (s *Poll) SetType(val PollType)
- func (s *Poll) UnmarshalJSON(data []byte) error
- func (s *Poll) Validate() error
- type PollAnswer
- func (s *PollAnswer) Decode(d *jx.Decoder) error
- func (s *PollAnswer) Encode(e *jx.Encoder)
- func (s *PollAnswer) GetOptionIds() []int
- func (s *PollAnswer) GetPollID() string
- func (s *PollAnswer) GetUser() User
- func (s *PollAnswer) MarshalJSON() ([]byte, error)
- func (s *PollAnswer) SetFake()
- func (s *PollAnswer) SetOptionIds(val []int)
- func (s *PollAnswer) SetPollID(val string)
- func (s *PollAnswer) SetUser(val User)
- func (s *PollAnswer) UnmarshalJSON(data []byte) error
- func (s *PollAnswer) Validate() error
- type PollOption
- func (s *PollOption) Decode(d *jx.Decoder) error
- func (s *PollOption) Encode(e *jx.Encoder)
- func (s *PollOption) GetText() string
- func (s *PollOption) GetVoterCount() int
- func (s *PollOption) MarshalJSON() ([]byte, error)
- func (s *PollOption) SetFake()
- func (s *PollOption) SetText(val string)
- func (s *PollOption) SetVoterCount(val int)
- func (s *PollOption) UnmarshalJSON(data []byte) error
- func (s *PollOption) Validate() error
- type PollType
- func (PollType) AllValues() []PollType
- func (s *PollType) Decode(d *jx.Decoder) error
- func (s PollType) Encode(e *jx.Encoder)
- func (s PollType) MarshalJSON() ([]byte, error)
- func (s PollType) MarshalText() ([]byte, error)
- func (s *PollType) SetFake()
- func (s *PollType) UnmarshalJSON(data []byte) error
- func (s *PollType) UnmarshalText(data []byte) error
- func (s PollType) Validate() error
- type PreCheckoutQuery
- func (s *PreCheckoutQuery) Decode(d *jx.Decoder) error
- func (s *PreCheckoutQuery) Encode(e *jx.Encoder)
- func (s *PreCheckoutQuery) GetCurrency() string
- func (s *PreCheckoutQuery) GetFrom() User
- func (s *PreCheckoutQuery) GetID() string
- func (s *PreCheckoutQuery) GetInvoicePayload() string
- func (s *PreCheckoutQuery) GetOrderInfo() OptOrderInfo
- func (s *PreCheckoutQuery) GetShippingOptionID() OptString
- func (s *PreCheckoutQuery) GetTotalAmount() int
- func (s *PreCheckoutQuery) MarshalJSON() ([]byte, error)
- func (s *PreCheckoutQuery) SetCurrency(val string)
- func (s *PreCheckoutQuery) SetFake()
- func (s *PreCheckoutQuery) SetFrom(val User)
- func (s *PreCheckoutQuery) SetID(val string)
- func (s *PreCheckoutQuery) SetInvoicePayload(val string)
- func (s *PreCheckoutQuery) SetOrderInfo(val OptOrderInfo)
- func (s *PreCheckoutQuery) SetShippingOptionID(val OptString)
- func (s *PreCheckoutQuery) SetTotalAmount(val int)
- func (s *PreCheckoutQuery) UnmarshalJSON(data []byte) error
- type PromoteChatMember
- func (s *PromoteChatMember) Decode(d *jx.Decoder) error
- func (s *PromoteChatMember) Encode(e *jx.Encoder)
- func (s *PromoteChatMember) GetCanChangeInfo() OptBool
- func (s *PromoteChatMember) GetCanDeleteMessages() OptBool
- func (s *PromoteChatMember) GetCanEditMessages() OptBool
- func (s *PromoteChatMember) GetCanInviteUsers() OptBool
- func (s *PromoteChatMember) GetCanManageChat() OptBool
- func (s *PromoteChatMember) GetCanManageVoiceChats() OptBool
- func (s *PromoteChatMember) GetCanPinMessages() OptBool
- func (s *PromoteChatMember) GetCanPostMessages() OptBool
- func (s *PromoteChatMember) GetCanPromoteMembers() OptBool
- func (s *PromoteChatMember) GetCanRestrictMembers() OptBool
- func (s *PromoteChatMember) GetChatID() ID
- func (s *PromoteChatMember) GetIsAnonymous() OptBool
- func (s *PromoteChatMember) GetUserID() int64
- func (s *PromoteChatMember) MarshalJSON() ([]byte, error)
- func (s *PromoteChatMember) SetCanChangeInfo(val OptBool)
- func (s *PromoteChatMember) SetCanDeleteMessages(val OptBool)
- func (s *PromoteChatMember) SetCanEditMessages(val OptBool)
- func (s *PromoteChatMember) SetCanInviteUsers(val OptBool)
- func (s *PromoteChatMember) SetCanManageChat(val OptBool)
- func (s *PromoteChatMember) SetCanManageVoiceChats(val OptBool)
- func (s *PromoteChatMember) SetCanPinMessages(val OptBool)
- func (s *PromoteChatMember) SetCanPostMessages(val OptBool)
- func (s *PromoteChatMember) SetCanPromoteMembers(val OptBool)
- func (s *PromoteChatMember) SetCanRestrictMembers(val OptBool)
- func (s *PromoteChatMember) SetChatID(val ID)
- func (s *PromoteChatMember) SetFake()
- func (s *PromoteChatMember) SetIsAnonymous(val OptBool)
- func (s *PromoteChatMember) SetUserID(val int64)
- func (s *PromoteChatMember) UnmarshalJSON(data []byte) error
- type ProximityAlertTriggered
- func (s *ProximityAlertTriggered) Decode(d *jx.Decoder) error
- func (s *ProximityAlertTriggered) Encode(e *jx.Encoder)
- func (s *ProximityAlertTriggered) GetDistance() int
- func (s *ProximityAlertTriggered) GetTraveler() User
- func (s *ProximityAlertTriggered) GetWatcher() User
- func (s *ProximityAlertTriggered) MarshalJSON() ([]byte, error)
- func (s *ProximityAlertTriggered) SetDistance(val int)
- func (s *ProximityAlertTriggered) SetFake()
- func (s *ProximityAlertTriggered) SetTraveler(val User)
- func (s *ProximityAlertTriggered) SetWatcher(val User)
- func (s *ProximityAlertTriggered) UnmarshalJSON(data []byte) error
- type ReplyKeyboardMarkup
- func (s *ReplyKeyboardMarkup) Decode(d *jx.Decoder) error
- func (s *ReplyKeyboardMarkup) Encode(e *jx.Encoder)
- func (s *ReplyKeyboardMarkup) GetInputFieldPlaceholder() OptString
- func (s *ReplyKeyboardMarkup) GetKeyboard() [][]KeyboardButton
- func (s *ReplyKeyboardMarkup) GetOneTimeKeyboard() OptBool
- func (s *ReplyKeyboardMarkup) GetResizeKeyboard() OptBool
- func (s *ReplyKeyboardMarkup) GetSelective() OptBool
- func (s *ReplyKeyboardMarkup) MarshalJSON() ([]byte, error)
- func (s *ReplyKeyboardMarkup) SetFake()
- func (s *ReplyKeyboardMarkup) SetInputFieldPlaceholder(val OptString)
- func (s *ReplyKeyboardMarkup) SetKeyboard(val [][]KeyboardButton)
- func (s *ReplyKeyboardMarkup) SetOneTimeKeyboard(val OptBool)
- func (s *ReplyKeyboardMarkup) SetResizeKeyboard(val OptBool)
- func (s *ReplyKeyboardMarkup) SetSelective(val OptBool)
- func (s *ReplyKeyboardMarkup) UnmarshalJSON(data []byte) error
- func (s *ReplyKeyboardMarkup) Validate() error
- type ReplyKeyboardRemove
- func (s *ReplyKeyboardRemove) Decode(d *jx.Decoder) error
- func (s *ReplyKeyboardRemove) Encode(e *jx.Encoder)
- func (s *ReplyKeyboardRemove) GetRemoveKeyboard() bool
- func (s *ReplyKeyboardRemove) GetSelective() OptBool
- func (s *ReplyKeyboardRemove) MarshalJSON() ([]byte, error)
- func (s *ReplyKeyboardRemove) SetFake()
- func (s *ReplyKeyboardRemove) SetRemoveKeyboard(val bool)
- func (s *ReplyKeyboardRemove) SetSelective(val OptBool)
- func (s *ReplyKeyboardRemove) UnmarshalJSON(data []byte) error
- type Response
- func (s *Response) Decode(d *jx.Decoder) error
- func (s *Response) Encode(e *jx.Encoder)
- func (s *Response) GetMigrateToChatID() OptInt64
- func (s *Response) GetRetryAfter() OptInt
- func (s *Response) MarshalJSON() ([]byte, error)
- func (s *Response) SetFake()
- func (s *Response) SetMigrateToChatID(val OptInt64)
- func (s *Response) SetRetryAfter(val OptInt)
- func (s *Response) UnmarshalJSON(data []byte) error
- type RestrictChatMember
- func (s *RestrictChatMember) Decode(d *jx.Decoder) error
- func (s *RestrictChatMember) Encode(e *jx.Encoder)
- func (s *RestrictChatMember) GetChatID() ID
- func (s *RestrictChatMember) GetPermissions() ChatPermissions
- func (s *RestrictChatMember) GetUntilDate() OptInt
- func (s *RestrictChatMember) GetUserID() int64
- func (s *RestrictChatMember) MarshalJSON() ([]byte, error)
- func (s *RestrictChatMember) SetChatID(val ID)
- func (s *RestrictChatMember) SetFake()
- func (s *RestrictChatMember) SetPermissions(val ChatPermissions)
- func (s *RestrictChatMember) SetUntilDate(val OptInt)
- func (s *RestrictChatMember) SetUserID(val int64)
- func (s *RestrictChatMember) UnmarshalJSON(data []byte) error
- type Result
- func (s *Result) Decode(d *jx.Decoder) error
- func (s *Result) Encode(e *jx.Encoder)
- func (s *Result) GetOk() bool
- func (s *Result) GetResult() OptBool
- func (s *Result) MarshalJSON() ([]byte, error)
- func (s *Result) SetFake()
- func (s *Result) SetOk(val bool)
- func (s *Result) SetResult(val OptBool)
- func (s *Result) UnmarshalJSON(data []byte) error
- type ResultArrayOfBotCommand
- func (s *ResultArrayOfBotCommand) Decode(d *jx.Decoder) error
- func (s *ResultArrayOfBotCommand) Encode(e *jx.Encoder)
- func (s *ResultArrayOfBotCommand) GetOk() bool
- func (s *ResultArrayOfBotCommand) GetResult() []BotCommand
- func (s *ResultArrayOfBotCommand) MarshalJSON() ([]byte, error)
- func (s *ResultArrayOfBotCommand) SetFake()
- func (s *ResultArrayOfBotCommand) SetOk(val bool)
- func (s *ResultArrayOfBotCommand) SetResult(val []BotCommand)
- func (s *ResultArrayOfBotCommand) UnmarshalJSON(data []byte) error
- func (s *ResultArrayOfBotCommand) Validate() error
- type ResultArrayOfChatMember
- func (s *ResultArrayOfChatMember) Decode(d *jx.Decoder) error
- func (s *ResultArrayOfChatMember) Encode(e *jx.Encoder)
- func (s *ResultArrayOfChatMember) GetOk() bool
- func (s *ResultArrayOfChatMember) GetResult() []ChatMember
- func (s *ResultArrayOfChatMember) MarshalJSON() ([]byte, error)
- func (s *ResultArrayOfChatMember) SetFake()
- func (s *ResultArrayOfChatMember) SetOk(val bool)
- func (s *ResultArrayOfChatMember) SetResult(val []ChatMember)
- func (s *ResultArrayOfChatMember) UnmarshalJSON(data []byte) error
- type ResultArrayOfGameHighScore
- func (s *ResultArrayOfGameHighScore) Decode(d *jx.Decoder) error
- func (s *ResultArrayOfGameHighScore) Encode(e *jx.Encoder)
- func (s *ResultArrayOfGameHighScore) GetOk() bool
- func (s *ResultArrayOfGameHighScore) GetResult() []GameHighScore
- func (s *ResultArrayOfGameHighScore) MarshalJSON() ([]byte, error)
- func (s *ResultArrayOfGameHighScore) SetFake()
- func (s *ResultArrayOfGameHighScore) SetOk(val bool)
- func (s *ResultArrayOfGameHighScore) SetResult(val []GameHighScore)
- func (s *ResultArrayOfGameHighScore) UnmarshalJSON(data []byte) error
- type ResultArrayOfMessage
- func (s *ResultArrayOfMessage) Decode(d *jx.Decoder) error
- func (s *ResultArrayOfMessage) Encode(e *jx.Encoder)
- func (s *ResultArrayOfMessage) GetOk() bool
- func (s *ResultArrayOfMessage) GetResult() []Message
- func (s *ResultArrayOfMessage) MarshalJSON() ([]byte, error)
- func (s *ResultArrayOfMessage) SetFake()
- func (s *ResultArrayOfMessage) SetOk(val bool)
- func (s *ResultArrayOfMessage) SetResult(val []Message)
- func (s *ResultArrayOfMessage) UnmarshalJSON(data []byte) error
- func (s *ResultArrayOfMessage) Validate() error
- type ResultArrayOfUpdate
- func (s *ResultArrayOfUpdate) Decode(d *jx.Decoder) error
- func (s *ResultArrayOfUpdate) Encode(e *jx.Encoder)
- func (s *ResultArrayOfUpdate) GetOk() bool
- func (s *ResultArrayOfUpdate) GetResult() []Update
- func (s *ResultArrayOfUpdate) MarshalJSON() ([]byte, error)
- func (s *ResultArrayOfUpdate) SetFake()
- func (s *ResultArrayOfUpdate) SetOk(val bool)
- func (s *ResultArrayOfUpdate) SetResult(val []Update)
- func (s *ResultArrayOfUpdate) UnmarshalJSON(data []byte) error
- func (s *ResultArrayOfUpdate) Validate() error
- type ResultChat
- func (s *ResultChat) Decode(d *jx.Decoder) error
- func (s *ResultChat) Encode(e *jx.Encoder)
- func (s *ResultChat) GetOk() bool
- func (s *ResultChat) GetResult() OptChat
- func (s *ResultChat) MarshalJSON() ([]byte, error)
- func (s *ResultChat) SetFake()
- func (s *ResultChat) SetOk(val bool)
- func (s *ResultChat) SetResult(val OptChat)
- func (s *ResultChat) UnmarshalJSON(data []byte) error
- func (s *ResultChat) Validate() error
- type ResultChatInviteLink
- func (s *ResultChatInviteLink) Decode(d *jx.Decoder) error
- func (s *ResultChatInviteLink) Encode(e *jx.Encoder)
- func (s *ResultChatInviteLink) GetOk() bool
- func (s *ResultChatInviteLink) GetResult() OptChatInviteLink
- func (s *ResultChatInviteLink) MarshalJSON() ([]byte, error)
- func (s *ResultChatInviteLink) SetFake()
- func (s *ResultChatInviteLink) SetOk(val bool)
- func (s *ResultChatInviteLink) SetResult(val OptChatInviteLink)
- func (s *ResultChatInviteLink) UnmarshalJSON(data []byte) error
- func (s *ResultChatInviteLink) Validate() error
- type ResultChatMember
- func (s *ResultChatMember) Decode(d *jx.Decoder) error
- func (s *ResultChatMember) Encode(e *jx.Encoder)
- func (s *ResultChatMember) GetOk() bool
- func (s *ResultChatMember) GetResult() OptChatMember
- func (s *ResultChatMember) MarshalJSON() ([]byte, error)
- func (s *ResultChatMember) SetFake()
- func (s *ResultChatMember) SetOk(val bool)
- func (s *ResultChatMember) SetResult(val OptChatMember)
- func (s *ResultChatMember) UnmarshalJSON(data []byte) error
- type ResultFile
- func (s *ResultFile) Decode(d *jx.Decoder) error
- func (s *ResultFile) Encode(e *jx.Encoder)
- func (s *ResultFile) GetOk() bool
- func (s *ResultFile) GetResult() OptFile
- func (s *ResultFile) MarshalJSON() ([]byte, error)
- func (s *ResultFile) SetFake()
- func (s *ResultFile) SetOk(val bool)
- func (s *ResultFile) SetResult(val OptFile)
- func (s *ResultFile) UnmarshalJSON(data []byte) error
- type ResultInt
- func (s *ResultInt) Decode(d *jx.Decoder) error
- func (s *ResultInt) Encode(e *jx.Encoder)
- func (s *ResultInt) GetOk() bool
- func (s *ResultInt) GetResult() OptInt
- func (s *ResultInt) MarshalJSON() ([]byte, error)
- func (s *ResultInt) SetFake()
- func (s *ResultInt) SetOk(val bool)
- func (s *ResultInt) SetResult(val OptInt)
- func (s *ResultInt) UnmarshalJSON(data []byte) error
- type ResultMessage
- func (s *ResultMessage) Decode(d *jx.Decoder) error
- func (s *ResultMessage) Encode(e *jx.Encoder)
- func (s *ResultMessage) GetOk() bool
- func (s *ResultMessage) GetResult() OptMessage
- func (s *ResultMessage) MarshalJSON() ([]byte, error)
- func (s *ResultMessage) SetFake()
- func (s *ResultMessage) SetOk(val bool)
- func (s *ResultMessage) SetResult(val OptMessage)
- func (s *ResultMessage) UnmarshalJSON(data []byte) error
- func (s *ResultMessage) Validate() error
- type ResultMessageId
- func (s *ResultMessageId) Decode(d *jx.Decoder) error
- func (s *ResultMessageId) Encode(e *jx.Encoder)
- func (s *ResultMessageId) GetOk() bool
- func (s *ResultMessageId) GetResult() OptMessageId
- func (s *ResultMessageId) MarshalJSON() ([]byte, error)
- func (s *ResultMessageId) SetFake()
- func (s *ResultMessageId) SetOk(val bool)
- func (s *ResultMessageId) SetResult(val OptMessageId)
- func (s *ResultMessageId) UnmarshalJSON(data []byte) error
- type ResultPoll
- func (s *ResultPoll) Decode(d *jx.Decoder) error
- func (s *ResultPoll) Encode(e *jx.Encoder)
- func (s *ResultPoll) GetOk() bool
- func (s *ResultPoll) GetResult() OptPoll
- func (s *ResultPoll) MarshalJSON() ([]byte, error)
- func (s *ResultPoll) SetFake()
- func (s *ResultPoll) SetOk(val bool)
- func (s *ResultPoll) SetResult(val OptPoll)
- func (s *ResultPoll) UnmarshalJSON(data []byte) error
- func (s *ResultPoll) Validate() error
- type ResultString
- func (s *ResultString) Decode(d *jx.Decoder) error
- func (s *ResultString) Encode(e *jx.Encoder)
- func (s *ResultString) GetOk() bool
- func (s *ResultString) GetResult() OptString
- func (s *ResultString) MarshalJSON() ([]byte, error)
- func (s *ResultString) SetFake()
- func (s *ResultString) SetOk(val bool)
- func (s *ResultString) SetResult(val OptString)
- func (s *ResultString) UnmarshalJSON(data []byte) error
- type ResultUser
- func (s *ResultUser) Decode(d *jx.Decoder) error
- func (s *ResultUser) Encode(e *jx.Encoder)
- func (s *ResultUser) GetOk() bool
- func (s *ResultUser) GetResult() OptUser
- func (s *ResultUser) MarshalJSON() ([]byte, error)
- func (s *ResultUser) SetFake()
- func (s *ResultUser) SetOk(val bool)
- func (s *ResultUser) SetResult(val OptUser)
- func (s *ResultUser) UnmarshalJSON(data []byte) error
- type ResultUserProfilePhotos
- func (s *ResultUserProfilePhotos) Decode(d *jx.Decoder) error
- func (s *ResultUserProfilePhotos) Encode(e *jx.Encoder)
- func (s *ResultUserProfilePhotos) GetOk() bool
- func (s *ResultUserProfilePhotos) GetResult() OptUserProfilePhotos
- func (s *ResultUserProfilePhotos) MarshalJSON() ([]byte, error)
- func (s *ResultUserProfilePhotos) SetFake()
- func (s *ResultUserProfilePhotos) SetOk(val bool)
- func (s *ResultUserProfilePhotos) SetResult(val OptUserProfilePhotos)
- func (s *ResultUserProfilePhotos) UnmarshalJSON(data []byte) error
- func (s *ResultUserProfilePhotos) Validate() error
- type ResultWebhookInfo
- func (s *ResultWebhookInfo) Decode(d *jx.Decoder) error
- func (s *ResultWebhookInfo) Encode(e *jx.Encoder)
- func (s *ResultWebhookInfo) GetOk() bool
- func (s *ResultWebhookInfo) GetResult() OptWebhookInfo
- func (s *ResultWebhookInfo) MarshalJSON() ([]byte, error)
- func (s *ResultWebhookInfo) SetFake()
- func (s *ResultWebhookInfo) SetOk(val bool)
- func (s *ResultWebhookInfo) SetResult(val OptWebhookInfo)
- func (s *ResultWebhookInfo) UnmarshalJSON(data []byte) error
- type RevokeChatInviteLink
- func (s *RevokeChatInviteLink) Decode(d *jx.Decoder) error
- func (s *RevokeChatInviteLink) Encode(e *jx.Encoder)
- func (s *RevokeChatInviteLink) GetChatID() ID
- func (s *RevokeChatInviteLink) GetInviteLink() string
- func (s *RevokeChatInviteLink) MarshalJSON() ([]byte, error)
- func (s *RevokeChatInviteLink) SetChatID(val ID)
- func (s *RevokeChatInviteLink) SetFake()
- func (s *RevokeChatInviteLink) SetInviteLink(val string)
- func (s *RevokeChatInviteLink) UnmarshalJSON(data []byte) error
- type Route
- type SendAnimation
- func (s *SendAnimation) Decode(d *jx.Decoder) error
- func (s *SendAnimation) Encode(e *jx.Encoder)
- func (s *SendAnimation) GetAllowSendingWithoutReply() OptBool
- func (s *SendAnimation) GetAnimation() string
- func (s *SendAnimation) GetCaption() OptString
- func (s *SendAnimation) GetCaptionEntities() []MessageEntity
- func (s *SendAnimation) GetChatID() ID
- func (s *SendAnimation) GetDisableNotification() OptBool
- func (s *SendAnimation) GetDuration() OptInt
- func (s *SendAnimation) GetHeight() OptInt
- func (s *SendAnimation) GetParseMode() OptString
- func (s *SendAnimation) GetReplyMarkup() OptSendAnimationReplyMarkup
- func (s *SendAnimation) GetReplyToMessageID() OptInt
- func (s *SendAnimation) GetThumb() OptString
- func (s *SendAnimation) GetWidth() OptInt
- func (s *SendAnimation) MarshalJSON() ([]byte, error)
- func (s *SendAnimation) SetAllowSendingWithoutReply(val OptBool)
- func (s *SendAnimation) SetAnimation(val string)
- func (s *SendAnimation) SetCaption(val OptString)
- func (s *SendAnimation) SetCaptionEntities(val []MessageEntity)
- func (s *SendAnimation) SetChatID(val ID)
- func (s *SendAnimation) SetDisableNotification(val OptBool)
- func (s *SendAnimation) SetDuration(val OptInt)
- func (s *SendAnimation) SetFake()
- func (s *SendAnimation) SetHeight(val OptInt)
- func (s *SendAnimation) SetParseMode(val OptString)
- func (s *SendAnimation) SetReplyMarkup(val OptSendAnimationReplyMarkup)
- func (s *SendAnimation) SetReplyToMessageID(val OptInt)
- func (s *SendAnimation) SetThumb(val OptString)
- func (s *SendAnimation) SetWidth(val OptInt)
- func (s *SendAnimation) UnmarshalJSON(data []byte) error
- func (s *SendAnimation) Validate() error
- type SendAnimationReplyMarkup
- func NewForceReplySendAnimationReplyMarkup(v ForceReply) SendAnimationReplyMarkup
- func NewInlineKeyboardMarkupSendAnimationReplyMarkup(v InlineKeyboardMarkup) SendAnimationReplyMarkup
- func NewReplyKeyboardMarkupSendAnimationReplyMarkup(v ReplyKeyboardMarkup) SendAnimationReplyMarkup
- func NewReplyKeyboardRemoveSendAnimationReplyMarkup(v ReplyKeyboardRemove) SendAnimationReplyMarkup
- func (s *SendAnimationReplyMarkup) Decode(d *jx.Decoder) error
- func (s SendAnimationReplyMarkup) Encode(e *jx.Encoder)
- func (s SendAnimationReplyMarkup) GetForceReply() (v ForceReply, ok bool)
- func (s SendAnimationReplyMarkup) GetInlineKeyboardMarkup() (v InlineKeyboardMarkup, ok bool)
- func (s SendAnimationReplyMarkup) GetReplyKeyboardMarkup() (v ReplyKeyboardMarkup, ok bool)
- func (s SendAnimationReplyMarkup) GetReplyKeyboardRemove() (v ReplyKeyboardRemove, ok bool)
- func (s SendAnimationReplyMarkup) IsForceReply() bool
- func (s SendAnimationReplyMarkup) IsInlineKeyboardMarkup() bool
- func (s SendAnimationReplyMarkup) IsReplyKeyboardMarkup() bool
- func (s SendAnimationReplyMarkup) IsReplyKeyboardRemove() bool
- func (s SendAnimationReplyMarkup) MarshalJSON() ([]byte, error)
- func (s *SendAnimationReplyMarkup) SetFake()
- func (s *SendAnimationReplyMarkup) SetForceReply(v ForceReply)
- func (s *SendAnimationReplyMarkup) SetInlineKeyboardMarkup(v InlineKeyboardMarkup)
- func (s *SendAnimationReplyMarkup) SetReplyKeyboardMarkup(v ReplyKeyboardMarkup)
- func (s *SendAnimationReplyMarkup) SetReplyKeyboardRemove(v ReplyKeyboardRemove)
- func (s *SendAnimationReplyMarkup) UnmarshalJSON(data []byte) error
- func (s SendAnimationReplyMarkup) Validate() error
- type SendAnimationReplyMarkupType
- type SendAudio
- func (s *SendAudio) Decode(d *jx.Decoder) error
- func (s *SendAudio) Encode(e *jx.Encoder)
- func (s *SendAudio) GetAllowSendingWithoutReply() OptBool
- func (s *SendAudio) GetAudio() string
- func (s *SendAudio) GetCaption() OptString
- func (s *SendAudio) GetCaptionEntities() []MessageEntity
- func (s *SendAudio) GetChatID() ID
- func (s *SendAudio) GetDisableNotification() OptBool
- func (s *SendAudio) GetDuration() OptInt
- func (s *SendAudio) GetParseMode() OptString
- func (s *SendAudio) GetPerformer() OptString
- func (s *SendAudio) GetReplyMarkup() OptSendAudioReplyMarkup
- func (s *SendAudio) GetReplyToMessageID() OptInt
- func (s *SendAudio) GetThumb() OptString
- func (s *SendAudio) GetTitle() OptString
- func (s *SendAudio) MarshalJSON() ([]byte, error)
- func (s *SendAudio) SetAllowSendingWithoutReply(val OptBool)
- func (s *SendAudio) SetAudio(val string)
- func (s *SendAudio) SetCaption(val OptString)
- func (s *SendAudio) SetCaptionEntities(val []MessageEntity)
- func (s *SendAudio) SetChatID(val ID)
- func (s *SendAudio) SetDisableNotification(val OptBool)
- func (s *SendAudio) SetDuration(val OptInt)
- func (s *SendAudio) SetFake()
- func (s *SendAudio) SetParseMode(val OptString)
- func (s *SendAudio) SetPerformer(val OptString)
- func (s *SendAudio) SetReplyMarkup(val OptSendAudioReplyMarkup)
- func (s *SendAudio) SetReplyToMessageID(val OptInt)
- func (s *SendAudio) SetThumb(val OptString)
- func (s *SendAudio) SetTitle(val OptString)
- func (s *SendAudio) UnmarshalJSON(data []byte) error
- func (s *SendAudio) Validate() error
- type SendAudioReplyMarkup
- func NewForceReplySendAudioReplyMarkup(v ForceReply) SendAudioReplyMarkup
- func NewInlineKeyboardMarkupSendAudioReplyMarkup(v InlineKeyboardMarkup) SendAudioReplyMarkup
- func NewReplyKeyboardMarkupSendAudioReplyMarkup(v ReplyKeyboardMarkup) SendAudioReplyMarkup
- func NewReplyKeyboardRemoveSendAudioReplyMarkup(v ReplyKeyboardRemove) SendAudioReplyMarkup
- func (s *SendAudioReplyMarkup) Decode(d *jx.Decoder) error
- func (s SendAudioReplyMarkup) Encode(e *jx.Encoder)
- func (s SendAudioReplyMarkup) GetForceReply() (v ForceReply, ok bool)
- func (s SendAudioReplyMarkup) GetInlineKeyboardMarkup() (v InlineKeyboardMarkup, ok bool)
- func (s SendAudioReplyMarkup) GetReplyKeyboardMarkup() (v ReplyKeyboardMarkup, ok bool)
- func (s SendAudioReplyMarkup) GetReplyKeyboardRemove() (v ReplyKeyboardRemove, ok bool)
- func (s SendAudioReplyMarkup) IsForceReply() bool
- func (s SendAudioReplyMarkup) IsInlineKeyboardMarkup() bool
- func (s SendAudioReplyMarkup) IsReplyKeyboardMarkup() bool
- func (s SendAudioReplyMarkup) IsReplyKeyboardRemove() bool
- func (s SendAudioReplyMarkup) MarshalJSON() ([]byte, error)
- func (s *SendAudioReplyMarkup) SetFake()
- func (s *SendAudioReplyMarkup) SetForceReply(v ForceReply)
- func (s *SendAudioReplyMarkup) SetInlineKeyboardMarkup(v InlineKeyboardMarkup)
- func (s *SendAudioReplyMarkup) SetReplyKeyboardMarkup(v ReplyKeyboardMarkup)
- func (s *SendAudioReplyMarkup) SetReplyKeyboardRemove(v ReplyKeyboardRemove)
- func (s *SendAudioReplyMarkup) UnmarshalJSON(data []byte) error
- func (s SendAudioReplyMarkup) Validate() error
- type SendAudioReplyMarkupType
- type SendChatAction
- func (s *SendChatAction) Decode(d *jx.Decoder) error
- func (s *SendChatAction) Encode(e *jx.Encoder)
- func (s *SendChatAction) GetAction() string
- func (s *SendChatAction) GetChatID() ID
- func (s *SendChatAction) MarshalJSON() ([]byte, error)
- func (s *SendChatAction) SetAction(val string)
- func (s *SendChatAction) SetChatID(val ID)
- func (s *SendChatAction) SetFake()
- func (s *SendChatAction) UnmarshalJSON(data []byte) error
- type SendContact
- func (s *SendContact) Decode(d *jx.Decoder) error
- func (s *SendContact) Encode(e *jx.Encoder)
- func (s *SendContact) GetAllowSendingWithoutReply() OptBool
- func (s *SendContact) GetChatID() ID
- func (s *SendContact) GetDisableNotification() OptBool
- func (s *SendContact) GetFirstName() string
- func (s *SendContact) GetLastName() OptString
- func (s *SendContact) GetPhoneNumber() string
- func (s *SendContact) GetReplyMarkup() OptSendContactReplyMarkup
- func (s *SendContact) GetReplyToMessageID() OptInt
- func (s *SendContact) GetVcard() OptString
- func (s *SendContact) MarshalJSON() ([]byte, error)
- func (s *SendContact) SetAllowSendingWithoutReply(val OptBool)
- func (s *SendContact) SetChatID(val ID)
- func (s *SendContact) SetDisableNotification(val OptBool)
- func (s *SendContact) SetFake()
- func (s *SendContact) SetFirstName(val string)
- func (s *SendContact) SetLastName(val OptString)
- func (s *SendContact) SetPhoneNumber(val string)
- func (s *SendContact) SetReplyMarkup(val OptSendContactReplyMarkup)
- func (s *SendContact) SetReplyToMessageID(val OptInt)
- func (s *SendContact) SetVcard(val OptString)
- func (s *SendContact) UnmarshalJSON(data []byte) error
- func (s *SendContact) Validate() error
- type SendContactReplyMarkup
- func NewForceReplySendContactReplyMarkup(v ForceReply) SendContactReplyMarkup
- func NewInlineKeyboardMarkupSendContactReplyMarkup(v InlineKeyboardMarkup) SendContactReplyMarkup
- func NewReplyKeyboardMarkupSendContactReplyMarkup(v ReplyKeyboardMarkup) SendContactReplyMarkup
- func NewReplyKeyboardRemoveSendContactReplyMarkup(v ReplyKeyboardRemove) SendContactReplyMarkup
- func (s *SendContactReplyMarkup) Decode(d *jx.Decoder) error
- func (s SendContactReplyMarkup) Encode(e *jx.Encoder)
- func (s SendContactReplyMarkup) GetForceReply() (v ForceReply, ok bool)
- func (s SendContactReplyMarkup) GetInlineKeyboardMarkup() (v InlineKeyboardMarkup, ok bool)
- func (s SendContactReplyMarkup) GetReplyKeyboardMarkup() (v ReplyKeyboardMarkup, ok bool)
- func (s SendContactReplyMarkup) GetReplyKeyboardRemove() (v ReplyKeyboardRemove, ok bool)
- func (s SendContactReplyMarkup) IsForceReply() bool
- func (s SendContactReplyMarkup) IsInlineKeyboardMarkup() bool
- func (s SendContactReplyMarkup) IsReplyKeyboardMarkup() bool
- func (s SendContactReplyMarkup) IsReplyKeyboardRemove() bool
- func (s SendContactReplyMarkup) MarshalJSON() ([]byte, error)
- func (s *SendContactReplyMarkup) SetFake()
- func (s *SendContactReplyMarkup) SetForceReply(v ForceReply)
- func (s *SendContactReplyMarkup) SetInlineKeyboardMarkup(v InlineKeyboardMarkup)
- func (s *SendContactReplyMarkup) SetReplyKeyboardMarkup(v ReplyKeyboardMarkup)
- func (s *SendContactReplyMarkup) SetReplyKeyboardRemove(v ReplyKeyboardRemove)
- func (s *SendContactReplyMarkup) UnmarshalJSON(data []byte) error
- func (s SendContactReplyMarkup) Validate() error
- type SendContactReplyMarkupType
- type SendDice
- func (s *SendDice) Decode(d *jx.Decoder) error
- func (s *SendDice) Encode(e *jx.Encoder)
- func (s *SendDice) GetAllowSendingWithoutReply() OptBool
- func (s *SendDice) GetChatID() ID
- func (s *SendDice) GetDisableNotification() OptBool
- func (s *SendDice) GetEmoji() OptString
- func (s *SendDice) GetReplyMarkup() OptSendDiceReplyMarkup
- func (s *SendDice) GetReplyToMessageID() OptInt
- func (s *SendDice) MarshalJSON() ([]byte, error)
- func (s *SendDice) SetAllowSendingWithoutReply(val OptBool)
- func (s *SendDice) SetChatID(val ID)
- func (s *SendDice) SetDisableNotification(val OptBool)
- func (s *SendDice) SetEmoji(val OptString)
- func (s *SendDice) SetFake()
- func (s *SendDice) SetReplyMarkup(val OptSendDiceReplyMarkup)
- func (s *SendDice) SetReplyToMessageID(val OptInt)
- func (s *SendDice) UnmarshalJSON(data []byte) error
- func (s *SendDice) Validate() error
- type SendDiceReplyMarkup
- func NewForceReplySendDiceReplyMarkup(v ForceReply) SendDiceReplyMarkup
- func NewInlineKeyboardMarkupSendDiceReplyMarkup(v InlineKeyboardMarkup) SendDiceReplyMarkup
- func NewReplyKeyboardMarkupSendDiceReplyMarkup(v ReplyKeyboardMarkup) SendDiceReplyMarkup
- func NewReplyKeyboardRemoveSendDiceReplyMarkup(v ReplyKeyboardRemove) SendDiceReplyMarkup
- func (s *SendDiceReplyMarkup) Decode(d *jx.Decoder) error
- func (s SendDiceReplyMarkup) Encode(e *jx.Encoder)
- func (s SendDiceReplyMarkup) GetForceReply() (v ForceReply, ok bool)
- func (s SendDiceReplyMarkup) GetInlineKeyboardMarkup() (v InlineKeyboardMarkup, ok bool)
- func (s SendDiceReplyMarkup) GetReplyKeyboardMarkup() (v ReplyKeyboardMarkup, ok bool)
- func (s SendDiceReplyMarkup) GetReplyKeyboardRemove() (v ReplyKeyboardRemove, ok bool)
- func (s SendDiceReplyMarkup) IsForceReply() bool
- func (s SendDiceReplyMarkup) IsInlineKeyboardMarkup() bool
- func (s SendDiceReplyMarkup) IsReplyKeyboardMarkup() bool
- func (s SendDiceReplyMarkup) IsReplyKeyboardRemove() bool
- func (s SendDiceReplyMarkup) MarshalJSON() ([]byte, error)
- func (s *SendDiceReplyMarkup) SetFake()
- func (s *SendDiceReplyMarkup) SetForceReply(v ForceReply)
- func (s *SendDiceReplyMarkup) SetInlineKeyboardMarkup(v InlineKeyboardMarkup)
- func (s *SendDiceReplyMarkup) SetReplyKeyboardMarkup(v ReplyKeyboardMarkup)
- func (s *SendDiceReplyMarkup) SetReplyKeyboardRemove(v ReplyKeyboardRemove)
- func (s *SendDiceReplyMarkup) UnmarshalJSON(data []byte) error
- func (s SendDiceReplyMarkup) Validate() error
- type SendDiceReplyMarkupType
- type SendDocument
- func (s *SendDocument) Decode(d *jx.Decoder) error
- func (s *SendDocument) Encode(e *jx.Encoder)
- func (s *SendDocument) GetAllowSendingWithoutReply() OptBool
- func (s *SendDocument) GetCaption() OptString
- func (s *SendDocument) GetCaptionEntities() []MessageEntity
- func (s *SendDocument) GetChatID() ID
- func (s *SendDocument) GetDisableContentTypeDetection() OptBool
- func (s *SendDocument) GetDisableNotification() OptBool
- func (s *SendDocument) GetDocument() string
- func (s *SendDocument) GetParseMode() OptString
- func (s *SendDocument) GetReplyMarkup() OptSendDocumentReplyMarkup
- func (s *SendDocument) GetReplyToMessageID() OptInt
- func (s *SendDocument) GetThumb() OptString
- func (s *SendDocument) MarshalJSON() ([]byte, error)
- func (s *SendDocument) SetAllowSendingWithoutReply(val OptBool)
- func (s *SendDocument) SetCaption(val OptString)
- func (s *SendDocument) SetCaptionEntities(val []MessageEntity)
- func (s *SendDocument) SetChatID(val ID)
- func (s *SendDocument) SetDisableContentTypeDetection(val OptBool)
- func (s *SendDocument) SetDisableNotification(val OptBool)
- func (s *SendDocument) SetDocument(val string)
- func (s *SendDocument) SetFake()
- func (s *SendDocument) SetParseMode(val OptString)
- func (s *SendDocument) SetReplyMarkup(val OptSendDocumentReplyMarkup)
- func (s *SendDocument) SetReplyToMessageID(val OptInt)
- func (s *SendDocument) SetThumb(val OptString)
- func (s *SendDocument) UnmarshalJSON(data []byte) error
- func (s *SendDocument) Validate() error
- type SendDocumentReplyMarkup
- func NewForceReplySendDocumentReplyMarkup(v ForceReply) SendDocumentReplyMarkup
- func NewInlineKeyboardMarkupSendDocumentReplyMarkup(v InlineKeyboardMarkup) SendDocumentReplyMarkup
- func NewReplyKeyboardMarkupSendDocumentReplyMarkup(v ReplyKeyboardMarkup) SendDocumentReplyMarkup
- func NewReplyKeyboardRemoveSendDocumentReplyMarkup(v ReplyKeyboardRemove) SendDocumentReplyMarkup
- func (s *SendDocumentReplyMarkup) Decode(d *jx.Decoder) error
- func (s SendDocumentReplyMarkup) Encode(e *jx.Encoder)
- func (s SendDocumentReplyMarkup) GetForceReply() (v ForceReply, ok bool)
- func (s SendDocumentReplyMarkup) GetInlineKeyboardMarkup() (v InlineKeyboardMarkup, ok bool)
- func (s SendDocumentReplyMarkup) GetReplyKeyboardMarkup() (v ReplyKeyboardMarkup, ok bool)
- func (s SendDocumentReplyMarkup) GetReplyKeyboardRemove() (v ReplyKeyboardRemove, ok bool)
- func (s SendDocumentReplyMarkup) IsForceReply() bool
- func (s SendDocumentReplyMarkup) IsInlineKeyboardMarkup() bool
- func (s SendDocumentReplyMarkup) IsReplyKeyboardMarkup() bool
- func (s SendDocumentReplyMarkup) IsReplyKeyboardRemove() bool
- func (s SendDocumentReplyMarkup) MarshalJSON() ([]byte, error)
- func (s *SendDocumentReplyMarkup) SetFake()
- func (s *SendDocumentReplyMarkup) SetForceReply(v ForceReply)
- func (s *SendDocumentReplyMarkup) SetInlineKeyboardMarkup(v InlineKeyboardMarkup)
- func (s *SendDocumentReplyMarkup) SetReplyKeyboardMarkup(v ReplyKeyboardMarkup)
- func (s *SendDocumentReplyMarkup) SetReplyKeyboardRemove(v ReplyKeyboardRemove)
- func (s *SendDocumentReplyMarkup) UnmarshalJSON(data []byte) error
- func (s SendDocumentReplyMarkup) Validate() error
- type SendDocumentReplyMarkupType
- type SendGame
- func (s *SendGame) Decode(d *jx.Decoder) error
- func (s *SendGame) Encode(e *jx.Encoder)
- func (s *SendGame) GetAllowSendingWithoutReply() OptBool
- func (s *SendGame) GetChatID() int64
- func (s *SendGame) GetDisableNotification() OptBool
- func (s *SendGame) GetGameShortName() string
- func (s *SendGame) GetReplyMarkup() OptInlineKeyboardMarkup
- func (s *SendGame) GetReplyToMessageID() OptInt
- func (s *SendGame) MarshalJSON() ([]byte, error)
- func (s *SendGame) SetAllowSendingWithoutReply(val OptBool)
- func (s *SendGame) SetChatID(val int64)
- func (s *SendGame) SetDisableNotification(val OptBool)
- func (s *SendGame) SetFake()
- func (s *SendGame) SetGameShortName(val string)
- func (s *SendGame) SetReplyMarkup(val OptInlineKeyboardMarkup)
- func (s *SendGame) SetReplyToMessageID(val OptInt)
- func (s *SendGame) UnmarshalJSON(data []byte) error
- func (s *SendGame) Validate() error
- type SendInvoice
- func (s *SendInvoice) Decode(d *jx.Decoder) error
- func (s *SendInvoice) Encode(e *jx.Encoder)
- func (s *SendInvoice) GetAllowSendingWithoutReply() OptBool
- func (s *SendInvoice) GetChatID() ID
- func (s *SendInvoice) GetCurrency() string
- func (s *SendInvoice) GetDescription() string
- func (s *SendInvoice) GetDisableNotification() OptBool
- func (s *SendInvoice) GetIsFlexible() OptBool
- func (s *SendInvoice) GetMaxTipAmount() OptInt
- func (s *SendInvoice) GetNeedEmail() OptBool
- func (s *SendInvoice) GetNeedName() OptBool
- func (s *SendInvoice) GetNeedPhoneNumber() OptBool
- func (s *SendInvoice) GetNeedShippingAddress() OptBool
- func (s *SendInvoice) GetPayload() string
- func (s *SendInvoice) GetPhotoHeight() OptInt
- func (s *SendInvoice) GetPhotoSize() OptInt
- func (s *SendInvoice) GetPhotoURL() OptURI
- func (s *SendInvoice) GetPhotoWidth() OptInt
- func (s *SendInvoice) GetPrices() []LabeledPrice
- func (s *SendInvoice) GetProviderData() OptString
- func (s *SendInvoice) GetProviderToken() string
- func (s *SendInvoice) GetReplyMarkup() OptInlineKeyboardMarkup
- func (s *SendInvoice) GetReplyToMessageID() OptInt
- func (s *SendInvoice) GetSendEmailToProvider() OptBool
- func (s *SendInvoice) GetSendPhoneNumberToProvider() OptBool
- func (s *SendInvoice) GetStartParameter() OptString
- func (s *SendInvoice) GetSuggestedTipAmounts() []int
- func (s *SendInvoice) GetTitle() string
- func (s *SendInvoice) MarshalJSON() ([]byte, error)
- func (s *SendInvoice) SetAllowSendingWithoutReply(val OptBool)
- func (s *SendInvoice) SetChatID(val ID)
- func (s *SendInvoice) SetCurrency(val string)
- func (s *SendInvoice) SetDescription(val string)
- func (s *SendInvoice) SetDisableNotification(val OptBool)
- func (s *SendInvoice) SetFake()
- func (s *SendInvoice) SetIsFlexible(val OptBool)
- func (s *SendInvoice) SetMaxTipAmount(val OptInt)
- func (s *SendInvoice) SetNeedEmail(val OptBool)
- func (s *SendInvoice) SetNeedName(val OptBool)
- func (s *SendInvoice) SetNeedPhoneNumber(val OptBool)
- func (s *SendInvoice) SetNeedShippingAddress(val OptBool)
- func (s *SendInvoice) SetPayload(val string)
- func (s *SendInvoice) SetPhotoHeight(val OptInt)
- func (s *SendInvoice) SetPhotoSize(val OptInt)
- func (s *SendInvoice) SetPhotoURL(val OptURI)
- func (s *SendInvoice) SetPhotoWidth(val OptInt)
- func (s *SendInvoice) SetPrices(val []LabeledPrice)
- func (s *SendInvoice) SetProviderData(val OptString)
- func (s *SendInvoice) SetProviderToken(val string)
- func (s *SendInvoice) SetReplyMarkup(val OptInlineKeyboardMarkup)
- func (s *SendInvoice) SetReplyToMessageID(val OptInt)
- func (s *SendInvoice) SetSendEmailToProvider(val OptBool)
- func (s *SendInvoice) SetSendPhoneNumberToProvider(val OptBool)
- func (s *SendInvoice) SetStartParameter(val OptString)
- func (s *SendInvoice) SetSuggestedTipAmounts(val []int)
- func (s *SendInvoice) SetTitle(val string)
- func (s *SendInvoice) UnmarshalJSON(data []byte) error
- func (s *SendInvoice) Validate() error
- type SendLocation
- func (s *SendLocation) Decode(d *jx.Decoder) error
- func (s *SendLocation) Encode(e *jx.Encoder)
- func (s *SendLocation) GetAllowSendingWithoutReply() OptBool
- func (s *SendLocation) GetChatID() ID
- func (s *SendLocation) GetDisableNotification() OptBool
- func (s *SendLocation) GetHeading() OptInt
- func (s *SendLocation) GetHorizontalAccuracy() OptFloat64
- func (s *SendLocation) GetLatitude() float64
- func (s *SendLocation) GetLivePeriod() OptInt
- func (s *SendLocation) GetLongitude() float64
- func (s *SendLocation) GetProximityAlertRadius() OptInt
- func (s *SendLocation) GetReplyMarkup() OptSendLocationReplyMarkup
- func (s *SendLocation) GetReplyToMessageID() OptInt
- func (s *SendLocation) MarshalJSON() ([]byte, error)
- func (s *SendLocation) SetAllowSendingWithoutReply(val OptBool)
- func (s *SendLocation) SetChatID(val ID)
- func (s *SendLocation) SetDisableNotification(val OptBool)
- func (s *SendLocation) SetFake()
- func (s *SendLocation) SetHeading(val OptInt)
- func (s *SendLocation) SetHorizontalAccuracy(val OptFloat64)
- func (s *SendLocation) SetLatitude(val float64)
- func (s *SendLocation) SetLivePeriod(val OptInt)
- func (s *SendLocation) SetLongitude(val float64)
- func (s *SendLocation) SetProximityAlertRadius(val OptInt)
- func (s *SendLocation) SetReplyMarkup(val OptSendLocationReplyMarkup)
- func (s *SendLocation) SetReplyToMessageID(val OptInt)
- func (s *SendLocation) UnmarshalJSON(data []byte) error
- func (s *SendLocation) Validate() error
- type SendLocationReplyMarkup
- func NewForceReplySendLocationReplyMarkup(v ForceReply) SendLocationReplyMarkup
- func NewInlineKeyboardMarkupSendLocationReplyMarkup(v InlineKeyboardMarkup) SendLocationReplyMarkup
- func NewReplyKeyboardMarkupSendLocationReplyMarkup(v ReplyKeyboardMarkup) SendLocationReplyMarkup
- func NewReplyKeyboardRemoveSendLocationReplyMarkup(v ReplyKeyboardRemove) SendLocationReplyMarkup
- func (s *SendLocationReplyMarkup) Decode(d *jx.Decoder) error
- func (s SendLocationReplyMarkup) Encode(e *jx.Encoder)
- func (s SendLocationReplyMarkup) GetForceReply() (v ForceReply, ok bool)
- func (s SendLocationReplyMarkup) GetInlineKeyboardMarkup() (v InlineKeyboardMarkup, ok bool)
- func (s SendLocationReplyMarkup) GetReplyKeyboardMarkup() (v ReplyKeyboardMarkup, ok bool)
- func (s SendLocationReplyMarkup) GetReplyKeyboardRemove() (v ReplyKeyboardRemove, ok bool)
- func (s SendLocationReplyMarkup) IsForceReply() bool
- func (s SendLocationReplyMarkup) IsInlineKeyboardMarkup() bool
- func (s SendLocationReplyMarkup) IsReplyKeyboardMarkup() bool
- func (s SendLocationReplyMarkup) IsReplyKeyboardRemove() bool
- func (s SendLocationReplyMarkup) MarshalJSON() ([]byte, error)
- func (s *SendLocationReplyMarkup) SetFake()
- func (s *SendLocationReplyMarkup) SetForceReply(v ForceReply)
- func (s *SendLocationReplyMarkup) SetInlineKeyboardMarkup(v InlineKeyboardMarkup)
- func (s *SendLocationReplyMarkup) SetReplyKeyboardMarkup(v ReplyKeyboardMarkup)
- func (s *SendLocationReplyMarkup) SetReplyKeyboardRemove(v ReplyKeyboardRemove)
- func (s *SendLocationReplyMarkup) UnmarshalJSON(data []byte) error
- func (s SendLocationReplyMarkup) Validate() error
- type SendLocationReplyMarkupType
- type SendMediaGroup
- func (s *SendMediaGroup) Decode(d *jx.Decoder) error
- func (s *SendMediaGroup) Encode(e *jx.Encoder)
- func (s *SendMediaGroup) GetAllowSendingWithoutReply() OptBool
- func (s *SendMediaGroup) GetChatID() ID
- func (s *SendMediaGroup) GetDisableNotification() OptBool
- func (s *SendMediaGroup) GetMedia() []SendMediaGroupMediaItem
- func (s *SendMediaGroup) GetReplyToMessageID() OptInt
- func (s *SendMediaGroup) MarshalJSON() ([]byte, error)
- func (s *SendMediaGroup) SetAllowSendingWithoutReply(val OptBool)
- func (s *SendMediaGroup) SetChatID(val ID)
- func (s *SendMediaGroup) SetDisableNotification(val OptBool)
- func (s *SendMediaGroup) SetFake()
- func (s *SendMediaGroup) SetMedia(val []SendMediaGroupMediaItem)
- func (s *SendMediaGroup) SetReplyToMessageID(val OptInt)
- func (s *SendMediaGroup) UnmarshalJSON(data []byte) error
- func (s *SendMediaGroup) Validate() error
- type SendMediaGroupMediaItem
- func NewInputMediaAudioSendMediaGroupMediaItem(v InputMediaAudio) SendMediaGroupMediaItem
- func NewInputMediaDocumentSendMediaGroupMediaItem(v InputMediaDocument) SendMediaGroupMediaItem
- func NewInputMediaPhotoSendMediaGroupMediaItem(v InputMediaPhoto) SendMediaGroupMediaItem
- func NewInputMediaVideoSendMediaGroupMediaItem(v InputMediaVideo) SendMediaGroupMediaItem
- func (s *SendMediaGroupMediaItem) Decode(d *jx.Decoder) error
- func (s SendMediaGroupMediaItem) Encode(e *jx.Encoder)
- func (s SendMediaGroupMediaItem) GetInputMediaAudio() (v InputMediaAudio, ok bool)
- func (s SendMediaGroupMediaItem) GetInputMediaDocument() (v InputMediaDocument, ok bool)
- func (s SendMediaGroupMediaItem) GetInputMediaPhoto() (v InputMediaPhoto, ok bool)
- func (s SendMediaGroupMediaItem) GetInputMediaVideo() (v InputMediaVideo, ok bool)
- func (s SendMediaGroupMediaItem) IsInputMediaAudio() bool
- func (s SendMediaGroupMediaItem) IsInputMediaDocument() bool
- func (s SendMediaGroupMediaItem) IsInputMediaPhoto() bool
- func (s SendMediaGroupMediaItem) IsInputMediaVideo() bool
- func (s SendMediaGroupMediaItem) MarshalJSON() ([]byte, error)
- func (s *SendMediaGroupMediaItem) SetFake()
- func (s *SendMediaGroupMediaItem) SetInputMediaAudio(v InputMediaAudio)
- func (s *SendMediaGroupMediaItem) SetInputMediaDocument(v InputMediaDocument)
- func (s *SendMediaGroupMediaItem) SetInputMediaPhoto(v InputMediaPhoto)
- func (s *SendMediaGroupMediaItem) SetInputMediaVideo(v InputMediaVideo)
- func (s *SendMediaGroupMediaItem) UnmarshalJSON(data []byte) error
- func (s SendMediaGroupMediaItem) Validate() error
- type SendMediaGroupMediaItemType
- type SendMessage
- func (s *SendMessage) Decode(d *jx.Decoder) error
- func (s *SendMessage) Encode(e *jx.Encoder)
- func (s *SendMessage) GetAllowSendingWithoutReply() OptBool
- func (s *SendMessage) GetChatID() ID
- func (s *SendMessage) GetDisableNotification() OptBool
- func (s *SendMessage) GetDisableWebPagePreview() OptBool
- func (s *SendMessage) GetEntities() []MessageEntity
- func (s *SendMessage) GetParseMode() OptString
- func (s *SendMessage) GetReplyMarkup() OptSendMessageReplyMarkup
- func (s *SendMessage) GetReplyToMessageID() OptInt
- func (s *SendMessage) GetText() string
- func (s *SendMessage) MarshalJSON() ([]byte, error)
- func (s *SendMessage) SetAllowSendingWithoutReply(val OptBool)
- func (s *SendMessage) SetChatID(val ID)
- func (s *SendMessage) SetDisableNotification(val OptBool)
- func (s *SendMessage) SetDisableWebPagePreview(val OptBool)
- func (s *SendMessage) SetEntities(val []MessageEntity)
- func (s *SendMessage) SetFake()
- func (s *SendMessage) SetParseMode(val OptString)
- func (s *SendMessage) SetReplyMarkup(val OptSendMessageReplyMarkup)
- func (s *SendMessage) SetReplyToMessageID(val OptInt)
- func (s *SendMessage) SetText(val string)
- func (s *SendMessage) UnmarshalJSON(data []byte) error
- func (s *SendMessage) Validate() error
- type SendMessageReplyMarkup
- func NewForceReplySendMessageReplyMarkup(v ForceReply) SendMessageReplyMarkup
- func NewInlineKeyboardMarkupSendMessageReplyMarkup(v InlineKeyboardMarkup) SendMessageReplyMarkup
- func NewReplyKeyboardMarkupSendMessageReplyMarkup(v ReplyKeyboardMarkup) SendMessageReplyMarkup
- func NewReplyKeyboardRemoveSendMessageReplyMarkup(v ReplyKeyboardRemove) SendMessageReplyMarkup
- func (s *SendMessageReplyMarkup) Decode(d *jx.Decoder) error
- func (s SendMessageReplyMarkup) Encode(e *jx.Encoder)
- func (s SendMessageReplyMarkup) GetForceReply() (v ForceReply, ok bool)
- func (s SendMessageReplyMarkup) GetInlineKeyboardMarkup() (v InlineKeyboardMarkup, ok bool)
- func (s SendMessageReplyMarkup) GetReplyKeyboardMarkup() (v ReplyKeyboardMarkup, ok bool)
- func (s SendMessageReplyMarkup) GetReplyKeyboardRemove() (v ReplyKeyboardRemove, ok bool)
- func (s SendMessageReplyMarkup) IsForceReply() bool
- func (s SendMessageReplyMarkup) IsInlineKeyboardMarkup() bool
- func (s SendMessageReplyMarkup) IsReplyKeyboardMarkup() bool
- func (s SendMessageReplyMarkup) IsReplyKeyboardRemove() bool
- func (s SendMessageReplyMarkup) MarshalJSON() ([]byte, error)
- func (s *SendMessageReplyMarkup) SetFake()
- func (s *SendMessageReplyMarkup) SetForceReply(v ForceReply)
- func (s *SendMessageReplyMarkup) SetInlineKeyboardMarkup(v InlineKeyboardMarkup)
- func (s *SendMessageReplyMarkup) SetReplyKeyboardMarkup(v ReplyKeyboardMarkup)
- func (s *SendMessageReplyMarkup) SetReplyKeyboardRemove(v ReplyKeyboardRemove)
- func (s *SendMessageReplyMarkup) UnmarshalJSON(data []byte) error
- func (s SendMessageReplyMarkup) Validate() error
- type SendMessageReplyMarkupType
- type SendPhoto
- func (s *SendPhoto) Decode(d *jx.Decoder) error
- func (s *SendPhoto) Encode(e *jx.Encoder)
- func (s *SendPhoto) GetAllowSendingWithoutReply() OptBool
- func (s *SendPhoto) GetCaption() OptString
- func (s *SendPhoto) GetCaptionEntities() []MessageEntity
- func (s *SendPhoto) GetChatID() ID
- func (s *SendPhoto) GetDisableNotification() OptBool
- func (s *SendPhoto) GetParseMode() OptString
- func (s *SendPhoto) GetPhoto() string
- func (s *SendPhoto) GetReplyMarkup() OptSendPhotoReplyMarkup
- func (s *SendPhoto) GetReplyToMessageID() OptInt
- func (s *SendPhoto) MarshalJSON() ([]byte, error)
- func (s *SendPhoto) SetAllowSendingWithoutReply(val OptBool)
- func (s *SendPhoto) SetCaption(val OptString)
- func (s *SendPhoto) SetCaptionEntities(val []MessageEntity)
- func (s *SendPhoto) SetChatID(val ID)
- func (s *SendPhoto) SetDisableNotification(val OptBool)
- func (s *SendPhoto) SetFake()
- func (s *SendPhoto) SetParseMode(val OptString)
- func (s *SendPhoto) SetPhoto(val string)
- func (s *SendPhoto) SetReplyMarkup(val OptSendPhotoReplyMarkup)
- func (s *SendPhoto) SetReplyToMessageID(val OptInt)
- func (s *SendPhoto) UnmarshalJSON(data []byte) error
- func (s *SendPhoto) Validate() error
- type SendPhotoReplyMarkup
- func NewForceReplySendPhotoReplyMarkup(v ForceReply) SendPhotoReplyMarkup
- func NewInlineKeyboardMarkupSendPhotoReplyMarkup(v InlineKeyboardMarkup) SendPhotoReplyMarkup
- func NewReplyKeyboardMarkupSendPhotoReplyMarkup(v ReplyKeyboardMarkup) SendPhotoReplyMarkup
- func NewReplyKeyboardRemoveSendPhotoReplyMarkup(v ReplyKeyboardRemove) SendPhotoReplyMarkup
- func (s *SendPhotoReplyMarkup) Decode(d *jx.Decoder) error
- func (s SendPhotoReplyMarkup) Encode(e *jx.Encoder)
- func (s SendPhotoReplyMarkup) GetForceReply() (v ForceReply, ok bool)
- func (s SendPhotoReplyMarkup) GetInlineKeyboardMarkup() (v InlineKeyboardMarkup, ok bool)
- func (s SendPhotoReplyMarkup) GetReplyKeyboardMarkup() (v ReplyKeyboardMarkup, ok bool)
- func (s SendPhotoReplyMarkup) GetReplyKeyboardRemove() (v ReplyKeyboardRemove, ok bool)
- func (s SendPhotoReplyMarkup) IsForceReply() bool
- func (s SendPhotoReplyMarkup) IsInlineKeyboardMarkup() bool
- func (s SendPhotoReplyMarkup) IsReplyKeyboardMarkup() bool
- func (s SendPhotoReplyMarkup) IsReplyKeyboardRemove() bool
- func (s SendPhotoReplyMarkup) MarshalJSON() ([]byte, error)
- func (s *SendPhotoReplyMarkup) SetFake()
- func (s *SendPhotoReplyMarkup) SetForceReply(v ForceReply)
- func (s *SendPhotoReplyMarkup) SetInlineKeyboardMarkup(v InlineKeyboardMarkup)
- func (s *SendPhotoReplyMarkup) SetReplyKeyboardMarkup(v ReplyKeyboardMarkup)
- func (s *SendPhotoReplyMarkup) SetReplyKeyboardRemove(v ReplyKeyboardRemove)
- func (s *SendPhotoReplyMarkup) UnmarshalJSON(data []byte) error
- func (s SendPhotoReplyMarkup) Validate() error
- type SendPhotoReplyMarkupType
- type SendPoll
- func (s *SendPoll) Decode(d *jx.Decoder) error
- func (s *SendPoll) Encode(e *jx.Encoder)
- func (s *SendPoll) GetAllowSendingWithoutReply() OptBool
- func (s *SendPoll) GetAllowsMultipleAnswers() OptBool
- func (s *SendPoll) GetChatID() ID
- func (s *SendPoll) GetCloseDate() OptInt
- func (s *SendPoll) GetCorrectOptionID() OptInt
- func (s *SendPoll) GetDisableNotification() OptBool
- func (s *SendPoll) GetExplanation() OptString
- func (s *SendPoll) GetExplanationEntities() []MessageEntity
- func (s *SendPoll) GetExplanationParseMode() OptString
- func (s *SendPoll) GetIsAnonymous() OptBool
- func (s *SendPoll) GetIsClosed() OptBool
- func (s *SendPoll) GetOpenPeriod() OptInt
- func (s *SendPoll) GetOptions() []string
- func (s *SendPoll) GetQuestion() string
- func (s *SendPoll) GetReplyMarkup() OptSendPollReplyMarkup
- func (s *SendPoll) GetReplyToMessageID() OptInt
- func (s *SendPoll) GetType() OptString
- func (s *SendPoll) MarshalJSON() ([]byte, error)
- func (s *SendPoll) SetAllowSendingWithoutReply(val OptBool)
- func (s *SendPoll) SetAllowsMultipleAnswers(val OptBool)
- func (s *SendPoll) SetChatID(val ID)
- func (s *SendPoll) SetCloseDate(val OptInt)
- func (s *SendPoll) SetCorrectOptionID(val OptInt)
- func (s *SendPoll) SetDisableNotification(val OptBool)
- func (s *SendPoll) SetExplanation(val OptString)
- func (s *SendPoll) SetExplanationEntities(val []MessageEntity)
- func (s *SendPoll) SetExplanationParseMode(val OptString)
- func (s *SendPoll) SetFake()
- func (s *SendPoll) SetIsAnonymous(val OptBool)
- func (s *SendPoll) SetIsClosed(val OptBool)
- func (s *SendPoll) SetOpenPeriod(val OptInt)
- func (s *SendPoll) SetOptions(val []string)
- func (s *SendPoll) SetQuestion(val string)
- func (s *SendPoll) SetReplyMarkup(val OptSendPollReplyMarkup)
- func (s *SendPoll) SetReplyToMessageID(val OptInt)
- func (s *SendPoll) SetType(val OptString)
- func (s *SendPoll) UnmarshalJSON(data []byte) error
- func (s *SendPoll) Validate() error
- type SendPollReplyMarkup
- func NewForceReplySendPollReplyMarkup(v ForceReply) SendPollReplyMarkup
- func NewInlineKeyboardMarkupSendPollReplyMarkup(v InlineKeyboardMarkup) SendPollReplyMarkup
- func NewReplyKeyboardMarkupSendPollReplyMarkup(v ReplyKeyboardMarkup) SendPollReplyMarkup
- func NewReplyKeyboardRemoveSendPollReplyMarkup(v ReplyKeyboardRemove) SendPollReplyMarkup
- func (s *SendPollReplyMarkup) Decode(d *jx.Decoder) error
- func (s SendPollReplyMarkup) Encode(e *jx.Encoder)
- func (s SendPollReplyMarkup) GetForceReply() (v ForceReply, ok bool)
- func (s SendPollReplyMarkup) GetInlineKeyboardMarkup() (v InlineKeyboardMarkup, ok bool)
- func (s SendPollReplyMarkup) GetReplyKeyboardMarkup() (v ReplyKeyboardMarkup, ok bool)
- func (s SendPollReplyMarkup) GetReplyKeyboardRemove() (v ReplyKeyboardRemove, ok bool)
- func (s SendPollReplyMarkup) IsForceReply() bool
- func (s SendPollReplyMarkup) IsInlineKeyboardMarkup() bool
- func (s SendPollReplyMarkup) IsReplyKeyboardMarkup() bool
- func (s SendPollReplyMarkup) IsReplyKeyboardRemove() bool
- func (s SendPollReplyMarkup) MarshalJSON() ([]byte, error)
- func (s *SendPollReplyMarkup) SetFake()
- func (s *SendPollReplyMarkup) SetForceReply(v ForceReply)
- func (s *SendPollReplyMarkup) SetInlineKeyboardMarkup(v InlineKeyboardMarkup)
- func (s *SendPollReplyMarkup) SetReplyKeyboardMarkup(v ReplyKeyboardMarkup)
- func (s *SendPollReplyMarkup) SetReplyKeyboardRemove(v ReplyKeyboardRemove)
- func (s *SendPollReplyMarkup) UnmarshalJSON(data []byte) error
- func (s SendPollReplyMarkup) Validate() error
- type SendPollReplyMarkupType
- type SendSticker
- func (s *SendSticker) Decode(d *jx.Decoder) error
- func (s *SendSticker) Encode(e *jx.Encoder)
- func (s *SendSticker) GetAllowSendingWithoutReply() OptBool
- func (s *SendSticker) GetChatID() ID
- func (s *SendSticker) GetDisableNotification() OptBool
- func (s *SendSticker) GetReplyMarkup() OptSendStickerReplyMarkup
- func (s *SendSticker) GetReplyToMessageID() OptInt
- func (s *SendSticker) GetSticker() string
- func (s *SendSticker) MarshalJSON() ([]byte, error)
- func (s *SendSticker) SetAllowSendingWithoutReply(val OptBool)
- func (s *SendSticker) SetChatID(val ID)
- func (s *SendSticker) SetDisableNotification(val OptBool)
- func (s *SendSticker) SetFake()
- func (s *SendSticker) SetReplyMarkup(val OptSendStickerReplyMarkup)
- func (s *SendSticker) SetReplyToMessageID(val OptInt)
- func (s *SendSticker) SetSticker(val string)
- func (s *SendSticker) UnmarshalJSON(data []byte) error
- func (s *SendSticker) Validate() error
- type SendStickerReplyMarkup
- func NewForceReplySendStickerReplyMarkup(v ForceReply) SendStickerReplyMarkup
- func NewInlineKeyboardMarkupSendStickerReplyMarkup(v InlineKeyboardMarkup) SendStickerReplyMarkup
- func NewReplyKeyboardMarkupSendStickerReplyMarkup(v ReplyKeyboardMarkup) SendStickerReplyMarkup
- func NewReplyKeyboardRemoveSendStickerReplyMarkup(v ReplyKeyboardRemove) SendStickerReplyMarkup
- func (s *SendStickerReplyMarkup) Decode(d *jx.Decoder) error
- func (s SendStickerReplyMarkup) Encode(e *jx.Encoder)
- func (s SendStickerReplyMarkup) GetForceReply() (v ForceReply, ok bool)
- func (s SendStickerReplyMarkup) GetInlineKeyboardMarkup() (v InlineKeyboardMarkup, ok bool)
- func (s SendStickerReplyMarkup) GetReplyKeyboardMarkup() (v ReplyKeyboardMarkup, ok bool)
- func (s SendStickerReplyMarkup) GetReplyKeyboardRemove() (v ReplyKeyboardRemove, ok bool)
- func (s SendStickerReplyMarkup) IsForceReply() bool
- func (s SendStickerReplyMarkup) IsInlineKeyboardMarkup() bool
- func (s SendStickerReplyMarkup) IsReplyKeyboardMarkup() bool
- func (s SendStickerReplyMarkup) IsReplyKeyboardRemove() bool
- func (s SendStickerReplyMarkup) MarshalJSON() ([]byte, error)
- func (s *SendStickerReplyMarkup) SetFake()
- func (s *SendStickerReplyMarkup) SetForceReply(v ForceReply)
- func (s *SendStickerReplyMarkup) SetInlineKeyboardMarkup(v InlineKeyboardMarkup)
- func (s *SendStickerReplyMarkup) SetReplyKeyboardMarkup(v ReplyKeyboardMarkup)
- func (s *SendStickerReplyMarkup) SetReplyKeyboardRemove(v ReplyKeyboardRemove)
- func (s *SendStickerReplyMarkup) UnmarshalJSON(data []byte) error
- func (s SendStickerReplyMarkup) Validate() error
- type SendStickerReplyMarkupType
- type SendVenue
- func (s *SendVenue) Decode(d *jx.Decoder) error
- func (s *SendVenue) Encode(e *jx.Encoder)
- func (s *SendVenue) GetAddress() string
- func (s *SendVenue) GetAllowSendingWithoutReply() OptBool
- func (s *SendVenue) GetChatID() ID
- func (s *SendVenue) GetDisableNotification() OptBool
- func (s *SendVenue) GetFoursquareID() OptString
- func (s *SendVenue) GetFoursquareType() OptString
- func (s *SendVenue) GetGooglePlaceID() OptString
- func (s *SendVenue) GetGooglePlaceType() OptString
- func (s *SendVenue) GetLatitude() float64
- func (s *SendVenue) GetLongitude() float64
- func (s *SendVenue) GetReplyMarkup() OptSendVenueReplyMarkup
- func (s *SendVenue) GetReplyToMessageID() OptInt
- func (s *SendVenue) GetTitle() string
- func (s *SendVenue) MarshalJSON() ([]byte, error)
- func (s *SendVenue) SetAddress(val string)
- func (s *SendVenue) SetAllowSendingWithoutReply(val OptBool)
- func (s *SendVenue) SetChatID(val ID)
- func (s *SendVenue) SetDisableNotification(val OptBool)
- func (s *SendVenue) SetFake()
- func (s *SendVenue) SetFoursquareID(val OptString)
- func (s *SendVenue) SetFoursquareType(val OptString)
- func (s *SendVenue) SetGooglePlaceID(val OptString)
- func (s *SendVenue) SetGooglePlaceType(val OptString)
- func (s *SendVenue) SetLatitude(val float64)
- func (s *SendVenue) SetLongitude(val float64)
- func (s *SendVenue) SetReplyMarkup(val OptSendVenueReplyMarkup)
- func (s *SendVenue) SetReplyToMessageID(val OptInt)
- func (s *SendVenue) SetTitle(val string)
- func (s *SendVenue) UnmarshalJSON(data []byte) error
- func (s *SendVenue) Validate() error
- type SendVenueReplyMarkup
- func NewForceReplySendVenueReplyMarkup(v ForceReply) SendVenueReplyMarkup
- func NewInlineKeyboardMarkupSendVenueReplyMarkup(v InlineKeyboardMarkup) SendVenueReplyMarkup
- func NewReplyKeyboardMarkupSendVenueReplyMarkup(v ReplyKeyboardMarkup) SendVenueReplyMarkup
- func NewReplyKeyboardRemoveSendVenueReplyMarkup(v ReplyKeyboardRemove) SendVenueReplyMarkup
- func (s *SendVenueReplyMarkup) Decode(d *jx.Decoder) error
- func (s SendVenueReplyMarkup) Encode(e *jx.Encoder)
- func (s SendVenueReplyMarkup) GetForceReply() (v ForceReply, ok bool)
- func (s SendVenueReplyMarkup) GetInlineKeyboardMarkup() (v InlineKeyboardMarkup, ok bool)
- func (s SendVenueReplyMarkup) GetReplyKeyboardMarkup() (v ReplyKeyboardMarkup, ok bool)
- func (s SendVenueReplyMarkup) GetReplyKeyboardRemove() (v ReplyKeyboardRemove, ok bool)
- func (s SendVenueReplyMarkup) IsForceReply() bool
- func (s SendVenueReplyMarkup) IsInlineKeyboardMarkup() bool
- func (s SendVenueReplyMarkup) IsReplyKeyboardMarkup() bool
- func (s SendVenueReplyMarkup) IsReplyKeyboardRemove() bool
- func (s SendVenueReplyMarkup) MarshalJSON() ([]byte, error)
- func (s *SendVenueReplyMarkup) SetFake()
- func (s *SendVenueReplyMarkup) SetForceReply(v ForceReply)
- func (s *SendVenueReplyMarkup) SetInlineKeyboardMarkup(v InlineKeyboardMarkup)
- func (s *SendVenueReplyMarkup) SetReplyKeyboardMarkup(v ReplyKeyboardMarkup)
- func (s *SendVenueReplyMarkup) SetReplyKeyboardRemove(v ReplyKeyboardRemove)
- func (s *SendVenueReplyMarkup) UnmarshalJSON(data []byte) error
- func (s SendVenueReplyMarkup) Validate() error
- type SendVenueReplyMarkupType
- type SendVideo
- func (s *SendVideo) Decode(d *jx.Decoder) error
- func (s *SendVideo) Encode(e *jx.Encoder)
- func (s *SendVideo) GetAllowSendingWithoutReply() OptBool
- func (s *SendVideo) GetCaption() OptString
- func (s *SendVideo) GetCaptionEntities() []MessageEntity
- func (s *SendVideo) GetChatID() ID
- func (s *SendVideo) GetDisableNotification() OptBool
- func (s *SendVideo) GetDuration() OptInt
- func (s *SendVideo) GetHeight() OptInt
- func (s *SendVideo) GetParseMode() OptString
- func (s *SendVideo) GetReplyMarkup() OptSendVideoReplyMarkup
- func (s *SendVideo) GetReplyToMessageID() OptInt
- func (s *SendVideo) GetSupportsStreaming() OptBool
- func (s *SendVideo) GetThumb() OptString
- func (s *SendVideo) GetVideo() string
- func (s *SendVideo) GetWidth() OptInt
- func (s *SendVideo) MarshalJSON() ([]byte, error)
- func (s *SendVideo) SetAllowSendingWithoutReply(val OptBool)
- func (s *SendVideo) SetCaption(val OptString)
- func (s *SendVideo) SetCaptionEntities(val []MessageEntity)
- func (s *SendVideo) SetChatID(val ID)
- func (s *SendVideo) SetDisableNotification(val OptBool)
- func (s *SendVideo) SetDuration(val OptInt)
- func (s *SendVideo) SetFake()
- func (s *SendVideo) SetHeight(val OptInt)
- func (s *SendVideo) SetParseMode(val OptString)
- func (s *SendVideo) SetReplyMarkup(val OptSendVideoReplyMarkup)
- func (s *SendVideo) SetReplyToMessageID(val OptInt)
- func (s *SendVideo) SetSupportsStreaming(val OptBool)
- func (s *SendVideo) SetThumb(val OptString)
- func (s *SendVideo) SetVideo(val string)
- func (s *SendVideo) SetWidth(val OptInt)
- func (s *SendVideo) UnmarshalJSON(data []byte) error
- func (s *SendVideo) Validate() error
- type SendVideoNote
- func (s *SendVideoNote) Decode(d *jx.Decoder) error
- func (s *SendVideoNote) Encode(e *jx.Encoder)
- func (s *SendVideoNote) GetAllowSendingWithoutReply() OptBool
- func (s *SendVideoNote) GetChatID() ID
- func (s *SendVideoNote) GetDisableNotification() OptBool
- func (s *SendVideoNote) GetDuration() OptInt
- func (s *SendVideoNote) GetLength() OptInt
- func (s *SendVideoNote) GetReplyMarkup() OptSendVideoNoteReplyMarkup
- func (s *SendVideoNote) GetReplyToMessageID() OptInt
- func (s *SendVideoNote) GetThumb() OptString
- func (s *SendVideoNote) GetVideoNote() string
- func (s *SendVideoNote) MarshalJSON() ([]byte, error)
- func (s *SendVideoNote) SetAllowSendingWithoutReply(val OptBool)
- func (s *SendVideoNote) SetChatID(val ID)
- func (s *SendVideoNote) SetDisableNotification(val OptBool)
- func (s *SendVideoNote) SetDuration(val OptInt)
- func (s *SendVideoNote) SetFake()
- func (s *SendVideoNote) SetLength(val OptInt)
- func (s *SendVideoNote) SetReplyMarkup(val OptSendVideoNoteReplyMarkup)
- func (s *SendVideoNote) SetReplyToMessageID(val OptInt)
- func (s *SendVideoNote) SetThumb(val OptString)
- func (s *SendVideoNote) SetVideoNote(val string)
- func (s *SendVideoNote) UnmarshalJSON(data []byte) error
- func (s *SendVideoNote) Validate() error
- type SendVideoNoteReplyMarkup
- func NewForceReplySendVideoNoteReplyMarkup(v ForceReply) SendVideoNoteReplyMarkup
- func NewInlineKeyboardMarkupSendVideoNoteReplyMarkup(v InlineKeyboardMarkup) SendVideoNoteReplyMarkup
- func NewReplyKeyboardMarkupSendVideoNoteReplyMarkup(v ReplyKeyboardMarkup) SendVideoNoteReplyMarkup
- func NewReplyKeyboardRemoveSendVideoNoteReplyMarkup(v ReplyKeyboardRemove) SendVideoNoteReplyMarkup
- func (s *SendVideoNoteReplyMarkup) Decode(d *jx.Decoder) error
- func (s SendVideoNoteReplyMarkup) Encode(e *jx.Encoder)
- func (s SendVideoNoteReplyMarkup) GetForceReply() (v ForceReply, ok bool)
- func (s SendVideoNoteReplyMarkup) GetInlineKeyboardMarkup() (v InlineKeyboardMarkup, ok bool)
- func (s SendVideoNoteReplyMarkup) GetReplyKeyboardMarkup() (v ReplyKeyboardMarkup, ok bool)
- func (s SendVideoNoteReplyMarkup) GetReplyKeyboardRemove() (v ReplyKeyboardRemove, ok bool)
- func (s SendVideoNoteReplyMarkup) IsForceReply() bool
- func (s SendVideoNoteReplyMarkup) IsInlineKeyboardMarkup() bool
- func (s SendVideoNoteReplyMarkup) IsReplyKeyboardMarkup() bool
- func (s SendVideoNoteReplyMarkup) IsReplyKeyboardRemove() bool
- func (s SendVideoNoteReplyMarkup) MarshalJSON() ([]byte, error)
- func (s *SendVideoNoteReplyMarkup) SetFake()
- func (s *SendVideoNoteReplyMarkup) SetForceReply(v ForceReply)
- func (s *SendVideoNoteReplyMarkup) SetInlineKeyboardMarkup(v InlineKeyboardMarkup)
- func (s *SendVideoNoteReplyMarkup) SetReplyKeyboardMarkup(v ReplyKeyboardMarkup)
- func (s *SendVideoNoteReplyMarkup) SetReplyKeyboardRemove(v ReplyKeyboardRemove)
- func (s *SendVideoNoteReplyMarkup) UnmarshalJSON(data []byte) error
- func (s SendVideoNoteReplyMarkup) Validate() error
- type SendVideoNoteReplyMarkupType
- type SendVideoReplyMarkup
- func NewForceReplySendVideoReplyMarkup(v ForceReply) SendVideoReplyMarkup
- func NewInlineKeyboardMarkupSendVideoReplyMarkup(v InlineKeyboardMarkup) SendVideoReplyMarkup
- func NewReplyKeyboardMarkupSendVideoReplyMarkup(v ReplyKeyboardMarkup) SendVideoReplyMarkup
- func NewReplyKeyboardRemoveSendVideoReplyMarkup(v ReplyKeyboardRemove) SendVideoReplyMarkup
- func (s *SendVideoReplyMarkup) Decode(d *jx.Decoder) error
- func (s SendVideoReplyMarkup) Encode(e *jx.Encoder)
- func (s SendVideoReplyMarkup) GetForceReply() (v ForceReply, ok bool)
- func (s SendVideoReplyMarkup) GetInlineKeyboardMarkup() (v InlineKeyboardMarkup, ok bool)
- func (s SendVideoReplyMarkup) GetReplyKeyboardMarkup() (v ReplyKeyboardMarkup, ok bool)
- func (s SendVideoReplyMarkup) GetReplyKeyboardRemove() (v ReplyKeyboardRemove, ok bool)
- func (s SendVideoReplyMarkup) IsForceReply() bool
- func (s SendVideoReplyMarkup) IsInlineKeyboardMarkup() bool
- func (s SendVideoReplyMarkup) IsReplyKeyboardMarkup() bool
- func (s SendVideoReplyMarkup) IsReplyKeyboardRemove() bool
- func (s SendVideoReplyMarkup) MarshalJSON() ([]byte, error)
- func (s *SendVideoReplyMarkup) SetFake()
- func (s *SendVideoReplyMarkup) SetForceReply(v ForceReply)
- func (s *SendVideoReplyMarkup) SetInlineKeyboardMarkup(v InlineKeyboardMarkup)
- func (s *SendVideoReplyMarkup) SetReplyKeyboardMarkup(v ReplyKeyboardMarkup)
- func (s *SendVideoReplyMarkup) SetReplyKeyboardRemove(v ReplyKeyboardRemove)
- func (s *SendVideoReplyMarkup) UnmarshalJSON(data []byte) error
- func (s SendVideoReplyMarkup) Validate() error
- type SendVideoReplyMarkupType
- type SendVoice
- func (s *SendVoice) Decode(d *jx.Decoder) error
- func (s *SendVoice) Encode(e *jx.Encoder)
- func (s *SendVoice) GetAllowSendingWithoutReply() OptBool
- func (s *SendVoice) GetCaption() OptString
- func (s *SendVoice) GetCaptionEntities() []MessageEntity
- func (s *SendVoice) GetChatID() ID
- func (s *SendVoice) GetDisableNotification() OptBool
- func (s *SendVoice) GetDuration() OptInt
- func (s *SendVoice) GetParseMode() OptString
- func (s *SendVoice) GetReplyMarkup() OptSendVoiceReplyMarkup
- func (s *SendVoice) GetReplyToMessageID() OptInt
- func (s *SendVoice) GetVoice() string
- func (s *SendVoice) MarshalJSON() ([]byte, error)
- func (s *SendVoice) SetAllowSendingWithoutReply(val OptBool)
- func (s *SendVoice) SetCaption(val OptString)
- func (s *SendVoice) SetCaptionEntities(val []MessageEntity)
- func (s *SendVoice) SetChatID(val ID)
- func (s *SendVoice) SetDisableNotification(val OptBool)
- func (s *SendVoice) SetDuration(val OptInt)
- func (s *SendVoice) SetFake()
- func (s *SendVoice) SetParseMode(val OptString)
- func (s *SendVoice) SetReplyMarkup(val OptSendVoiceReplyMarkup)
- func (s *SendVoice) SetReplyToMessageID(val OptInt)
- func (s *SendVoice) SetVoice(val string)
- func (s *SendVoice) UnmarshalJSON(data []byte) error
- func (s *SendVoice) Validate() error
- type SendVoiceReplyMarkup
- func NewForceReplySendVoiceReplyMarkup(v ForceReply) SendVoiceReplyMarkup
- func NewInlineKeyboardMarkupSendVoiceReplyMarkup(v InlineKeyboardMarkup) SendVoiceReplyMarkup
- func NewReplyKeyboardMarkupSendVoiceReplyMarkup(v ReplyKeyboardMarkup) SendVoiceReplyMarkup
- func NewReplyKeyboardRemoveSendVoiceReplyMarkup(v ReplyKeyboardRemove) SendVoiceReplyMarkup
- func (s *SendVoiceReplyMarkup) Decode(d *jx.Decoder) error
- func (s SendVoiceReplyMarkup) Encode(e *jx.Encoder)
- func (s SendVoiceReplyMarkup) GetForceReply() (v ForceReply, ok bool)
- func (s SendVoiceReplyMarkup) GetInlineKeyboardMarkup() (v InlineKeyboardMarkup, ok bool)
- func (s SendVoiceReplyMarkup) GetReplyKeyboardMarkup() (v ReplyKeyboardMarkup, ok bool)
- func (s SendVoiceReplyMarkup) GetReplyKeyboardRemove() (v ReplyKeyboardRemove, ok bool)
- func (s SendVoiceReplyMarkup) IsForceReply() bool
- func (s SendVoiceReplyMarkup) IsInlineKeyboardMarkup() bool
- func (s SendVoiceReplyMarkup) IsReplyKeyboardMarkup() bool
- func (s SendVoiceReplyMarkup) IsReplyKeyboardRemove() bool
- func (s SendVoiceReplyMarkup) MarshalJSON() ([]byte, error)
- func (s *SendVoiceReplyMarkup) SetFake()
- func (s *SendVoiceReplyMarkup) SetForceReply(v ForceReply)
- func (s *SendVoiceReplyMarkup) SetInlineKeyboardMarkup(v InlineKeyboardMarkup)
- func (s *SendVoiceReplyMarkup) SetReplyKeyboardMarkup(v ReplyKeyboardMarkup)
- func (s *SendVoiceReplyMarkup) SetReplyKeyboardRemove(v ReplyKeyboardRemove)
- func (s *SendVoiceReplyMarkup) UnmarshalJSON(data []byte) error
- func (s SendVoiceReplyMarkup) Validate() error
- type SendVoiceReplyMarkupType
- type Server
- type ServerOption
- func WithErrorHandler(h ErrorHandler) ServerOption
- func WithMaxMultipartMemory(max int64) ServerOption
- func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption
- func WithMiddleware(m ...Middleware) ServerOption
- func WithNotFound(notFound http.HandlerFunc) ServerOption
- func WithPathPrefix(prefix string) ServerOption
- type SetChatAdministratorCustomTitle
- func (s *SetChatAdministratorCustomTitle) Decode(d *jx.Decoder) error
- func (s *SetChatAdministratorCustomTitle) Encode(e *jx.Encoder)
- func (s *SetChatAdministratorCustomTitle) GetChatID() ID
- func (s *SetChatAdministratorCustomTitle) GetCustomTitle() string
- func (s *SetChatAdministratorCustomTitle) GetUserID() int64
- func (s *SetChatAdministratorCustomTitle) MarshalJSON() ([]byte, error)
- func (s *SetChatAdministratorCustomTitle) SetChatID(val ID)
- func (s *SetChatAdministratorCustomTitle) SetCustomTitle(val string)
- func (s *SetChatAdministratorCustomTitle) SetFake()
- func (s *SetChatAdministratorCustomTitle) SetUserID(val int64)
- func (s *SetChatAdministratorCustomTitle) UnmarshalJSON(data []byte) error
- func (s *SetChatAdministratorCustomTitle) Validate() error
- type SetChatDescription
- func (s *SetChatDescription) Decode(d *jx.Decoder) error
- func (s *SetChatDescription) Encode(e *jx.Encoder)
- func (s *SetChatDescription) GetChatID() ID
- func (s *SetChatDescription) GetDescription() OptString
- func (s *SetChatDescription) MarshalJSON() ([]byte, error)
- func (s *SetChatDescription) SetChatID(val ID)
- func (s *SetChatDescription) SetDescription(val OptString)
- func (s *SetChatDescription) SetFake()
- func (s *SetChatDescription) UnmarshalJSON(data []byte) error
- func (s *SetChatDescription) Validate() error
- type SetChatPermissions
- func (s *SetChatPermissions) Decode(d *jx.Decoder) error
- func (s *SetChatPermissions) Encode(e *jx.Encoder)
- func (s *SetChatPermissions) GetChatID() ID
- func (s *SetChatPermissions) GetPermissions() ChatPermissions
- func (s *SetChatPermissions) MarshalJSON() ([]byte, error)
- func (s *SetChatPermissions) SetChatID(val ID)
- func (s *SetChatPermissions) SetFake()
- func (s *SetChatPermissions) SetPermissions(val ChatPermissions)
- func (s *SetChatPermissions) UnmarshalJSON(data []byte) error
- type SetChatPhoto
- func (s *SetChatPhoto) Decode(d *jx.Decoder) error
- func (s *SetChatPhoto) Encode(e *jx.Encoder)
- func (s *SetChatPhoto) GetChatID() ID
- func (s *SetChatPhoto) GetPhoto() string
- func (s *SetChatPhoto) MarshalJSON() ([]byte, error)
- func (s *SetChatPhoto) SetChatID(val ID)
- func (s *SetChatPhoto) SetFake()
- func (s *SetChatPhoto) SetPhoto(val string)
- func (s *SetChatPhoto) UnmarshalJSON(data []byte) error
- type SetChatStickerSet
- func (s *SetChatStickerSet) Decode(d *jx.Decoder) error
- func (s *SetChatStickerSet) Encode(e *jx.Encoder)
- func (s *SetChatStickerSet) GetChatID() ID
- func (s *SetChatStickerSet) GetStickerSetName() string
- func (s *SetChatStickerSet) MarshalJSON() ([]byte, error)
- func (s *SetChatStickerSet) SetChatID(val ID)
- func (s *SetChatStickerSet) SetFake()
- func (s *SetChatStickerSet) SetStickerSetName(val string)
- func (s *SetChatStickerSet) UnmarshalJSON(data []byte) error
- type SetChatTitle
- func (s *SetChatTitle) Decode(d *jx.Decoder) error
- func (s *SetChatTitle) Encode(e *jx.Encoder)
- func (s *SetChatTitle) GetChatID() ID
- func (s *SetChatTitle) GetTitle() string
- func (s *SetChatTitle) MarshalJSON() ([]byte, error)
- func (s *SetChatTitle) SetChatID(val ID)
- func (s *SetChatTitle) SetFake()
- func (s *SetChatTitle) SetTitle(val string)
- func (s *SetChatTitle) UnmarshalJSON(data []byte) error
- func (s *SetChatTitle) Validate() error
- type SetGameScore
- func (s *SetGameScore) Decode(d *jx.Decoder) error
- func (s *SetGameScore) Encode(e *jx.Encoder)
- func (s *SetGameScore) GetChatID() OptInt64
- func (s *SetGameScore) GetDisableEditMessage() OptBool
- func (s *SetGameScore) GetForce() OptBool
- func (s *SetGameScore) GetInlineMessageID() OptString
- func (s *SetGameScore) GetMessageID() OptInt
- func (s *SetGameScore) GetScore() int
- func (s *SetGameScore) GetUserID() int64
- func (s *SetGameScore) MarshalJSON() ([]byte, error)
- func (s *SetGameScore) SetChatID(val OptInt64)
- func (s *SetGameScore) SetDisableEditMessage(val OptBool)
- func (s *SetGameScore) SetFake()
- func (s *SetGameScore) SetForce(val OptBool)
- func (s *SetGameScore) SetInlineMessageID(val OptString)
- func (s *SetGameScore) SetMessageID(val OptInt)
- func (s *SetGameScore) SetScore(val int)
- func (s *SetGameScore) SetUserID(val int64)
- func (s *SetGameScore) UnmarshalJSON(data []byte) error
- type SetMyCommands
- func (s *SetMyCommands) Decode(d *jx.Decoder) error
- func (s *SetMyCommands) Encode(e *jx.Encoder)
- func (s *SetMyCommands) GetCommands() []BotCommand
- func (s *SetMyCommands) GetLanguageCode() OptString
- func (s *SetMyCommands) GetScope() OptBotCommandScope
- func (s *SetMyCommands) MarshalJSON() ([]byte, error)
- func (s *SetMyCommands) SetCommands(val []BotCommand)
- func (s *SetMyCommands) SetFake()
- func (s *SetMyCommands) SetLanguageCode(val OptString)
- func (s *SetMyCommands) SetScope(val OptBotCommandScope)
- func (s *SetMyCommands) UnmarshalJSON(data []byte) error
- func (s *SetMyCommands) Validate() error
- type SetPassportDataErrors
- func (s *SetPassportDataErrors) Decode(d *jx.Decoder) error
- func (s *SetPassportDataErrors) Encode(e *jx.Encoder)
- func (s *SetPassportDataErrors) GetErrors() []PassportElementError
- func (s *SetPassportDataErrors) GetUserID() int64
- func (s *SetPassportDataErrors) MarshalJSON() ([]byte, error)
- func (s *SetPassportDataErrors) SetErrors(val []PassportElementError)
- func (s *SetPassportDataErrors) SetFake()
- func (s *SetPassportDataErrors) SetUserID(val int64)
- func (s *SetPassportDataErrors) UnmarshalJSON(data []byte) error
- func (s *SetPassportDataErrors) Validate() error
- type SetStickerPositionInSet
- func (s *SetStickerPositionInSet) Decode(d *jx.Decoder) error
- func (s *SetStickerPositionInSet) Encode(e *jx.Encoder)
- func (s *SetStickerPositionInSet) GetPosition() int
- func (s *SetStickerPositionInSet) GetSticker() string
- func (s *SetStickerPositionInSet) MarshalJSON() ([]byte, error)
- func (s *SetStickerPositionInSet) SetFake()
- func (s *SetStickerPositionInSet) SetPosition(val int)
- func (s *SetStickerPositionInSet) SetSticker(val string)
- func (s *SetStickerPositionInSet) UnmarshalJSON(data []byte) error
- type SetStickerSetThumb
- func (s *SetStickerSetThumb) Decode(d *jx.Decoder) error
- func (s *SetStickerSetThumb) Encode(e *jx.Encoder)
- func (s *SetStickerSetThumb) GetName() string
- func (s *SetStickerSetThumb) GetThumb() OptString
- func (s *SetStickerSetThumb) GetUserID() int64
- func (s *SetStickerSetThumb) MarshalJSON() ([]byte, error)
- func (s *SetStickerSetThumb) SetFake()
- func (s *SetStickerSetThumb) SetName(val string)
- func (s *SetStickerSetThumb) SetThumb(val OptString)
- func (s *SetStickerSetThumb) SetUserID(val int64)
- func (s *SetStickerSetThumb) UnmarshalJSON(data []byte) error
- type SetWebhook
- func (s *SetWebhook) Decode(d *jx.Decoder) error
- func (s *SetWebhook) Encode(e *jx.Encoder)
- func (s *SetWebhook) GetAllowedUpdates() []string
- func (s *SetWebhook) GetCertificate() OptString
- func (s *SetWebhook) GetDropPendingUpdates() OptBool
- func (s *SetWebhook) GetIPAddress() OptString
- func (s *SetWebhook) GetMaxConnections() OptInt
- func (s *SetWebhook) GetURL() url.URL
- func (s *SetWebhook) MarshalJSON() ([]byte, error)
- func (s *SetWebhook) SetAllowedUpdates(val []string)
- func (s *SetWebhook) SetCertificate(val OptString)
- func (s *SetWebhook) SetDropPendingUpdates(val OptBool)
- func (s *SetWebhook) SetFake()
- func (s *SetWebhook) SetIPAddress(val OptString)
- func (s *SetWebhook) SetMaxConnections(val OptInt)
- func (s *SetWebhook) SetURL(val url.URL)
- func (s *SetWebhook) UnmarshalJSON(data []byte) error
- type ShippingAddress
- func (s *ShippingAddress) Decode(d *jx.Decoder) error
- func (s *ShippingAddress) Encode(e *jx.Encoder)
- func (s *ShippingAddress) GetCity() string
- func (s *ShippingAddress) GetCountryCode() string
- func (s *ShippingAddress) GetPostCode() string
- func (s *ShippingAddress) GetState() string
- func (s *ShippingAddress) GetStreetLine1() string
- func (s *ShippingAddress) GetStreetLine2() string
- func (s *ShippingAddress) MarshalJSON() ([]byte, error)
- func (s *ShippingAddress) SetCity(val string)
- func (s *ShippingAddress) SetCountryCode(val string)
- func (s *ShippingAddress) SetFake()
- func (s *ShippingAddress) SetPostCode(val string)
- func (s *ShippingAddress) SetState(val string)
- func (s *ShippingAddress) SetStreetLine1(val string)
- func (s *ShippingAddress) SetStreetLine2(val string)
- func (s *ShippingAddress) UnmarshalJSON(data []byte) error
- type ShippingOption
- func (s *ShippingOption) Decode(d *jx.Decoder) error
- func (s *ShippingOption) Encode(e *jx.Encoder)
- func (s *ShippingOption) GetID() string
- func (s *ShippingOption) GetPrices() []LabeledPrice
- func (s *ShippingOption) GetTitle() string
- func (s *ShippingOption) MarshalJSON() ([]byte, error)
- func (s *ShippingOption) SetFake()
- func (s *ShippingOption) SetID(val string)
- func (s *ShippingOption) SetPrices(val []LabeledPrice)
- func (s *ShippingOption) SetTitle(val string)
- func (s *ShippingOption) UnmarshalJSON(data []byte) error
- func (s *ShippingOption) Validate() error
- type ShippingQuery
- func (s *ShippingQuery) Decode(d *jx.Decoder) error
- func (s *ShippingQuery) Encode(e *jx.Encoder)
- func (s *ShippingQuery) GetFrom() User
- func (s *ShippingQuery) GetID() string
- func (s *ShippingQuery) GetInvoicePayload() string
- func (s *ShippingQuery) GetShippingAddress() ShippingAddress
- func (s *ShippingQuery) MarshalJSON() ([]byte, error)
- func (s *ShippingQuery) SetFake()
- func (s *ShippingQuery) SetFrom(val User)
- func (s *ShippingQuery) SetID(val string)
- func (s *ShippingQuery) SetInvoicePayload(val string)
- func (s *ShippingQuery) SetShippingAddress(val ShippingAddress)
- func (s *ShippingQuery) UnmarshalJSON(data []byte) error
- type Sticker
- func (s *Sticker) Decode(d *jx.Decoder) error
- func (s *Sticker) Encode(e *jx.Encoder)
- func (s *Sticker) GetEmoji() OptString
- func (s *Sticker) GetFileID() string
- func (s *Sticker) GetFileSize() OptInt
- func (s *Sticker) GetFileUniqueID() string
- func (s *Sticker) GetHeight() int
- func (s *Sticker) GetIsAnimated() bool
- func (s *Sticker) GetMaskPosition() OptMaskPosition
- func (s *Sticker) GetSetName() OptString
- func (s *Sticker) GetThumb() OptPhotoSize
- func (s *Sticker) GetWidth() int
- func (s *Sticker) MarshalJSON() ([]byte, error)
- func (s *Sticker) SetEmoji(val OptString)
- func (s *Sticker) SetFake()
- func (s *Sticker) SetFileID(val string)
- func (s *Sticker) SetFileSize(val OptInt)
- func (s *Sticker) SetFileUniqueID(val string)
- func (s *Sticker) SetHeight(val int)
- func (s *Sticker) SetIsAnimated(val bool)
- func (s *Sticker) SetMaskPosition(val OptMaskPosition)
- func (s *Sticker) SetSetName(val OptString)
- func (s *Sticker) SetThumb(val OptPhotoSize)
- func (s *Sticker) SetWidth(val int)
- func (s *Sticker) UnmarshalJSON(data []byte) error
- func (s *Sticker) Validate() error
- type StopMessageLiveLocation
- func (s *StopMessageLiveLocation) Decode(d *jx.Decoder) error
- func (s *StopMessageLiveLocation) Encode(e *jx.Encoder)
- func (s *StopMessageLiveLocation) GetChatID() OptID
- func (s *StopMessageLiveLocation) GetInlineMessageID() OptString
- func (s *StopMessageLiveLocation) GetMessageID() OptInt
- func (s *StopMessageLiveLocation) GetReplyMarkup() OptInlineKeyboardMarkup
- func (s *StopMessageLiveLocation) MarshalJSON() ([]byte, error)
- func (s *StopMessageLiveLocation) SetChatID(val OptID)
- func (s *StopMessageLiveLocation) SetFake()
- func (s *StopMessageLiveLocation) SetInlineMessageID(val OptString)
- func (s *StopMessageLiveLocation) SetMessageID(val OptInt)
- func (s *StopMessageLiveLocation) SetReplyMarkup(val OptInlineKeyboardMarkup)
- func (s *StopMessageLiveLocation) UnmarshalJSON(data []byte) error
- func (s *StopMessageLiveLocation) Validate() error
- type StopPoll
- func (s *StopPoll) Decode(d *jx.Decoder) error
- func (s *StopPoll) Encode(e *jx.Encoder)
- func (s *StopPoll) GetChatID() ID
- func (s *StopPoll) GetMessageID() int
- func (s *StopPoll) GetReplyMarkup() OptInlineKeyboardMarkup
- func (s *StopPoll) MarshalJSON() ([]byte, error)
- func (s *StopPoll) SetChatID(val ID)
- func (s *StopPoll) SetFake()
- func (s *StopPoll) SetMessageID(val int)
- func (s *StopPoll) SetReplyMarkup(val OptInlineKeyboardMarkup)
- func (s *StopPoll) UnmarshalJSON(data []byte) error
- func (s *StopPoll) Validate() error
- type SuccessfulPayment
- func (s *SuccessfulPayment) Decode(d *jx.Decoder) error
- func (s *SuccessfulPayment) Encode(e *jx.Encoder)
- func (s *SuccessfulPayment) GetCurrency() string
- func (s *SuccessfulPayment) GetInvoicePayload() string
- func (s *SuccessfulPayment) GetOrderInfo() OptOrderInfo
- func (s *SuccessfulPayment) GetProviderPaymentChargeID() string
- func (s *SuccessfulPayment) GetShippingOptionID() OptString
- func (s *SuccessfulPayment) GetTelegramPaymentChargeID() string
- func (s *SuccessfulPayment) GetTotalAmount() int
- func (s *SuccessfulPayment) MarshalJSON() ([]byte, error)
- func (s *SuccessfulPayment) SetCurrency(val string)
- func (s *SuccessfulPayment) SetFake()
- func (s *SuccessfulPayment) SetInvoicePayload(val string)
- func (s *SuccessfulPayment) SetOrderInfo(val OptOrderInfo)
- func (s *SuccessfulPayment) SetProviderPaymentChargeID(val string)
- func (s *SuccessfulPayment) SetShippingOptionID(val OptString)
- func (s *SuccessfulPayment) SetTelegramPaymentChargeID(val string)
- func (s *SuccessfulPayment) SetTotalAmount(val int)
- func (s *SuccessfulPayment) UnmarshalJSON(data []byte) error
- type UnbanChatMember
- func (s *UnbanChatMember) Decode(d *jx.Decoder) error
- func (s *UnbanChatMember) Encode(e *jx.Encoder)
- func (s *UnbanChatMember) GetChatID() ID
- func (s *UnbanChatMember) GetOnlyIfBanned() OptBool
- func (s *UnbanChatMember) GetUserID() int64
- func (s *UnbanChatMember) MarshalJSON() ([]byte, error)
- func (s *UnbanChatMember) SetChatID(val ID)
- func (s *UnbanChatMember) SetFake()
- func (s *UnbanChatMember) SetOnlyIfBanned(val OptBool)
- func (s *UnbanChatMember) SetUserID(val int64)
- func (s *UnbanChatMember) UnmarshalJSON(data []byte) error
- type UnbanChatSenderChat
- func (s *UnbanChatSenderChat) Decode(d *jx.Decoder) error
- func (s *UnbanChatSenderChat) Encode(e *jx.Encoder)
- func (s *UnbanChatSenderChat) GetChatID() ID
- func (s *UnbanChatSenderChat) GetSenderChatID() int64
- func (s *UnbanChatSenderChat) MarshalJSON() ([]byte, error)
- func (s *UnbanChatSenderChat) SetChatID(val ID)
- func (s *UnbanChatSenderChat) SetFake()
- func (s *UnbanChatSenderChat) SetSenderChatID(val int64)
- func (s *UnbanChatSenderChat) UnmarshalJSON(data []byte) error
- type UnimplementedHandler
- func (UnimplementedHandler) AddStickerToSet(ctx context.Context, req *AddStickerToSet) (r *Result, _ error)
- func (UnimplementedHandler) AnswerCallbackQuery(ctx context.Context, req *AnswerCallbackQuery) (r *Result, _ error)
- func (UnimplementedHandler) AnswerInlineQuery(ctx context.Context, req *AnswerInlineQuery) (r *Result, _ error)
- func (UnimplementedHandler) AnswerPreCheckoutQuery(ctx context.Context, req *AnswerPreCheckoutQuery) (r *Result, _ error)
- func (UnimplementedHandler) AnswerShippingQuery(ctx context.Context, req *AnswerShippingQuery) (r *Result, _ error)
- func (UnimplementedHandler) ApproveChatJoinRequest(ctx context.Context, req *ApproveChatJoinRequest) (r *Result, _ error)
- func (UnimplementedHandler) BanChatMember(ctx context.Context, req *BanChatMember) (r *Result, _ error)
- func (UnimplementedHandler) BanChatSenderChat(ctx context.Context, req *BanChatSenderChat) (r *Result, _ error)
- func (UnimplementedHandler) Close(ctx context.Context) (r *Result, _ error)
- func (UnimplementedHandler) CopyMessage(ctx context.Context, req *CopyMessage) (r *ResultMessageId, _ error)
- func (UnimplementedHandler) CreateChatInviteLink(ctx context.Context, req *CreateChatInviteLink) (r *ResultChatInviteLink, _ error)
- func (UnimplementedHandler) CreateNewStickerSet(ctx context.Context, req *CreateNewStickerSet) (r *Result, _ error)
- func (UnimplementedHandler) DeclineChatJoinRequest(ctx context.Context, req *DeclineChatJoinRequest) (r *Result, _ error)
- func (UnimplementedHandler) DeleteChatPhoto(ctx context.Context, req *DeleteChatPhoto) (r *Result, _ error)
- func (UnimplementedHandler) DeleteChatStickerSet(ctx context.Context, req *DeleteChatStickerSet) (r *Result, _ error)
- func (UnimplementedHandler) DeleteMessage(ctx context.Context, req *DeleteMessage) (r *Result, _ error)
- func (UnimplementedHandler) DeleteMyCommands(ctx context.Context, req OptDeleteMyCommands) (r *Result, _ error)
- func (UnimplementedHandler) DeleteStickerFromSet(ctx context.Context, req *DeleteStickerFromSet) (r *Result, _ error)
- func (UnimplementedHandler) DeleteWebhook(ctx context.Context, req OptDeleteWebhook) (r *Result, _ error)
- func (UnimplementedHandler) EditChatInviteLink(ctx context.Context, req *EditChatInviteLink) (r *ResultChatInviteLink, _ error)
- func (UnimplementedHandler) EditMessageCaption(ctx context.Context, req *EditMessageCaption) (r *Result, _ error)
- func (UnimplementedHandler) EditMessageLiveLocation(ctx context.Context, req *EditMessageLiveLocation) (r *Result, _ error)
- func (UnimplementedHandler) EditMessageMedia(ctx context.Context, req *EditMessageMedia) (r *Result, _ error)
- func (UnimplementedHandler) EditMessageReplyMarkup(ctx context.Context, req *EditMessageReplyMarkup) (r *Result, _ error)
- func (UnimplementedHandler) EditMessageText(ctx context.Context, req *EditMessageText) (r *Result, _ error)
- func (UnimplementedHandler) ExportChatInviteLink(ctx context.Context, req *ExportChatInviteLink) (r *ResultString, _ error)
- func (UnimplementedHandler) ForwardMessage(ctx context.Context, req *ForwardMessage) (r *ResultMessage, _ error)
- func (UnimplementedHandler) GetChat(ctx context.Context, req *GetChat) (r *ResultChat, _ error)
- func (UnimplementedHandler) GetChatAdministrators(ctx context.Context, req *GetChatAdministrators) (r *ResultArrayOfChatMember, _ error)
- func (UnimplementedHandler) GetChatMember(ctx context.Context, req *GetChatMember) (r *ResultChatMember, _ error)
- func (UnimplementedHandler) GetChatMemberCount(ctx context.Context, req *GetChatMemberCount) (r *ResultInt, _ error)
- func (UnimplementedHandler) GetFile(ctx context.Context, req *GetFile) (r *Result, _ error)
- func (UnimplementedHandler) GetGameHighScores(ctx context.Context, req *GetGameHighScores) (r *ResultArrayOfGameHighScore, _ error)
- func (UnimplementedHandler) GetMe(ctx context.Context) (r *ResultUser, _ error)
- func (UnimplementedHandler) GetMyCommands(ctx context.Context, req OptGetMyCommands) (r *ResultArrayOfBotCommand, _ error)
- func (UnimplementedHandler) GetStickerSet(ctx context.Context, req *GetStickerSet) (r *Result, _ error)
- func (UnimplementedHandler) GetUpdates(ctx context.Context, req OptGetUpdates) (r *ResultArrayOfUpdate, _ error)
- func (UnimplementedHandler) GetUserProfilePhotos(ctx context.Context, req *GetUserProfilePhotos) (r *ResultUserProfilePhotos, _ error)
- func (UnimplementedHandler) GetWebhookInfo(ctx context.Context) (r *ResultWebhookInfo, _ error)
- func (UnimplementedHandler) LeaveChat(ctx context.Context, req *LeaveChat) (r *Result, _ error)
- func (UnimplementedHandler) LogOut(ctx context.Context) (r *Result, _ error)
- func (UnimplementedHandler) NewError(ctx context.Context, err error) (r *ErrorStatusCode)
- func (UnimplementedHandler) PinChatMessage(ctx context.Context, req *PinChatMessage) (r *Result, _ error)
- func (UnimplementedHandler) PromoteChatMember(ctx context.Context, req *PromoteChatMember) (r *Result, _ error)
- func (UnimplementedHandler) RestrictChatMember(ctx context.Context, req *RestrictChatMember) (r *Result, _ error)
- func (UnimplementedHandler) RevokeChatInviteLink(ctx context.Context, req *RevokeChatInviteLink) (r *ResultChatInviteLink, _ error)
- func (UnimplementedHandler) SendAnimation(ctx context.Context, req *SendAnimation) (r *ResultMessage, _ error)
- func (UnimplementedHandler) SendAudio(ctx context.Context, req *SendAudio) (r *ResultMessage, _ error)
- func (UnimplementedHandler) SendChatAction(ctx context.Context, req *SendChatAction) (r *Result, _ error)
- func (UnimplementedHandler) SendContact(ctx context.Context, req *SendContact) (r *ResultMessage, _ error)
- func (UnimplementedHandler) SendDice(ctx context.Context, req *SendDice) (r *ResultMessage, _ error)
- func (UnimplementedHandler) SendDocument(ctx context.Context, req *SendDocument) (r *ResultMessage, _ error)
- func (UnimplementedHandler) SendGame(ctx context.Context, req *SendGame) (r *ResultMessage, _ error)
- func (UnimplementedHandler) SendInvoice(ctx context.Context, req *SendInvoice) (r *ResultMessage, _ error)
- func (UnimplementedHandler) SendLocation(ctx context.Context, req *SendLocation) (r *ResultMessage, _ error)
- func (UnimplementedHandler) SendMediaGroup(ctx context.Context, req *SendMediaGroup) (r *ResultArrayOfMessage, _ error)
- func (UnimplementedHandler) SendMessage(ctx context.Context, req *SendMessage) (r *ResultMessage, _ error)
- func (UnimplementedHandler) SendPhoto(ctx context.Context, req *SendPhoto) (r *ResultMessage, _ error)
- func (UnimplementedHandler) SendPoll(ctx context.Context, req *SendPoll) (r *ResultMessage, _ error)
- func (UnimplementedHandler) SendSticker(ctx context.Context, req *SendSticker) (r *ResultMessage, _ error)
- func (UnimplementedHandler) SendVenue(ctx context.Context, req *SendVenue) (r *ResultMessage, _ error)
- func (UnimplementedHandler) SendVideo(ctx context.Context, req *SendVideo) (r *ResultMessage, _ error)
- func (UnimplementedHandler) SendVideoNote(ctx context.Context, req *SendVideoNote) (r *ResultMessage, _ error)
- func (UnimplementedHandler) SendVoice(ctx context.Context, req *SendVoice) (r *ResultMessage, _ error)
- func (UnimplementedHandler) SetChatAdministratorCustomTitle(ctx context.Context, req *SetChatAdministratorCustomTitle) (r *Result, _ error)
- func (UnimplementedHandler) SetChatDescription(ctx context.Context, req *SetChatDescription) (r *Result, _ error)
- func (UnimplementedHandler) SetChatPermissions(ctx context.Context, req *SetChatPermissions) (r *Result, _ error)
- func (UnimplementedHandler) SetChatPhoto(ctx context.Context, req *SetChatPhoto) (r *Result, _ error)
- func (UnimplementedHandler) SetChatStickerSet(ctx context.Context, req *SetChatStickerSet) (r *Result, _ error)
- func (UnimplementedHandler) SetChatTitle(ctx context.Context, req *SetChatTitle) (r *Result, _ error)
- func (UnimplementedHandler) SetGameScore(ctx context.Context, req *SetGameScore) (r *Result, _ error)
- func (UnimplementedHandler) SetMyCommands(ctx context.Context, req *SetMyCommands) (r *Result, _ error)
- func (UnimplementedHandler) SetPassportDataErrors(ctx context.Context, req *SetPassportDataErrors) (r *Result, _ error)
- func (UnimplementedHandler) SetStickerPositionInSet(ctx context.Context, req *SetStickerPositionInSet) (r *Result, _ error)
- func (UnimplementedHandler) SetStickerSetThumb(ctx context.Context, req *SetStickerSetThumb) (r *Result, _ error)
- func (UnimplementedHandler) SetWebhook(ctx context.Context, req *SetWebhook) (r *Result, _ error)
- func (UnimplementedHandler) StopMessageLiveLocation(ctx context.Context, req *StopMessageLiveLocation) (r *Result, _ error)
- func (UnimplementedHandler) StopPoll(ctx context.Context, req *StopPoll) (r *ResultPoll, _ error)
- func (UnimplementedHandler) UnbanChatMember(ctx context.Context, req *UnbanChatMember) (r *Result, _ error)
- func (UnimplementedHandler) UnbanChatSenderChat(ctx context.Context, req *UnbanChatSenderChat) (r *Result, _ error)
- func (UnimplementedHandler) UnpinAllChatMessages(ctx context.Context, req *UnpinAllChatMessages) (r *Result, _ error)
- func (UnimplementedHandler) UnpinChatMessage(ctx context.Context, req *UnpinChatMessage) (r *Result, _ error)
- func (UnimplementedHandler) UploadStickerFile(ctx context.Context, req *UploadStickerFile) (r *ResultFile, _ error)
- type UnpinAllChatMessages
- func (s *UnpinAllChatMessages) Decode(d *jx.Decoder) error
- func (s *UnpinAllChatMessages) Encode(e *jx.Encoder)
- func (s *UnpinAllChatMessages) GetChatID() ID
- func (s *UnpinAllChatMessages) MarshalJSON() ([]byte, error)
- func (s *UnpinAllChatMessages) SetChatID(val ID)
- func (s *UnpinAllChatMessages) SetFake()
- func (s *UnpinAllChatMessages) UnmarshalJSON(data []byte) error
- type UnpinChatMessage
- func (s *UnpinChatMessage) Decode(d *jx.Decoder) error
- func (s *UnpinChatMessage) Encode(e *jx.Encoder)
- func (s *UnpinChatMessage) GetChatID() ID
- func (s *UnpinChatMessage) GetMessageID() OptInt
- func (s *UnpinChatMessage) MarshalJSON() ([]byte, error)
- func (s *UnpinChatMessage) SetChatID(val ID)
- func (s *UnpinChatMessage) SetFake()
- func (s *UnpinChatMessage) SetMessageID(val OptInt)
- func (s *UnpinChatMessage) UnmarshalJSON(data []byte) error
- type Update
- func (s *Update) Decode(d *jx.Decoder) error
- func (s *Update) Encode(e *jx.Encoder)
- func (s *Update) GetCallbackQuery() OptCallbackQuery
- func (s *Update) GetChannelPost() OptMessage
- func (s *Update) GetChatJoinRequest() OptChatJoinRequest
- func (s *Update) GetChatMember() OptChatMemberUpdated
- func (s *Update) GetChosenInlineResult() OptChosenInlineResult
- func (s *Update) GetEditedChannelPost() OptMessage
- func (s *Update) GetEditedMessage() OptMessage
- func (s *Update) GetInlineQuery() OptInlineQuery
- func (s *Update) GetMessage() OptMessage
- func (s *Update) GetMyChatMember() OptChatMemberUpdated
- func (s *Update) GetPoll() OptPoll
- func (s *Update) GetPollAnswer() OptPollAnswer
- func (s *Update) GetPreCheckoutQuery() OptPreCheckoutQuery
- func (s *Update) GetShippingQuery() OptShippingQuery
- func (s *Update) GetUpdateID() int
- func (s *Update) MarshalJSON() ([]byte, error)
- func (s *Update) SetCallbackQuery(val OptCallbackQuery)
- func (s *Update) SetChannelPost(val OptMessage)
- func (s *Update) SetChatJoinRequest(val OptChatJoinRequest)
- func (s *Update) SetChatMember(val OptChatMemberUpdated)
- func (s *Update) SetChosenInlineResult(val OptChosenInlineResult)
- func (s *Update) SetEditedChannelPost(val OptMessage)
- func (s *Update) SetEditedMessage(val OptMessage)
- func (s *Update) SetFake()
- func (s *Update) SetInlineQuery(val OptInlineQuery)
- func (s *Update) SetMessage(val OptMessage)
- func (s *Update) SetMyChatMember(val OptChatMemberUpdated)
- func (s *Update) SetPoll(val OptPoll)
- func (s *Update) SetPollAnswer(val OptPollAnswer)
- func (s *Update) SetPreCheckoutQuery(val OptPreCheckoutQuery)
- func (s *Update) SetShippingQuery(val OptShippingQuery)
- func (s *Update) SetUpdateID(val int)
- func (s *Update) UnmarshalJSON(data []byte) error
- func (s *Update) Validate() error
- type UploadStickerFile
- func (s *UploadStickerFile) Decode(d *jx.Decoder) error
- func (s *UploadStickerFile) Encode(e *jx.Encoder)
- func (s *UploadStickerFile) GetPNGSticker() string
- func (s *UploadStickerFile) GetUserID() int64
- func (s *UploadStickerFile) MarshalJSON() ([]byte, error)
- func (s *UploadStickerFile) SetFake()
- func (s *UploadStickerFile) SetPNGSticker(val string)
- func (s *UploadStickerFile) SetUserID(val int64)
- func (s *UploadStickerFile) UnmarshalJSON(data []byte) error
- type User
- func (s *User) Decode(d *jx.Decoder) error
- func (s *User) Encode(e *jx.Encoder)
- func (s *User) GetCanJoinGroups() OptBool
- func (s *User) GetCanReadAllGroupMessages() OptBool
- func (s *User) GetFirstName() string
- func (s *User) GetID() int64
- func (s *User) GetIsBot() bool
- func (s *User) GetLanguageCode() OptString
- func (s *User) GetLastName() OptString
- func (s *User) GetSupportsInlineQueries() OptBool
- func (s *User) GetUsername() OptString
- func (s *User) MarshalJSON() ([]byte, error)
- func (s *User) SetCanJoinGroups(val OptBool)
- func (s *User) SetCanReadAllGroupMessages(val OptBool)
- func (s *User) SetFake()
- func (s *User) SetFirstName(val string)
- func (s *User) SetID(val int64)
- func (s *User) SetIsBot(val bool)
- func (s *User) SetLanguageCode(val OptString)
- func (s *User) SetLastName(val OptString)
- func (s *User) SetSupportsInlineQueries(val OptBool)
- func (s *User) SetUsername(val OptString)
- func (s *User) UnmarshalJSON(data []byte) error
- type UserProfilePhotos
- func (s *UserProfilePhotos) Decode(d *jx.Decoder) error
- func (s *UserProfilePhotos) Encode(e *jx.Encoder)
- func (s *UserProfilePhotos) GetPhotos() [][]PhotoSize
- func (s *UserProfilePhotos) GetTotalCount() int
- func (s *UserProfilePhotos) MarshalJSON() ([]byte, error)
- func (s *UserProfilePhotos) SetFake()
- func (s *UserProfilePhotos) SetPhotos(val [][]PhotoSize)
- func (s *UserProfilePhotos) SetTotalCount(val int)
- func (s *UserProfilePhotos) UnmarshalJSON(data []byte) error
- func (s *UserProfilePhotos) Validate() error
- type Venue
- func (s *Venue) Decode(d *jx.Decoder) error
- func (s *Venue) Encode(e *jx.Encoder)
- func (s *Venue) GetAddress() string
- func (s *Venue) GetFoursquareID() OptString
- func (s *Venue) GetFoursquareType() OptString
- func (s *Venue) GetGooglePlaceID() OptString
- func (s *Venue) GetGooglePlaceType() OptString
- func (s *Venue) GetLocation() Location
- func (s *Venue) GetTitle() string
- func (s *Venue) MarshalJSON() ([]byte, error)
- func (s *Venue) SetAddress(val string)
- func (s *Venue) SetFake()
- func (s *Venue) SetFoursquareID(val OptString)
- func (s *Venue) SetFoursquareType(val OptString)
- func (s *Venue) SetGooglePlaceID(val OptString)
- func (s *Venue) SetGooglePlaceType(val OptString)
- func (s *Venue) SetLocation(val Location)
- func (s *Venue) SetTitle(val string)
- func (s *Venue) UnmarshalJSON(data []byte) error
- func (s *Venue) Validate() error
- type Video
- func (s *Video) Decode(d *jx.Decoder) error
- func (s *Video) Encode(e *jx.Encoder)
- func (s *Video) GetDuration() int
- func (s *Video) GetFileID() string
- func (s *Video) GetFileName() OptString
- func (s *Video) GetFileSize() OptInt
- func (s *Video) GetFileUniqueID() string
- func (s *Video) GetHeight() int
- func (s *Video) GetMimeType() OptString
- func (s *Video) GetThumb() OptPhotoSize
- func (s *Video) GetWidth() int
- func (s *Video) MarshalJSON() ([]byte, error)
- func (s *Video) SetDuration(val int)
- func (s *Video) SetFake()
- func (s *Video) SetFileID(val string)
- func (s *Video) SetFileName(val OptString)
- func (s *Video) SetFileSize(val OptInt)
- func (s *Video) SetFileUniqueID(val string)
- func (s *Video) SetHeight(val int)
- func (s *Video) SetMimeType(val OptString)
- func (s *Video) SetThumb(val OptPhotoSize)
- func (s *Video) SetWidth(val int)
- func (s *Video) UnmarshalJSON(data []byte) error
- func (s *Video) Validate() error
- type VideoNote
- func (s *VideoNote) Decode(d *jx.Decoder) error
- func (s *VideoNote) Encode(e *jx.Encoder)
- func (s *VideoNote) GetDuration() int
- func (s *VideoNote) GetFileID() string
- func (s *VideoNote) GetFileSize() OptInt
- func (s *VideoNote) GetFileUniqueID() string
- func (s *VideoNote) GetLength() int
- func (s *VideoNote) GetThumb() OptPhotoSize
- func (s *VideoNote) MarshalJSON() ([]byte, error)
- func (s *VideoNote) SetDuration(val int)
- func (s *VideoNote) SetFake()
- func (s *VideoNote) SetFileID(val string)
- func (s *VideoNote) SetFileSize(val OptInt)
- func (s *VideoNote) SetFileUniqueID(val string)
- func (s *VideoNote) SetLength(val int)
- func (s *VideoNote) SetThumb(val OptPhotoSize)
- func (s *VideoNote) UnmarshalJSON(data []byte) error
- func (s *VideoNote) Validate() error
- type Voice
- func (s *Voice) Decode(d *jx.Decoder) error
- func (s *Voice) Encode(e *jx.Encoder)
- func (s *Voice) GetDuration() int
- func (s *Voice) GetFileID() string
- func (s *Voice) GetFileSize() OptInt
- func (s *Voice) GetFileUniqueID() string
- func (s *Voice) GetMimeType() OptString
- func (s *Voice) MarshalJSON() ([]byte, error)
- func (s *Voice) SetDuration(val int)
- func (s *Voice) SetFake()
- func (s *Voice) SetFileID(val string)
- func (s *Voice) SetFileSize(val OptInt)
- func (s *Voice) SetFileUniqueID(val string)
- func (s *Voice) SetMimeType(val OptString)
- func (s *Voice) UnmarshalJSON(data []byte) error
- func (s *Voice) Validate() error
- type VoiceChatEnded
- func (s *VoiceChatEnded) Decode(d *jx.Decoder) error
- func (s *VoiceChatEnded) Encode(e *jx.Encoder)
- func (s *VoiceChatEnded) GetDuration() int
- func (s *VoiceChatEnded) MarshalJSON() ([]byte, error)
- func (s *VoiceChatEnded) SetDuration(val int)
- func (s *VoiceChatEnded) SetFake()
- func (s *VoiceChatEnded) UnmarshalJSON(data []byte) error
- func (s *VoiceChatEnded) Validate() error
- type VoiceChatParticipantsInvited
- func (s *VoiceChatParticipantsInvited) Decode(d *jx.Decoder) error
- func (s *VoiceChatParticipantsInvited) Encode(e *jx.Encoder)
- func (s *VoiceChatParticipantsInvited) GetUsers() []User
- func (s *VoiceChatParticipantsInvited) MarshalJSON() ([]byte, error)
- func (s *VoiceChatParticipantsInvited) SetFake()
- func (s *VoiceChatParticipantsInvited) SetUsers(val []User)
- func (s *VoiceChatParticipantsInvited) UnmarshalJSON(data []byte) error
- type VoiceChatScheduled
- func (s *VoiceChatScheduled) Decode(d *jx.Decoder) error
- func (s *VoiceChatScheduled) Encode(e *jx.Encoder)
- func (s *VoiceChatScheduled) GetStartDate() int
- func (s *VoiceChatScheduled) MarshalJSON() ([]byte, error)
- func (s *VoiceChatScheduled) SetFake()
- func (s *VoiceChatScheduled) SetStartDate(val int)
- func (s *VoiceChatScheduled) UnmarshalJSON(data []byte) error
- type VoiceChatStarted
- type WebhookInfo
- func (s *WebhookInfo) Decode(d *jx.Decoder) error
- func (s *WebhookInfo) Encode(e *jx.Encoder)
- func (s *WebhookInfo) GetAllowedUpdates() []string
- func (s *WebhookInfo) GetHasCustomCertificate() bool
- func (s *WebhookInfo) GetIPAddress() OptString
- func (s *WebhookInfo) GetLastErrorDate() OptInt
- func (s *WebhookInfo) GetLastErrorMessage() OptString
- func (s *WebhookInfo) GetMaxConnections() OptInt
- func (s *WebhookInfo) GetPendingUpdateCount() int
- func (s *WebhookInfo) GetURL() url.URL
- func (s *WebhookInfo) MarshalJSON() ([]byte, error)
- func (s *WebhookInfo) SetAllowedUpdates(val []string)
- func (s *WebhookInfo) SetFake()
- func (s *WebhookInfo) SetHasCustomCertificate(val bool)
- func (s *WebhookInfo) SetIPAddress(val OptString)
- func (s *WebhookInfo) SetLastErrorDate(val OptInt)
- func (s *WebhookInfo) SetLastErrorMessage(val OptString)
- func (s *WebhookInfo) SetMaxConnections(val OptInt)
- func (s *WebhookInfo) SetPendingUpdateCount(val int)
- func (s *WebhookInfo) SetURL(val url.URL)
- func (s *WebhookInfo) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddStickerToSet ¶
type AddStickerToSet struct { // User identifier of sticker set owner. UserID int64 `json:"user_id"` // Sticker set name. Name string `json:"name"` // PNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, // and either width or height must be exactly 512px. Pass a file_id as a String to send a file that // already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file // from the Internet, or upload a new one using multipart/form-data. More info on Sending Files ». PNGSticker OptString `json:"png_sticker"` // TGS animation with the sticker, uploaded using multipart/form-data. See https://core.telegram. // org/animated_stickers#technical-requirements for technical requirements. TgsSticker OptString `json:"tgs_sticker"` // One or more emoji corresponding to the sticker. Emojis string `json:"emojis"` MaskPosition OptMaskPosition `json:"mask_position"` }
Input for addStickerToSet. Ref: #/components/schemas/addStickerToSet
func (*AddStickerToSet) Decode ¶
func (s *AddStickerToSet) Decode(d *jx.Decoder) error
Decode decodes AddStickerToSet from json.
func (*AddStickerToSet) Encode ¶
func (s *AddStickerToSet) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AddStickerToSet) GetEmojis ¶
func (s *AddStickerToSet) GetEmojis() string
GetEmojis returns the value of Emojis.
func (*AddStickerToSet) GetMaskPosition ¶
func (s *AddStickerToSet) GetMaskPosition() OptMaskPosition
GetMaskPosition returns the value of MaskPosition.
func (*AddStickerToSet) GetName ¶
func (s *AddStickerToSet) GetName() string
GetName returns the value of Name.
func (*AddStickerToSet) GetPNGSticker ¶
func (s *AddStickerToSet) GetPNGSticker() OptString
GetPNGSticker returns the value of PNGSticker.
func (*AddStickerToSet) GetTgsSticker ¶
func (s *AddStickerToSet) GetTgsSticker() OptString
GetTgsSticker returns the value of TgsSticker.
func (*AddStickerToSet) GetUserID ¶
func (s *AddStickerToSet) GetUserID() int64
GetUserID returns the value of UserID.
func (*AddStickerToSet) MarshalJSON ¶
func (s *AddStickerToSet) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AddStickerToSet) SetEmojis ¶
func (s *AddStickerToSet) SetEmojis(val string)
SetEmojis sets the value of Emojis.
func (*AddStickerToSet) SetMaskPosition ¶
func (s *AddStickerToSet) SetMaskPosition(val OptMaskPosition)
SetMaskPosition sets the value of MaskPosition.
func (*AddStickerToSet) SetName ¶
func (s *AddStickerToSet) SetName(val string)
SetName sets the value of Name.
func (*AddStickerToSet) SetPNGSticker ¶
func (s *AddStickerToSet) SetPNGSticker(val OptString)
SetPNGSticker sets the value of PNGSticker.
func (*AddStickerToSet) SetTgsSticker ¶
func (s *AddStickerToSet) SetTgsSticker(val OptString)
SetTgsSticker sets the value of TgsSticker.
func (*AddStickerToSet) SetUserID ¶
func (s *AddStickerToSet) SetUserID(val int64)
SetUserID sets the value of UserID.
func (*AddStickerToSet) UnmarshalJSON ¶
func (s *AddStickerToSet) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*AddStickerToSet) Validate ¶
func (s *AddStickerToSet) Validate() error
type Animation ¶
type Animation struct { // Identifier for this file, which can be used to download or reuse the file. FileID string `json:"file_id"` // Unique identifier for this file, which is supposed to be the same over time and for different bots. // Can't be used to download or reuse the file. FileUniqueID string `json:"file_unique_id"` // Video width as defined by sender. Width int `json:"width"` // Video height as defined by sender. Height int `json:"height"` // Duration of the video in seconds as defined by sender. Duration int `json:"duration"` Thumb OptPhotoSize `json:"thumb"` // Original animation filename as defined by sender. FileName OptString `json:"file_name"` // MIME type of the file as defined by sender. MimeType OptString `json:"mime_type"` // File size in bytes. FileSize OptInt `json:"file_size"` }
This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound). Ref: #/components/schemas/Animation
func (*Animation) GetDuration ¶
GetDuration returns the value of Duration.
func (*Animation) GetFileName ¶
GetFileName returns the value of FileName.
func (*Animation) GetFileSize ¶
GetFileSize returns the value of FileSize.
func (*Animation) GetFileUniqueID ¶
GetFileUniqueID returns the value of FileUniqueID.
func (*Animation) GetMimeType ¶
GetMimeType returns the value of MimeType.
func (*Animation) GetThumb ¶
func (s *Animation) GetThumb() OptPhotoSize
GetThumb returns the value of Thumb.
func (*Animation) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Animation) SetDuration ¶
SetDuration sets the value of Duration.
func (*Animation) SetFileName ¶
SetFileName sets the value of FileName.
func (*Animation) SetFileSize ¶
SetFileSize sets the value of FileSize.
func (*Animation) SetFileUniqueID ¶
SetFileUniqueID sets the value of FileUniqueID.
func (*Animation) SetMimeType ¶
SetMimeType sets the value of MimeType.
func (*Animation) SetThumb ¶
func (s *Animation) SetThumb(val OptPhotoSize)
SetThumb sets the value of Thumb.
func (*Animation) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type AnswerCallbackQuery ¶
type AnswerCallbackQuery struct { // Unique identifier for the query to be answered. CallbackQueryID string `json:"callback_query_id"` // Text of the notification. If not specified, nothing will be shown to the user, 0-200 characters. Text OptString `json:"text"` // If True, an alert will be shown by the client instead of a notification at the top of the chat // screen. Defaults to false. ShowAlert OptBool `json:"show_alert"` // URL that will be opened by the user's client. If you have created a Game and accepted the // conditions via @Botfather, specify the URL that opens your game — note that this will only work // if the query comes from a callback_game button.Otherwise, you may use links like t. // me/your_bot?start=XXXX that open your bot with a parameter. URL OptURI `json:"url"` // The maximum amount of time in seconds that the result of the callback query may be cached // client-side. Telegram apps will support caching starting in version 3.14. Defaults to 0. CacheTime OptInt `json:"cache_time"` }
Input for answerCallbackQuery. Ref: #/components/schemas/answerCallbackQuery
func (*AnswerCallbackQuery) Decode ¶
func (s *AnswerCallbackQuery) Decode(d *jx.Decoder) error
Decode decodes AnswerCallbackQuery from json.
func (*AnswerCallbackQuery) Encode ¶
func (s *AnswerCallbackQuery) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AnswerCallbackQuery) GetCacheTime ¶
func (s *AnswerCallbackQuery) GetCacheTime() OptInt
GetCacheTime returns the value of CacheTime.
func (*AnswerCallbackQuery) GetCallbackQueryID ¶
func (s *AnswerCallbackQuery) GetCallbackQueryID() string
GetCallbackQueryID returns the value of CallbackQueryID.
func (*AnswerCallbackQuery) GetShowAlert ¶
func (s *AnswerCallbackQuery) GetShowAlert() OptBool
GetShowAlert returns the value of ShowAlert.
func (*AnswerCallbackQuery) GetText ¶
func (s *AnswerCallbackQuery) GetText() OptString
GetText returns the value of Text.
func (*AnswerCallbackQuery) GetURL ¶
func (s *AnswerCallbackQuery) GetURL() OptURI
GetURL returns the value of URL.
func (*AnswerCallbackQuery) MarshalJSON ¶
func (s *AnswerCallbackQuery) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AnswerCallbackQuery) SetCacheTime ¶
func (s *AnswerCallbackQuery) SetCacheTime(val OptInt)
SetCacheTime sets the value of CacheTime.
func (*AnswerCallbackQuery) SetCallbackQueryID ¶
func (s *AnswerCallbackQuery) SetCallbackQueryID(val string)
SetCallbackQueryID sets the value of CallbackQueryID.
func (*AnswerCallbackQuery) SetFake ¶
func (s *AnswerCallbackQuery) SetFake()
SetFake set fake values.
func (*AnswerCallbackQuery) SetShowAlert ¶
func (s *AnswerCallbackQuery) SetShowAlert(val OptBool)
SetShowAlert sets the value of ShowAlert.
func (*AnswerCallbackQuery) SetText ¶
func (s *AnswerCallbackQuery) SetText(val OptString)
SetText sets the value of Text.
func (*AnswerCallbackQuery) SetURL ¶
func (s *AnswerCallbackQuery) SetURL(val OptURI)
SetURL sets the value of URL.
func (*AnswerCallbackQuery) UnmarshalJSON ¶
func (s *AnswerCallbackQuery) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*AnswerCallbackQuery) Validate ¶
func (s *AnswerCallbackQuery) Validate() error
type AnswerInlineQuery ¶
type AnswerInlineQuery struct { // Unique identifier for the answered query. InlineQueryID string `json:"inline_query_id"` // A JSON-serialized array of results for the inline query. Results []InlineQueryResult `json:"results"` // The maximum amount of time in seconds that the result of the inline query may be cached on the // server. Defaults to 300. CacheTime OptInt `json:"cache_time"` // Pass True, if results may be cached on the server side only for the user that sent the query. By // default, results may be returned to any user who sends the same query. IsPersonal OptBool `json:"is_personal"` // Pass the offset that a client should send in the next query with the same text to receive more // results. Pass an empty string if there are no more results or if you don't support pagination. // Offset length can't exceed 64 bytes. NextOffset OptString `json:"next_offset"` // If passed, clients will display a button with specified text that switches the user to a private // chat with the bot and sends the bot a start message with the parameter switch_pm_parameter. SwitchPmText OptString `json:"switch_pm_text"` // Deep-linking parameter for the /start message sent to the bot when user presses the switch button. // 1-64 characters, only A-Z, a-z, 0-9, _ and - are allowed.Example: An inline bot that sends YouTube // videos can ask the user to connect the bot to their YouTube account to adapt search results // accordingly. To do this, it displays a 'Connect your YouTube account' button above the results, or // even before showing any. The user presses the button, switches to a private chat with the bot and, // in doing so, passes a start parameter that instructs the bot to return an OAuth link. Once done, // the bot can offer a switch_inline button so that the user can easily return to the chat where they // wanted to use the bot's inline capabilities. SwitchPmParameter OptString `json:"switch_pm_parameter"` }
Input for answerInlineQuery. Ref: #/components/schemas/answerInlineQuery
func (*AnswerInlineQuery) Decode ¶
func (s *AnswerInlineQuery) Decode(d *jx.Decoder) error
Decode decodes AnswerInlineQuery from json.
func (*AnswerInlineQuery) Encode ¶
func (s *AnswerInlineQuery) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AnswerInlineQuery) GetCacheTime ¶
func (s *AnswerInlineQuery) GetCacheTime() OptInt
GetCacheTime returns the value of CacheTime.
func (*AnswerInlineQuery) GetInlineQueryID ¶
func (s *AnswerInlineQuery) GetInlineQueryID() string
GetInlineQueryID returns the value of InlineQueryID.
func (*AnswerInlineQuery) GetIsPersonal ¶
func (s *AnswerInlineQuery) GetIsPersonal() OptBool
GetIsPersonal returns the value of IsPersonal.
func (*AnswerInlineQuery) GetNextOffset ¶
func (s *AnswerInlineQuery) GetNextOffset() OptString
GetNextOffset returns the value of NextOffset.
func (*AnswerInlineQuery) GetResults ¶
func (s *AnswerInlineQuery) GetResults() []InlineQueryResult
GetResults returns the value of Results.
func (*AnswerInlineQuery) GetSwitchPmParameter ¶
func (s *AnswerInlineQuery) GetSwitchPmParameter() OptString
GetSwitchPmParameter returns the value of SwitchPmParameter.
func (*AnswerInlineQuery) GetSwitchPmText ¶
func (s *AnswerInlineQuery) GetSwitchPmText() OptString
GetSwitchPmText returns the value of SwitchPmText.
func (*AnswerInlineQuery) MarshalJSON ¶
func (s *AnswerInlineQuery) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AnswerInlineQuery) SetCacheTime ¶
func (s *AnswerInlineQuery) SetCacheTime(val OptInt)
SetCacheTime sets the value of CacheTime.
func (*AnswerInlineQuery) SetInlineQueryID ¶
func (s *AnswerInlineQuery) SetInlineQueryID(val string)
SetInlineQueryID sets the value of InlineQueryID.
func (*AnswerInlineQuery) SetIsPersonal ¶
func (s *AnswerInlineQuery) SetIsPersonal(val OptBool)
SetIsPersonal sets the value of IsPersonal.
func (*AnswerInlineQuery) SetNextOffset ¶
func (s *AnswerInlineQuery) SetNextOffset(val OptString)
SetNextOffset sets the value of NextOffset.
func (*AnswerInlineQuery) SetResults ¶
func (s *AnswerInlineQuery) SetResults(val []InlineQueryResult)
SetResults sets the value of Results.
func (*AnswerInlineQuery) SetSwitchPmParameter ¶
func (s *AnswerInlineQuery) SetSwitchPmParameter(val OptString)
SetSwitchPmParameter sets the value of SwitchPmParameter.
func (*AnswerInlineQuery) SetSwitchPmText ¶
func (s *AnswerInlineQuery) SetSwitchPmText(val OptString)
SetSwitchPmText sets the value of SwitchPmText.
func (*AnswerInlineQuery) UnmarshalJSON ¶
func (s *AnswerInlineQuery) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*AnswerInlineQuery) Validate ¶
func (s *AnswerInlineQuery) Validate() error
type AnswerPreCheckoutQuery ¶
type AnswerPreCheckoutQuery struct { // Unique identifier for the query to be answered. PreCheckoutQueryID string `json:"pre_checkout_query_id"` // Specify True if everything is alright (goods are available, etc.) and the bot is ready to proceed // with the order. Use False if there are any problems. Ok bool `json:"ok"` // Required if ok is False. Error message in human readable form that explains the reason for failure // to proceed with the checkout (e.g. "Sorry, somebody just bought the last of our amazing black // T-shirts while you were busy filling out your payment details. Please choose a different color or // garment!"). Telegram will display this message to the user. ErrorMessage OptString `json:"error_message"` }
Input for answerPreCheckoutQuery. Ref: #/components/schemas/answerPreCheckoutQuery
func (*AnswerPreCheckoutQuery) Decode ¶
func (s *AnswerPreCheckoutQuery) Decode(d *jx.Decoder) error
Decode decodes AnswerPreCheckoutQuery from json.
func (*AnswerPreCheckoutQuery) Encode ¶
func (s *AnswerPreCheckoutQuery) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AnswerPreCheckoutQuery) GetErrorMessage ¶
func (s *AnswerPreCheckoutQuery) GetErrorMessage() OptString
GetErrorMessage returns the value of ErrorMessage.
func (*AnswerPreCheckoutQuery) GetOk ¶
func (s *AnswerPreCheckoutQuery) GetOk() bool
GetOk returns the value of Ok.
func (*AnswerPreCheckoutQuery) GetPreCheckoutQueryID ¶
func (s *AnswerPreCheckoutQuery) GetPreCheckoutQueryID() string
GetPreCheckoutQueryID returns the value of PreCheckoutQueryID.
func (*AnswerPreCheckoutQuery) MarshalJSON ¶
func (s *AnswerPreCheckoutQuery) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AnswerPreCheckoutQuery) SetErrorMessage ¶
func (s *AnswerPreCheckoutQuery) SetErrorMessage(val OptString)
SetErrorMessage sets the value of ErrorMessage.
func (*AnswerPreCheckoutQuery) SetFake ¶
func (s *AnswerPreCheckoutQuery) SetFake()
SetFake set fake values.
func (*AnswerPreCheckoutQuery) SetOk ¶
func (s *AnswerPreCheckoutQuery) SetOk(val bool)
SetOk sets the value of Ok.
func (*AnswerPreCheckoutQuery) SetPreCheckoutQueryID ¶
func (s *AnswerPreCheckoutQuery) SetPreCheckoutQueryID(val string)
SetPreCheckoutQueryID sets the value of PreCheckoutQueryID.
func (*AnswerPreCheckoutQuery) UnmarshalJSON ¶
func (s *AnswerPreCheckoutQuery) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type AnswerShippingQuery ¶
type AnswerShippingQuery struct { // Unique identifier for the query to be answered. ShippingQueryID string `json:"shipping_query_id"` // Specify True if delivery to the specified address is possible and False if there are any problems // (for example, if delivery to the specified address is not possible). Ok bool `json:"ok"` // Required if ok is True. A JSON-serialized array of available shipping options. ShippingOptions []ShippingOption `json:"shipping_options"` // Required if ok is False. Error message in human readable form that explains why it is impossible // to complete the order (e.g. "Sorry, delivery to your desired address is unavailable'). Telegram // will display this message to the user. ErrorMessage OptString `json:"error_message"` }
Input for answerShippingQuery. Ref: #/components/schemas/answerShippingQuery
func (*AnswerShippingQuery) Decode ¶
func (s *AnswerShippingQuery) Decode(d *jx.Decoder) error
Decode decodes AnswerShippingQuery from json.
func (*AnswerShippingQuery) Encode ¶
func (s *AnswerShippingQuery) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*AnswerShippingQuery) GetErrorMessage ¶
func (s *AnswerShippingQuery) GetErrorMessage() OptString
GetErrorMessage returns the value of ErrorMessage.
func (*AnswerShippingQuery) GetOk ¶
func (s *AnswerShippingQuery) GetOk() bool
GetOk returns the value of Ok.
func (*AnswerShippingQuery) GetShippingOptions ¶
func (s *AnswerShippingQuery) GetShippingOptions() []ShippingOption
GetShippingOptions returns the value of ShippingOptions.
func (*AnswerShippingQuery) GetShippingQueryID ¶
func (s *AnswerShippingQuery) GetShippingQueryID() string
GetShippingQueryID returns the value of ShippingQueryID.
func (*AnswerShippingQuery) MarshalJSON ¶
func (s *AnswerShippingQuery) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*AnswerShippingQuery) SetErrorMessage ¶
func (s *AnswerShippingQuery) SetErrorMessage(val OptString)
SetErrorMessage sets the value of ErrorMessage.
func (*AnswerShippingQuery) SetFake ¶
func (s *AnswerShippingQuery) SetFake()
SetFake set fake values.
func (*AnswerShippingQuery) SetOk ¶
func (s *AnswerShippingQuery) SetOk(val bool)
SetOk sets the value of Ok.
func (*AnswerShippingQuery) SetShippingOptions ¶
func (s *AnswerShippingQuery) SetShippingOptions(val []ShippingOption)
SetShippingOptions sets the value of ShippingOptions.
func (*AnswerShippingQuery) SetShippingQueryID ¶
func (s *AnswerShippingQuery) SetShippingQueryID(val string)
SetShippingQueryID sets the value of ShippingQueryID.
func (*AnswerShippingQuery) UnmarshalJSON ¶
func (s *AnswerShippingQuery) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*AnswerShippingQuery) Validate ¶
func (s *AnswerShippingQuery) Validate() error
type ApproveChatJoinRequest ¶
type ApproveChatJoinRequest struct { ChatID ID `json:"chat_id"` // Unique identifier of the target user. UserID int64 `json:"user_id"` }
Input for approveChatJoinRequest. Ref: #/components/schemas/approveChatJoinRequest
func (*ApproveChatJoinRequest) Decode ¶
func (s *ApproveChatJoinRequest) Decode(d *jx.Decoder) error
Decode decodes ApproveChatJoinRequest from json.
func (*ApproveChatJoinRequest) Encode ¶
func (s *ApproveChatJoinRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ApproveChatJoinRequest) GetChatID ¶
func (s *ApproveChatJoinRequest) GetChatID() ID
GetChatID returns the value of ChatID.
func (*ApproveChatJoinRequest) GetUserID ¶
func (s *ApproveChatJoinRequest) GetUserID() int64
GetUserID returns the value of UserID.
func (*ApproveChatJoinRequest) MarshalJSON ¶
func (s *ApproveChatJoinRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ApproveChatJoinRequest) SetChatID ¶
func (s *ApproveChatJoinRequest) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*ApproveChatJoinRequest) SetFake ¶
func (s *ApproveChatJoinRequest) SetFake()
SetFake set fake values.
func (*ApproveChatJoinRequest) SetUserID ¶
func (s *ApproveChatJoinRequest) SetUserID(val int64)
SetUserID sets the value of UserID.
func (*ApproveChatJoinRequest) UnmarshalJSON ¶
func (s *ApproveChatJoinRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Audio ¶
type Audio struct { // Identifier for this file, which can be used to download or reuse the file. FileID string `json:"file_id"` // Unique identifier for this file, which is supposed to be the same over time and for different bots. // Can't be used to download or reuse the file. FileUniqueID string `json:"file_unique_id"` // Duration of the audio in seconds as defined by sender. Duration int `json:"duration"` // Performer of the audio as defined by sender or by audio tags. Performer OptString `json:"performer"` // Title of the audio as defined by sender or by audio tags. Title OptString `json:"title"` // Original filename as defined by sender. FileName OptString `json:"file_name"` // MIME type of the file as defined by sender. MimeType OptString `json:"mime_type"` // File size in bytes. FileSize OptInt `json:"file_size"` Thumb OptPhotoSize `json:"thumb"` }
This object represents an audio file to be treated as music by the Telegram clients. Ref: #/components/schemas/Audio
func (*Audio) GetDuration ¶
GetDuration returns the value of Duration.
func (*Audio) GetFileName ¶
GetFileName returns the value of FileName.
func (*Audio) GetFileSize ¶
GetFileSize returns the value of FileSize.
func (*Audio) GetFileUniqueID ¶
GetFileUniqueID returns the value of FileUniqueID.
func (*Audio) GetMimeType ¶
GetMimeType returns the value of MimeType.
func (*Audio) GetPerformer ¶
GetPerformer returns the value of Performer.
func (*Audio) GetThumb ¶
func (s *Audio) GetThumb() OptPhotoSize
GetThumb returns the value of Thumb.
func (*Audio) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Audio) SetDuration ¶
SetDuration sets the value of Duration.
func (*Audio) SetFileName ¶
SetFileName sets the value of FileName.
func (*Audio) SetFileSize ¶
SetFileSize sets the value of FileSize.
func (*Audio) SetFileUniqueID ¶
SetFileUniqueID sets the value of FileUniqueID.
func (*Audio) SetMimeType ¶
SetMimeType sets the value of MimeType.
func (*Audio) SetPerformer ¶
SetPerformer sets the value of Performer.
func (*Audio) SetThumb ¶
func (s *Audio) SetThumb(val OptPhotoSize)
SetThumb sets the value of Thumb.
func (*Audio) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type BanChatMember ¶
type BanChatMember struct { ChatID ID `json:"chat_id"` // Unique identifier of the target user. UserID int64 `json:"user_id"` // Date when the user will be unbanned, unix time. If user is banned for more than 366 days or less // than 30 seconds from the current time they are considered to be banned forever. Applied for // supergroups and channels only. UntilDate OptInt `json:"until_date"` // Pass True to delete all messages from the chat for the user that is being removed. If False, the // user will be able to see messages in the group that were sent before the user was removed. Always // True for supergroups and channels. RevokeMessages OptBool `json:"revoke_messages"` }
Input for banChatMember. Ref: #/components/schemas/banChatMember
func (*BanChatMember) Decode ¶
func (s *BanChatMember) Decode(d *jx.Decoder) error
Decode decodes BanChatMember from json.
func (*BanChatMember) Encode ¶
func (s *BanChatMember) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*BanChatMember) GetChatID ¶
func (s *BanChatMember) GetChatID() ID
GetChatID returns the value of ChatID.
func (*BanChatMember) GetRevokeMessages ¶
func (s *BanChatMember) GetRevokeMessages() OptBool
GetRevokeMessages returns the value of RevokeMessages.
func (*BanChatMember) GetUntilDate ¶
func (s *BanChatMember) GetUntilDate() OptInt
GetUntilDate returns the value of UntilDate.
func (*BanChatMember) GetUserID ¶
func (s *BanChatMember) GetUserID() int64
GetUserID returns the value of UserID.
func (*BanChatMember) MarshalJSON ¶
func (s *BanChatMember) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*BanChatMember) SetChatID ¶
func (s *BanChatMember) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*BanChatMember) SetRevokeMessages ¶
func (s *BanChatMember) SetRevokeMessages(val OptBool)
SetRevokeMessages sets the value of RevokeMessages.
func (*BanChatMember) SetUntilDate ¶
func (s *BanChatMember) SetUntilDate(val OptInt)
SetUntilDate sets the value of UntilDate.
func (*BanChatMember) SetUserID ¶
func (s *BanChatMember) SetUserID(val int64)
SetUserID sets the value of UserID.
func (*BanChatMember) UnmarshalJSON ¶
func (s *BanChatMember) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type BanChatSenderChat ¶
type BanChatSenderChat struct { ChatID ID `json:"chat_id"` // Unique identifier of the target sender chat. SenderChatID int64 `json:"sender_chat_id"` }
Input for banChatSenderChat. Ref: #/components/schemas/banChatSenderChat
func (*BanChatSenderChat) Decode ¶
func (s *BanChatSenderChat) Decode(d *jx.Decoder) error
Decode decodes BanChatSenderChat from json.
func (*BanChatSenderChat) Encode ¶
func (s *BanChatSenderChat) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*BanChatSenderChat) GetChatID ¶
func (s *BanChatSenderChat) GetChatID() ID
GetChatID returns the value of ChatID.
func (*BanChatSenderChat) GetSenderChatID ¶
func (s *BanChatSenderChat) GetSenderChatID() int64
GetSenderChatID returns the value of SenderChatID.
func (*BanChatSenderChat) MarshalJSON ¶
func (s *BanChatSenderChat) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*BanChatSenderChat) SetChatID ¶
func (s *BanChatSenderChat) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*BanChatSenderChat) SetSenderChatID ¶
func (s *BanChatSenderChat) SetSenderChatID(val int64)
SetSenderChatID sets the value of SenderChatID.
func (*BanChatSenderChat) UnmarshalJSON ¶
func (s *BanChatSenderChat) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type BotCommand ¶
type BotCommand struct { // Text of the command, 1-32 characters. Can contain only lowercase English letters, digits and // underscores. Command string `json:"command"` // Description of the command, 3-256 characters. Description string `json:"description"` }
This object represents a bot command. Ref: #/components/schemas/BotCommand
func (*BotCommand) Decode ¶
func (s *BotCommand) Decode(d *jx.Decoder) error
Decode decodes BotCommand from json.
func (*BotCommand) Encode ¶
func (s *BotCommand) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*BotCommand) GetCommand ¶
func (s *BotCommand) GetCommand() string
GetCommand returns the value of Command.
func (*BotCommand) GetDescription ¶
func (s *BotCommand) GetDescription() string
GetDescription returns the value of Description.
func (*BotCommand) MarshalJSON ¶
func (s *BotCommand) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*BotCommand) SetCommand ¶
func (s *BotCommand) SetCommand(val string)
SetCommand sets the value of Command.
func (*BotCommand) SetDescription ¶
func (s *BotCommand) SetDescription(val string)
SetDescription sets the value of Description.
func (*BotCommand) UnmarshalJSON ¶
func (s *BotCommand) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*BotCommand) Validate ¶
func (s *BotCommand) Validate() error
type BotCommandScope ¶
type BotCommandScope struct { Type BotCommandScopeType // switch on this field BotCommandScopeDefault BotCommandScopeDefault BotCommandScopeAllPrivateChats BotCommandScopeAllPrivateChats BotCommandScopeAllGroupChats BotCommandScopeAllGroupChats BotCommandScopeAllChatAdministrators BotCommandScopeAllChatAdministrators BotCommandScopeChat BotCommandScopeChat BotCommandScopeChatAdministrators BotCommandScopeChatAdministrators BotCommandScopeChatMember BotCommandScopeChatMember }
This object represents the scope to which bot commands are applied. 7 scopes are supported:. Ref: #/components/schemas/BotCommandScope BotCommandScope represents sum type.
func NewBotCommandScopeAllChatAdministratorsBotCommandScope ¶
func NewBotCommandScopeAllChatAdministratorsBotCommandScope(v BotCommandScopeAllChatAdministrators) BotCommandScope
NewBotCommandScopeAllChatAdministratorsBotCommandScope returns new BotCommandScope from BotCommandScopeAllChatAdministrators.
func NewBotCommandScopeAllGroupChatsBotCommandScope ¶
func NewBotCommandScopeAllGroupChatsBotCommandScope(v BotCommandScopeAllGroupChats) BotCommandScope
NewBotCommandScopeAllGroupChatsBotCommandScope returns new BotCommandScope from BotCommandScopeAllGroupChats.
func NewBotCommandScopeAllPrivateChatsBotCommandScope ¶
func NewBotCommandScopeAllPrivateChatsBotCommandScope(v BotCommandScopeAllPrivateChats) BotCommandScope
NewBotCommandScopeAllPrivateChatsBotCommandScope returns new BotCommandScope from BotCommandScopeAllPrivateChats.
func NewBotCommandScopeChatAdministratorsBotCommandScope ¶
func NewBotCommandScopeChatAdministratorsBotCommandScope(v BotCommandScopeChatAdministrators) BotCommandScope
NewBotCommandScopeChatAdministratorsBotCommandScope returns new BotCommandScope from BotCommandScopeChatAdministrators.
func NewBotCommandScopeChatBotCommandScope ¶
func NewBotCommandScopeChatBotCommandScope(v BotCommandScopeChat) BotCommandScope
NewBotCommandScopeChatBotCommandScope returns new BotCommandScope from BotCommandScopeChat.
func NewBotCommandScopeChatMemberBotCommandScope ¶
func NewBotCommandScopeChatMemberBotCommandScope(v BotCommandScopeChatMember) BotCommandScope
NewBotCommandScopeChatMemberBotCommandScope returns new BotCommandScope from BotCommandScopeChatMember.
func NewBotCommandScopeDefaultBotCommandScope ¶
func NewBotCommandScopeDefaultBotCommandScope(v BotCommandScopeDefault) BotCommandScope
NewBotCommandScopeDefaultBotCommandScope returns new BotCommandScope from BotCommandScopeDefault.
func (*BotCommandScope) Decode ¶
func (s *BotCommandScope) Decode(d *jx.Decoder) error
Decode decodes BotCommandScope from json.
func (BotCommandScope) Encode ¶
func (s BotCommandScope) Encode(e *jx.Encoder)
Encode encodes BotCommandScope as json.
func (BotCommandScope) GetBotCommandScopeAllChatAdministrators ¶
func (s BotCommandScope) GetBotCommandScopeAllChatAdministrators() (v BotCommandScopeAllChatAdministrators, ok bool)
GetBotCommandScopeAllChatAdministrators returns BotCommandScopeAllChatAdministrators and true boolean if BotCommandScope is BotCommandScopeAllChatAdministrators.
func (BotCommandScope) GetBotCommandScopeAllGroupChats ¶
func (s BotCommandScope) GetBotCommandScopeAllGroupChats() (v BotCommandScopeAllGroupChats, ok bool)
GetBotCommandScopeAllGroupChats returns BotCommandScopeAllGroupChats and true boolean if BotCommandScope is BotCommandScopeAllGroupChats.
func (BotCommandScope) GetBotCommandScopeAllPrivateChats ¶
func (s BotCommandScope) GetBotCommandScopeAllPrivateChats() (v BotCommandScopeAllPrivateChats, ok bool)
GetBotCommandScopeAllPrivateChats returns BotCommandScopeAllPrivateChats and true boolean if BotCommandScope is BotCommandScopeAllPrivateChats.
func (BotCommandScope) GetBotCommandScopeChat ¶
func (s BotCommandScope) GetBotCommandScopeChat() (v BotCommandScopeChat, ok bool)
GetBotCommandScopeChat returns BotCommandScopeChat and true boolean if BotCommandScope is BotCommandScopeChat.
func (BotCommandScope) GetBotCommandScopeChatAdministrators ¶
func (s BotCommandScope) GetBotCommandScopeChatAdministrators() (v BotCommandScopeChatAdministrators, ok bool)
GetBotCommandScopeChatAdministrators returns BotCommandScopeChatAdministrators and true boolean if BotCommandScope is BotCommandScopeChatAdministrators.
func (BotCommandScope) GetBotCommandScopeChatMember ¶
func (s BotCommandScope) GetBotCommandScopeChatMember() (v BotCommandScopeChatMember, ok bool)
GetBotCommandScopeChatMember returns BotCommandScopeChatMember and true boolean if BotCommandScope is BotCommandScopeChatMember.
func (BotCommandScope) GetBotCommandScopeDefault ¶
func (s BotCommandScope) GetBotCommandScopeDefault() (v BotCommandScopeDefault, ok bool)
GetBotCommandScopeDefault returns BotCommandScopeDefault and true boolean if BotCommandScope is BotCommandScopeDefault.
func (BotCommandScope) IsBotCommandScopeAllChatAdministrators ¶
func (s BotCommandScope) IsBotCommandScopeAllChatAdministrators() bool
IsBotCommandScopeAllChatAdministrators reports whether BotCommandScope is BotCommandScopeAllChatAdministrators.
func (BotCommandScope) IsBotCommandScopeAllGroupChats ¶
func (s BotCommandScope) IsBotCommandScopeAllGroupChats() bool
IsBotCommandScopeAllGroupChats reports whether BotCommandScope is BotCommandScopeAllGroupChats.
func (BotCommandScope) IsBotCommandScopeAllPrivateChats ¶
func (s BotCommandScope) IsBotCommandScopeAllPrivateChats() bool
IsBotCommandScopeAllPrivateChats reports whether BotCommandScope is BotCommandScopeAllPrivateChats.
func (BotCommandScope) IsBotCommandScopeChat ¶
func (s BotCommandScope) IsBotCommandScopeChat() bool
IsBotCommandScopeChat reports whether BotCommandScope is BotCommandScopeChat.
func (BotCommandScope) IsBotCommandScopeChatAdministrators ¶
func (s BotCommandScope) IsBotCommandScopeChatAdministrators() bool
IsBotCommandScopeChatAdministrators reports whether BotCommandScope is BotCommandScopeChatAdministrators.
func (BotCommandScope) IsBotCommandScopeChatMember ¶
func (s BotCommandScope) IsBotCommandScopeChatMember() bool
IsBotCommandScopeChatMember reports whether BotCommandScope is BotCommandScopeChatMember.
func (BotCommandScope) IsBotCommandScopeDefault ¶
func (s BotCommandScope) IsBotCommandScopeDefault() bool
IsBotCommandScopeDefault reports whether BotCommandScope is BotCommandScopeDefault.
func (BotCommandScope) MarshalJSON ¶
func (s BotCommandScope) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*BotCommandScope) SetBotCommandScopeAllChatAdministrators ¶
func (s *BotCommandScope) SetBotCommandScopeAllChatAdministrators(v BotCommandScopeAllChatAdministrators)
SetBotCommandScopeAllChatAdministrators sets BotCommandScope to BotCommandScopeAllChatAdministrators.
func (*BotCommandScope) SetBotCommandScopeAllGroupChats ¶
func (s *BotCommandScope) SetBotCommandScopeAllGroupChats(v BotCommandScopeAllGroupChats)
SetBotCommandScopeAllGroupChats sets BotCommandScope to BotCommandScopeAllGroupChats.
func (*BotCommandScope) SetBotCommandScopeAllPrivateChats ¶
func (s *BotCommandScope) SetBotCommandScopeAllPrivateChats(v BotCommandScopeAllPrivateChats)
SetBotCommandScopeAllPrivateChats sets BotCommandScope to BotCommandScopeAllPrivateChats.
func (*BotCommandScope) SetBotCommandScopeChat ¶
func (s *BotCommandScope) SetBotCommandScopeChat(v BotCommandScopeChat)
SetBotCommandScopeChat sets BotCommandScope to BotCommandScopeChat.
func (*BotCommandScope) SetBotCommandScopeChatAdministrators ¶
func (s *BotCommandScope) SetBotCommandScopeChatAdministrators(v BotCommandScopeChatAdministrators)
SetBotCommandScopeChatAdministrators sets BotCommandScope to BotCommandScopeChatAdministrators.
func (*BotCommandScope) SetBotCommandScopeChatMember ¶
func (s *BotCommandScope) SetBotCommandScopeChatMember(v BotCommandScopeChatMember)
SetBotCommandScopeChatMember sets BotCommandScope to BotCommandScopeChatMember.
func (*BotCommandScope) SetBotCommandScopeDefault ¶
func (s *BotCommandScope) SetBotCommandScopeDefault(v BotCommandScopeDefault)
SetBotCommandScopeDefault sets BotCommandScope to BotCommandScopeDefault.
func (*BotCommandScope) UnmarshalJSON ¶
func (s *BotCommandScope) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type BotCommandScopeAllChatAdministrators ¶
type BotCommandScopeAllChatAdministrators struct { // Scope type, must be all_chat_administrators. Type string `json:"type"` }
Represents the scope of bot commands, covering all group and supergroup chat administrators. Ref: #/components/schemas/BotCommandScopeAllChatAdministrators
func (*BotCommandScopeAllChatAdministrators) Decode ¶
func (s *BotCommandScopeAllChatAdministrators) Decode(d *jx.Decoder) error
Decode decodes BotCommandScopeAllChatAdministrators from json.
func (*BotCommandScopeAllChatAdministrators) Encode ¶
func (s *BotCommandScopeAllChatAdministrators) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*BotCommandScopeAllChatAdministrators) GetType ¶
func (s *BotCommandScopeAllChatAdministrators) GetType() string
GetType returns the value of Type.
func (*BotCommandScopeAllChatAdministrators) MarshalJSON ¶
func (s *BotCommandScopeAllChatAdministrators) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*BotCommandScopeAllChatAdministrators) SetFake ¶
func (s *BotCommandScopeAllChatAdministrators) SetFake()
SetFake set fake values.
func (*BotCommandScopeAllChatAdministrators) SetType ¶
func (s *BotCommandScopeAllChatAdministrators) SetType(val string)
SetType sets the value of Type.
func (*BotCommandScopeAllChatAdministrators) UnmarshalJSON ¶
func (s *BotCommandScopeAllChatAdministrators) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type BotCommandScopeAllGroupChats ¶
type BotCommandScopeAllGroupChats struct { // Scope type, must be all_group_chats. Type string `json:"type"` }
Represents the scope of bot commands, covering all group and supergroup chats. Ref: #/components/schemas/BotCommandScopeAllGroupChats
func (*BotCommandScopeAllGroupChats) Decode ¶
func (s *BotCommandScopeAllGroupChats) Decode(d *jx.Decoder) error
Decode decodes BotCommandScopeAllGroupChats from json.
func (*BotCommandScopeAllGroupChats) Encode ¶
func (s *BotCommandScopeAllGroupChats) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*BotCommandScopeAllGroupChats) GetType ¶
func (s *BotCommandScopeAllGroupChats) GetType() string
GetType returns the value of Type.
func (*BotCommandScopeAllGroupChats) MarshalJSON ¶
func (s *BotCommandScopeAllGroupChats) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*BotCommandScopeAllGroupChats) SetFake ¶
func (s *BotCommandScopeAllGroupChats) SetFake()
SetFake set fake values.
func (*BotCommandScopeAllGroupChats) SetType ¶
func (s *BotCommandScopeAllGroupChats) SetType(val string)
SetType sets the value of Type.
func (*BotCommandScopeAllGroupChats) UnmarshalJSON ¶
func (s *BotCommandScopeAllGroupChats) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type BotCommandScopeAllPrivateChats ¶
type BotCommandScopeAllPrivateChats struct { // Scope type, must be all_private_chats. Type string `json:"type"` }
Represents the scope of bot commands, covering all private chats. Ref: #/components/schemas/BotCommandScopeAllPrivateChats
func (*BotCommandScopeAllPrivateChats) Decode ¶
func (s *BotCommandScopeAllPrivateChats) Decode(d *jx.Decoder) error
Decode decodes BotCommandScopeAllPrivateChats from json.
func (*BotCommandScopeAllPrivateChats) Encode ¶
func (s *BotCommandScopeAllPrivateChats) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*BotCommandScopeAllPrivateChats) GetType ¶
func (s *BotCommandScopeAllPrivateChats) GetType() string
GetType returns the value of Type.
func (*BotCommandScopeAllPrivateChats) MarshalJSON ¶
func (s *BotCommandScopeAllPrivateChats) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*BotCommandScopeAllPrivateChats) SetFake ¶
func (s *BotCommandScopeAllPrivateChats) SetFake()
SetFake set fake values.
func (*BotCommandScopeAllPrivateChats) SetType ¶
func (s *BotCommandScopeAllPrivateChats) SetType(val string)
SetType sets the value of Type.
func (*BotCommandScopeAllPrivateChats) UnmarshalJSON ¶
func (s *BotCommandScopeAllPrivateChats) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type BotCommandScopeChat ¶
type BotCommandScopeChat struct { // Scope type, must be chat. Type string `json:"type"` ChatID ID `json:"chat_id"` }
Represents the scope of bot commands, covering a specific chat. Ref: #/components/schemas/BotCommandScopeChat
func (*BotCommandScopeChat) Decode ¶
func (s *BotCommandScopeChat) Decode(d *jx.Decoder) error
Decode decodes BotCommandScopeChat from json.
func (*BotCommandScopeChat) Encode ¶
func (s *BotCommandScopeChat) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*BotCommandScopeChat) GetChatID ¶
func (s *BotCommandScopeChat) GetChatID() ID
GetChatID returns the value of ChatID.
func (*BotCommandScopeChat) GetType ¶
func (s *BotCommandScopeChat) GetType() string
GetType returns the value of Type.
func (*BotCommandScopeChat) MarshalJSON ¶
func (s *BotCommandScopeChat) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*BotCommandScopeChat) SetChatID ¶
func (s *BotCommandScopeChat) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*BotCommandScopeChat) SetFake ¶
func (s *BotCommandScopeChat) SetFake()
SetFake set fake values.
func (*BotCommandScopeChat) SetType ¶
func (s *BotCommandScopeChat) SetType(val string)
SetType sets the value of Type.
func (*BotCommandScopeChat) UnmarshalJSON ¶
func (s *BotCommandScopeChat) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type BotCommandScopeChatAdministrators ¶
type BotCommandScopeChatAdministrators struct { // Scope type, must be chat_administrators. Type string `json:"type"` ChatID ID `json:"chat_id"` }
Represents the scope of bot commands, covering all administrators of a specific group or supergroup chat. Ref: #/components/schemas/BotCommandScopeChatAdministrators
func (*BotCommandScopeChatAdministrators) Decode ¶
func (s *BotCommandScopeChatAdministrators) Decode(d *jx.Decoder) error
Decode decodes BotCommandScopeChatAdministrators from json.
func (*BotCommandScopeChatAdministrators) Encode ¶
func (s *BotCommandScopeChatAdministrators) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*BotCommandScopeChatAdministrators) GetChatID ¶
func (s *BotCommandScopeChatAdministrators) GetChatID() ID
GetChatID returns the value of ChatID.
func (*BotCommandScopeChatAdministrators) GetType ¶
func (s *BotCommandScopeChatAdministrators) GetType() string
GetType returns the value of Type.
func (*BotCommandScopeChatAdministrators) MarshalJSON ¶
func (s *BotCommandScopeChatAdministrators) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*BotCommandScopeChatAdministrators) SetChatID ¶
func (s *BotCommandScopeChatAdministrators) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*BotCommandScopeChatAdministrators) SetFake ¶
func (s *BotCommandScopeChatAdministrators) SetFake()
SetFake set fake values.
func (*BotCommandScopeChatAdministrators) SetType ¶
func (s *BotCommandScopeChatAdministrators) SetType(val string)
SetType sets the value of Type.
func (*BotCommandScopeChatAdministrators) UnmarshalJSON ¶
func (s *BotCommandScopeChatAdministrators) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type BotCommandScopeChatMember ¶
type BotCommandScopeChatMember struct { // Scope type, must be chat_member. Type string `json:"type"` ChatID ID `json:"chat_id"` // Unique identifier of the target user. UserID int64 `json:"user_id"` }
Represents the scope of bot commands, covering a specific member of a group or supergroup chat. Ref: #/components/schemas/BotCommandScopeChatMember
func (*BotCommandScopeChatMember) Decode ¶
func (s *BotCommandScopeChatMember) Decode(d *jx.Decoder) error
Decode decodes BotCommandScopeChatMember from json.
func (*BotCommandScopeChatMember) Encode ¶
func (s *BotCommandScopeChatMember) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*BotCommandScopeChatMember) GetChatID ¶
func (s *BotCommandScopeChatMember) GetChatID() ID
GetChatID returns the value of ChatID.
func (*BotCommandScopeChatMember) GetType ¶
func (s *BotCommandScopeChatMember) GetType() string
GetType returns the value of Type.
func (*BotCommandScopeChatMember) GetUserID ¶
func (s *BotCommandScopeChatMember) GetUserID() int64
GetUserID returns the value of UserID.
func (*BotCommandScopeChatMember) MarshalJSON ¶
func (s *BotCommandScopeChatMember) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*BotCommandScopeChatMember) SetChatID ¶
func (s *BotCommandScopeChatMember) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*BotCommandScopeChatMember) SetFake ¶
func (s *BotCommandScopeChatMember) SetFake()
SetFake set fake values.
func (*BotCommandScopeChatMember) SetType ¶
func (s *BotCommandScopeChatMember) SetType(val string)
SetType sets the value of Type.
func (*BotCommandScopeChatMember) SetUserID ¶
func (s *BotCommandScopeChatMember) SetUserID(val int64)
SetUserID sets the value of UserID.
func (*BotCommandScopeChatMember) UnmarshalJSON ¶
func (s *BotCommandScopeChatMember) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type BotCommandScopeDefault ¶
type BotCommandScopeDefault struct { // Scope type, must be default. Type string `json:"type"` }
Represents the default scope of bot commands. Default commands are used if no commands with a narrower scope are specified for the user. Ref: #/components/schemas/BotCommandScopeDefault
func (*BotCommandScopeDefault) Decode ¶
func (s *BotCommandScopeDefault) Decode(d *jx.Decoder) error
Decode decodes BotCommandScopeDefault from json.
func (*BotCommandScopeDefault) Encode ¶
func (s *BotCommandScopeDefault) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*BotCommandScopeDefault) GetType ¶
func (s *BotCommandScopeDefault) GetType() string
GetType returns the value of Type.
func (*BotCommandScopeDefault) MarshalJSON ¶
func (s *BotCommandScopeDefault) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*BotCommandScopeDefault) SetFake ¶
func (s *BotCommandScopeDefault) SetFake()
SetFake set fake values.
func (*BotCommandScopeDefault) SetType ¶
func (s *BotCommandScopeDefault) SetType(val string)
SetType sets the value of Type.
func (*BotCommandScopeDefault) UnmarshalJSON ¶
func (s *BotCommandScopeDefault) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type BotCommandScopeType ¶
type BotCommandScopeType string
BotCommandScopeType is oneOf type of BotCommandScope.
const ( BotCommandScopeDefaultBotCommandScope BotCommandScopeType = "default" BotCommandScopeAllPrivateChatsBotCommandScope BotCommandScopeType = "all_private_chats" BotCommandScopeAllGroupChatsBotCommandScope BotCommandScopeType = "all_group_chats" BotCommandScopeAllChatAdministratorsBotCommandScope BotCommandScopeType = "all_chat_administrators" BotCommandScopeChatBotCommandScope BotCommandScopeType = "chat" BotCommandScopeChatAdministratorsBotCommandScope BotCommandScopeType = "chat_administrators" BotCommandScopeChatMemberBotCommandScope BotCommandScopeType = "chat_member" )
Possible values for BotCommandScopeType.
type CallbackGame ¶
type CallbackGame struct{}
A placeholder, currently holds no information. Use BotFather to set up your game. Ref: #/components/schemas/CallbackGame
func (*CallbackGame) Decode ¶
func (s *CallbackGame) Decode(d *jx.Decoder) error
Decode decodes CallbackGame from json.
func (*CallbackGame) Encode ¶
func (s *CallbackGame) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CallbackGame) MarshalJSON ¶
func (s *CallbackGame) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CallbackGame) UnmarshalJSON ¶
func (s *CallbackGame) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type CallbackQuery ¶
type CallbackQuery struct { // Unique identifier for this query. ID string `json:"id"` From User `json:"from"` Message *Message `json:"message"` // Identifier of the message sent via the bot in inline mode, that originated the query. InlineMessageID OptString `json:"inline_message_id"` // Global identifier, uniquely corresponding to the chat to which the message with the callback // button was sent. Useful for high scores in games. ChatInstance string `json:"chat_instance"` // Data associated with the callback button. Be aware that a bad client can send arbitrary data in // this field. Data OptString `json:"data"` // Short name of a Game to be returned, serves as the unique identifier for the game. GameShortName OptString `json:"game_short_name"` }
This object represents an incoming callback query from a callback button in an inline keyboard. If the button that originated the query was attached to a message sent by the bot, the field message will be present. If the button was attached to a message sent via the bot (in inline mode), the field inline_message_id will be present. Exactly one of the fields data or game_short_name will be present. Ref: #/components/schemas/CallbackQuery
func (*CallbackQuery) Decode ¶
func (s *CallbackQuery) Decode(d *jx.Decoder) error
Decode decodes CallbackQuery from json.
func (*CallbackQuery) Encode ¶
func (s *CallbackQuery) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CallbackQuery) GetChatInstance ¶
func (s *CallbackQuery) GetChatInstance() string
GetChatInstance returns the value of ChatInstance.
func (*CallbackQuery) GetData ¶
func (s *CallbackQuery) GetData() OptString
GetData returns the value of Data.
func (*CallbackQuery) GetFrom ¶
func (s *CallbackQuery) GetFrom() User
GetFrom returns the value of From.
func (*CallbackQuery) GetGameShortName ¶
func (s *CallbackQuery) GetGameShortName() OptString
GetGameShortName returns the value of GameShortName.
func (*CallbackQuery) GetInlineMessageID ¶
func (s *CallbackQuery) GetInlineMessageID() OptString
GetInlineMessageID returns the value of InlineMessageID.
func (*CallbackQuery) GetMessage ¶
func (s *CallbackQuery) GetMessage() *Message
GetMessage returns the value of Message.
func (*CallbackQuery) MarshalJSON ¶
func (s *CallbackQuery) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CallbackQuery) SetChatInstance ¶
func (s *CallbackQuery) SetChatInstance(val string)
SetChatInstance sets the value of ChatInstance.
func (*CallbackQuery) SetData ¶
func (s *CallbackQuery) SetData(val OptString)
SetData sets the value of Data.
func (*CallbackQuery) SetFrom ¶
func (s *CallbackQuery) SetFrom(val User)
SetFrom sets the value of From.
func (*CallbackQuery) SetGameShortName ¶
func (s *CallbackQuery) SetGameShortName(val OptString)
SetGameShortName sets the value of GameShortName.
func (*CallbackQuery) SetInlineMessageID ¶
func (s *CallbackQuery) SetInlineMessageID(val OptString)
SetInlineMessageID sets the value of InlineMessageID.
func (*CallbackQuery) SetMessage ¶
func (s *CallbackQuery) SetMessage(val *Message)
SetMessage sets the value of Message.
func (*CallbackQuery) UnmarshalJSON ¶
func (s *CallbackQuery) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*CallbackQuery) Validate ¶
func (s *CallbackQuery) Validate() error
type Chat ¶
type Chat struct { // Unique identifier for this chat. This number may have more than 32 significant bits and some // programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 // significant bits, so a signed 64-bit integer or double-precision float type are safe for storing // this identifier. ID int64 `json:"id"` // Type of chat, can be either “private”, “group”, “supergroup” or “channel”. Type ChatType `json:"type"` // Title, for supergroups, channels and group chats. Title OptString `json:"title"` // Username, for private chats, supergroups and channels if available. Username OptString `json:"username"` // First name of the other party in a private chat. FirstName OptString `json:"first_name"` // Last name of the other party in a private chat. LastName OptString `json:"last_name"` Photo OptChatPhoto `json:"photo"` // Bio of the other party in a private chat. Returned only in getChat. Bio OptString `json:"bio"` // True, if privacy settings of the other party in the private chat allows to use // tg://user?id=<user_id> links only in chats with the user. Returned only in getChat. HasPrivateForwards OptBool `json:"has_private_forwards"` // Description, for groups, supergroups and channel chats. Returned only in getChat. Description OptString `json:"description"` // Primary invite link, for groups, supergroups and channel chats. Returned only in getChat. InviteLink OptString `json:"invite_link"` PinnedMessage *Message `json:"pinned_message"` Permissions OptChatPermissions `json:"permissions"` // For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged // user; in seconds. Returned only in getChat. SlowModeDelay OptInt `json:"slow_mode_delay"` // The time after which all messages sent to the chat will be automatically deleted; in seconds. // Returned only in getChat. MessageAutoDeleteTime OptInt `json:"message_auto_delete_time"` // True, if messages from the chat can't be forwarded to other chats. Returned only in getChat. HasProtectedContent OptBool `json:"has_protected_content"` // For supergroups, name of group sticker set. Returned only in getChat. StickerSetName OptString `json:"sticker_set_name"` // True, if the bot can change the group sticker set. Returned only in getChat. CanSetStickerSet OptBool `json:"can_set_sticker_set"` // Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice // versa; for supergroups and channel chats. This identifier may be greater than 32 bits and some // programming languages may have difficulty/silent defects in interpreting it. But it is smaller // than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this // identifier. Returned only in getChat. LinkedChatID OptInt64 `json:"linked_chat_id"` Location OptChatLocation `json:"location"` }
This object represents a chat. Ref: #/components/schemas/Chat
func (*Chat) GetCanSetStickerSet ¶
GetCanSetStickerSet returns the value of CanSetStickerSet.
func (*Chat) GetDescription ¶
GetDescription returns the value of Description.
func (*Chat) GetFirstName ¶
GetFirstName returns the value of FirstName.
func (*Chat) GetHasPrivateForwards ¶
GetHasPrivateForwards returns the value of HasPrivateForwards.
func (*Chat) GetHasProtectedContent ¶
GetHasProtectedContent returns the value of HasProtectedContent.
func (*Chat) GetInviteLink ¶
GetInviteLink returns the value of InviteLink.
func (*Chat) GetLastName ¶
GetLastName returns the value of LastName.
func (*Chat) GetLinkedChatID ¶
GetLinkedChatID returns the value of LinkedChatID.
func (*Chat) GetLocation ¶
func (s *Chat) GetLocation() OptChatLocation
GetLocation returns the value of Location.
func (*Chat) GetMessageAutoDeleteTime ¶
GetMessageAutoDeleteTime returns the value of MessageAutoDeleteTime.
func (*Chat) GetPermissions ¶
func (s *Chat) GetPermissions() OptChatPermissions
GetPermissions returns the value of Permissions.
func (*Chat) GetPinnedMessage ¶
GetPinnedMessage returns the value of PinnedMessage.
func (*Chat) GetSlowModeDelay ¶
GetSlowModeDelay returns the value of SlowModeDelay.
func (*Chat) GetStickerSetName ¶
GetStickerSetName returns the value of StickerSetName.
func (*Chat) GetUsername ¶
GetUsername returns the value of Username.
func (*Chat) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Chat) SetCanSetStickerSet ¶
SetCanSetStickerSet sets the value of CanSetStickerSet.
func (*Chat) SetDescription ¶
SetDescription sets the value of Description.
func (*Chat) SetFirstName ¶
SetFirstName sets the value of FirstName.
func (*Chat) SetHasPrivateForwards ¶
SetHasPrivateForwards sets the value of HasPrivateForwards.
func (*Chat) SetHasProtectedContent ¶
SetHasProtectedContent sets the value of HasProtectedContent.
func (*Chat) SetInviteLink ¶
SetInviteLink sets the value of InviteLink.
func (*Chat) SetLastName ¶
SetLastName sets the value of LastName.
func (*Chat) SetLinkedChatID ¶
SetLinkedChatID sets the value of LinkedChatID.
func (*Chat) SetLocation ¶
func (s *Chat) SetLocation(val OptChatLocation)
SetLocation sets the value of Location.
func (*Chat) SetMessageAutoDeleteTime ¶
SetMessageAutoDeleteTime sets the value of MessageAutoDeleteTime.
func (*Chat) SetPermissions ¶
func (s *Chat) SetPermissions(val OptChatPermissions)
SetPermissions sets the value of Permissions.
func (*Chat) SetPinnedMessage ¶
SetPinnedMessage sets the value of PinnedMessage.
func (*Chat) SetSlowModeDelay ¶
SetSlowModeDelay sets the value of SlowModeDelay.
func (*Chat) SetStickerSetName ¶
SetStickerSetName sets the value of StickerSetName.
func (*Chat) SetUsername ¶
SetUsername sets the value of Username.
func (*Chat) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ChatInviteLink ¶
type ChatInviteLink struct { // The invite link. If the link was created by another chat administrator, then the second part of // the link will be replaced with “…”. InviteLink string `json:"invite_link"` Creator User `json:"creator"` // True, if users joining the chat via the link need to be approved by chat administrators. CreatesJoinRequest bool `json:"creates_join_request"` // True, if the link is primary. IsPrimary bool `json:"is_primary"` // True, if the link is revoked. IsRevoked bool `json:"is_revoked"` // Invite link name. Name OptString `json:"name"` // Point in time (Unix timestamp) when the link will expire or has been expired. ExpireDate OptInt `json:"expire_date"` // Maximum number of users that can be members of the chat simultaneously after joining the chat via // this invite link; 1-99999. MemberLimit OptInt `json:"member_limit"` // Number of pending join requests created using this link. PendingJoinRequestCount OptInt `json:"pending_join_request_count"` }
Represents an invite link for a chat. Ref: #/components/schemas/ChatInviteLink
func (*ChatInviteLink) Decode ¶
func (s *ChatInviteLink) Decode(d *jx.Decoder) error
Decode decodes ChatInviteLink from json.
func (*ChatInviteLink) Encode ¶
func (s *ChatInviteLink) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ChatInviteLink) GetCreatesJoinRequest ¶
func (s *ChatInviteLink) GetCreatesJoinRequest() bool
GetCreatesJoinRequest returns the value of CreatesJoinRequest.
func (*ChatInviteLink) GetCreator ¶
func (s *ChatInviteLink) GetCreator() User
GetCreator returns the value of Creator.
func (*ChatInviteLink) GetExpireDate ¶
func (s *ChatInviteLink) GetExpireDate() OptInt
GetExpireDate returns the value of ExpireDate.
func (*ChatInviteLink) GetInviteLink ¶
func (s *ChatInviteLink) GetInviteLink() string
GetInviteLink returns the value of InviteLink.
func (*ChatInviteLink) GetIsPrimary ¶
func (s *ChatInviteLink) GetIsPrimary() bool
GetIsPrimary returns the value of IsPrimary.
func (*ChatInviteLink) GetIsRevoked ¶
func (s *ChatInviteLink) GetIsRevoked() bool
GetIsRevoked returns the value of IsRevoked.
func (*ChatInviteLink) GetMemberLimit ¶
func (s *ChatInviteLink) GetMemberLimit() OptInt
GetMemberLimit returns the value of MemberLimit.
func (*ChatInviteLink) GetName ¶
func (s *ChatInviteLink) GetName() OptString
GetName returns the value of Name.
func (*ChatInviteLink) GetPendingJoinRequestCount ¶
func (s *ChatInviteLink) GetPendingJoinRequestCount() OptInt
GetPendingJoinRequestCount returns the value of PendingJoinRequestCount.
func (*ChatInviteLink) MarshalJSON ¶
func (s *ChatInviteLink) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ChatInviteLink) SetCreatesJoinRequest ¶
func (s *ChatInviteLink) SetCreatesJoinRequest(val bool)
SetCreatesJoinRequest sets the value of CreatesJoinRequest.
func (*ChatInviteLink) SetCreator ¶
func (s *ChatInviteLink) SetCreator(val User)
SetCreator sets the value of Creator.
func (*ChatInviteLink) SetExpireDate ¶
func (s *ChatInviteLink) SetExpireDate(val OptInt)
SetExpireDate sets the value of ExpireDate.
func (*ChatInviteLink) SetInviteLink ¶
func (s *ChatInviteLink) SetInviteLink(val string)
SetInviteLink sets the value of InviteLink.
func (*ChatInviteLink) SetIsPrimary ¶
func (s *ChatInviteLink) SetIsPrimary(val bool)
SetIsPrimary sets the value of IsPrimary.
func (*ChatInviteLink) SetIsRevoked ¶
func (s *ChatInviteLink) SetIsRevoked(val bool)
SetIsRevoked sets the value of IsRevoked.
func (*ChatInviteLink) SetMemberLimit ¶
func (s *ChatInviteLink) SetMemberLimit(val OptInt)
SetMemberLimit sets the value of MemberLimit.
func (*ChatInviteLink) SetName ¶
func (s *ChatInviteLink) SetName(val OptString)
SetName sets the value of Name.
func (*ChatInviteLink) SetPendingJoinRequestCount ¶
func (s *ChatInviteLink) SetPendingJoinRequestCount(val OptInt)
SetPendingJoinRequestCount sets the value of PendingJoinRequestCount.
func (*ChatInviteLink) UnmarshalJSON ¶
func (s *ChatInviteLink) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ChatInviteLink) Validate ¶
func (s *ChatInviteLink) Validate() error
type ChatJoinRequest ¶
type ChatJoinRequest struct { Chat Chat `json:"chat"` From User `json:"from"` // Date the request was sent in Unix time. Date int `json:"date"` // Bio of the user. Bio OptString `json:"bio"` InviteLink OptChatInviteLink `json:"invite_link"` }
Represents a join request sent to a chat. Ref: #/components/schemas/ChatJoinRequest
func (*ChatJoinRequest) Decode ¶
func (s *ChatJoinRequest) Decode(d *jx.Decoder) error
Decode decodes ChatJoinRequest from json.
func (*ChatJoinRequest) Encode ¶
func (s *ChatJoinRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ChatJoinRequest) GetBio ¶
func (s *ChatJoinRequest) GetBio() OptString
GetBio returns the value of Bio.
func (*ChatJoinRequest) GetChat ¶
func (s *ChatJoinRequest) GetChat() Chat
GetChat returns the value of Chat.
func (*ChatJoinRequest) GetDate ¶
func (s *ChatJoinRequest) GetDate() int
GetDate returns the value of Date.
func (*ChatJoinRequest) GetFrom ¶
func (s *ChatJoinRequest) GetFrom() User
GetFrom returns the value of From.
func (*ChatJoinRequest) GetInviteLink ¶
func (s *ChatJoinRequest) GetInviteLink() OptChatInviteLink
GetInviteLink returns the value of InviteLink.
func (*ChatJoinRequest) MarshalJSON ¶
func (s *ChatJoinRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ChatJoinRequest) SetBio ¶
func (s *ChatJoinRequest) SetBio(val OptString)
SetBio sets the value of Bio.
func (*ChatJoinRequest) SetChat ¶
func (s *ChatJoinRequest) SetChat(val Chat)
SetChat sets the value of Chat.
func (*ChatJoinRequest) SetDate ¶
func (s *ChatJoinRequest) SetDate(val int)
SetDate sets the value of Date.
func (*ChatJoinRequest) SetFrom ¶
func (s *ChatJoinRequest) SetFrom(val User)
SetFrom sets the value of From.
func (*ChatJoinRequest) SetInviteLink ¶
func (s *ChatJoinRequest) SetInviteLink(val OptChatInviteLink)
SetInviteLink sets the value of InviteLink.
func (*ChatJoinRequest) UnmarshalJSON ¶
func (s *ChatJoinRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ChatJoinRequest) Validate ¶
func (s *ChatJoinRequest) Validate() error
type ChatLocation ¶
type ChatLocation struct { Location Location `json:"location"` // Location address; 1-64 characters, as defined by the chat owner. Address string `json:"address"` }
Represents a location to which a chat is connected. Ref: #/components/schemas/ChatLocation
func (*ChatLocation) Decode ¶
func (s *ChatLocation) Decode(d *jx.Decoder) error
Decode decodes ChatLocation from json.
func (*ChatLocation) Encode ¶
func (s *ChatLocation) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ChatLocation) GetAddress ¶
func (s *ChatLocation) GetAddress() string
GetAddress returns the value of Address.
func (*ChatLocation) GetLocation ¶
func (s *ChatLocation) GetLocation() Location
GetLocation returns the value of Location.
func (*ChatLocation) MarshalJSON ¶
func (s *ChatLocation) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ChatLocation) SetAddress ¶
func (s *ChatLocation) SetAddress(val string)
SetAddress sets the value of Address.
func (*ChatLocation) SetLocation ¶
func (s *ChatLocation) SetLocation(val Location)
SetLocation sets the value of Location.
func (*ChatLocation) UnmarshalJSON ¶
func (s *ChatLocation) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ChatLocation) Validate ¶
func (s *ChatLocation) Validate() error
type ChatMember ¶
type ChatMember struct { Type ChatMemberType // switch on this field ChatMemberOwner ChatMemberOwner ChatMemberAdministrator ChatMemberAdministrator ChatMemberMember ChatMemberMember ChatMemberRestricted ChatMemberRestricted ChatMemberLeft ChatMemberLeft ChatMemberBanned ChatMemberBanned }
This object contains information about one member of a chat. 6 types of chat members are supported:. Ref: #/components/schemas/ChatMember ChatMember represents sum type.
func NewChatMemberAdministratorChatMember ¶
func NewChatMemberAdministratorChatMember(v ChatMemberAdministrator) ChatMember
NewChatMemberAdministratorChatMember returns new ChatMember from ChatMemberAdministrator.
func NewChatMemberBannedChatMember ¶
func NewChatMemberBannedChatMember(v ChatMemberBanned) ChatMember
NewChatMemberBannedChatMember returns new ChatMember from ChatMemberBanned.
func NewChatMemberLeftChatMember ¶
func NewChatMemberLeftChatMember(v ChatMemberLeft) ChatMember
NewChatMemberLeftChatMember returns new ChatMember from ChatMemberLeft.
func NewChatMemberMemberChatMember ¶
func NewChatMemberMemberChatMember(v ChatMemberMember) ChatMember
NewChatMemberMemberChatMember returns new ChatMember from ChatMemberMember.
func NewChatMemberOwnerChatMember ¶
func NewChatMemberOwnerChatMember(v ChatMemberOwner) ChatMember
NewChatMemberOwnerChatMember returns new ChatMember from ChatMemberOwner.
func NewChatMemberRestrictedChatMember ¶
func NewChatMemberRestrictedChatMember(v ChatMemberRestricted) ChatMember
NewChatMemberRestrictedChatMember returns new ChatMember from ChatMemberRestricted.
func (*ChatMember) Decode ¶
func (s *ChatMember) Decode(d *jx.Decoder) error
Decode decodes ChatMember from json.
func (ChatMember) Encode ¶
func (s ChatMember) Encode(e *jx.Encoder)
Encode encodes ChatMember as json.
func (ChatMember) GetChatMemberAdministrator ¶
func (s ChatMember) GetChatMemberAdministrator() (v ChatMemberAdministrator, ok bool)
GetChatMemberAdministrator returns ChatMemberAdministrator and true boolean if ChatMember is ChatMemberAdministrator.
func (ChatMember) GetChatMemberBanned ¶
func (s ChatMember) GetChatMemberBanned() (v ChatMemberBanned, ok bool)
GetChatMemberBanned returns ChatMemberBanned and true boolean if ChatMember is ChatMemberBanned.
func (ChatMember) GetChatMemberLeft ¶
func (s ChatMember) GetChatMemberLeft() (v ChatMemberLeft, ok bool)
GetChatMemberLeft returns ChatMemberLeft and true boolean if ChatMember is ChatMemberLeft.
func (ChatMember) GetChatMemberMember ¶
func (s ChatMember) GetChatMemberMember() (v ChatMemberMember, ok bool)
GetChatMemberMember returns ChatMemberMember and true boolean if ChatMember is ChatMemberMember.
func (ChatMember) GetChatMemberOwner ¶
func (s ChatMember) GetChatMemberOwner() (v ChatMemberOwner, ok bool)
GetChatMemberOwner returns ChatMemberOwner and true boolean if ChatMember is ChatMemberOwner.
func (ChatMember) GetChatMemberRestricted ¶
func (s ChatMember) GetChatMemberRestricted() (v ChatMemberRestricted, ok bool)
GetChatMemberRestricted returns ChatMemberRestricted and true boolean if ChatMember is ChatMemberRestricted.
func (ChatMember) IsChatMemberAdministrator ¶
func (s ChatMember) IsChatMemberAdministrator() bool
IsChatMemberAdministrator reports whether ChatMember is ChatMemberAdministrator.
func (ChatMember) IsChatMemberBanned ¶
func (s ChatMember) IsChatMemberBanned() bool
IsChatMemberBanned reports whether ChatMember is ChatMemberBanned.
func (ChatMember) IsChatMemberLeft ¶
func (s ChatMember) IsChatMemberLeft() bool
IsChatMemberLeft reports whether ChatMember is ChatMemberLeft.
func (ChatMember) IsChatMemberMember ¶
func (s ChatMember) IsChatMemberMember() bool
IsChatMemberMember reports whether ChatMember is ChatMemberMember.
func (ChatMember) IsChatMemberOwner ¶
func (s ChatMember) IsChatMemberOwner() bool
IsChatMemberOwner reports whether ChatMember is ChatMemberOwner.
func (ChatMember) IsChatMemberRestricted ¶
func (s ChatMember) IsChatMemberRestricted() bool
IsChatMemberRestricted reports whether ChatMember is ChatMemberRestricted.
func (ChatMember) MarshalJSON ¶
func (s ChatMember) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ChatMember) SetChatMemberAdministrator ¶
func (s *ChatMember) SetChatMemberAdministrator(v ChatMemberAdministrator)
SetChatMemberAdministrator sets ChatMember to ChatMemberAdministrator.
func (*ChatMember) SetChatMemberBanned ¶
func (s *ChatMember) SetChatMemberBanned(v ChatMemberBanned)
SetChatMemberBanned sets ChatMember to ChatMemberBanned.
func (*ChatMember) SetChatMemberLeft ¶
func (s *ChatMember) SetChatMemberLeft(v ChatMemberLeft)
SetChatMemberLeft sets ChatMember to ChatMemberLeft.
func (*ChatMember) SetChatMemberMember ¶
func (s *ChatMember) SetChatMemberMember(v ChatMemberMember)
SetChatMemberMember sets ChatMember to ChatMemberMember.
func (*ChatMember) SetChatMemberOwner ¶
func (s *ChatMember) SetChatMemberOwner(v ChatMemberOwner)
SetChatMemberOwner sets ChatMember to ChatMemberOwner.
func (*ChatMember) SetChatMemberRestricted ¶
func (s *ChatMember) SetChatMemberRestricted(v ChatMemberRestricted)
SetChatMemberRestricted sets ChatMember to ChatMemberRestricted.
func (*ChatMember) UnmarshalJSON ¶
func (s *ChatMember) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ChatMemberAdministrator ¶
type ChatMemberAdministrator struct { // The member's status in the chat, always “administrator”. Status string `json:"status"` User User `json:"user"` // True, if the bot is allowed to edit administrator privileges of that user. CanBeEdited bool `json:"can_be_edited"` // True, if the user's presence in the chat is hidden. IsAnonymous bool `json:"is_anonymous"` // True, if the administrator can access the chat event log, chat statistics, message statistics in // channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. // Implied by any other administrator privilege. CanManageChat bool `json:"can_manage_chat"` // True, if the administrator can delete messages of other users. CanDeleteMessages bool `json:"can_delete_messages"` // True, if the administrator can manage voice chats. CanManageVoiceChats bool `json:"can_manage_voice_chats"` // True, if the administrator can restrict, ban or unban chat members. CanRestrictMembers bool `json:"can_restrict_members"` // True, if the administrator can add new administrators with a subset of their own privileges or // demote administrators that he has promoted, directly or indirectly (promoted by administrators // that were appointed by the user). CanPromoteMembers bool `json:"can_promote_members"` // True, if the user is allowed to change the chat title, photo and other settings. CanChangeInfo bool `json:"can_change_info"` // True, if the user is allowed to invite new users to the chat. CanInviteUsers bool `json:"can_invite_users"` // True, if the administrator can post in the channel; channels only. CanPostMessages OptBool `json:"can_post_messages"` // True, if the administrator can edit messages of other users and can pin messages; channels only. CanEditMessages OptBool `json:"can_edit_messages"` // True, if the user is allowed to pin messages; groups and supergroups only. CanPinMessages OptBool `json:"can_pin_messages"` // Custom title for this user. CustomTitle OptString `json:"custom_title"` }
Represents a chat member that has some additional privileges. Ref: #/components/schemas/ChatMemberAdministrator
func (*ChatMemberAdministrator) Decode ¶
func (s *ChatMemberAdministrator) Decode(d *jx.Decoder) error
Decode decodes ChatMemberAdministrator from json.
func (*ChatMemberAdministrator) Encode ¶
func (s *ChatMemberAdministrator) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ChatMemberAdministrator) GetCanBeEdited ¶
func (s *ChatMemberAdministrator) GetCanBeEdited() bool
GetCanBeEdited returns the value of CanBeEdited.
func (*ChatMemberAdministrator) GetCanChangeInfo ¶
func (s *ChatMemberAdministrator) GetCanChangeInfo() bool
GetCanChangeInfo returns the value of CanChangeInfo.
func (*ChatMemberAdministrator) GetCanDeleteMessages ¶
func (s *ChatMemberAdministrator) GetCanDeleteMessages() bool
GetCanDeleteMessages returns the value of CanDeleteMessages.
func (*ChatMemberAdministrator) GetCanEditMessages ¶
func (s *ChatMemberAdministrator) GetCanEditMessages() OptBool
GetCanEditMessages returns the value of CanEditMessages.
func (*ChatMemberAdministrator) GetCanInviteUsers ¶
func (s *ChatMemberAdministrator) GetCanInviteUsers() bool
GetCanInviteUsers returns the value of CanInviteUsers.
func (*ChatMemberAdministrator) GetCanManageChat ¶
func (s *ChatMemberAdministrator) GetCanManageChat() bool
GetCanManageChat returns the value of CanManageChat.
func (*ChatMemberAdministrator) GetCanManageVoiceChats ¶
func (s *ChatMemberAdministrator) GetCanManageVoiceChats() bool
GetCanManageVoiceChats returns the value of CanManageVoiceChats.
func (*ChatMemberAdministrator) GetCanPinMessages ¶
func (s *ChatMemberAdministrator) GetCanPinMessages() OptBool
GetCanPinMessages returns the value of CanPinMessages.
func (*ChatMemberAdministrator) GetCanPostMessages ¶
func (s *ChatMemberAdministrator) GetCanPostMessages() OptBool
GetCanPostMessages returns the value of CanPostMessages.
func (*ChatMemberAdministrator) GetCanPromoteMembers ¶
func (s *ChatMemberAdministrator) GetCanPromoteMembers() bool
GetCanPromoteMembers returns the value of CanPromoteMembers.
func (*ChatMemberAdministrator) GetCanRestrictMembers ¶
func (s *ChatMemberAdministrator) GetCanRestrictMembers() bool
GetCanRestrictMembers returns the value of CanRestrictMembers.
func (*ChatMemberAdministrator) GetCustomTitle ¶
func (s *ChatMemberAdministrator) GetCustomTitle() OptString
GetCustomTitle returns the value of CustomTitle.
func (*ChatMemberAdministrator) GetIsAnonymous ¶
func (s *ChatMemberAdministrator) GetIsAnonymous() bool
GetIsAnonymous returns the value of IsAnonymous.
func (*ChatMemberAdministrator) GetStatus ¶
func (s *ChatMemberAdministrator) GetStatus() string
GetStatus returns the value of Status.
func (*ChatMemberAdministrator) GetUser ¶
func (s *ChatMemberAdministrator) GetUser() User
GetUser returns the value of User.
func (*ChatMemberAdministrator) MarshalJSON ¶
func (s *ChatMemberAdministrator) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ChatMemberAdministrator) SetCanBeEdited ¶
func (s *ChatMemberAdministrator) SetCanBeEdited(val bool)
SetCanBeEdited sets the value of CanBeEdited.
func (*ChatMemberAdministrator) SetCanChangeInfo ¶
func (s *ChatMemberAdministrator) SetCanChangeInfo(val bool)
SetCanChangeInfo sets the value of CanChangeInfo.
func (*ChatMemberAdministrator) SetCanDeleteMessages ¶
func (s *ChatMemberAdministrator) SetCanDeleteMessages(val bool)
SetCanDeleteMessages sets the value of CanDeleteMessages.
func (*ChatMemberAdministrator) SetCanEditMessages ¶
func (s *ChatMemberAdministrator) SetCanEditMessages(val OptBool)
SetCanEditMessages sets the value of CanEditMessages.
func (*ChatMemberAdministrator) SetCanInviteUsers ¶
func (s *ChatMemberAdministrator) SetCanInviteUsers(val bool)
SetCanInviteUsers sets the value of CanInviteUsers.
func (*ChatMemberAdministrator) SetCanManageChat ¶
func (s *ChatMemberAdministrator) SetCanManageChat(val bool)
SetCanManageChat sets the value of CanManageChat.
func (*ChatMemberAdministrator) SetCanManageVoiceChats ¶
func (s *ChatMemberAdministrator) SetCanManageVoiceChats(val bool)
SetCanManageVoiceChats sets the value of CanManageVoiceChats.
func (*ChatMemberAdministrator) SetCanPinMessages ¶
func (s *ChatMemberAdministrator) SetCanPinMessages(val OptBool)
SetCanPinMessages sets the value of CanPinMessages.
func (*ChatMemberAdministrator) SetCanPostMessages ¶
func (s *ChatMemberAdministrator) SetCanPostMessages(val OptBool)
SetCanPostMessages sets the value of CanPostMessages.
func (*ChatMemberAdministrator) SetCanPromoteMembers ¶
func (s *ChatMemberAdministrator) SetCanPromoteMembers(val bool)
SetCanPromoteMembers sets the value of CanPromoteMembers.
func (*ChatMemberAdministrator) SetCanRestrictMembers ¶
func (s *ChatMemberAdministrator) SetCanRestrictMembers(val bool)
SetCanRestrictMembers sets the value of CanRestrictMembers.
func (*ChatMemberAdministrator) SetCustomTitle ¶
func (s *ChatMemberAdministrator) SetCustomTitle(val OptString)
SetCustomTitle sets the value of CustomTitle.
func (*ChatMemberAdministrator) SetFake ¶
func (s *ChatMemberAdministrator) SetFake()
SetFake set fake values.
func (*ChatMemberAdministrator) SetIsAnonymous ¶
func (s *ChatMemberAdministrator) SetIsAnonymous(val bool)
SetIsAnonymous sets the value of IsAnonymous.
func (*ChatMemberAdministrator) SetStatus ¶
func (s *ChatMemberAdministrator) SetStatus(val string)
SetStatus sets the value of Status.
func (*ChatMemberAdministrator) SetUser ¶
func (s *ChatMemberAdministrator) SetUser(val User)
SetUser sets the value of User.
func (*ChatMemberAdministrator) UnmarshalJSON ¶
func (s *ChatMemberAdministrator) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ChatMemberBanned ¶
type ChatMemberBanned struct { // The member's status in the chat, always “kicked”. Status string `json:"status"` User User `json:"user"` // Date when restrictions will be lifted for this user; unix time. If 0, then the user is banned // forever. UntilDate int `json:"until_date"` }
Represents a chat member that was banned in the chat and can't return to the chat or view chat messages. Ref: #/components/schemas/ChatMemberBanned
func (*ChatMemberBanned) Decode ¶
func (s *ChatMemberBanned) Decode(d *jx.Decoder) error
Decode decodes ChatMemberBanned from json.
func (*ChatMemberBanned) Encode ¶
func (s *ChatMemberBanned) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ChatMemberBanned) GetStatus ¶
func (s *ChatMemberBanned) GetStatus() string
GetStatus returns the value of Status.
func (*ChatMemberBanned) GetUntilDate ¶
func (s *ChatMemberBanned) GetUntilDate() int
GetUntilDate returns the value of UntilDate.
func (*ChatMemberBanned) GetUser ¶
func (s *ChatMemberBanned) GetUser() User
GetUser returns the value of User.
func (*ChatMemberBanned) MarshalJSON ¶
func (s *ChatMemberBanned) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ChatMemberBanned) SetStatus ¶
func (s *ChatMemberBanned) SetStatus(val string)
SetStatus sets the value of Status.
func (*ChatMemberBanned) SetUntilDate ¶
func (s *ChatMemberBanned) SetUntilDate(val int)
SetUntilDate sets the value of UntilDate.
func (*ChatMemberBanned) SetUser ¶
func (s *ChatMemberBanned) SetUser(val User)
SetUser sets the value of User.
func (*ChatMemberBanned) UnmarshalJSON ¶
func (s *ChatMemberBanned) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ChatMemberLeft ¶
type ChatMemberLeft struct { // The member's status in the chat, always “left”. Status string `json:"status"` User User `json:"user"` }
Represents a chat member that isn't currently a member of the chat, but may join it themselves. Ref: #/components/schemas/ChatMemberLeft
func (*ChatMemberLeft) Decode ¶
func (s *ChatMemberLeft) Decode(d *jx.Decoder) error
Decode decodes ChatMemberLeft from json.
func (*ChatMemberLeft) Encode ¶
func (s *ChatMemberLeft) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ChatMemberLeft) GetStatus ¶
func (s *ChatMemberLeft) GetStatus() string
GetStatus returns the value of Status.
func (*ChatMemberLeft) GetUser ¶
func (s *ChatMemberLeft) GetUser() User
GetUser returns the value of User.
func (*ChatMemberLeft) MarshalJSON ¶
func (s *ChatMemberLeft) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ChatMemberLeft) SetStatus ¶
func (s *ChatMemberLeft) SetStatus(val string)
SetStatus sets the value of Status.
func (*ChatMemberLeft) SetUser ¶
func (s *ChatMemberLeft) SetUser(val User)
SetUser sets the value of User.
func (*ChatMemberLeft) UnmarshalJSON ¶
func (s *ChatMemberLeft) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ChatMemberMember ¶
type ChatMemberMember struct { // The member's status in the chat, always “member”. Status string `json:"status"` User User `json:"user"` }
Represents a chat member that has no additional privileges or restrictions. Ref: #/components/schemas/ChatMemberMember
func (*ChatMemberMember) Decode ¶
func (s *ChatMemberMember) Decode(d *jx.Decoder) error
Decode decodes ChatMemberMember from json.
func (*ChatMemberMember) Encode ¶
func (s *ChatMemberMember) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ChatMemberMember) GetStatus ¶
func (s *ChatMemberMember) GetStatus() string
GetStatus returns the value of Status.
func (*ChatMemberMember) GetUser ¶
func (s *ChatMemberMember) GetUser() User
GetUser returns the value of User.
func (*ChatMemberMember) MarshalJSON ¶
func (s *ChatMemberMember) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ChatMemberMember) SetStatus ¶
func (s *ChatMemberMember) SetStatus(val string)
SetStatus sets the value of Status.
func (*ChatMemberMember) SetUser ¶
func (s *ChatMemberMember) SetUser(val User)
SetUser sets the value of User.
func (*ChatMemberMember) UnmarshalJSON ¶
func (s *ChatMemberMember) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ChatMemberOwner ¶
type ChatMemberOwner struct { // The member's status in the chat, always “creator”. Status string `json:"status"` User User `json:"user"` // True, if the user's presence in the chat is hidden. IsAnonymous bool `json:"is_anonymous"` // Custom title for this user. CustomTitle OptString `json:"custom_title"` }
Represents a chat member that owns the chat and has all administrator privileges. Ref: #/components/schemas/ChatMemberOwner
func (*ChatMemberOwner) Decode ¶
func (s *ChatMemberOwner) Decode(d *jx.Decoder) error
Decode decodes ChatMemberOwner from json.
func (*ChatMemberOwner) Encode ¶
func (s *ChatMemberOwner) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ChatMemberOwner) GetCustomTitle ¶
func (s *ChatMemberOwner) GetCustomTitle() OptString
GetCustomTitle returns the value of CustomTitle.
func (*ChatMemberOwner) GetIsAnonymous ¶
func (s *ChatMemberOwner) GetIsAnonymous() bool
GetIsAnonymous returns the value of IsAnonymous.
func (*ChatMemberOwner) GetStatus ¶
func (s *ChatMemberOwner) GetStatus() string
GetStatus returns the value of Status.
func (*ChatMemberOwner) GetUser ¶
func (s *ChatMemberOwner) GetUser() User
GetUser returns the value of User.
func (*ChatMemberOwner) MarshalJSON ¶
func (s *ChatMemberOwner) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ChatMemberOwner) SetCustomTitle ¶
func (s *ChatMemberOwner) SetCustomTitle(val OptString)
SetCustomTitle sets the value of CustomTitle.
func (*ChatMemberOwner) SetIsAnonymous ¶
func (s *ChatMemberOwner) SetIsAnonymous(val bool)
SetIsAnonymous sets the value of IsAnonymous.
func (*ChatMemberOwner) SetStatus ¶
func (s *ChatMemberOwner) SetStatus(val string)
SetStatus sets the value of Status.
func (*ChatMemberOwner) SetUser ¶
func (s *ChatMemberOwner) SetUser(val User)
SetUser sets the value of User.
func (*ChatMemberOwner) UnmarshalJSON ¶
func (s *ChatMemberOwner) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ChatMemberRestricted ¶
type ChatMemberRestricted struct { // The member's status in the chat, always “restricted”. Status string `json:"status"` User User `json:"user"` // True, if the user is a member of the chat at the moment of the request. IsMember bool `json:"is_member"` // True, if the user is allowed to change the chat title, photo and other settings. CanChangeInfo bool `json:"can_change_info"` // True, if the user is allowed to invite new users to the chat. CanInviteUsers bool `json:"can_invite_users"` // True, if the user is allowed to pin messages. CanPinMessages bool `json:"can_pin_messages"` // True, if the user is allowed to send text messages, contacts, locations and venues. CanSendMessages bool `json:"can_send_messages"` // True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes. CanSendMediaMessages bool `json:"can_send_media_messages"` // True, if the user is allowed to send polls. CanSendPolls bool `json:"can_send_polls"` // True, if the user is allowed to send animations, games, stickers and use inline bots. CanSendOtherMessages bool `json:"can_send_other_messages"` // True, if the user is allowed to add web page previews to their messages. CanAddWebPagePreviews bool `json:"can_add_web_page_previews"` // Date when restrictions will be lifted for this user; unix time. If 0, then the user is restricted // forever. UntilDate int `json:"until_date"` }
Represents a chat member that is under certain restrictions in the chat. Supergroups only. Ref: #/components/schemas/ChatMemberRestricted
func (*ChatMemberRestricted) Decode ¶
func (s *ChatMemberRestricted) Decode(d *jx.Decoder) error
Decode decodes ChatMemberRestricted from json.
func (*ChatMemberRestricted) Encode ¶
func (s *ChatMemberRestricted) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ChatMemberRestricted) GetCanAddWebPagePreviews ¶
func (s *ChatMemberRestricted) GetCanAddWebPagePreviews() bool
GetCanAddWebPagePreviews returns the value of CanAddWebPagePreviews.
func (*ChatMemberRestricted) GetCanChangeInfo ¶
func (s *ChatMemberRestricted) GetCanChangeInfo() bool
GetCanChangeInfo returns the value of CanChangeInfo.
func (*ChatMemberRestricted) GetCanInviteUsers ¶
func (s *ChatMemberRestricted) GetCanInviteUsers() bool
GetCanInviteUsers returns the value of CanInviteUsers.
func (*ChatMemberRestricted) GetCanPinMessages ¶
func (s *ChatMemberRestricted) GetCanPinMessages() bool
GetCanPinMessages returns the value of CanPinMessages.
func (*ChatMemberRestricted) GetCanSendMediaMessages ¶
func (s *ChatMemberRestricted) GetCanSendMediaMessages() bool
GetCanSendMediaMessages returns the value of CanSendMediaMessages.
func (*ChatMemberRestricted) GetCanSendMessages ¶
func (s *ChatMemberRestricted) GetCanSendMessages() bool
GetCanSendMessages returns the value of CanSendMessages.
func (*ChatMemberRestricted) GetCanSendOtherMessages ¶
func (s *ChatMemberRestricted) GetCanSendOtherMessages() bool
GetCanSendOtherMessages returns the value of CanSendOtherMessages.
func (*ChatMemberRestricted) GetCanSendPolls ¶
func (s *ChatMemberRestricted) GetCanSendPolls() bool
GetCanSendPolls returns the value of CanSendPolls.
func (*ChatMemberRestricted) GetIsMember ¶
func (s *ChatMemberRestricted) GetIsMember() bool
GetIsMember returns the value of IsMember.
func (*ChatMemberRestricted) GetStatus ¶
func (s *ChatMemberRestricted) GetStatus() string
GetStatus returns the value of Status.
func (*ChatMemberRestricted) GetUntilDate ¶
func (s *ChatMemberRestricted) GetUntilDate() int
GetUntilDate returns the value of UntilDate.
func (*ChatMemberRestricted) GetUser ¶
func (s *ChatMemberRestricted) GetUser() User
GetUser returns the value of User.
func (*ChatMemberRestricted) MarshalJSON ¶
func (s *ChatMemberRestricted) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ChatMemberRestricted) SetCanAddWebPagePreviews ¶
func (s *ChatMemberRestricted) SetCanAddWebPagePreviews(val bool)
SetCanAddWebPagePreviews sets the value of CanAddWebPagePreviews.
func (*ChatMemberRestricted) SetCanChangeInfo ¶
func (s *ChatMemberRestricted) SetCanChangeInfo(val bool)
SetCanChangeInfo sets the value of CanChangeInfo.
func (*ChatMemberRestricted) SetCanInviteUsers ¶
func (s *ChatMemberRestricted) SetCanInviteUsers(val bool)
SetCanInviteUsers sets the value of CanInviteUsers.
func (*ChatMemberRestricted) SetCanPinMessages ¶
func (s *ChatMemberRestricted) SetCanPinMessages(val bool)
SetCanPinMessages sets the value of CanPinMessages.
func (*ChatMemberRestricted) SetCanSendMediaMessages ¶
func (s *ChatMemberRestricted) SetCanSendMediaMessages(val bool)
SetCanSendMediaMessages sets the value of CanSendMediaMessages.
func (*ChatMemberRestricted) SetCanSendMessages ¶
func (s *ChatMemberRestricted) SetCanSendMessages(val bool)
SetCanSendMessages sets the value of CanSendMessages.
func (*ChatMemberRestricted) SetCanSendOtherMessages ¶
func (s *ChatMemberRestricted) SetCanSendOtherMessages(val bool)
SetCanSendOtherMessages sets the value of CanSendOtherMessages.
func (*ChatMemberRestricted) SetCanSendPolls ¶
func (s *ChatMemberRestricted) SetCanSendPolls(val bool)
SetCanSendPolls sets the value of CanSendPolls.
func (*ChatMemberRestricted) SetFake ¶
func (s *ChatMemberRestricted) SetFake()
SetFake set fake values.
func (*ChatMemberRestricted) SetIsMember ¶
func (s *ChatMemberRestricted) SetIsMember(val bool)
SetIsMember sets the value of IsMember.
func (*ChatMemberRestricted) SetStatus ¶
func (s *ChatMemberRestricted) SetStatus(val string)
SetStatus sets the value of Status.
func (*ChatMemberRestricted) SetUntilDate ¶
func (s *ChatMemberRestricted) SetUntilDate(val int)
SetUntilDate sets the value of UntilDate.
func (*ChatMemberRestricted) SetUser ¶
func (s *ChatMemberRestricted) SetUser(val User)
SetUser sets the value of User.
func (*ChatMemberRestricted) UnmarshalJSON ¶
func (s *ChatMemberRestricted) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ChatMemberType ¶
type ChatMemberType string
ChatMemberType is oneOf type of ChatMember.
const ( ChatMemberOwnerChatMember ChatMemberType = "ChatMemberOwner" ChatMemberAdministratorChatMember ChatMemberType = "ChatMemberAdministrator" ChatMemberMemberChatMember ChatMemberType = "ChatMemberMember" ChatMemberRestrictedChatMember ChatMemberType = "ChatMemberRestricted" ChatMemberLeftChatMember ChatMemberType = "ChatMemberLeft" ChatMemberBannedChatMember ChatMemberType = "ChatMemberBanned" )
Possible values for ChatMemberType.
type ChatMemberUpdated ¶
type ChatMemberUpdated struct { Chat Chat `json:"chat"` From User `json:"from"` // Date the change was done in Unix time. Date int `json:"date"` OldChatMember ChatMember `json:"old_chat_member"` NewChatMember ChatMember `json:"new_chat_member"` InviteLink OptChatInviteLink `json:"invite_link"` }
This object represents changes in the status of a chat member. Ref: #/components/schemas/ChatMemberUpdated
func (*ChatMemberUpdated) Decode ¶
func (s *ChatMemberUpdated) Decode(d *jx.Decoder) error
Decode decodes ChatMemberUpdated from json.
func (*ChatMemberUpdated) Encode ¶
func (s *ChatMemberUpdated) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ChatMemberUpdated) GetChat ¶
func (s *ChatMemberUpdated) GetChat() Chat
GetChat returns the value of Chat.
func (*ChatMemberUpdated) GetDate ¶
func (s *ChatMemberUpdated) GetDate() int
GetDate returns the value of Date.
func (*ChatMemberUpdated) GetFrom ¶
func (s *ChatMemberUpdated) GetFrom() User
GetFrom returns the value of From.
func (*ChatMemberUpdated) GetInviteLink ¶
func (s *ChatMemberUpdated) GetInviteLink() OptChatInviteLink
GetInviteLink returns the value of InviteLink.
func (*ChatMemberUpdated) GetNewChatMember ¶
func (s *ChatMemberUpdated) GetNewChatMember() ChatMember
GetNewChatMember returns the value of NewChatMember.
func (*ChatMemberUpdated) GetOldChatMember ¶
func (s *ChatMemberUpdated) GetOldChatMember() ChatMember
GetOldChatMember returns the value of OldChatMember.
func (*ChatMemberUpdated) MarshalJSON ¶
func (s *ChatMemberUpdated) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ChatMemberUpdated) SetChat ¶
func (s *ChatMemberUpdated) SetChat(val Chat)
SetChat sets the value of Chat.
func (*ChatMemberUpdated) SetDate ¶
func (s *ChatMemberUpdated) SetDate(val int)
SetDate sets the value of Date.
func (*ChatMemberUpdated) SetFrom ¶
func (s *ChatMemberUpdated) SetFrom(val User)
SetFrom sets the value of From.
func (*ChatMemberUpdated) SetInviteLink ¶
func (s *ChatMemberUpdated) SetInviteLink(val OptChatInviteLink)
SetInviteLink sets the value of InviteLink.
func (*ChatMemberUpdated) SetNewChatMember ¶
func (s *ChatMemberUpdated) SetNewChatMember(val ChatMember)
SetNewChatMember sets the value of NewChatMember.
func (*ChatMemberUpdated) SetOldChatMember ¶
func (s *ChatMemberUpdated) SetOldChatMember(val ChatMember)
SetOldChatMember sets the value of OldChatMember.
func (*ChatMemberUpdated) UnmarshalJSON ¶
func (s *ChatMemberUpdated) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ChatMemberUpdated) Validate ¶
func (s *ChatMemberUpdated) Validate() error
type ChatPermissions ¶
type ChatPermissions struct { // True, if the user is allowed to send text messages, contacts, locations and venues. CanSendMessages OptBool `json:"can_send_messages"` // True, if the user is allowed to send audios, documents, photos, videos, video notes and voice // notes, implies can_send_messages. CanSendMediaMessages OptBool `json:"can_send_media_messages"` // True, if the user is allowed to send polls, implies can_send_messages. CanSendPolls OptBool `json:"can_send_polls"` // True, if the user is allowed to send animations, games, stickers and use inline bots, implies // can_send_media_messages. CanSendOtherMessages OptBool `json:"can_send_other_messages"` // True, if the user is allowed to add web page previews to their messages, implies // can_send_media_messages. CanAddWebPagePreviews OptBool `json:"can_add_web_page_previews"` // True, if the user is allowed to change the chat title, photo and other settings. Ignored in public // supergroups. CanChangeInfo OptBool `json:"can_change_info"` // True, if the user is allowed to invite new users to the chat. CanInviteUsers OptBool `json:"can_invite_users"` // True, if the user is allowed to pin messages. Ignored in public supergroups. CanPinMessages OptBool `json:"can_pin_messages"` }
Describes actions that a non-administrator user is allowed to take in a chat. Ref: #/components/schemas/ChatPermissions
func (*ChatPermissions) Decode ¶
func (s *ChatPermissions) Decode(d *jx.Decoder) error
Decode decodes ChatPermissions from json.
func (*ChatPermissions) Encode ¶
func (s *ChatPermissions) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ChatPermissions) GetCanAddWebPagePreviews ¶
func (s *ChatPermissions) GetCanAddWebPagePreviews() OptBool
GetCanAddWebPagePreviews returns the value of CanAddWebPagePreviews.
func (*ChatPermissions) GetCanChangeInfo ¶
func (s *ChatPermissions) GetCanChangeInfo() OptBool
GetCanChangeInfo returns the value of CanChangeInfo.
func (*ChatPermissions) GetCanInviteUsers ¶
func (s *ChatPermissions) GetCanInviteUsers() OptBool
GetCanInviteUsers returns the value of CanInviteUsers.
func (*ChatPermissions) GetCanPinMessages ¶
func (s *ChatPermissions) GetCanPinMessages() OptBool
GetCanPinMessages returns the value of CanPinMessages.
func (*ChatPermissions) GetCanSendMediaMessages ¶
func (s *ChatPermissions) GetCanSendMediaMessages() OptBool
GetCanSendMediaMessages returns the value of CanSendMediaMessages.
func (*ChatPermissions) GetCanSendMessages ¶
func (s *ChatPermissions) GetCanSendMessages() OptBool
GetCanSendMessages returns the value of CanSendMessages.
func (*ChatPermissions) GetCanSendOtherMessages ¶
func (s *ChatPermissions) GetCanSendOtherMessages() OptBool
GetCanSendOtherMessages returns the value of CanSendOtherMessages.
func (*ChatPermissions) GetCanSendPolls ¶
func (s *ChatPermissions) GetCanSendPolls() OptBool
GetCanSendPolls returns the value of CanSendPolls.
func (*ChatPermissions) MarshalJSON ¶
func (s *ChatPermissions) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ChatPermissions) SetCanAddWebPagePreviews ¶
func (s *ChatPermissions) SetCanAddWebPagePreviews(val OptBool)
SetCanAddWebPagePreviews sets the value of CanAddWebPagePreviews.
func (*ChatPermissions) SetCanChangeInfo ¶
func (s *ChatPermissions) SetCanChangeInfo(val OptBool)
SetCanChangeInfo sets the value of CanChangeInfo.
func (*ChatPermissions) SetCanInviteUsers ¶
func (s *ChatPermissions) SetCanInviteUsers(val OptBool)
SetCanInviteUsers sets the value of CanInviteUsers.
func (*ChatPermissions) SetCanPinMessages ¶
func (s *ChatPermissions) SetCanPinMessages(val OptBool)
SetCanPinMessages sets the value of CanPinMessages.
func (*ChatPermissions) SetCanSendMediaMessages ¶
func (s *ChatPermissions) SetCanSendMediaMessages(val OptBool)
SetCanSendMediaMessages sets the value of CanSendMediaMessages.
func (*ChatPermissions) SetCanSendMessages ¶
func (s *ChatPermissions) SetCanSendMessages(val OptBool)
SetCanSendMessages sets the value of CanSendMessages.
func (*ChatPermissions) SetCanSendOtherMessages ¶
func (s *ChatPermissions) SetCanSendOtherMessages(val OptBool)
SetCanSendOtherMessages sets the value of CanSendOtherMessages.
func (*ChatPermissions) SetCanSendPolls ¶
func (s *ChatPermissions) SetCanSendPolls(val OptBool)
SetCanSendPolls sets the value of CanSendPolls.
func (*ChatPermissions) UnmarshalJSON ¶
func (s *ChatPermissions) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ChatPhoto ¶
type ChatPhoto struct { // File identifier of small (160x160) chat photo. This file_id can be used only for photo download // and only for as long as the photo is not changed. SmallFileID string `json:"small_file_id"` // Unique file identifier of small (160x160) chat photo, which is supposed to be the same over time // and for different bots. Can't be used to download or reuse the file. SmallFileUniqueID string `json:"small_file_unique_id"` // File identifier of big (640x640) chat photo. This file_id can be used only for photo download and // only for as long as the photo is not changed. BigFileID string `json:"big_file_id"` // Unique file identifier of big (640x640) chat photo, which is supposed to be the same over time and // for different bots. Can't be used to download or reuse the file. BigFileUniqueID string `json:"big_file_unique_id"` }
This object represents a chat photo. Ref: #/components/schemas/ChatPhoto
func (*ChatPhoto) GetBigFileID ¶
GetBigFileID returns the value of BigFileID.
func (*ChatPhoto) GetBigFileUniqueID ¶
GetBigFileUniqueID returns the value of BigFileUniqueID.
func (*ChatPhoto) GetSmallFileID ¶
GetSmallFileID returns the value of SmallFileID.
func (*ChatPhoto) GetSmallFileUniqueID ¶
GetSmallFileUniqueID returns the value of SmallFileUniqueID.
func (*ChatPhoto) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*ChatPhoto) SetBigFileID ¶
SetBigFileID sets the value of BigFileID.
func (*ChatPhoto) SetBigFileUniqueID ¶
SetBigFileUniqueID sets the value of BigFileUniqueID.
func (*ChatPhoto) SetSmallFileID ¶
SetSmallFileID sets the value of SmallFileID.
func (*ChatPhoto) SetSmallFileUniqueID ¶
SetSmallFileUniqueID sets the value of SmallFileUniqueID.
func (*ChatPhoto) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ChatType ¶
type ChatType string
Type of chat, can be either “private”, “group”, “supergroup” or “channel”.
func (ChatType) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (ChatType) MarshalText ¶
MarshalText implements encoding.TextMarshaler.
func (*ChatType) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ChatType) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
type ChosenInlineResult ¶
type ChosenInlineResult struct { // The unique identifier for the result that was chosen. ResultID string `json:"result_id"` From User `json:"from"` Location OptLocation `json:"location"` // Identifier of the sent inline message. Available only if there is an inline keyboard attached to // the message. Will be also received in callback queries and can be used to edit the message. InlineMessageID OptString `json:"inline_message_id"` // The query that was used to obtain the result. Query string `json:"query"` }
Represents a result of an inline query that was chosen by the user and sent to their chat partner. Ref: #/components/schemas/ChosenInlineResult
func (*ChosenInlineResult) Decode ¶
func (s *ChosenInlineResult) Decode(d *jx.Decoder) error
Decode decodes ChosenInlineResult from json.
func (*ChosenInlineResult) Encode ¶
func (s *ChosenInlineResult) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ChosenInlineResult) GetFrom ¶
func (s *ChosenInlineResult) GetFrom() User
GetFrom returns the value of From.
func (*ChosenInlineResult) GetInlineMessageID ¶
func (s *ChosenInlineResult) GetInlineMessageID() OptString
GetInlineMessageID returns the value of InlineMessageID.
func (*ChosenInlineResult) GetLocation ¶
func (s *ChosenInlineResult) GetLocation() OptLocation
GetLocation returns the value of Location.
func (*ChosenInlineResult) GetQuery ¶
func (s *ChosenInlineResult) GetQuery() string
GetQuery returns the value of Query.
func (*ChosenInlineResult) GetResultID ¶
func (s *ChosenInlineResult) GetResultID() string
GetResultID returns the value of ResultID.
func (*ChosenInlineResult) MarshalJSON ¶
func (s *ChosenInlineResult) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ChosenInlineResult) SetFake ¶
func (s *ChosenInlineResult) SetFake()
SetFake set fake values.
func (*ChosenInlineResult) SetFrom ¶
func (s *ChosenInlineResult) SetFrom(val User)
SetFrom sets the value of From.
func (*ChosenInlineResult) SetInlineMessageID ¶
func (s *ChosenInlineResult) SetInlineMessageID(val OptString)
SetInlineMessageID sets the value of InlineMessageID.
func (*ChosenInlineResult) SetLocation ¶
func (s *ChosenInlineResult) SetLocation(val OptLocation)
SetLocation sets the value of Location.
func (*ChosenInlineResult) SetQuery ¶
func (s *ChosenInlineResult) SetQuery(val string)
SetQuery sets the value of Query.
func (*ChosenInlineResult) SetResultID ¶
func (s *ChosenInlineResult) SetResultID(val string)
SetResultID sets the value of ResultID.
func (*ChosenInlineResult) UnmarshalJSON ¶
func (s *ChosenInlineResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ChosenInlineResult) Validate ¶
func (s *ChosenInlineResult) Validate() error
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements OAS client.
func NewClient ¶
func NewClient(serverURL string, opts ...ClientOption) (*Client, error)
NewClient initializes new Client defined by OAS.
func (*Client) AddStickerToSet ¶
AddStickerToSet invokes addStickerToSet operation.
POST /addStickerToSet
func (*Client) AnswerCallbackQuery ¶
func (c *Client) AnswerCallbackQuery(ctx context.Context, request *AnswerCallbackQuery) (*Result, error)
AnswerCallbackQuery invokes answerCallbackQuery operation.
POST /answerCallbackQuery
func (*Client) AnswerInlineQuery ¶
func (c *Client) AnswerInlineQuery(ctx context.Context, request *AnswerInlineQuery) (*Result, error)
AnswerInlineQuery invokes answerInlineQuery operation.
POST /answerInlineQuery
func (*Client) AnswerPreCheckoutQuery ¶
func (c *Client) AnswerPreCheckoutQuery(ctx context.Context, request *AnswerPreCheckoutQuery) (*Result, error)
AnswerPreCheckoutQuery invokes answerPreCheckoutQuery operation.
POST /answerPreCheckoutQuery
func (*Client) AnswerShippingQuery ¶
func (c *Client) AnswerShippingQuery(ctx context.Context, request *AnswerShippingQuery) (*Result, error)
AnswerShippingQuery invokes answerShippingQuery operation.
POST /answerShippingQuery
func (*Client) ApproveChatJoinRequest ¶
func (c *Client) ApproveChatJoinRequest(ctx context.Context, request *ApproveChatJoinRequest) (*Result, error)
ApproveChatJoinRequest invokes approveChatJoinRequest operation.
POST /approveChatJoinRequest
func (*Client) BanChatSenderChat ¶
func (c *Client) BanChatSenderChat(ctx context.Context, request *BanChatSenderChat) (*Result, error)
BanChatSenderChat invokes banChatSenderChat operation.
POST /banChatSenderChat
func (*Client) CopyMessage ¶
func (c *Client) CopyMessage(ctx context.Context, request *CopyMessage) (*ResultMessageId, error)
CopyMessage invokes copyMessage operation.
POST /copyMessage
func (*Client) CreateChatInviteLink ¶
func (c *Client) CreateChatInviteLink(ctx context.Context, request *CreateChatInviteLink) (*ResultChatInviteLink, error)
CreateChatInviteLink invokes createChatInviteLink operation.
POST /createChatInviteLink
func (*Client) CreateNewStickerSet ¶
func (c *Client) CreateNewStickerSet(ctx context.Context, request *CreateNewStickerSet) (*Result, error)
CreateNewStickerSet invokes createNewStickerSet operation.
POST /createNewStickerSet
func (*Client) DeclineChatJoinRequest ¶
func (c *Client) DeclineChatJoinRequest(ctx context.Context, request *DeclineChatJoinRequest) (*Result, error)
DeclineChatJoinRequest invokes declineChatJoinRequest operation.
POST /declineChatJoinRequest
func (*Client) DeleteChatPhoto ¶
DeleteChatPhoto invokes deleteChatPhoto operation.
POST /deleteChatPhoto
func (*Client) DeleteChatStickerSet ¶
func (c *Client) DeleteChatStickerSet(ctx context.Context, request *DeleteChatStickerSet) (*Result, error)
DeleteChatStickerSet invokes deleteChatStickerSet operation.
POST /deleteChatStickerSet
func (*Client) DeleteMyCommands ¶
func (c *Client) DeleteMyCommands(ctx context.Context, request OptDeleteMyCommands) (*Result, error)
DeleteMyCommands invokes deleteMyCommands operation.
POST /deleteMyCommands
func (*Client) DeleteStickerFromSet ¶
func (c *Client) DeleteStickerFromSet(ctx context.Context, request *DeleteStickerFromSet) (*Result, error)
DeleteStickerFromSet invokes deleteStickerFromSet operation.
POST /deleteStickerFromSet
func (*Client) EditChatInviteLink ¶
func (c *Client) EditChatInviteLink(ctx context.Context, request *EditChatInviteLink) (*ResultChatInviteLink, error)
EditChatInviteLink invokes editChatInviteLink operation.
POST /editChatInviteLink
func (*Client) EditMessageCaption ¶
func (c *Client) EditMessageCaption(ctx context.Context, request *EditMessageCaption) (*Result, error)
EditMessageCaption invokes editMessageCaption operation.
POST /editMessageCaption
func (*Client) EditMessageLiveLocation ¶
func (c *Client) EditMessageLiveLocation(ctx context.Context, request *EditMessageLiveLocation) (*Result, error)
EditMessageLiveLocation invokes editMessageLiveLocation operation.
POST /editMessageLiveLocation
func (*Client) EditMessageMedia ¶
EditMessageMedia invokes editMessageMedia operation.
POST /editMessageMedia
func (*Client) EditMessageReplyMarkup ¶
func (c *Client) EditMessageReplyMarkup(ctx context.Context, request *EditMessageReplyMarkup) (*Result, error)
EditMessageReplyMarkup invokes editMessageReplyMarkup operation.
POST /editMessageReplyMarkup
func (*Client) EditMessageText ¶
EditMessageText invokes editMessageText operation.
POST /editMessageText
func (*Client) ExportChatInviteLink ¶
func (c *Client) ExportChatInviteLink(ctx context.Context, request *ExportChatInviteLink) (*ResultString, error)
ExportChatInviteLink invokes exportChatInviteLink operation.
POST /exportChatInviteLink
func (*Client) ForwardMessage ¶
func (c *Client) ForwardMessage(ctx context.Context, request *ForwardMessage) (*ResultMessage, error)
ForwardMessage invokes forwardMessage operation.
POST /forwardMessage
func (*Client) GetChatAdministrators ¶
func (c *Client) GetChatAdministrators(ctx context.Context, request *GetChatAdministrators) (*ResultArrayOfChatMember, error)
GetChatAdministrators invokes getChatAdministrators operation.
POST /getChatAdministrators
func (*Client) GetChatMember ¶
func (c *Client) GetChatMember(ctx context.Context, request *GetChatMember) (*ResultChatMember, error)
GetChatMember invokes getChatMember operation.
POST /getChatMember
func (*Client) GetChatMemberCount ¶
func (c *Client) GetChatMemberCount(ctx context.Context, request *GetChatMemberCount) (*ResultInt, error)
GetChatMemberCount invokes getChatMemberCount operation.
POST /getChatMemberCount
func (*Client) GetGameHighScores ¶
func (c *Client) GetGameHighScores(ctx context.Context, request *GetGameHighScores) (*ResultArrayOfGameHighScore, error)
GetGameHighScores invokes getGameHighScores operation.
POST /getGameHighScores
func (*Client) GetMe ¶
func (c *Client) GetMe(ctx context.Context) (*ResultUser, error)
GetMe invokes getMe operation.
POST /getMe
func (*Client) GetMyCommands ¶
func (c *Client) GetMyCommands(ctx context.Context, request OptGetMyCommands) (*ResultArrayOfBotCommand, error)
GetMyCommands invokes getMyCommands operation.
POST /getMyCommands
func (*Client) GetUpdates ¶
func (c *Client) GetUpdates(ctx context.Context, request OptGetUpdates) (*ResultArrayOfUpdate, error)
GetUpdates invokes getUpdates operation.
POST /getUpdates
func (*Client) GetUserProfilePhotos ¶
func (c *Client) GetUserProfilePhotos(ctx context.Context, request *GetUserProfilePhotos) (*ResultUserProfilePhotos, error)
GetUserProfilePhotos invokes getUserProfilePhotos operation.
POST /getUserProfilePhotos
func (*Client) GetWebhookInfo ¶
func (c *Client) GetWebhookInfo(ctx context.Context) (*ResultWebhookInfo, error)
GetWebhookInfo invokes getWebhookInfo operation.
POST /getWebhookInfo
func (*Client) PinChatMessage ¶
PinChatMessage invokes pinChatMessage operation.
POST /pinChatMessage
func (*Client) PromoteChatMember ¶
func (c *Client) PromoteChatMember(ctx context.Context, request *PromoteChatMember) (*Result, error)
PromoteChatMember invokes promoteChatMember operation.
POST /promoteChatMember
func (*Client) RestrictChatMember ¶
func (c *Client) RestrictChatMember(ctx context.Context, request *RestrictChatMember) (*Result, error)
RestrictChatMember invokes restrictChatMember operation.
POST /restrictChatMember
func (*Client) RevokeChatInviteLink ¶
func (c *Client) RevokeChatInviteLink(ctx context.Context, request *RevokeChatInviteLink) (*ResultChatInviteLink, error)
RevokeChatInviteLink invokes revokeChatInviteLink operation.
POST /revokeChatInviteLink
func (*Client) SendAnimation ¶
func (c *Client) SendAnimation(ctx context.Context, request *SendAnimation) (*ResultMessage, error)
SendAnimation invokes sendAnimation operation.
POST /sendAnimation
func (*Client) SendChatAction ¶
SendChatAction invokes sendChatAction operation.
POST /sendChatAction
func (*Client) SendContact ¶
func (c *Client) SendContact(ctx context.Context, request *SendContact) (*ResultMessage, error)
SendContact invokes sendContact operation.
POST /sendContact
func (*Client) SendDocument ¶
func (c *Client) SendDocument(ctx context.Context, request *SendDocument) (*ResultMessage, error)
SendDocument invokes sendDocument operation.
POST /sendDocument
func (*Client) SendInvoice ¶
func (c *Client) SendInvoice(ctx context.Context, request *SendInvoice) (*ResultMessage, error)
SendInvoice invokes sendInvoice operation.
POST /sendInvoice
func (*Client) SendLocation ¶
func (c *Client) SendLocation(ctx context.Context, request *SendLocation) (*ResultMessage, error)
SendLocation invokes sendLocation operation.
POST /sendLocation
func (*Client) SendMediaGroup ¶
func (c *Client) SendMediaGroup(ctx context.Context, request *SendMediaGroup) (*ResultArrayOfMessage, error)
SendMediaGroup invokes sendMediaGroup operation.
POST /sendMediaGroup
func (*Client) SendMessage ¶
func (c *Client) SendMessage(ctx context.Context, request *SendMessage) (*ResultMessage, error)
SendMessage invokes sendMessage operation.
POST /sendMessage
func (*Client) SendSticker ¶
func (c *Client) SendSticker(ctx context.Context, request *SendSticker) (*ResultMessage, error)
SendSticker invokes sendSticker operation.
POST /sendSticker
func (*Client) SendVideoNote ¶
func (c *Client) SendVideoNote(ctx context.Context, request *SendVideoNote) (*ResultMessage, error)
SendVideoNote invokes sendVideoNote operation.
POST /sendVideoNote
func (*Client) SetChatAdministratorCustomTitle ¶
func (c *Client) SetChatAdministratorCustomTitle(ctx context.Context, request *SetChatAdministratorCustomTitle) (*Result, error)
SetChatAdministratorCustomTitle invokes setChatAdministratorCustomTitle operation.
POST /setChatAdministratorCustomTitle
func (*Client) SetChatDescription ¶
func (c *Client) SetChatDescription(ctx context.Context, request *SetChatDescription) (*Result, error)
SetChatDescription invokes setChatDescription operation.
POST /setChatDescription
func (*Client) SetChatPermissions ¶
func (c *Client) SetChatPermissions(ctx context.Context, request *SetChatPermissions) (*Result, error)
SetChatPermissions invokes setChatPermissions operation.
POST /setChatPermissions
func (*Client) SetChatStickerSet ¶
func (c *Client) SetChatStickerSet(ctx context.Context, request *SetChatStickerSet) (*Result, error)
SetChatStickerSet invokes setChatStickerSet operation.
POST /setChatStickerSet
func (*Client) SetPassportDataErrors ¶
func (c *Client) SetPassportDataErrors(ctx context.Context, request *SetPassportDataErrors) (*Result, error)
SetPassportDataErrors invokes setPassportDataErrors operation.
POST /setPassportDataErrors
func (*Client) SetStickerPositionInSet ¶
func (c *Client) SetStickerPositionInSet(ctx context.Context, request *SetStickerPositionInSet) (*Result, error)
SetStickerPositionInSet invokes setStickerPositionInSet operation.
POST /setStickerPositionInSet
func (*Client) SetStickerSetThumb ¶
func (c *Client) SetStickerSetThumb(ctx context.Context, request *SetStickerSetThumb) (*Result, error)
SetStickerSetThumb invokes setStickerSetThumb operation.
POST /setStickerSetThumb
func (*Client) StopMessageLiveLocation ¶
func (c *Client) StopMessageLiveLocation(ctx context.Context, request *StopMessageLiveLocation) (*Result, error)
StopMessageLiveLocation invokes stopMessageLiveLocation operation.
POST /stopMessageLiveLocation
func (*Client) UnbanChatMember ¶
UnbanChatMember invokes unbanChatMember operation.
POST /unbanChatMember
func (*Client) UnbanChatSenderChat ¶
func (c *Client) UnbanChatSenderChat(ctx context.Context, request *UnbanChatSenderChat) (*Result, error)
UnbanChatSenderChat invokes unbanChatSenderChat operation.
POST /unbanChatSenderChat
func (*Client) UnpinAllChatMessages ¶
func (c *Client) UnpinAllChatMessages(ctx context.Context, request *UnpinAllChatMessages) (*Result, error)
UnpinAllChatMessages invokes unpinAllChatMessages operation.
POST /unpinAllChatMessages
func (*Client) UnpinChatMessage ¶
UnpinChatMessage invokes unpinChatMessage operation.
POST /unpinChatMessage
func (*Client) UploadStickerFile ¶
func (c *Client) UploadStickerFile(ctx context.Context, request *UploadStickerFile) (*ResultFile, error)
UploadStickerFile invokes uploadStickerFile operation.
POST /uploadStickerFile
type ClientOption ¶
type ClientOption interface {
// contains filtered or unexported methods
}
ClientOption is client config option.
func WithClient ¶
func WithClient(client ht.Client) ClientOption
WithClient specifies http client to use.
type Contact ¶
type Contact struct { // Contact's phone number. PhoneNumber string `json:"phone_number"` // Contact's first name. FirstName string `json:"first_name"` // Contact's last name. LastName OptString `json:"last_name"` // Contact's user identifier in Telegram. This number may have more than 32 significant bits and some // programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 // significant bits, so a 64-bit integer or double-precision float type are safe for storing this // identifier. UserID OptInt64 `json:"user_id"` // Additional data about the contact in the form of a vCard. Vcard OptString `json:"vcard"` }
This object represents a phone contact. Ref: #/components/schemas/Contact
func (*Contact) GetFirstName ¶
GetFirstName returns the value of FirstName.
func (*Contact) GetLastName ¶
GetLastName returns the value of LastName.
func (*Contact) GetPhoneNumber ¶
GetPhoneNumber returns the value of PhoneNumber.
func (*Contact) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Contact) SetFirstName ¶
SetFirstName sets the value of FirstName.
func (*Contact) SetLastName ¶
SetLastName sets the value of LastName.
func (*Contact) SetPhoneNumber ¶
SetPhoneNumber sets the value of PhoneNumber.
func (*Contact) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type CopyMessage ¶
type CopyMessage struct { ChatID ID `json:"chat_id"` FromChatID ID `json:"from_chat_id"` // Message identifier in the chat specified in from_chat_id. MessageID int `json:"message_id"` // New caption for media, 0-1024 characters after entities parsing. If not specified, the original // caption is kept. Caption OptString `json:"caption"` // Mode for parsing entities in the new caption. See formatting options for more details. ParseMode OptString `json:"parse_mode"` // A JSON-serialized list of special entities that appear in the new caption, which can be specified // instead of parse_mode. CaptionEntities []MessageEntity `json:"caption_entities"` // Sends the message silently. Users will receive a notification with no sound. DisableNotification OptBool `json:"disable_notification"` // If the message is a reply, ID of the original message. ReplyToMessageID OptInt `json:"reply_to_message_id"` // Pass True, if the message should be sent even if the specified replied-to message is not found. AllowSendingWithoutReply OptBool `json:"allow_sending_without_reply"` // Additional interface options. A JSON-serialized object for an inline keyboard, custom reply // keyboard, instructions to remove reply keyboard or to force a reply from the user. ReplyMarkup OptCopyMessageReplyMarkup `json:"reply_markup"` }
Input for copyMessage. Ref: #/components/schemas/copyMessage
func (*CopyMessage) Decode ¶
func (s *CopyMessage) Decode(d *jx.Decoder) error
Decode decodes CopyMessage from json.
func (*CopyMessage) Encode ¶
func (s *CopyMessage) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CopyMessage) GetAllowSendingWithoutReply ¶
func (s *CopyMessage) GetAllowSendingWithoutReply() OptBool
GetAllowSendingWithoutReply returns the value of AllowSendingWithoutReply.
func (*CopyMessage) GetCaption ¶
func (s *CopyMessage) GetCaption() OptString
GetCaption returns the value of Caption.
func (*CopyMessage) GetCaptionEntities ¶
func (s *CopyMessage) GetCaptionEntities() []MessageEntity
GetCaptionEntities returns the value of CaptionEntities.
func (*CopyMessage) GetChatID ¶
func (s *CopyMessage) GetChatID() ID
GetChatID returns the value of ChatID.
func (*CopyMessage) GetDisableNotification ¶
func (s *CopyMessage) GetDisableNotification() OptBool
GetDisableNotification returns the value of DisableNotification.
func (*CopyMessage) GetFromChatID ¶
func (s *CopyMessage) GetFromChatID() ID
GetFromChatID returns the value of FromChatID.
func (*CopyMessage) GetMessageID ¶
func (s *CopyMessage) GetMessageID() int
GetMessageID returns the value of MessageID.
func (*CopyMessage) GetParseMode ¶
func (s *CopyMessage) GetParseMode() OptString
GetParseMode returns the value of ParseMode.
func (*CopyMessage) GetReplyMarkup ¶
func (s *CopyMessage) GetReplyMarkup() OptCopyMessageReplyMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*CopyMessage) GetReplyToMessageID ¶
func (s *CopyMessage) GetReplyToMessageID() OptInt
GetReplyToMessageID returns the value of ReplyToMessageID.
func (*CopyMessage) MarshalJSON ¶
func (s *CopyMessage) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CopyMessage) SetAllowSendingWithoutReply ¶
func (s *CopyMessage) SetAllowSendingWithoutReply(val OptBool)
SetAllowSendingWithoutReply sets the value of AllowSendingWithoutReply.
func (*CopyMessage) SetCaption ¶
func (s *CopyMessage) SetCaption(val OptString)
SetCaption sets the value of Caption.
func (*CopyMessage) SetCaptionEntities ¶
func (s *CopyMessage) SetCaptionEntities(val []MessageEntity)
SetCaptionEntities sets the value of CaptionEntities.
func (*CopyMessage) SetChatID ¶
func (s *CopyMessage) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*CopyMessage) SetDisableNotification ¶
func (s *CopyMessage) SetDisableNotification(val OptBool)
SetDisableNotification sets the value of DisableNotification.
func (*CopyMessage) SetFromChatID ¶
func (s *CopyMessage) SetFromChatID(val ID)
SetFromChatID sets the value of FromChatID.
func (*CopyMessage) SetMessageID ¶
func (s *CopyMessage) SetMessageID(val int)
SetMessageID sets the value of MessageID.
func (*CopyMessage) SetParseMode ¶
func (s *CopyMessage) SetParseMode(val OptString)
SetParseMode sets the value of ParseMode.
func (*CopyMessage) SetReplyMarkup ¶
func (s *CopyMessage) SetReplyMarkup(val OptCopyMessageReplyMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*CopyMessage) SetReplyToMessageID ¶
func (s *CopyMessage) SetReplyToMessageID(val OptInt)
SetReplyToMessageID sets the value of ReplyToMessageID.
func (*CopyMessage) UnmarshalJSON ¶
func (s *CopyMessage) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*CopyMessage) Validate ¶
func (s *CopyMessage) Validate() error
type CopyMessageReplyMarkup ¶
type CopyMessageReplyMarkup struct { Type CopyMessageReplyMarkupType // switch on this field InlineKeyboardMarkup InlineKeyboardMarkup ReplyKeyboardMarkup ReplyKeyboardMarkup ReplyKeyboardRemove ReplyKeyboardRemove ForceReply ForceReply }
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. CopyMessageReplyMarkup represents sum type.
func NewForceReplyCopyMessageReplyMarkup ¶
func NewForceReplyCopyMessageReplyMarkup(v ForceReply) CopyMessageReplyMarkup
NewForceReplyCopyMessageReplyMarkup returns new CopyMessageReplyMarkup from ForceReply.
func NewInlineKeyboardMarkupCopyMessageReplyMarkup ¶
func NewInlineKeyboardMarkupCopyMessageReplyMarkup(v InlineKeyboardMarkup) CopyMessageReplyMarkup
NewInlineKeyboardMarkupCopyMessageReplyMarkup returns new CopyMessageReplyMarkup from InlineKeyboardMarkup.
func NewReplyKeyboardMarkupCopyMessageReplyMarkup ¶
func NewReplyKeyboardMarkupCopyMessageReplyMarkup(v ReplyKeyboardMarkup) CopyMessageReplyMarkup
NewReplyKeyboardMarkupCopyMessageReplyMarkup returns new CopyMessageReplyMarkup from ReplyKeyboardMarkup.
func NewReplyKeyboardRemoveCopyMessageReplyMarkup ¶
func NewReplyKeyboardRemoveCopyMessageReplyMarkup(v ReplyKeyboardRemove) CopyMessageReplyMarkup
NewReplyKeyboardRemoveCopyMessageReplyMarkup returns new CopyMessageReplyMarkup from ReplyKeyboardRemove.
func (*CopyMessageReplyMarkup) Decode ¶
func (s *CopyMessageReplyMarkup) Decode(d *jx.Decoder) error
Decode decodes CopyMessageReplyMarkup from json.
func (CopyMessageReplyMarkup) Encode ¶
func (s CopyMessageReplyMarkup) Encode(e *jx.Encoder)
Encode encodes CopyMessageReplyMarkup as json.
func (CopyMessageReplyMarkup) GetForceReply ¶
func (s CopyMessageReplyMarkup) GetForceReply() (v ForceReply, ok bool)
GetForceReply returns ForceReply and true boolean if CopyMessageReplyMarkup is ForceReply.
func (CopyMessageReplyMarkup) GetInlineKeyboardMarkup ¶
func (s CopyMessageReplyMarkup) GetInlineKeyboardMarkup() (v InlineKeyboardMarkup, ok bool)
GetInlineKeyboardMarkup returns InlineKeyboardMarkup and true boolean if CopyMessageReplyMarkup is InlineKeyboardMarkup.
func (CopyMessageReplyMarkup) GetReplyKeyboardMarkup ¶
func (s CopyMessageReplyMarkup) GetReplyKeyboardMarkup() (v ReplyKeyboardMarkup, ok bool)
GetReplyKeyboardMarkup returns ReplyKeyboardMarkup and true boolean if CopyMessageReplyMarkup is ReplyKeyboardMarkup.
func (CopyMessageReplyMarkup) GetReplyKeyboardRemove ¶
func (s CopyMessageReplyMarkup) GetReplyKeyboardRemove() (v ReplyKeyboardRemove, ok bool)
GetReplyKeyboardRemove returns ReplyKeyboardRemove and true boolean if CopyMessageReplyMarkup is ReplyKeyboardRemove.
func (CopyMessageReplyMarkup) IsForceReply ¶
func (s CopyMessageReplyMarkup) IsForceReply() bool
IsForceReply reports whether CopyMessageReplyMarkup is ForceReply.
func (CopyMessageReplyMarkup) IsInlineKeyboardMarkup ¶
func (s CopyMessageReplyMarkup) IsInlineKeyboardMarkup() bool
IsInlineKeyboardMarkup reports whether CopyMessageReplyMarkup is InlineKeyboardMarkup.
func (CopyMessageReplyMarkup) IsReplyKeyboardMarkup ¶
func (s CopyMessageReplyMarkup) IsReplyKeyboardMarkup() bool
IsReplyKeyboardMarkup reports whether CopyMessageReplyMarkup is ReplyKeyboardMarkup.
func (CopyMessageReplyMarkup) IsReplyKeyboardRemove ¶
func (s CopyMessageReplyMarkup) IsReplyKeyboardRemove() bool
IsReplyKeyboardRemove reports whether CopyMessageReplyMarkup is ReplyKeyboardRemove.
func (CopyMessageReplyMarkup) MarshalJSON ¶
func (s CopyMessageReplyMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CopyMessageReplyMarkup) SetFake ¶
func (s *CopyMessageReplyMarkup) SetFake()
SetFake set fake values.
func (*CopyMessageReplyMarkup) SetForceReply ¶
func (s *CopyMessageReplyMarkup) SetForceReply(v ForceReply)
SetForceReply sets CopyMessageReplyMarkup to ForceReply.
func (*CopyMessageReplyMarkup) SetInlineKeyboardMarkup ¶
func (s *CopyMessageReplyMarkup) SetInlineKeyboardMarkup(v InlineKeyboardMarkup)
SetInlineKeyboardMarkup sets CopyMessageReplyMarkup to InlineKeyboardMarkup.
func (*CopyMessageReplyMarkup) SetReplyKeyboardMarkup ¶
func (s *CopyMessageReplyMarkup) SetReplyKeyboardMarkup(v ReplyKeyboardMarkup)
SetReplyKeyboardMarkup sets CopyMessageReplyMarkup to ReplyKeyboardMarkup.
func (*CopyMessageReplyMarkup) SetReplyKeyboardRemove ¶
func (s *CopyMessageReplyMarkup) SetReplyKeyboardRemove(v ReplyKeyboardRemove)
SetReplyKeyboardRemove sets CopyMessageReplyMarkup to ReplyKeyboardRemove.
func (*CopyMessageReplyMarkup) UnmarshalJSON ¶
func (s *CopyMessageReplyMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (CopyMessageReplyMarkup) Validate ¶
func (s CopyMessageReplyMarkup) Validate() error
type CopyMessageReplyMarkupType ¶
type CopyMessageReplyMarkupType string
CopyMessageReplyMarkupType is oneOf type of CopyMessageReplyMarkup.
const ( InlineKeyboardMarkupCopyMessageReplyMarkup CopyMessageReplyMarkupType = "InlineKeyboardMarkup" ReplyKeyboardMarkupCopyMessageReplyMarkup CopyMessageReplyMarkupType = "ReplyKeyboardMarkup" ReplyKeyboardRemoveCopyMessageReplyMarkup CopyMessageReplyMarkupType = "ReplyKeyboardRemove" ForceReplyCopyMessageReplyMarkup CopyMessageReplyMarkupType = "ForceReply" )
Possible values for CopyMessageReplyMarkupType.
type CreateChatInviteLink ¶
type CreateChatInviteLink struct { ChatID ID `json:"chat_id"` // Invite link name; 0-32 characters. Name OptString `json:"name"` // Point in time (Unix timestamp) when the link will expire. ExpireDate OptInt `json:"expire_date"` // Maximum number of users that can be members of the chat simultaneously after joining the chat via // this invite link; 1-99999. MemberLimit OptInt `json:"member_limit"` // True, if users joining the chat via the link need to be approved by chat administrators. If True, // member_limit can't be specified. CreatesJoinRequest OptBool `json:"creates_join_request"` }
Input for createChatInviteLink. Ref: #/components/schemas/createChatInviteLink
func (*CreateChatInviteLink) Decode ¶
func (s *CreateChatInviteLink) Decode(d *jx.Decoder) error
Decode decodes CreateChatInviteLink from json.
func (*CreateChatInviteLink) Encode ¶
func (s *CreateChatInviteLink) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CreateChatInviteLink) GetChatID ¶
func (s *CreateChatInviteLink) GetChatID() ID
GetChatID returns the value of ChatID.
func (*CreateChatInviteLink) GetCreatesJoinRequest ¶
func (s *CreateChatInviteLink) GetCreatesJoinRequest() OptBool
GetCreatesJoinRequest returns the value of CreatesJoinRequest.
func (*CreateChatInviteLink) GetExpireDate ¶
func (s *CreateChatInviteLink) GetExpireDate() OptInt
GetExpireDate returns the value of ExpireDate.
func (*CreateChatInviteLink) GetMemberLimit ¶
func (s *CreateChatInviteLink) GetMemberLimit() OptInt
GetMemberLimit returns the value of MemberLimit.
func (*CreateChatInviteLink) GetName ¶
func (s *CreateChatInviteLink) GetName() OptString
GetName returns the value of Name.
func (*CreateChatInviteLink) MarshalJSON ¶
func (s *CreateChatInviteLink) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreateChatInviteLink) SetChatID ¶
func (s *CreateChatInviteLink) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*CreateChatInviteLink) SetCreatesJoinRequest ¶
func (s *CreateChatInviteLink) SetCreatesJoinRequest(val OptBool)
SetCreatesJoinRequest sets the value of CreatesJoinRequest.
func (*CreateChatInviteLink) SetExpireDate ¶
func (s *CreateChatInviteLink) SetExpireDate(val OptInt)
SetExpireDate sets the value of ExpireDate.
func (*CreateChatInviteLink) SetFake ¶
func (s *CreateChatInviteLink) SetFake()
SetFake set fake values.
func (*CreateChatInviteLink) SetMemberLimit ¶
func (s *CreateChatInviteLink) SetMemberLimit(val OptInt)
SetMemberLimit sets the value of MemberLimit.
func (*CreateChatInviteLink) SetName ¶
func (s *CreateChatInviteLink) SetName(val OptString)
SetName sets the value of Name.
func (*CreateChatInviteLink) UnmarshalJSON ¶
func (s *CreateChatInviteLink) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*CreateChatInviteLink) Validate ¶
func (s *CreateChatInviteLink) Validate() error
type CreateNewStickerSet ¶
type CreateNewStickerSet struct { // User identifier of created sticker set owner. UserID int64 `json:"user_id"` // Short name of sticker set, to be used in t.me/addstickers/ URLs (e.g., animals). Can contain only // english letters, digits and underscores. Must begin with a letter, can't contain consecutive // underscores and must end in “_by_<bot username>”. <bot_username> is case insensitive. 1-64 // characters. Name string `json:"name"` // Sticker set title, 1-64 characters. Title string `json:"title"` // PNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, // and either width or height must be exactly 512px. Pass a file_id as a String to send a file that // already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file // from the Internet, or upload a new one using multipart/form-data. More info on Sending Files ». PNGSticker OptString `json:"png_sticker"` // TGS animation with the sticker, uploaded using multipart/form-data. See https://core.telegram. // org/animated_stickers#technical-requirements for technical requirements. TgsSticker OptString `json:"tgs_sticker"` // One or more emoji corresponding to the sticker. Emojis string `json:"emojis"` // Pass True, if a set of mask stickers should be created. ContainsMasks OptBool `json:"contains_masks"` MaskPosition OptMaskPosition `json:"mask_position"` }
Input for createNewStickerSet. Ref: #/components/schemas/createNewStickerSet
func (*CreateNewStickerSet) Decode ¶
func (s *CreateNewStickerSet) Decode(d *jx.Decoder) error
Decode decodes CreateNewStickerSet from json.
func (*CreateNewStickerSet) Encode ¶
func (s *CreateNewStickerSet) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CreateNewStickerSet) GetContainsMasks ¶
func (s *CreateNewStickerSet) GetContainsMasks() OptBool
GetContainsMasks returns the value of ContainsMasks.
func (*CreateNewStickerSet) GetEmojis ¶
func (s *CreateNewStickerSet) GetEmojis() string
GetEmojis returns the value of Emojis.
func (*CreateNewStickerSet) GetMaskPosition ¶
func (s *CreateNewStickerSet) GetMaskPosition() OptMaskPosition
GetMaskPosition returns the value of MaskPosition.
func (*CreateNewStickerSet) GetName ¶
func (s *CreateNewStickerSet) GetName() string
GetName returns the value of Name.
func (*CreateNewStickerSet) GetPNGSticker ¶
func (s *CreateNewStickerSet) GetPNGSticker() OptString
GetPNGSticker returns the value of PNGSticker.
func (*CreateNewStickerSet) GetTgsSticker ¶
func (s *CreateNewStickerSet) GetTgsSticker() OptString
GetTgsSticker returns the value of TgsSticker.
func (*CreateNewStickerSet) GetTitle ¶
func (s *CreateNewStickerSet) GetTitle() string
GetTitle returns the value of Title.
func (*CreateNewStickerSet) GetUserID ¶
func (s *CreateNewStickerSet) GetUserID() int64
GetUserID returns the value of UserID.
func (*CreateNewStickerSet) MarshalJSON ¶
func (s *CreateNewStickerSet) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreateNewStickerSet) SetContainsMasks ¶
func (s *CreateNewStickerSet) SetContainsMasks(val OptBool)
SetContainsMasks sets the value of ContainsMasks.
func (*CreateNewStickerSet) SetEmojis ¶
func (s *CreateNewStickerSet) SetEmojis(val string)
SetEmojis sets the value of Emojis.
func (*CreateNewStickerSet) SetFake ¶
func (s *CreateNewStickerSet) SetFake()
SetFake set fake values.
func (*CreateNewStickerSet) SetMaskPosition ¶
func (s *CreateNewStickerSet) SetMaskPosition(val OptMaskPosition)
SetMaskPosition sets the value of MaskPosition.
func (*CreateNewStickerSet) SetName ¶
func (s *CreateNewStickerSet) SetName(val string)
SetName sets the value of Name.
func (*CreateNewStickerSet) SetPNGSticker ¶
func (s *CreateNewStickerSet) SetPNGSticker(val OptString)
SetPNGSticker sets the value of PNGSticker.
func (*CreateNewStickerSet) SetTgsSticker ¶
func (s *CreateNewStickerSet) SetTgsSticker(val OptString)
SetTgsSticker sets the value of TgsSticker.
func (*CreateNewStickerSet) SetTitle ¶
func (s *CreateNewStickerSet) SetTitle(val string)
SetTitle sets the value of Title.
func (*CreateNewStickerSet) SetUserID ¶
func (s *CreateNewStickerSet) SetUserID(val int64)
SetUserID sets the value of UserID.
func (*CreateNewStickerSet) UnmarshalJSON ¶
func (s *CreateNewStickerSet) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*CreateNewStickerSet) Validate ¶
func (s *CreateNewStickerSet) Validate() error
type DeclineChatJoinRequest ¶
type DeclineChatJoinRequest struct { ChatID ID `json:"chat_id"` // Unique identifier of the target user. UserID int64 `json:"user_id"` }
Input for declineChatJoinRequest. Ref: #/components/schemas/declineChatJoinRequest
func (*DeclineChatJoinRequest) Decode ¶
func (s *DeclineChatJoinRequest) Decode(d *jx.Decoder) error
Decode decodes DeclineChatJoinRequest from json.
func (*DeclineChatJoinRequest) Encode ¶
func (s *DeclineChatJoinRequest) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*DeclineChatJoinRequest) GetChatID ¶
func (s *DeclineChatJoinRequest) GetChatID() ID
GetChatID returns the value of ChatID.
func (*DeclineChatJoinRequest) GetUserID ¶
func (s *DeclineChatJoinRequest) GetUserID() int64
GetUserID returns the value of UserID.
func (*DeclineChatJoinRequest) MarshalJSON ¶
func (s *DeclineChatJoinRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*DeclineChatJoinRequest) SetChatID ¶
func (s *DeclineChatJoinRequest) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*DeclineChatJoinRequest) SetFake ¶
func (s *DeclineChatJoinRequest) SetFake()
SetFake set fake values.
func (*DeclineChatJoinRequest) SetUserID ¶
func (s *DeclineChatJoinRequest) SetUserID(val int64)
SetUserID sets the value of UserID.
func (*DeclineChatJoinRequest) UnmarshalJSON ¶
func (s *DeclineChatJoinRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type DeleteChatPhoto ¶
type DeleteChatPhoto struct {
ChatID ID `json:"chat_id"`
}
Input for deleteChatPhoto. Ref: #/components/schemas/deleteChatPhoto
func (*DeleteChatPhoto) Decode ¶
func (s *DeleteChatPhoto) Decode(d *jx.Decoder) error
Decode decodes DeleteChatPhoto from json.
func (*DeleteChatPhoto) Encode ¶
func (s *DeleteChatPhoto) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*DeleteChatPhoto) GetChatID ¶
func (s *DeleteChatPhoto) GetChatID() ID
GetChatID returns the value of ChatID.
func (*DeleteChatPhoto) MarshalJSON ¶
func (s *DeleteChatPhoto) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*DeleteChatPhoto) SetChatID ¶
func (s *DeleteChatPhoto) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*DeleteChatPhoto) UnmarshalJSON ¶
func (s *DeleteChatPhoto) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type DeleteChatStickerSet ¶
type DeleteChatStickerSet struct {
ChatID ID `json:"chat_id"`
}
Input for deleteChatStickerSet. Ref: #/components/schemas/deleteChatStickerSet
func (*DeleteChatStickerSet) Decode ¶
func (s *DeleteChatStickerSet) Decode(d *jx.Decoder) error
Decode decodes DeleteChatStickerSet from json.
func (*DeleteChatStickerSet) Encode ¶
func (s *DeleteChatStickerSet) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*DeleteChatStickerSet) GetChatID ¶
func (s *DeleteChatStickerSet) GetChatID() ID
GetChatID returns the value of ChatID.
func (*DeleteChatStickerSet) MarshalJSON ¶
func (s *DeleteChatStickerSet) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*DeleteChatStickerSet) SetChatID ¶
func (s *DeleteChatStickerSet) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*DeleteChatStickerSet) SetFake ¶
func (s *DeleteChatStickerSet) SetFake()
SetFake set fake values.
func (*DeleteChatStickerSet) UnmarshalJSON ¶
func (s *DeleteChatStickerSet) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type DeleteMessage ¶
type DeleteMessage struct { ChatID ID `json:"chat_id"` // Identifier of the message to delete. MessageID int `json:"message_id"` }
Input for deleteMessage. Ref: #/components/schemas/deleteMessage
func (*DeleteMessage) Decode ¶
func (s *DeleteMessage) Decode(d *jx.Decoder) error
Decode decodes DeleteMessage from json.
func (*DeleteMessage) Encode ¶
func (s *DeleteMessage) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*DeleteMessage) GetChatID ¶
func (s *DeleteMessage) GetChatID() ID
GetChatID returns the value of ChatID.
func (*DeleteMessage) GetMessageID ¶
func (s *DeleteMessage) GetMessageID() int
GetMessageID returns the value of MessageID.
func (*DeleteMessage) MarshalJSON ¶
func (s *DeleteMessage) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*DeleteMessage) SetChatID ¶
func (s *DeleteMessage) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*DeleteMessage) SetMessageID ¶
func (s *DeleteMessage) SetMessageID(val int)
SetMessageID sets the value of MessageID.
func (*DeleteMessage) UnmarshalJSON ¶
func (s *DeleteMessage) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type DeleteMyCommands ¶
type DeleteMyCommands struct { Scope OptBotCommandScope `json:"scope"` // A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the // given scope, for whose language there are no dedicated commands. LanguageCode OptString `json:"language_code"` }
Input for deleteMyCommands. Ref: #/components/schemas/deleteMyCommands
func (*DeleteMyCommands) Decode ¶
func (s *DeleteMyCommands) Decode(d *jx.Decoder) error
Decode decodes DeleteMyCommands from json.
func (*DeleteMyCommands) Encode ¶
func (s *DeleteMyCommands) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*DeleteMyCommands) GetLanguageCode ¶
func (s *DeleteMyCommands) GetLanguageCode() OptString
GetLanguageCode returns the value of LanguageCode.
func (*DeleteMyCommands) GetScope ¶
func (s *DeleteMyCommands) GetScope() OptBotCommandScope
GetScope returns the value of Scope.
func (*DeleteMyCommands) MarshalJSON ¶
func (s *DeleteMyCommands) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*DeleteMyCommands) SetLanguageCode ¶
func (s *DeleteMyCommands) SetLanguageCode(val OptString)
SetLanguageCode sets the value of LanguageCode.
func (*DeleteMyCommands) SetScope ¶
func (s *DeleteMyCommands) SetScope(val OptBotCommandScope)
SetScope sets the value of Scope.
func (*DeleteMyCommands) UnmarshalJSON ¶
func (s *DeleteMyCommands) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type DeleteStickerFromSet ¶
type DeleteStickerFromSet struct { // File identifier of the sticker. Sticker string `json:"sticker"` }
Input for deleteStickerFromSet. Ref: #/components/schemas/deleteStickerFromSet
func (*DeleteStickerFromSet) Decode ¶
func (s *DeleteStickerFromSet) Decode(d *jx.Decoder) error
Decode decodes DeleteStickerFromSet from json.
func (*DeleteStickerFromSet) Encode ¶
func (s *DeleteStickerFromSet) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*DeleteStickerFromSet) GetSticker ¶
func (s *DeleteStickerFromSet) GetSticker() string
GetSticker returns the value of Sticker.
func (*DeleteStickerFromSet) MarshalJSON ¶
func (s *DeleteStickerFromSet) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*DeleteStickerFromSet) SetFake ¶
func (s *DeleteStickerFromSet) SetFake()
SetFake set fake values.
func (*DeleteStickerFromSet) SetSticker ¶
func (s *DeleteStickerFromSet) SetSticker(val string)
SetSticker sets the value of Sticker.
func (*DeleteStickerFromSet) UnmarshalJSON ¶
func (s *DeleteStickerFromSet) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type DeleteWebhook ¶
type DeleteWebhook struct { // Pass True to drop all pending updates. DropPendingUpdates OptBool `json:"drop_pending_updates"` }
Input for deleteWebhook. Ref: #/components/schemas/deleteWebhook
func (*DeleteWebhook) Decode ¶
func (s *DeleteWebhook) Decode(d *jx.Decoder) error
Decode decodes DeleteWebhook from json.
func (*DeleteWebhook) Encode ¶
func (s *DeleteWebhook) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*DeleteWebhook) GetDropPendingUpdates ¶
func (s *DeleteWebhook) GetDropPendingUpdates() OptBool
GetDropPendingUpdates returns the value of DropPendingUpdates.
func (*DeleteWebhook) MarshalJSON ¶
func (s *DeleteWebhook) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*DeleteWebhook) SetDropPendingUpdates ¶
func (s *DeleteWebhook) SetDropPendingUpdates(val OptBool)
SetDropPendingUpdates sets the value of DropPendingUpdates.
func (*DeleteWebhook) UnmarshalJSON ¶
func (s *DeleteWebhook) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Dice ¶
type Dice struct { // Emoji on which the dice throw animation is based. Emoji string `json:"emoji"` // Value of the dice, 1-6 for “”, “” and “” base emoji, 1-5 for “” and “” base // emoji, 1-64 for “” base emoji. Value int `json:"value"` }
This object represents an animated emoji that displays a random value. Ref: #/components/schemas/Dice
func (*Dice) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Dice) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type Document ¶
type Document struct { // Identifier for this file, which can be used to download or reuse the file. FileID string `json:"file_id"` // Unique identifier for this file, which is supposed to be the same over time and for different bots. // Can't be used to download or reuse the file. FileUniqueID string `json:"file_unique_id"` Thumb OptPhotoSize `json:"thumb"` // Original filename as defined by sender. FileName OptString `json:"file_name"` // MIME type of the file as defined by sender. MimeType OptString `json:"mime_type"` // File size in bytes. FileSize OptInt `json:"file_size"` }
This object represents a general file (as opposed to photos, voice messages and audio files). Ref: #/components/schemas/Document
func (*Document) GetFileName ¶
GetFileName returns the value of FileName.
func (*Document) GetFileSize ¶
GetFileSize returns the value of FileSize.
func (*Document) GetFileUniqueID ¶
GetFileUniqueID returns the value of FileUniqueID.
func (*Document) GetMimeType ¶
GetMimeType returns the value of MimeType.
func (*Document) GetThumb ¶
func (s *Document) GetThumb() OptPhotoSize
GetThumb returns the value of Thumb.
func (*Document) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Document) SetFileName ¶
SetFileName sets the value of FileName.
func (*Document) SetFileSize ¶
SetFileSize sets the value of FileSize.
func (*Document) SetFileUniqueID ¶
SetFileUniqueID sets the value of FileUniqueID.
func (*Document) SetMimeType ¶
SetMimeType sets the value of MimeType.
func (*Document) SetThumb ¶
func (s *Document) SetThumb(val OptPhotoSize)
SetThumb sets the value of Thumb.
func (*Document) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type EditChatInviteLink ¶
type EditChatInviteLink struct { ChatID ID `json:"chat_id"` // The invite link to edit. InviteLink string `json:"invite_link"` // Invite link name; 0-32 characters. Name OptString `json:"name"` // Point in time (Unix timestamp) when the link will expire. ExpireDate OptInt `json:"expire_date"` // Maximum number of users that can be members of the chat simultaneously after joining the chat via // this invite link; 1-99999. MemberLimit OptInt `json:"member_limit"` // True, if users joining the chat via the link need to be approved by chat administrators. If True, // member_limit can't be specified. CreatesJoinRequest OptBool `json:"creates_join_request"` }
Input for editChatInviteLink. Ref: #/components/schemas/editChatInviteLink
func (*EditChatInviteLink) Decode ¶
func (s *EditChatInviteLink) Decode(d *jx.Decoder) error
Decode decodes EditChatInviteLink from json.
func (*EditChatInviteLink) Encode ¶
func (s *EditChatInviteLink) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*EditChatInviteLink) GetChatID ¶
func (s *EditChatInviteLink) GetChatID() ID
GetChatID returns the value of ChatID.
func (*EditChatInviteLink) GetCreatesJoinRequest ¶
func (s *EditChatInviteLink) GetCreatesJoinRequest() OptBool
GetCreatesJoinRequest returns the value of CreatesJoinRequest.
func (*EditChatInviteLink) GetExpireDate ¶
func (s *EditChatInviteLink) GetExpireDate() OptInt
GetExpireDate returns the value of ExpireDate.
func (*EditChatInviteLink) GetInviteLink ¶
func (s *EditChatInviteLink) GetInviteLink() string
GetInviteLink returns the value of InviteLink.
func (*EditChatInviteLink) GetMemberLimit ¶
func (s *EditChatInviteLink) GetMemberLimit() OptInt
GetMemberLimit returns the value of MemberLimit.
func (*EditChatInviteLink) GetName ¶
func (s *EditChatInviteLink) GetName() OptString
GetName returns the value of Name.
func (*EditChatInviteLink) MarshalJSON ¶
func (s *EditChatInviteLink) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*EditChatInviteLink) SetChatID ¶
func (s *EditChatInviteLink) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*EditChatInviteLink) SetCreatesJoinRequest ¶
func (s *EditChatInviteLink) SetCreatesJoinRequest(val OptBool)
SetCreatesJoinRequest sets the value of CreatesJoinRequest.
func (*EditChatInviteLink) SetExpireDate ¶
func (s *EditChatInviteLink) SetExpireDate(val OptInt)
SetExpireDate sets the value of ExpireDate.
func (*EditChatInviteLink) SetFake ¶
func (s *EditChatInviteLink) SetFake()
SetFake set fake values.
func (*EditChatInviteLink) SetInviteLink ¶
func (s *EditChatInviteLink) SetInviteLink(val string)
SetInviteLink sets the value of InviteLink.
func (*EditChatInviteLink) SetMemberLimit ¶
func (s *EditChatInviteLink) SetMemberLimit(val OptInt)
SetMemberLimit sets the value of MemberLimit.
func (*EditChatInviteLink) SetName ¶
func (s *EditChatInviteLink) SetName(val OptString)
SetName sets the value of Name.
func (*EditChatInviteLink) UnmarshalJSON ¶
func (s *EditChatInviteLink) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*EditChatInviteLink) Validate ¶
func (s *EditChatInviteLink) Validate() error
type EditMessageCaption ¶
type EditMessageCaption struct { ChatID OptID `json:"chat_id"` // Required if inline_message_id is not specified. Identifier of the message to edit. MessageID OptInt `json:"message_id"` // Required if chat_id and message_id are not specified. Identifier of the inline message. InlineMessageID OptString `json:"inline_message_id"` // New caption of the message, 0-1024 characters after entities parsing. Caption OptString `json:"caption"` // Mode for parsing entities in the message caption. See formatting options for more details. ParseMode OptString `json:"parse_mode"` // A JSON-serialized list of special entities that appear in the caption, which can be specified // instead of parse_mode. CaptionEntities []MessageEntity `json:"caption_entities"` ReplyMarkup OptInlineKeyboardMarkup `json:"reply_markup"` }
Input for editMessageCaption. Ref: #/components/schemas/editMessageCaption
func (*EditMessageCaption) Decode ¶
func (s *EditMessageCaption) Decode(d *jx.Decoder) error
Decode decodes EditMessageCaption from json.
func (*EditMessageCaption) Encode ¶
func (s *EditMessageCaption) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*EditMessageCaption) GetCaption ¶
func (s *EditMessageCaption) GetCaption() OptString
GetCaption returns the value of Caption.
func (*EditMessageCaption) GetCaptionEntities ¶
func (s *EditMessageCaption) GetCaptionEntities() []MessageEntity
GetCaptionEntities returns the value of CaptionEntities.
func (*EditMessageCaption) GetChatID ¶
func (s *EditMessageCaption) GetChatID() OptID
GetChatID returns the value of ChatID.
func (*EditMessageCaption) GetInlineMessageID ¶
func (s *EditMessageCaption) GetInlineMessageID() OptString
GetInlineMessageID returns the value of InlineMessageID.
func (*EditMessageCaption) GetMessageID ¶
func (s *EditMessageCaption) GetMessageID() OptInt
GetMessageID returns the value of MessageID.
func (*EditMessageCaption) GetParseMode ¶
func (s *EditMessageCaption) GetParseMode() OptString
GetParseMode returns the value of ParseMode.
func (*EditMessageCaption) GetReplyMarkup ¶
func (s *EditMessageCaption) GetReplyMarkup() OptInlineKeyboardMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*EditMessageCaption) MarshalJSON ¶
func (s *EditMessageCaption) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*EditMessageCaption) SetCaption ¶
func (s *EditMessageCaption) SetCaption(val OptString)
SetCaption sets the value of Caption.
func (*EditMessageCaption) SetCaptionEntities ¶
func (s *EditMessageCaption) SetCaptionEntities(val []MessageEntity)
SetCaptionEntities sets the value of CaptionEntities.
func (*EditMessageCaption) SetChatID ¶
func (s *EditMessageCaption) SetChatID(val OptID)
SetChatID sets the value of ChatID.
func (*EditMessageCaption) SetFake ¶
func (s *EditMessageCaption) SetFake()
SetFake set fake values.
func (*EditMessageCaption) SetInlineMessageID ¶
func (s *EditMessageCaption) SetInlineMessageID(val OptString)
SetInlineMessageID sets the value of InlineMessageID.
func (*EditMessageCaption) SetMessageID ¶
func (s *EditMessageCaption) SetMessageID(val OptInt)
SetMessageID sets the value of MessageID.
func (*EditMessageCaption) SetParseMode ¶
func (s *EditMessageCaption) SetParseMode(val OptString)
SetParseMode sets the value of ParseMode.
func (*EditMessageCaption) SetReplyMarkup ¶
func (s *EditMessageCaption) SetReplyMarkup(val OptInlineKeyboardMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*EditMessageCaption) UnmarshalJSON ¶
func (s *EditMessageCaption) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*EditMessageCaption) Validate ¶
func (s *EditMessageCaption) Validate() error
type EditMessageLiveLocation ¶
type EditMessageLiveLocation struct { ChatID OptID `json:"chat_id"` // Required if inline_message_id is not specified. Identifier of the message to edit. MessageID OptInt `json:"message_id"` // Required if chat_id and message_id are not specified. Identifier of the inline message. InlineMessageID OptString `json:"inline_message_id"` // Latitude of new location. Latitude float64 `json:"latitude"` // Longitude of new location. Longitude float64 `json:"longitude"` // The radius of uncertainty for the location, measured in meters; 0-1500. HorizontalAccuracy OptFloat64 `json:"horizontal_accuracy"` // Direction in which the user is moving, in degrees. Must be between 1 and 360 if specified. Heading OptInt `json:"heading"` // Maximum distance for proximity alerts about approaching another chat member, in meters. Must be // between 1 and 100000 if specified. ProximityAlertRadius OptInt `json:"proximity_alert_radius"` ReplyMarkup OptInlineKeyboardMarkup `json:"reply_markup"` }
Input for editMessageLiveLocation. Ref: #/components/schemas/editMessageLiveLocation
func (*EditMessageLiveLocation) Decode ¶
func (s *EditMessageLiveLocation) Decode(d *jx.Decoder) error
Decode decodes EditMessageLiveLocation from json.
func (*EditMessageLiveLocation) Encode ¶
func (s *EditMessageLiveLocation) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*EditMessageLiveLocation) GetChatID ¶
func (s *EditMessageLiveLocation) GetChatID() OptID
GetChatID returns the value of ChatID.
func (*EditMessageLiveLocation) GetHeading ¶
func (s *EditMessageLiveLocation) GetHeading() OptInt
GetHeading returns the value of Heading.
func (*EditMessageLiveLocation) GetHorizontalAccuracy ¶
func (s *EditMessageLiveLocation) GetHorizontalAccuracy() OptFloat64
GetHorizontalAccuracy returns the value of HorizontalAccuracy.
func (*EditMessageLiveLocation) GetInlineMessageID ¶
func (s *EditMessageLiveLocation) GetInlineMessageID() OptString
GetInlineMessageID returns the value of InlineMessageID.
func (*EditMessageLiveLocation) GetLatitude ¶
func (s *EditMessageLiveLocation) GetLatitude() float64
GetLatitude returns the value of Latitude.
func (*EditMessageLiveLocation) GetLongitude ¶
func (s *EditMessageLiveLocation) GetLongitude() float64
GetLongitude returns the value of Longitude.
func (*EditMessageLiveLocation) GetMessageID ¶
func (s *EditMessageLiveLocation) GetMessageID() OptInt
GetMessageID returns the value of MessageID.
func (*EditMessageLiveLocation) GetProximityAlertRadius ¶
func (s *EditMessageLiveLocation) GetProximityAlertRadius() OptInt
GetProximityAlertRadius returns the value of ProximityAlertRadius.
func (*EditMessageLiveLocation) GetReplyMarkup ¶
func (s *EditMessageLiveLocation) GetReplyMarkup() OptInlineKeyboardMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*EditMessageLiveLocation) MarshalJSON ¶
func (s *EditMessageLiveLocation) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*EditMessageLiveLocation) SetChatID ¶
func (s *EditMessageLiveLocation) SetChatID(val OptID)
SetChatID sets the value of ChatID.
func (*EditMessageLiveLocation) SetFake ¶
func (s *EditMessageLiveLocation) SetFake()
SetFake set fake values.
func (*EditMessageLiveLocation) SetHeading ¶
func (s *EditMessageLiveLocation) SetHeading(val OptInt)
SetHeading sets the value of Heading.
func (*EditMessageLiveLocation) SetHorizontalAccuracy ¶
func (s *EditMessageLiveLocation) SetHorizontalAccuracy(val OptFloat64)
SetHorizontalAccuracy sets the value of HorizontalAccuracy.
func (*EditMessageLiveLocation) SetInlineMessageID ¶
func (s *EditMessageLiveLocation) SetInlineMessageID(val OptString)
SetInlineMessageID sets the value of InlineMessageID.
func (*EditMessageLiveLocation) SetLatitude ¶
func (s *EditMessageLiveLocation) SetLatitude(val float64)
SetLatitude sets the value of Latitude.
func (*EditMessageLiveLocation) SetLongitude ¶
func (s *EditMessageLiveLocation) SetLongitude(val float64)
SetLongitude sets the value of Longitude.
func (*EditMessageLiveLocation) SetMessageID ¶
func (s *EditMessageLiveLocation) SetMessageID(val OptInt)
SetMessageID sets the value of MessageID.
func (*EditMessageLiveLocation) SetProximityAlertRadius ¶
func (s *EditMessageLiveLocation) SetProximityAlertRadius(val OptInt)
SetProximityAlertRadius sets the value of ProximityAlertRadius.
func (*EditMessageLiveLocation) SetReplyMarkup ¶
func (s *EditMessageLiveLocation) SetReplyMarkup(val OptInlineKeyboardMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*EditMessageLiveLocation) UnmarshalJSON ¶
func (s *EditMessageLiveLocation) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*EditMessageLiveLocation) Validate ¶
func (s *EditMessageLiveLocation) Validate() error
type EditMessageMedia ¶
type EditMessageMedia struct { ChatID OptID `json:"chat_id"` // Required if inline_message_id is not specified. Identifier of the message to edit. MessageID OptInt `json:"message_id"` // Required if chat_id and message_id are not specified. Identifier of the inline message. InlineMessageID OptString `json:"inline_message_id"` Media InputMedia `json:"media"` ReplyMarkup OptInlineKeyboardMarkup `json:"reply_markup"` }
Input for editMessageMedia. Ref: #/components/schemas/editMessageMedia
func (*EditMessageMedia) Decode ¶
func (s *EditMessageMedia) Decode(d *jx.Decoder) error
Decode decodes EditMessageMedia from json.
func (*EditMessageMedia) Encode ¶
func (s *EditMessageMedia) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*EditMessageMedia) GetChatID ¶
func (s *EditMessageMedia) GetChatID() OptID
GetChatID returns the value of ChatID.
func (*EditMessageMedia) GetInlineMessageID ¶
func (s *EditMessageMedia) GetInlineMessageID() OptString
GetInlineMessageID returns the value of InlineMessageID.
func (*EditMessageMedia) GetMedia ¶
func (s *EditMessageMedia) GetMedia() InputMedia
GetMedia returns the value of Media.
func (*EditMessageMedia) GetMessageID ¶
func (s *EditMessageMedia) GetMessageID() OptInt
GetMessageID returns the value of MessageID.
func (*EditMessageMedia) GetReplyMarkup ¶
func (s *EditMessageMedia) GetReplyMarkup() OptInlineKeyboardMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*EditMessageMedia) MarshalJSON ¶
func (s *EditMessageMedia) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*EditMessageMedia) SetChatID ¶
func (s *EditMessageMedia) SetChatID(val OptID)
SetChatID sets the value of ChatID.
func (*EditMessageMedia) SetInlineMessageID ¶
func (s *EditMessageMedia) SetInlineMessageID(val OptString)
SetInlineMessageID sets the value of InlineMessageID.
func (*EditMessageMedia) SetMedia ¶
func (s *EditMessageMedia) SetMedia(val InputMedia)
SetMedia sets the value of Media.
func (*EditMessageMedia) SetMessageID ¶
func (s *EditMessageMedia) SetMessageID(val OptInt)
SetMessageID sets the value of MessageID.
func (*EditMessageMedia) SetReplyMarkup ¶
func (s *EditMessageMedia) SetReplyMarkup(val OptInlineKeyboardMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*EditMessageMedia) UnmarshalJSON ¶
func (s *EditMessageMedia) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*EditMessageMedia) Validate ¶
func (s *EditMessageMedia) Validate() error
type EditMessageReplyMarkup ¶
type EditMessageReplyMarkup struct { ChatID OptID `json:"chat_id"` // Required if inline_message_id is not specified. Identifier of the message to edit. MessageID OptInt `json:"message_id"` // Required if chat_id and message_id are not specified. Identifier of the inline message. InlineMessageID OptString `json:"inline_message_id"` ReplyMarkup OptInlineKeyboardMarkup `json:"reply_markup"` }
Input for editMessageReplyMarkup. Ref: #/components/schemas/editMessageReplyMarkup
func (*EditMessageReplyMarkup) Decode ¶
func (s *EditMessageReplyMarkup) Decode(d *jx.Decoder) error
Decode decodes EditMessageReplyMarkup from json.
func (*EditMessageReplyMarkup) Encode ¶
func (s *EditMessageReplyMarkup) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*EditMessageReplyMarkup) GetChatID ¶
func (s *EditMessageReplyMarkup) GetChatID() OptID
GetChatID returns the value of ChatID.
func (*EditMessageReplyMarkup) GetInlineMessageID ¶
func (s *EditMessageReplyMarkup) GetInlineMessageID() OptString
GetInlineMessageID returns the value of InlineMessageID.
func (*EditMessageReplyMarkup) GetMessageID ¶
func (s *EditMessageReplyMarkup) GetMessageID() OptInt
GetMessageID returns the value of MessageID.
func (*EditMessageReplyMarkup) GetReplyMarkup ¶
func (s *EditMessageReplyMarkup) GetReplyMarkup() OptInlineKeyboardMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*EditMessageReplyMarkup) MarshalJSON ¶
func (s *EditMessageReplyMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*EditMessageReplyMarkup) SetChatID ¶
func (s *EditMessageReplyMarkup) SetChatID(val OptID)
SetChatID sets the value of ChatID.
func (*EditMessageReplyMarkup) SetFake ¶
func (s *EditMessageReplyMarkup) SetFake()
SetFake set fake values.
func (*EditMessageReplyMarkup) SetInlineMessageID ¶
func (s *EditMessageReplyMarkup) SetInlineMessageID(val OptString)
SetInlineMessageID sets the value of InlineMessageID.
func (*EditMessageReplyMarkup) SetMessageID ¶
func (s *EditMessageReplyMarkup) SetMessageID(val OptInt)
SetMessageID sets the value of MessageID.
func (*EditMessageReplyMarkup) SetReplyMarkup ¶
func (s *EditMessageReplyMarkup) SetReplyMarkup(val OptInlineKeyboardMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*EditMessageReplyMarkup) UnmarshalJSON ¶
func (s *EditMessageReplyMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*EditMessageReplyMarkup) Validate ¶
func (s *EditMessageReplyMarkup) Validate() error
type EditMessageText ¶
type EditMessageText struct { ChatID OptID `json:"chat_id"` // Required if inline_message_id is not specified. Identifier of the message to edit. MessageID OptInt `json:"message_id"` // Required if chat_id and message_id are not specified. Identifier of the inline message. InlineMessageID OptString `json:"inline_message_id"` // New text of the message, 1-4096 characters after entities parsing. Text string `json:"text"` // Mode for parsing entities in the message text. See formatting options for more details. ParseMode OptString `json:"parse_mode"` // A JSON-serialized list of special entities that appear in message text, which can be specified // instead of parse_mode. Entities []MessageEntity `json:"entities"` // Disables link previews for links in this message. DisableWebPagePreview OptBool `json:"disable_web_page_preview"` ReplyMarkup OptInlineKeyboardMarkup `json:"reply_markup"` }
Input for editMessageText. Ref: #/components/schemas/editMessageText
func (*EditMessageText) Decode ¶
func (s *EditMessageText) Decode(d *jx.Decoder) error
Decode decodes EditMessageText from json.
func (*EditMessageText) Encode ¶
func (s *EditMessageText) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*EditMessageText) GetChatID ¶
func (s *EditMessageText) GetChatID() OptID
GetChatID returns the value of ChatID.
func (*EditMessageText) GetDisableWebPagePreview ¶
func (s *EditMessageText) GetDisableWebPagePreview() OptBool
GetDisableWebPagePreview returns the value of DisableWebPagePreview.
func (*EditMessageText) GetEntities ¶
func (s *EditMessageText) GetEntities() []MessageEntity
GetEntities returns the value of Entities.
func (*EditMessageText) GetInlineMessageID ¶
func (s *EditMessageText) GetInlineMessageID() OptString
GetInlineMessageID returns the value of InlineMessageID.
func (*EditMessageText) GetMessageID ¶
func (s *EditMessageText) GetMessageID() OptInt
GetMessageID returns the value of MessageID.
func (*EditMessageText) GetParseMode ¶
func (s *EditMessageText) GetParseMode() OptString
GetParseMode returns the value of ParseMode.
func (*EditMessageText) GetReplyMarkup ¶
func (s *EditMessageText) GetReplyMarkup() OptInlineKeyboardMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*EditMessageText) GetText ¶
func (s *EditMessageText) GetText() string
GetText returns the value of Text.
func (*EditMessageText) MarshalJSON ¶
func (s *EditMessageText) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*EditMessageText) SetChatID ¶
func (s *EditMessageText) SetChatID(val OptID)
SetChatID sets the value of ChatID.
func (*EditMessageText) SetDisableWebPagePreview ¶
func (s *EditMessageText) SetDisableWebPagePreview(val OptBool)
SetDisableWebPagePreview sets the value of DisableWebPagePreview.
func (*EditMessageText) SetEntities ¶
func (s *EditMessageText) SetEntities(val []MessageEntity)
SetEntities sets the value of Entities.
func (*EditMessageText) SetInlineMessageID ¶
func (s *EditMessageText) SetInlineMessageID(val OptString)
SetInlineMessageID sets the value of InlineMessageID.
func (*EditMessageText) SetMessageID ¶
func (s *EditMessageText) SetMessageID(val OptInt)
SetMessageID sets the value of MessageID.
func (*EditMessageText) SetParseMode ¶
func (s *EditMessageText) SetParseMode(val OptString)
SetParseMode sets the value of ParseMode.
func (*EditMessageText) SetReplyMarkup ¶
func (s *EditMessageText) SetReplyMarkup(val OptInlineKeyboardMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*EditMessageText) SetText ¶
func (s *EditMessageText) SetText(val string)
SetText sets the value of Text.
func (*EditMessageText) UnmarshalJSON ¶
func (s *EditMessageText) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*EditMessageText) Validate ¶
func (s *EditMessageText) Validate() error
type EncryptedCredentials ¶
type EncryptedCredentials struct { // Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets // required for EncryptedPassportElement decryption and authentication. Data string `json:"data"` // Base64-encoded data hash for data authentication. Hash string `json:"hash"` // Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption. Secret string `json:"secret"` }
Contains data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes. Ref: #/components/schemas/EncryptedCredentials
func (*EncryptedCredentials) Decode ¶
func (s *EncryptedCredentials) Decode(d *jx.Decoder) error
Decode decodes EncryptedCredentials from json.
func (*EncryptedCredentials) Encode ¶
func (s *EncryptedCredentials) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*EncryptedCredentials) GetData ¶
func (s *EncryptedCredentials) GetData() string
GetData returns the value of Data.
func (*EncryptedCredentials) GetHash ¶
func (s *EncryptedCredentials) GetHash() string
GetHash returns the value of Hash.
func (*EncryptedCredentials) GetSecret ¶
func (s *EncryptedCredentials) GetSecret() string
GetSecret returns the value of Secret.
func (*EncryptedCredentials) MarshalJSON ¶
func (s *EncryptedCredentials) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*EncryptedCredentials) SetData ¶
func (s *EncryptedCredentials) SetData(val string)
SetData sets the value of Data.
func (*EncryptedCredentials) SetFake ¶
func (s *EncryptedCredentials) SetFake()
SetFake set fake values.
func (*EncryptedCredentials) SetHash ¶
func (s *EncryptedCredentials) SetHash(val string)
SetHash sets the value of Hash.
func (*EncryptedCredentials) SetSecret ¶
func (s *EncryptedCredentials) SetSecret(val string)
SetSecret sets the value of Secret.
func (*EncryptedCredentials) UnmarshalJSON ¶
func (s *EncryptedCredentials) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type EncryptedPassportElement ¶
type EncryptedPassportElement struct { // Element type. One of “personal_details”, “passport”, “driver_license”, // “identity_card”, “internal_passport”, “address”, “utility_bill”, // “bank_statement”, “rental_agreement”, “passport_registration”, // “temporary_registration”, “phone_number”, “email”. Type EncryptedPassportElementType `json:"type"` // Base64-encoded encrypted Telegram Passport element data provided by the user, available for // “personal_details”, “passport”, “driver_license”, “identity_card”, // “internal_passport” and “address” types. Can be decrypted and verified using the // accompanying EncryptedCredentials. Data OptString `json:"data"` // User's verified phone number, available only for “phone_number” type. PhoneNumber OptString `json:"phone_number"` // User's verified email address, available only for “email” type. Email OptString `json:"email"` // Array of encrypted files with documents provided by the user, available for “utility_bill”, // “bank_statement”, “rental_agreement”, “passport_registration” and // “temporary_registration” types. Files can be decrypted and verified using the accompanying // EncryptedCredentials. Files []PassportFile `json:"files"` FrontSide OptPassportFile `json:"front_side"` ReverseSide OptPassportFile `json:"reverse_side"` Selfie OptPassportFile `json:"selfie"` // Array of encrypted files with translated versions of documents provided by the user. Available if // requested for “passport”, “driver_license”, “identity_card”, “internal_passport”, // “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and // “temporary_registration” types. Files can be decrypted and verified using the accompanying // EncryptedCredentials. Translation []PassportFile `json:"translation"` // Base64-encoded element hash for using in PassportElementErrorUnspecified. Hash string `json:"hash"` }
Contains information about documents or other Telegram Passport elements shared with the bot by the user. Ref: #/components/schemas/EncryptedPassportElement
func (*EncryptedPassportElement) Decode ¶
func (s *EncryptedPassportElement) Decode(d *jx.Decoder) error
Decode decodes EncryptedPassportElement from json.
func (*EncryptedPassportElement) Encode ¶
func (s *EncryptedPassportElement) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*EncryptedPassportElement) GetData ¶
func (s *EncryptedPassportElement) GetData() OptString
GetData returns the value of Data.
func (*EncryptedPassportElement) GetEmail ¶
func (s *EncryptedPassportElement) GetEmail() OptString
GetEmail returns the value of Email.
func (*EncryptedPassportElement) GetFiles ¶
func (s *EncryptedPassportElement) GetFiles() []PassportFile
GetFiles returns the value of Files.
func (*EncryptedPassportElement) GetFrontSide ¶
func (s *EncryptedPassportElement) GetFrontSide() OptPassportFile
GetFrontSide returns the value of FrontSide.
func (*EncryptedPassportElement) GetHash ¶
func (s *EncryptedPassportElement) GetHash() string
GetHash returns the value of Hash.
func (*EncryptedPassportElement) GetPhoneNumber ¶
func (s *EncryptedPassportElement) GetPhoneNumber() OptString
GetPhoneNumber returns the value of PhoneNumber.
func (*EncryptedPassportElement) GetReverseSide ¶
func (s *EncryptedPassportElement) GetReverseSide() OptPassportFile
GetReverseSide returns the value of ReverseSide.
func (*EncryptedPassportElement) GetSelfie ¶
func (s *EncryptedPassportElement) GetSelfie() OptPassportFile
GetSelfie returns the value of Selfie.
func (*EncryptedPassportElement) GetTranslation ¶
func (s *EncryptedPassportElement) GetTranslation() []PassportFile
GetTranslation returns the value of Translation.
func (*EncryptedPassportElement) GetType ¶
func (s *EncryptedPassportElement) GetType() EncryptedPassportElementType
GetType returns the value of Type.
func (*EncryptedPassportElement) MarshalJSON ¶
func (s *EncryptedPassportElement) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*EncryptedPassportElement) SetData ¶
func (s *EncryptedPassportElement) SetData(val OptString)
SetData sets the value of Data.
func (*EncryptedPassportElement) SetEmail ¶
func (s *EncryptedPassportElement) SetEmail(val OptString)
SetEmail sets the value of Email.
func (*EncryptedPassportElement) SetFake ¶
func (s *EncryptedPassportElement) SetFake()
SetFake set fake values.
func (*EncryptedPassportElement) SetFiles ¶
func (s *EncryptedPassportElement) SetFiles(val []PassportFile)
SetFiles sets the value of Files.
func (*EncryptedPassportElement) SetFrontSide ¶
func (s *EncryptedPassportElement) SetFrontSide(val OptPassportFile)
SetFrontSide sets the value of FrontSide.
func (*EncryptedPassportElement) SetHash ¶
func (s *EncryptedPassportElement) SetHash(val string)
SetHash sets the value of Hash.
func (*EncryptedPassportElement) SetPhoneNumber ¶
func (s *EncryptedPassportElement) SetPhoneNumber(val OptString)
SetPhoneNumber sets the value of PhoneNumber.
func (*EncryptedPassportElement) SetReverseSide ¶
func (s *EncryptedPassportElement) SetReverseSide(val OptPassportFile)
SetReverseSide sets the value of ReverseSide.
func (*EncryptedPassportElement) SetSelfie ¶
func (s *EncryptedPassportElement) SetSelfie(val OptPassportFile)
SetSelfie sets the value of Selfie.
func (*EncryptedPassportElement) SetTranslation ¶
func (s *EncryptedPassportElement) SetTranslation(val []PassportFile)
SetTranslation sets the value of Translation.
func (*EncryptedPassportElement) SetType ¶
func (s *EncryptedPassportElement) SetType(val EncryptedPassportElementType)
SetType sets the value of Type.
func (*EncryptedPassportElement) UnmarshalJSON ¶
func (s *EncryptedPassportElement) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*EncryptedPassportElement) Validate ¶
func (s *EncryptedPassportElement) Validate() error
type EncryptedPassportElementType ¶
type EncryptedPassportElementType string
Element type. One of “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport”, “address”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”, “phone_number”, “email”.
const ( EncryptedPassportElementTypePersonalDetails EncryptedPassportElementType = "personal_details" EncryptedPassportElementTypePassport EncryptedPassportElementType = "passport" EncryptedPassportElementTypeDriverLicense EncryptedPassportElementType = "driver_license" EncryptedPassportElementTypeIdentityCard EncryptedPassportElementType = "identity_card" EncryptedPassportElementTypeInternalPassport EncryptedPassportElementType = "internal_passport" EncryptedPassportElementTypeAddress EncryptedPassportElementType = "address" EncryptedPassportElementTypeUtilityBill EncryptedPassportElementType = "utility_bill" EncryptedPassportElementTypeBankStatement EncryptedPassportElementType = "bank_statement" EncryptedPassportElementTypeRentalAgreement EncryptedPassportElementType = "rental_agreement" EncryptedPassportElementTypePassportRegistration EncryptedPassportElementType = "passport_registration" EncryptedPassportElementTypeTemporaryRegistration EncryptedPassportElementType = "temporary_registration" EncryptedPassportElementTypePhoneNumber EncryptedPassportElementType = "phone_number" EncryptedPassportElementTypeEmail EncryptedPassportElementType = "email" )
func (EncryptedPassportElementType) AllValues ¶
func (EncryptedPassportElementType) AllValues() []EncryptedPassportElementType
AllValues returns all EncryptedPassportElementType values.
func (*EncryptedPassportElementType) Decode ¶
func (s *EncryptedPassportElementType) Decode(d *jx.Decoder) error
Decode decodes EncryptedPassportElementType from json.
func (EncryptedPassportElementType) Encode ¶
func (s EncryptedPassportElementType) Encode(e *jx.Encoder)
Encode encodes EncryptedPassportElementType as json.
func (EncryptedPassportElementType) MarshalJSON ¶
func (s EncryptedPassportElementType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (EncryptedPassportElementType) MarshalText ¶
func (s EncryptedPassportElementType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*EncryptedPassportElementType) SetFake ¶
func (s *EncryptedPassportElementType) SetFake()
SetFake set fake values.
func (*EncryptedPassportElementType) UnmarshalJSON ¶
func (s *EncryptedPassportElementType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*EncryptedPassportElementType) UnmarshalText ¶
func (s *EncryptedPassportElementType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (EncryptedPassportElementType) Validate ¶
func (s EncryptedPassportElementType) Validate() error
type Error ¶
type Error struct { Ok bool `json:"ok"` ErrorCode int `json:"error_code"` Description string `json:"description"` Parameters OptResponse `json:"parameters"` }
Ref: #/components/schemas/Error
func (*Error) GetDescription ¶
GetDescription returns the value of Description.
func (*Error) GetErrorCode ¶
GetErrorCode returns the value of ErrorCode.
func (*Error) GetParameters ¶
func (s *Error) GetParameters() OptResponse
GetParameters returns the value of Parameters.
func (*Error) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Error) SetDescription ¶
SetDescription sets the value of Description.
func (*Error) SetErrorCode ¶
SetErrorCode sets the value of ErrorCode.
func (*Error) SetParameters ¶
func (s *Error) SetParameters(val OptResponse)
SetParameters sets the value of Parameters.
func (*Error) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ErrorStatusCode ¶
ErrorStatusCode wraps Error with StatusCode.
func (*ErrorStatusCode) Error ¶
func (s *ErrorStatusCode) Error() string
func (*ErrorStatusCode) GetResponse ¶
func (s *ErrorStatusCode) GetResponse() Error
GetResponse returns the value of Response.
func (*ErrorStatusCode) GetStatusCode ¶
func (s *ErrorStatusCode) GetStatusCode() int
GetStatusCode returns the value of StatusCode.
func (*ErrorStatusCode) SetResponse ¶
func (s *ErrorStatusCode) SetResponse(val Error)
SetResponse sets the value of Response.
func (*ErrorStatusCode) SetStatusCode ¶
func (s *ErrorStatusCode) SetStatusCode(val int)
SetStatusCode sets the value of StatusCode.
type ExportChatInviteLink ¶
type ExportChatInviteLink struct {
ChatID ID `json:"chat_id"`
}
Input for exportChatInviteLink. Ref: #/components/schemas/exportChatInviteLink
func (*ExportChatInviteLink) Decode ¶
func (s *ExportChatInviteLink) Decode(d *jx.Decoder) error
Decode decodes ExportChatInviteLink from json.
func (*ExportChatInviteLink) Encode ¶
func (s *ExportChatInviteLink) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ExportChatInviteLink) GetChatID ¶
func (s *ExportChatInviteLink) GetChatID() ID
GetChatID returns the value of ChatID.
func (*ExportChatInviteLink) MarshalJSON ¶
func (s *ExportChatInviteLink) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ExportChatInviteLink) SetChatID ¶
func (s *ExportChatInviteLink) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*ExportChatInviteLink) SetFake ¶
func (s *ExportChatInviteLink) SetFake()
SetFake set fake values.
func (*ExportChatInviteLink) UnmarshalJSON ¶
func (s *ExportChatInviteLink) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type File ¶
type File struct { // Identifier for this file, which can be used to download or reuse the file. FileID string `json:"file_id"` // Unique identifier for this file, which is supposed to be the same over time and for different bots. // Can't be used to download or reuse the file. FileUniqueID string `json:"file_unique_id"` // File size in bytes, if known. FileSize OptInt `json:"file_size"` // File path. Use https://api.telegram.org/file/bot<token>/<file_path> to get the file. FilePath OptString `json:"file_path"` }
This object represents a file ready to be downloaded. The file can be downloaded via the link https://api.telegram.org/file/bot<token>/<file_path>. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling getFile. Ref: #/components/schemas/File
func (*File) GetFilePath ¶
GetFilePath returns the value of FilePath.
func (*File) GetFileSize ¶
GetFileSize returns the value of FileSize.
func (*File) GetFileUniqueID ¶
GetFileUniqueID returns the value of FileUniqueID.
func (*File) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*File) SetFilePath ¶
SetFilePath sets the value of FilePath.
func (*File) SetFileSize ¶
SetFileSize sets the value of FileSize.
func (*File) SetFileUniqueID ¶
SetFileUniqueID sets the value of FileUniqueID.
func (*File) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ForceReply ¶
type ForceReply struct { // Shows reply interface to the user, as if they manually selected the bot's message and tapped // 'Reply'. ForceReply bool `json:"force_reply"` // The placeholder to be shown in the input field when the reply is active; 1-64 characters. InputFieldPlaceholder OptString `json:"input_field_placeholder"` // Use this parameter if you want to force reply from specific users only. Targets: 1) users that are // @mentioned in the text of the Message object; 2) if the bot's message is a reply (has // reply_to_message_id), sender of the original message. Selective OptBool `json:"selective"` }
Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot's message and tapped 'Reply'). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice privacy mode. Ref: #/components/schemas/ForceReply
func (*ForceReply) Decode ¶
func (s *ForceReply) Decode(d *jx.Decoder) error
Decode decodes ForceReply from json.
func (*ForceReply) Encode ¶
func (s *ForceReply) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ForceReply) GetForceReply ¶
func (s *ForceReply) GetForceReply() bool
GetForceReply returns the value of ForceReply.
func (*ForceReply) GetInputFieldPlaceholder ¶
func (s *ForceReply) GetInputFieldPlaceholder() OptString
GetInputFieldPlaceholder returns the value of InputFieldPlaceholder.
func (*ForceReply) GetSelective ¶
func (s *ForceReply) GetSelective() OptBool
GetSelective returns the value of Selective.
func (*ForceReply) MarshalJSON ¶
func (s *ForceReply) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ForceReply) SetForceReply ¶
func (s *ForceReply) SetForceReply(val bool)
SetForceReply sets the value of ForceReply.
func (*ForceReply) SetInputFieldPlaceholder ¶
func (s *ForceReply) SetInputFieldPlaceholder(val OptString)
SetInputFieldPlaceholder sets the value of InputFieldPlaceholder.
func (*ForceReply) SetSelective ¶
func (s *ForceReply) SetSelective(val OptBool)
SetSelective sets the value of Selective.
func (*ForceReply) UnmarshalJSON ¶
func (s *ForceReply) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ForceReply) Validate ¶
func (s *ForceReply) Validate() error
type ForwardMessage ¶
type ForwardMessage struct { ChatID ID `json:"chat_id"` FromChatID ID `json:"from_chat_id"` // Sends the message silently. Users will receive a notification with no sound. DisableNotification OptBool `json:"disable_notification"` // Message identifier in the chat specified in from_chat_id. MessageID int `json:"message_id"` }
Input for forwardMessage. Ref: #/components/schemas/forwardMessage
func (*ForwardMessage) Decode ¶
func (s *ForwardMessage) Decode(d *jx.Decoder) error
Decode decodes ForwardMessage from json.
func (*ForwardMessage) Encode ¶
func (s *ForwardMessage) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ForwardMessage) GetChatID ¶
func (s *ForwardMessage) GetChatID() ID
GetChatID returns the value of ChatID.
func (*ForwardMessage) GetDisableNotification ¶
func (s *ForwardMessage) GetDisableNotification() OptBool
GetDisableNotification returns the value of DisableNotification.
func (*ForwardMessage) GetFromChatID ¶
func (s *ForwardMessage) GetFromChatID() ID
GetFromChatID returns the value of FromChatID.
func (*ForwardMessage) GetMessageID ¶
func (s *ForwardMessage) GetMessageID() int
GetMessageID returns the value of MessageID.
func (*ForwardMessage) MarshalJSON ¶
func (s *ForwardMessage) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ForwardMessage) SetChatID ¶
func (s *ForwardMessage) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*ForwardMessage) SetDisableNotification ¶
func (s *ForwardMessage) SetDisableNotification(val OptBool)
SetDisableNotification sets the value of DisableNotification.
func (*ForwardMessage) SetFromChatID ¶
func (s *ForwardMessage) SetFromChatID(val ID)
SetFromChatID sets the value of FromChatID.
func (*ForwardMessage) SetMessageID ¶
func (s *ForwardMessage) SetMessageID(val int)
SetMessageID sets the value of MessageID.
func (*ForwardMessage) UnmarshalJSON ¶
func (s *ForwardMessage) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Game ¶
type Game struct { // Title of the game. Title string `json:"title"` // Description of the game. Description string `json:"description"` // Photo that will be displayed in the game message in chats. Photo []PhotoSize `json:"photo"` // Brief description of the game or high scores included in the game message. Can be automatically // edited to include current high scores for the game when the bot calls setGameScore, or manually // edited using editMessageText. 0-4096 characters. Text OptString `json:"text"` // Special entities that appear in text, such as usernames, URLs, bot commands, etc. TextEntities []MessageEntity `json:"text_entities"` Animation OptAnimation `json:"animation"` }
This object represents a game. Use BotFather to create and edit games, their short names will act as unique identifiers. Ref: #/components/schemas/Game
func (*Game) GetAnimation ¶
func (s *Game) GetAnimation() OptAnimation
GetAnimation returns the value of Animation.
func (*Game) GetDescription ¶
GetDescription returns the value of Description.
func (*Game) GetTextEntities ¶
func (s *Game) GetTextEntities() []MessageEntity
GetTextEntities returns the value of TextEntities.
func (*Game) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Game) SetAnimation ¶
func (s *Game) SetAnimation(val OptAnimation)
SetAnimation sets the value of Animation.
func (*Game) SetDescription ¶
SetDescription sets the value of Description.
func (*Game) SetTextEntities ¶
func (s *Game) SetTextEntities(val []MessageEntity)
SetTextEntities sets the value of TextEntities.
func (*Game) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type GameHighScore ¶
type GameHighScore struct { // Position in high score table for the game. Position int `json:"position"` User User `json:"user"` // Score. Score int `json:"score"` }
This object represents one row of the high scores table for a game. Ref: #/components/schemas/GameHighScore
func (*GameHighScore) Decode ¶
func (s *GameHighScore) Decode(d *jx.Decoder) error
Decode decodes GameHighScore from json.
func (*GameHighScore) Encode ¶
func (s *GameHighScore) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*GameHighScore) GetPosition ¶
func (s *GameHighScore) GetPosition() int
GetPosition returns the value of Position.
func (*GameHighScore) GetScore ¶
func (s *GameHighScore) GetScore() int
GetScore returns the value of Score.
func (*GameHighScore) GetUser ¶
func (s *GameHighScore) GetUser() User
GetUser returns the value of User.
func (*GameHighScore) MarshalJSON ¶
func (s *GameHighScore) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GameHighScore) SetPosition ¶
func (s *GameHighScore) SetPosition(val int)
SetPosition sets the value of Position.
func (*GameHighScore) SetScore ¶
func (s *GameHighScore) SetScore(val int)
SetScore sets the value of Score.
func (*GameHighScore) SetUser ¶
func (s *GameHighScore) SetUser(val User)
SetUser sets the value of User.
func (*GameHighScore) UnmarshalJSON ¶
func (s *GameHighScore) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GetChat ¶
type GetChat struct {
ChatID ID `json:"chat_id"`
}
Input for getChat. Ref: #/components/schemas/getChat
func (*GetChat) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*GetChat) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type GetChatAdministrators ¶
type GetChatAdministrators struct {
ChatID ID `json:"chat_id"`
}
Input for getChatAdministrators. Ref: #/components/schemas/getChatAdministrators
func (*GetChatAdministrators) Decode ¶
func (s *GetChatAdministrators) Decode(d *jx.Decoder) error
Decode decodes GetChatAdministrators from json.
func (*GetChatAdministrators) Encode ¶
func (s *GetChatAdministrators) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*GetChatAdministrators) GetChatID ¶
func (s *GetChatAdministrators) GetChatID() ID
GetChatID returns the value of ChatID.
func (*GetChatAdministrators) MarshalJSON ¶
func (s *GetChatAdministrators) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetChatAdministrators) SetChatID ¶
func (s *GetChatAdministrators) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*GetChatAdministrators) SetFake ¶
func (s *GetChatAdministrators) SetFake()
SetFake set fake values.
func (*GetChatAdministrators) UnmarshalJSON ¶
func (s *GetChatAdministrators) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GetChatMember ¶
type GetChatMember struct { ChatID ID `json:"chat_id"` // Unique identifier of the target user. UserID int64 `json:"user_id"` }
Input for getChatMember. Ref: #/components/schemas/getChatMember
func (*GetChatMember) Decode ¶
func (s *GetChatMember) Decode(d *jx.Decoder) error
Decode decodes GetChatMember from json.
func (*GetChatMember) Encode ¶
func (s *GetChatMember) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*GetChatMember) GetChatID ¶
func (s *GetChatMember) GetChatID() ID
GetChatID returns the value of ChatID.
func (*GetChatMember) GetUserID ¶
func (s *GetChatMember) GetUserID() int64
GetUserID returns the value of UserID.
func (*GetChatMember) MarshalJSON ¶
func (s *GetChatMember) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetChatMember) SetChatID ¶
func (s *GetChatMember) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*GetChatMember) SetUserID ¶
func (s *GetChatMember) SetUserID(val int64)
SetUserID sets the value of UserID.
func (*GetChatMember) UnmarshalJSON ¶
func (s *GetChatMember) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GetChatMemberCount ¶
type GetChatMemberCount struct {
ChatID ID `json:"chat_id"`
}
Input for getChatMemberCount. Ref: #/components/schemas/getChatMemberCount
func (*GetChatMemberCount) Decode ¶
func (s *GetChatMemberCount) Decode(d *jx.Decoder) error
Decode decodes GetChatMemberCount from json.
func (*GetChatMemberCount) Encode ¶
func (s *GetChatMemberCount) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*GetChatMemberCount) GetChatID ¶
func (s *GetChatMemberCount) GetChatID() ID
GetChatID returns the value of ChatID.
func (*GetChatMemberCount) MarshalJSON ¶
func (s *GetChatMemberCount) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetChatMemberCount) SetChatID ¶
func (s *GetChatMemberCount) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*GetChatMemberCount) SetFake ¶
func (s *GetChatMemberCount) SetFake()
SetFake set fake values.
func (*GetChatMemberCount) UnmarshalJSON ¶
func (s *GetChatMemberCount) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GetFile ¶
type GetFile struct { // File identifier to get info about. FileID string `json:"file_id"` }
Input for getFile. Ref: #/components/schemas/getFile
func (*GetFile) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*GetFile) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type GetGameHighScores ¶
type GetGameHighScores struct { // Target user id. UserID int64 `json:"user_id"` // Required if inline_message_id is not specified. Unique identifier for the target chat. ChatID OptInt64 `json:"chat_id"` // Required if inline_message_id is not specified. Identifier of the sent message. MessageID OptInt `json:"message_id"` // Required if chat_id and message_id are not specified. Identifier of the inline message. InlineMessageID OptString `json:"inline_message_id"` }
Input for getGameHighScores. Ref: #/components/schemas/getGameHighScores
func (*GetGameHighScores) Decode ¶
func (s *GetGameHighScores) Decode(d *jx.Decoder) error
Decode decodes GetGameHighScores from json.
func (*GetGameHighScores) Encode ¶
func (s *GetGameHighScores) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*GetGameHighScores) GetChatID ¶
func (s *GetGameHighScores) GetChatID() OptInt64
GetChatID returns the value of ChatID.
func (*GetGameHighScores) GetInlineMessageID ¶
func (s *GetGameHighScores) GetInlineMessageID() OptString
GetInlineMessageID returns the value of InlineMessageID.
func (*GetGameHighScores) GetMessageID ¶
func (s *GetGameHighScores) GetMessageID() OptInt
GetMessageID returns the value of MessageID.
func (*GetGameHighScores) GetUserID ¶
func (s *GetGameHighScores) GetUserID() int64
GetUserID returns the value of UserID.
func (*GetGameHighScores) MarshalJSON ¶
func (s *GetGameHighScores) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetGameHighScores) SetChatID ¶
func (s *GetGameHighScores) SetChatID(val OptInt64)
SetChatID sets the value of ChatID.
func (*GetGameHighScores) SetInlineMessageID ¶
func (s *GetGameHighScores) SetInlineMessageID(val OptString)
SetInlineMessageID sets the value of InlineMessageID.
func (*GetGameHighScores) SetMessageID ¶
func (s *GetGameHighScores) SetMessageID(val OptInt)
SetMessageID sets the value of MessageID.
func (*GetGameHighScores) SetUserID ¶
func (s *GetGameHighScores) SetUserID(val int64)
SetUserID sets the value of UserID.
func (*GetGameHighScores) UnmarshalJSON ¶
func (s *GetGameHighScores) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GetMyCommands ¶
type GetMyCommands struct { Scope OptBotCommandScope `json:"scope"` // A two-letter ISO 639-1 language code or an empty string. LanguageCode OptString `json:"language_code"` }
Input for getMyCommands. Ref: #/components/schemas/getMyCommands
func (*GetMyCommands) Decode ¶
func (s *GetMyCommands) Decode(d *jx.Decoder) error
Decode decodes GetMyCommands from json.
func (*GetMyCommands) Encode ¶
func (s *GetMyCommands) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*GetMyCommands) GetLanguageCode ¶
func (s *GetMyCommands) GetLanguageCode() OptString
GetLanguageCode returns the value of LanguageCode.
func (*GetMyCommands) GetScope ¶
func (s *GetMyCommands) GetScope() OptBotCommandScope
GetScope returns the value of Scope.
func (*GetMyCommands) MarshalJSON ¶
func (s *GetMyCommands) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetMyCommands) SetLanguageCode ¶
func (s *GetMyCommands) SetLanguageCode(val OptString)
SetLanguageCode sets the value of LanguageCode.
func (*GetMyCommands) SetScope ¶
func (s *GetMyCommands) SetScope(val OptBotCommandScope)
SetScope sets the value of Scope.
func (*GetMyCommands) UnmarshalJSON ¶
func (s *GetMyCommands) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GetStickerSet ¶
type GetStickerSet struct { // Name of the sticker set. Name string `json:"name"` }
Input for getStickerSet. Ref: #/components/schemas/getStickerSet
func (*GetStickerSet) Decode ¶
func (s *GetStickerSet) Decode(d *jx.Decoder) error
Decode decodes GetStickerSet from json.
func (*GetStickerSet) Encode ¶
func (s *GetStickerSet) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*GetStickerSet) GetName ¶
func (s *GetStickerSet) GetName() string
GetName returns the value of Name.
func (*GetStickerSet) MarshalJSON ¶
func (s *GetStickerSet) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetStickerSet) SetName ¶
func (s *GetStickerSet) SetName(val string)
SetName sets the value of Name.
func (*GetStickerSet) UnmarshalJSON ¶
func (s *GetStickerSet) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GetUpdates ¶
type GetUpdates struct { // Identifier of the first update to be returned. Must be greater by one than the highest among the // identifiers of previously received updates. By default, updates starting with the earliest // unconfirmed update are returned. An update is considered confirmed as soon as getUpdates is called // with an offset higher than its update_id. The negative offset can be specified to retrieve updates // starting from -offset update from the end of the updates queue. All previous updates will forgotten. Offset OptInt `json:"offset"` // Limits the number of updates to be retrieved. Values between 1-100 are accepted. Defaults to 100. Limit OptInt `json:"limit"` // Timeout in seconds for long polling. Defaults to 0, i.e. usual short polling. Should be positive, // short polling should be used for testing purposes only. Timeout OptInt `json:"timeout"` // A JSON-serialized list of the update types you want your bot to receive. For example, specify // [“message”, “edited_channel_post”, “callback_query”] to only receive updates of these // types. See Update for a complete list of available update types. Specify an empty list to receive // all update types except chat_member (default). If not specified, the previous setting will be used. // Please note that this parameter doesn't affect updates created before the call to the getUpdates, // so unwanted updates may be received for a short period of time. AllowedUpdates []string `json:"allowed_updates"` }
Input for getUpdates. Ref: #/components/schemas/getUpdates
func (*GetUpdates) Decode ¶
func (s *GetUpdates) Decode(d *jx.Decoder) error
Decode decodes GetUpdates from json.
func (*GetUpdates) Encode ¶
func (s *GetUpdates) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*GetUpdates) GetAllowedUpdates ¶
func (s *GetUpdates) GetAllowedUpdates() []string
GetAllowedUpdates returns the value of AllowedUpdates.
func (*GetUpdates) GetLimit ¶
func (s *GetUpdates) GetLimit() OptInt
GetLimit returns the value of Limit.
func (*GetUpdates) GetOffset ¶
func (s *GetUpdates) GetOffset() OptInt
GetOffset returns the value of Offset.
func (*GetUpdates) GetTimeout ¶
func (s *GetUpdates) GetTimeout() OptInt
GetTimeout returns the value of Timeout.
func (*GetUpdates) MarshalJSON ¶
func (s *GetUpdates) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetUpdates) SetAllowedUpdates ¶
func (s *GetUpdates) SetAllowedUpdates(val []string)
SetAllowedUpdates sets the value of AllowedUpdates.
func (*GetUpdates) SetLimit ¶
func (s *GetUpdates) SetLimit(val OptInt)
SetLimit sets the value of Limit.
func (*GetUpdates) SetOffset ¶
func (s *GetUpdates) SetOffset(val OptInt)
SetOffset sets the value of Offset.
func (*GetUpdates) SetTimeout ¶
func (s *GetUpdates) SetTimeout(val OptInt)
SetTimeout sets the value of Timeout.
func (*GetUpdates) UnmarshalJSON ¶
func (s *GetUpdates) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*GetUpdates) Validate ¶
func (s *GetUpdates) Validate() error
type GetUserProfilePhotos ¶
type GetUserProfilePhotos struct { // Unique identifier of the target user. UserID int64 `json:"user_id"` // Sequential number of the first photo to be returned. By default, all photos are returned. Offset OptInt `json:"offset"` // Limits the number of photos to be retrieved. Values between 1-100 are accepted. Defaults to 100. Limit OptInt `json:"limit"` }
Input for getUserProfilePhotos. Ref: #/components/schemas/getUserProfilePhotos
func (*GetUserProfilePhotos) Decode ¶
func (s *GetUserProfilePhotos) Decode(d *jx.Decoder) error
Decode decodes GetUserProfilePhotos from json.
func (*GetUserProfilePhotos) Encode ¶
func (s *GetUserProfilePhotos) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*GetUserProfilePhotos) GetLimit ¶
func (s *GetUserProfilePhotos) GetLimit() OptInt
GetLimit returns the value of Limit.
func (*GetUserProfilePhotos) GetOffset ¶
func (s *GetUserProfilePhotos) GetOffset() OptInt
GetOffset returns the value of Offset.
func (*GetUserProfilePhotos) GetUserID ¶
func (s *GetUserProfilePhotos) GetUserID() int64
GetUserID returns the value of UserID.
func (*GetUserProfilePhotos) MarshalJSON ¶
func (s *GetUserProfilePhotos) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetUserProfilePhotos) SetFake ¶
func (s *GetUserProfilePhotos) SetFake()
SetFake set fake values.
func (*GetUserProfilePhotos) SetLimit ¶
func (s *GetUserProfilePhotos) SetLimit(val OptInt)
SetLimit sets the value of Limit.
func (*GetUserProfilePhotos) SetOffset ¶
func (s *GetUserProfilePhotos) SetOffset(val OptInt)
SetOffset sets the value of Offset.
func (*GetUserProfilePhotos) SetUserID ¶
func (s *GetUserProfilePhotos) SetUserID(val int64)
SetUserID sets the value of UserID.
func (*GetUserProfilePhotos) UnmarshalJSON ¶
func (s *GetUserProfilePhotos) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*GetUserProfilePhotos) Validate ¶
func (s *GetUserProfilePhotos) Validate() error
type Handler ¶
type Handler interface { // AddStickerToSet implements addStickerToSet operation. // // POST /addStickerToSet AddStickerToSet(ctx context.Context, req *AddStickerToSet) (*Result, error) // AnswerCallbackQuery implements answerCallbackQuery operation. // // POST /answerCallbackQuery AnswerCallbackQuery(ctx context.Context, req *AnswerCallbackQuery) (*Result, error) // AnswerInlineQuery implements answerInlineQuery operation. // // POST /answerInlineQuery AnswerInlineQuery(ctx context.Context, req *AnswerInlineQuery) (*Result, error) // AnswerPreCheckoutQuery implements answerPreCheckoutQuery operation. // // POST /answerPreCheckoutQuery AnswerPreCheckoutQuery(ctx context.Context, req *AnswerPreCheckoutQuery) (*Result, error) // AnswerShippingQuery implements answerShippingQuery operation. // // POST /answerShippingQuery AnswerShippingQuery(ctx context.Context, req *AnswerShippingQuery) (*Result, error) // ApproveChatJoinRequest implements approveChatJoinRequest operation. // // POST /approveChatJoinRequest ApproveChatJoinRequest(ctx context.Context, req *ApproveChatJoinRequest) (*Result, error) // BanChatMember implements banChatMember operation. // // POST /banChatMember BanChatMember(ctx context.Context, req *BanChatMember) (*Result, error) // BanChatSenderChat implements banChatSenderChat operation. // // POST /banChatSenderChat BanChatSenderChat(ctx context.Context, req *BanChatSenderChat) (*Result, error) // Close implements close operation. // // POST /close Close(ctx context.Context) (*Result, error) // CopyMessage implements copyMessage operation. // // POST /copyMessage CopyMessage(ctx context.Context, req *CopyMessage) (*ResultMessageId, error) // CreateChatInviteLink implements createChatInviteLink operation. // // POST /createChatInviteLink CreateChatInviteLink(ctx context.Context, req *CreateChatInviteLink) (*ResultChatInviteLink, error) // CreateNewStickerSet implements createNewStickerSet operation. // // POST /createNewStickerSet CreateNewStickerSet(ctx context.Context, req *CreateNewStickerSet) (*Result, error) // DeclineChatJoinRequest implements declineChatJoinRequest operation. // // POST /declineChatJoinRequest DeclineChatJoinRequest(ctx context.Context, req *DeclineChatJoinRequest) (*Result, error) // DeleteChatPhoto implements deleteChatPhoto operation. // // POST /deleteChatPhoto DeleteChatPhoto(ctx context.Context, req *DeleteChatPhoto) (*Result, error) // DeleteChatStickerSet implements deleteChatStickerSet operation. // // POST /deleteChatStickerSet DeleteChatStickerSet(ctx context.Context, req *DeleteChatStickerSet) (*Result, error) // DeleteMessage implements deleteMessage operation. // // POST /deleteMessage DeleteMessage(ctx context.Context, req *DeleteMessage) (*Result, error) // DeleteMyCommands implements deleteMyCommands operation. // // POST /deleteMyCommands DeleteMyCommands(ctx context.Context, req OptDeleteMyCommands) (*Result, error) // DeleteStickerFromSet implements deleteStickerFromSet operation. // // POST /deleteStickerFromSet DeleteStickerFromSet(ctx context.Context, req *DeleteStickerFromSet) (*Result, error) // DeleteWebhook implements deleteWebhook operation. // // POST /deleteWebhook DeleteWebhook(ctx context.Context, req OptDeleteWebhook) (*Result, error) // EditChatInviteLink implements editChatInviteLink operation. // // POST /editChatInviteLink EditChatInviteLink(ctx context.Context, req *EditChatInviteLink) (*ResultChatInviteLink, error) // EditMessageCaption implements editMessageCaption operation. // // POST /editMessageCaption EditMessageCaption(ctx context.Context, req *EditMessageCaption) (*Result, error) // EditMessageLiveLocation implements editMessageLiveLocation operation. // // POST /editMessageLiveLocation EditMessageLiveLocation(ctx context.Context, req *EditMessageLiveLocation) (*Result, error) // EditMessageMedia implements editMessageMedia operation. // // POST /editMessageMedia EditMessageMedia(ctx context.Context, req *EditMessageMedia) (*Result, error) // EditMessageReplyMarkup implements editMessageReplyMarkup operation. // // POST /editMessageReplyMarkup EditMessageReplyMarkup(ctx context.Context, req *EditMessageReplyMarkup) (*Result, error) // EditMessageText implements editMessageText operation. // // POST /editMessageText EditMessageText(ctx context.Context, req *EditMessageText) (*Result, error) // ExportChatInviteLink implements exportChatInviteLink operation. // // POST /exportChatInviteLink ExportChatInviteLink(ctx context.Context, req *ExportChatInviteLink) (*ResultString, error) // ForwardMessage implements forwardMessage operation. // // POST /forwardMessage ForwardMessage(ctx context.Context, req *ForwardMessage) (*ResultMessage, error) // GetChat implements getChat operation. // // POST /getChat GetChat(ctx context.Context, req *GetChat) (*ResultChat, error) // GetChatAdministrators implements getChatAdministrators operation. // // POST /getChatAdministrators GetChatAdministrators(ctx context.Context, req *GetChatAdministrators) (*ResultArrayOfChatMember, error) // GetChatMember implements getChatMember operation. // // POST /getChatMember GetChatMember(ctx context.Context, req *GetChatMember) (*ResultChatMember, error) // GetChatMemberCount implements getChatMemberCount operation. // // POST /getChatMemberCount GetChatMemberCount(ctx context.Context, req *GetChatMemberCount) (*ResultInt, error) // GetFile implements getFile operation. // // POST /getFile GetFile(ctx context.Context, req *GetFile) (*Result, error) // GetGameHighScores implements getGameHighScores operation. // // POST /getGameHighScores GetGameHighScores(ctx context.Context, req *GetGameHighScores) (*ResultArrayOfGameHighScore, error) // GetMe implements getMe operation. // // POST /getMe GetMe(ctx context.Context) (*ResultUser, error) // GetMyCommands implements getMyCommands operation. // // POST /getMyCommands GetMyCommands(ctx context.Context, req OptGetMyCommands) (*ResultArrayOfBotCommand, error) // GetStickerSet implements getStickerSet operation. // // POST /getStickerSet GetStickerSet(ctx context.Context, req *GetStickerSet) (*Result, error) // GetUpdates implements getUpdates operation. // // POST /getUpdates GetUpdates(ctx context.Context, req OptGetUpdates) (*ResultArrayOfUpdate, error) // GetUserProfilePhotos implements getUserProfilePhotos operation. // // POST /getUserProfilePhotos GetUserProfilePhotos(ctx context.Context, req *GetUserProfilePhotos) (*ResultUserProfilePhotos, error) // GetWebhookInfo implements getWebhookInfo operation. // // POST /getWebhookInfo GetWebhookInfo(ctx context.Context) (*ResultWebhookInfo, error) // LeaveChat implements leaveChat operation. // // POST /leaveChat LeaveChat(ctx context.Context, req *LeaveChat) (*Result, error) // LogOut implements logOut operation. // // POST /logOut LogOut(ctx context.Context) (*Result, error) // PinChatMessage implements pinChatMessage operation. // // POST /pinChatMessage PinChatMessage(ctx context.Context, req *PinChatMessage) (*Result, error) // PromoteChatMember implements promoteChatMember operation. // // POST /promoteChatMember PromoteChatMember(ctx context.Context, req *PromoteChatMember) (*Result, error) // RestrictChatMember implements restrictChatMember operation. // // POST /restrictChatMember RestrictChatMember(ctx context.Context, req *RestrictChatMember) (*Result, error) // RevokeChatInviteLink implements revokeChatInviteLink operation. // // POST /revokeChatInviteLink RevokeChatInviteLink(ctx context.Context, req *RevokeChatInviteLink) (*ResultChatInviteLink, error) // SendAnimation implements sendAnimation operation. // // POST /sendAnimation SendAnimation(ctx context.Context, req *SendAnimation) (*ResultMessage, error) // SendAudio implements sendAudio operation. // // POST /sendAudio SendAudio(ctx context.Context, req *SendAudio) (*ResultMessage, error) // SendChatAction implements sendChatAction operation. // // POST /sendChatAction SendChatAction(ctx context.Context, req *SendChatAction) (*Result, error) // SendContact implements sendContact operation. // // POST /sendContact SendContact(ctx context.Context, req *SendContact) (*ResultMessage, error) // SendDice implements sendDice operation. // // POST /sendDice SendDice(ctx context.Context, req *SendDice) (*ResultMessage, error) // SendDocument implements sendDocument operation. // // POST /sendDocument SendDocument(ctx context.Context, req *SendDocument) (*ResultMessage, error) // SendGame implements sendGame operation. // // POST /sendGame SendGame(ctx context.Context, req *SendGame) (*ResultMessage, error) // SendInvoice implements sendInvoice operation. // // POST /sendInvoice SendInvoice(ctx context.Context, req *SendInvoice) (*ResultMessage, error) // SendLocation implements sendLocation operation. // // POST /sendLocation SendLocation(ctx context.Context, req *SendLocation) (*ResultMessage, error) // SendMediaGroup implements sendMediaGroup operation. // // POST /sendMediaGroup SendMediaGroup(ctx context.Context, req *SendMediaGroup) (*ResultArrayOfMessage, error) // SendMessage implements sendMessage operation. // // POST /sendMessage SendMessage(ctx context.Context, req *SendMessage) (*ResultMessage, error) // SendPhoto implements sendPhoto operation. // // POST /sendPhoto SendPhoto(ctx context.Context, req *SendPhoto) (*ResultMessage, error) // SendPoll implements sendPoll operation. // // POST /sendPoll SendPoll(ctx context.Context, req *SendPoll) (*ResultMessage, error) // SendSticker implements sendSticker operation. // // POST /sendSticker SendSticker(ctx context.Context, req *SendSticker) (*ResultMessage, error) // SendVenue implements sendVenue operation. // // POST /sendVenue SendVenue(ctx context.Context, req *SendVenue) (*ResultMessage, error) // SendVideo implements sendVideo operation. // // POST /sendVideo SendVideo(ctx context.Context, req *SendVideo) (*ResultMessage, error) // SendVideoNote implements sendVideoNote operation. // // POST /sendVideoNote SendVideoNote(ctx context.Context, req *SendVideoNote) (*ResultMessage, error) // SendVoice implements sendVoice operation. // // POST /sendVoice SendVoice(ctx context.Context, req *SendVoice) (*ResultMessage, error) // SetChatAdministratorCustomTitle implements setChatAdministratorCustomTitle operation. // // POST /setChatAdministratorCustomTitle SetChatAdministratorCustomTitle(ctx context.Context, req *SetChatAdministratorCustomTitle) (*Result, error) // SetChatDescription implements setChatDescription operation. // // POST /setChatDescription SetChatDescription(ctx context.Context, req *SetChatDescription) (*Result, error) // SetChatPermissions implements setChatPermissions operation. // // POST /setChatPermissions SetChatPermissions(ctx context.Context, req *SetChatPermissions) (*Result, error) // SetChatPhoto implements setChatPhoto operation. // // POST /setChatPhoto SetChatPhoto(ctx context.Context, req *SetChatPhoto) (*Result, error) // SetChatStickerSet implements setChatStickerSet operation. // // POST /setChatStickerSet SetChatStickerSet(ctx context.Context, req *SetChatStickerSet) (*Result, error) // SetChatTitle implements setChatTitle operation. // // POST /setChatTitle SetChatTitle(ctx context.Context, req *SetChatTitle) (*Result, error) // SetGameScore implements setGameScore operation. // // POST /setGameScore SetGameScore(ctx context.Context, req *SetGameScore) (*Result, error) // SetMyCommands implements setMyCommands operation. // // POST /setMyCommands SetMyCommands(ctx context.Context, req *SetMyCommands) (*Result, error) // SetPassportDataErrors implements setPassportDataErrors operation. // // POST /setPassportDataErrors SetPassportDataErrors(ctx context.Context, req *SetPassportDataErrors) (*Result, error) // SetStickerPositionInSet implements setStickerPositionInSet operation. // // POST /setStickerPositionInSet SetStickerPositionInSet(ctx context.Context, req *SetStickerPositionInSet) (*Result, error) // SetStickerSetThumb implements setStickerSetThumb operation. // // POST /setStickerSetThumb SetStickerSetThumb(ctx context.Context, req *SetStickerSetThumb) (*Result, error) // SetWebhook implements setWebhook operation. // // POST /setWebhook SetWebhook(ctx context.Context, req *SetWebhook) (*Result, error) // StopMessageLiveLocation implements stopMessageLiveLocation operation. // // POST /stopMessageLiveLocation StopMessageLiveLocation(ctx context.Context, req *StopMessageLiveLocation) (*Result, error) // StopPoll implements stopPoll operation. // // POST /stopPoll StopPoll(ctx context.Context, req *StopPoll) (*ResultPoll, error) // UnbanChatMember implements unbanChatMember operation. // // POST /unbanChatMember UnbanChatMember(ctx context.Context, req *UnbanChatMember) (*Result, error) // UnbanChatSenderChat implements unbanChatSenderChat operation. // // POST /unbanChatSenderChat UnbanChatSenderChat(ctx context.Context, req *UnbanChatSenderChat) (*Result, error) // UnpinAllChatMessages implements unpinAllChatMessages operation. // // POST /unpinAllChatMessages UnpinAllChatMessages(ctx context.Context, req *UnpinAllChatMessages) (*Result, error) // UnpinChatMessage implements unpinChatMessage operation. // // POST /unpinChatMessage UnpinChatMessage(ctx context.Context, req *UnpinChatMessage) (*Result, error) // UploadStickerFile implements uploadStickerFile operation. // // POST /uploadStickerFile UploadStickerFile(ctx context.Context, req *UploadStickerFile) (*ResultFile, error) // NewError creates *ErrorStatusCode from error returned by handler. // // Used for common default response. NewError(ctx context.Context, err error) *ErrorStatusCode }
Handler handles operations described by OpenAPI v3 specification.
type ID ¶
Ref: #/components/schemas/ID ID represents sum type.
func (ID) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*ID) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type InlineKeyboardButton ¶
type InlineKeyboardButton struct { // Label text on the button. Text string `json:"text"` // HTTP or tg:// url to be opened when the button is pressed. Links tg://user?id=<user_id> can be // used to mention a user by their ID without using a username, if this is allowed by their privacy // settings. URL OptURI `json:"url"` LoginURL OptLoginUrl `json:"login_url"` // Data to be sent in a callback query to the bot when button is pressed, 1-64 bytes. CallbackData OptString `json:"callback_data"` // If set, pressing the button will prompt the user to select one of their chats, open that chat and // insert the bot's username and the specified inline query in the input field. Can be empty, in // which case just the bot's username will be inserted.Note: This offers an easy way for users to // start using your bot in inline mode when they are currently in a private chat with it. Especially // useful when combined with switch_pm… actions – in this case the user will be automatically // returned to the chat they switched from, skipping the chat selection screen. SwitchInlineQuery OptString `json:"switch_inline_query"` // If set, pressing the button will insert the bot's username and the specified inline query in the // current chat's input field. Can be empty, in which case only the bot's username will be inserted. // This offers a quick way for the user to open your bot in inline mode in the same chat – good for // selecting something from multiple options. SwitchInlineQueryCurrentChat OptString `json:"switch_inline_query_current_chat"` CallbackGame *CallbackGame `json:"callback_game"` // Specify True, to send a Pay button.NOTE: This type of button must always be the first button in // the first row and can only be used in invoice messages. Pay OptBool `json:"pay"` }
This object represents one button of an inline keyboard. You must use exactly one of the optional fields. Ref: #/components/schemas/InlineKeyboardButton
func (*InlineKeyboardButton) Decode ¶
func (s *InlineKeyboardButton) Decode(d *jx.Decoder) error
Decode decodes InlineKeyboardButton from json.
func (*InlineKeyboardButton) Encode ¶
func (s *InlineKeyboardButton) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InlineKeyboardButton) GetCallbackData ¶
func (s *InlineKeyboardButton) GetCallbackData() OptString
GetCallbackData returns the value of CallbackData.
func (*InlineKeyboardButton) GetCallbackGame ¶
func (s *InlineKeyboardButton) GetCallbackGame() *CallbackGame
GetCallbackGame returns the value of CallbackGame.
func (*InlineKeyboardButton) GetLoginURL ¶
func (s *InlineKeyboardButton) GetLoginURL() OptLoginUrl
GetLoginURL returns the value of LoginURL.
func (*InlineKeyboardButton) GetPay ¶
func (s *InlineKeyboardButton) GetPay() OptBool
GetPay returns the value of Pay.
func (*InlineKeyboardButton) GetSwitchInlineQuery ¶
func (s *InlineKeyboardButton) GetSwitchInlineQuery() OptString
GetSwitchInlineQuery returns the value of SwitchInlineQuery.
func (*InlineKeyboardButton) GetSwitchInlineQueryCurrentChat ¶
func (s *InlineKeyboardButton) GetSwitchInlineQueryCurrentChat() OptString
GetSwitchInlineQueryCurrentChat returns the value of SwitchInlineQueryCurrentChat.
func (*InlineKeyboardButton) GetText ¶
func (s *InlineKeyboardButton) GetText() string
GetText returns the value of Text.
func (*InlineKeyboardButton) GetURL ¶
func (s *InlineKeyboardButton) GetURL() OptURI
GetURL returns the value of URL.
func (*InlineKeyboardButton) MarshalJSON ¶
func (s *InlineKeyboardButton) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InlineKeyboardButton) SetCallbackData ¶
func (s *InlineKeyboardButton) SetCallbackData(val OptString)
SetCallbackData sets the value of CallbackData.
func (*InlineKeyboardButton) SetCallbackGame ¶
func (s *InlineKeyboardButton) SetCallbackGame(val *CallbackGame)
SetCallbackGame sets the value of CallbackGame.
func (*InlineKeyboardButton) SetFake ¶
func (s *InlineKeyboardButton) SetFake()
SetFake set fake values.
func (*InlineKeyboardButton) SetLoginURL ¶
func (s *InlineKeyboardButton) SetLoginURL(val OptLoginUrl)
SetLoginURL sets the value of LoginURL.
func (*InlineKeyboardButton) SetPay ¶
func (s *InlineKeyboardButton) SetPay(val OptBool)
SetPay sets the value of Pay.
func (*InlineKeyboardButton) SetSwitchInlineQuery ¶
func (s *InlineKeyboardButton) SetSwitchInlineQuery(val OptString)
SetSwitchInlineQuery sets the value of SwitchInlineQuery.
func (*InlineKeyboardButton) SetSwitchInlineQueryCurrentChat ¶
func (s *InlineKeyboardButton) SetSwitchInlineQueryCurrentChat(val OptString)
SetSwitchInlineQueryCurrentChat sets the value of SwitchInlineQueryCurrentChat.
func (*InlineKeyboardButton) SetText ¶
func (s *InlineKeyboardButton) SetText(val string)
SetText sets the value of Text.
func (*InlineKeyboardButton) SetURL ¶
func (s *InlineKeyboardButton) SetURL(val OptURI)
SetURL sets the value of URL.
func (*InlineKeyboardButton) UnmarshalJSON ¶
func (s *InlineKeyboardButton) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InlineKeyboardButton) Validate ¶
func (s *InlineKeyboardButton) Validate() error
type InlineKeyboardMarkup ¶
type InlineKeyboardMarkup struct { // Array of button rows, each represented by an Array of InlineKeyboardButton objects. InlineKeyboard [][]InlineKeyboardButton `json:"inline_keyboard"` }
This object represents an inline keyboard that appears right next to the message it belongs to. Ref: #/components/schemas/InlineKeyboardMarkup
func (*InlineKeyboardMarkup) Decode ¶
func (s *InlineKeyboardMarkup) Decode(d *jx.Decoder) error
Decode decodes InlineKeyboardMarkup from json.
func (*InlineKeyboardMarkup) Encode ¶
func (s *InlineKeyboardMarkup) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InlineKeyboardMarkup) GetInlineKeyboard ¶
func (s *InlineKeyboardMarkup) GetInlineKeyboard() [][]InlineKeyboardButton
GetInlineKeyboard returns the value of InlineKeyboard.
func (*InlineKeyboardMarkup) MarshalJSON ¶
func (s *InlineKeyboardMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InlineKeyboardMarkup) SetFake ¶
func (s *InlineKeyboardMarkup) SetFake()
SetFake set fake values.
func (*InlineKeyboardMarkup) SetInlineKeyboard ¶
func (s *InlineKeyboardMarkup) SetInlineKeyboard(val [][]InlineKeyboardButton)
SetInlineKeyboard sets the value of InlineKeyboard.
func (*InlineKeyboardMarkup) UnmarshalJSON ¶
func (s *InlineKeyboardMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InlineKeyboardMarkup) Validate ¶
func (s *InlineKeyboardMarkup) Validate() error
type InlineQuery ¶
type InlineQuery struct { // Unique identifier for this query. ID string `json:"id"` From User `json:"from"` // Text of the query (up to 256 characters). Query string `json:"query"` // Offset of the results to be returned, can be controlled by the bot. Offset string `json:"offset"` // Type of the chat, from which the inline query was sent. Can be either “sender” for a private // chat with the inline query sender, “private”, “group”, “supergroup”, or “channel”. // The chat type should be always known for requests sent from official clients and most third-party // clients, unless the request was sent from a secret chat. ChatType OptInlineQueryChatType `json:"chat_type"` Location OptLocation `json:"location"` }
This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results. Ref: #/components/schemas/InlineQuery
func (*InlineQuery) Decode ¶
func (s *InlineQuery) Decode(d *jx.Decoder) error
Decode decodes InlineQuery from json.
func (*InlineQuery) Encode ¶
func (s *InlineQuery) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InlineQuery) GetChatType ¶
func (s *InlineQuery) GetChatType() OptInlineQueryChatType
GetChatType returns the value of ChatType.
func (*InlineQuery) GetFrom ¶
func (s *InlineQuery) GetFrom() User
GetFrom returns the value of From.
func (*InlineQuery) GetLocation ¶
func (s *InlineQuery) GetLocation() OptLocation
GetLocation returns the value of Location.
func (*InlineQuery) GetOffset ¶
func (s *InlineQuery) GetOffset() string
GetOffset returns the value of Offset.
func (*InlineQuery) GetQuery ¶
func (s *InlineQuery) GetQuery() string
GetQuery returns the value of Query.
func (*InlineQuery) MarshalJSON ¶
func (s *InlineQuery) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InlineQuery) SetChatType ¶
func (s *InlineQuery) SetChatType(val OptInlineQueryChatType)
SetChatType sets the value of ChatType.
func (*InlineQuery) SetFrom ¶
func (s *InlineQuery) SetFrom(val User)
SetFrom sets the value of From.
func (*InlineQuery) SetLocation ¶
func (s *InlineQuery) SetLocation(val OptLocation)
SetLocation sets the value of Location.
func (*InlineQuery) SetOffset ¶
func (s *InlineQuery) SetOffset(val string)
SetOffset sets the value of Offset.
func (*InlineQuery) SetQuery ¶
func (s *InlineQuery) SetQuery(val string)
SetQuery sets the value of Query.
func (*InlineQuery) UnmarshalJSON ¶
func (s *InlineQuery) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InlineQuery) Validate ¶
func (s *InlineQuery) Validate() error
type InlineQueryChatType ¶
type InlineQueryChatType string
Type of the chat, from which the inline query was sent. Can be either “sender” for a private chat with the inline query sender, “private”, “group”, “supergroup”, or “channel”. The chat type should be always known for requests sent from official clients and most third-party clients, unless the request was sent from a secret chat.
const ( InlineQueryChatTypeSender InlineQueryChatType = "sender" InlineQueryChatTypePrivate InlineQueryChatType = "private" InlineQueryChatTypeGroup InlineQueryChatType = "group" InlineQueryChatTypeSupergroup InlineQueryChatType = "supergroup" InlineQueryChatTypeChannel InlineQueryChatType = "channel" )
func (InlineQueryChatType) AllValues ¶
func (InlineQueryChatType) AllValues() []InlineQueryChatType
AllValues returns all InlineQueryChatType values.
func (*InlineQueryChatType) Decode ¶
func (s *InlineQueryChatType) Decode(d *jx.Decoder) error
Decode decodes InlineQueryChatType from json.
func (InlineQueryChatType) Encode ¶
func (s InlineQueryChatType) Encode(e *jx.Encoder)
Encode encodes InlineQueryChatType as json.
func (InlineQueryChatType) MarshalJSON ¶
func (s InlineQueryChatType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (InlineQueryChatType) MarshalText ¶
func (s InlineQueryChatType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*InlineQueryChatType) SetFake ¶
func (s *InlineQueryChatType) SetFake()
SetFake set fake values.
func (*InlineQueryChatType) UnmarshalJSON ¶
func (s *InlineQueryChatType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InlineQueryChatType) UnmarshalText ¶
func (s *InlineQueryChatType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (InlineQueryChatType) Validate ¶
func (s InlineQueryChatType) Validate() error
type InlineQueryResult ¶
type InlineQueryResult struct { Type InlineQueryResultType // switch on this field InlineQueryResultCachedAudio InlineQueryResultCachedAudio InlineQueryResultCachedDocument InlineQueryResultCachedDocument InlineQueryResultCachedGif InlineQueryResultCachedGif InlineQueryResultCachedMpeg4Gif InlineQueryResultCachedMpeg4Gif InlineQueryResultCachedPhoto InlineQueryResultCachedPhoto InlineQueryResultCachedSticker InlineQueryResultCachedSticker InlineQueryResultCachedVideo InlineQueryResultCachedVideo InlineQueryResultCachedVoice InlineQueryResultCachedVoice InlineQueryResultArticle InlineQueryResultArticle InlineQueryResultAudio InlineQueryResultAudio InlineQueryResultContact InlineQueryResultContact InlineQueryResultGame InlineQueryResultGame InlineQueryResultDocument InlineQueryResultDocument InlineQueryResultGif InlineQueryResultGif InlineQueryResultLocation InlineQueryResultLocation InlineQueryResultMpeg4Gif InlineQueryResultMpeg4Gif InlineQueryResultPhoto InlineQueryResultPhoto InlineQueryResultVenue InlineQueryResultVenue InlineQueryResultVideo InlineQueryResultVideo InlineQueryResultVoice InlineQueryResultVoice }
An inline query. Telegram clients currently support results of the following 20 types:. Ref: #/components/schemas/InlineQueryResult InlineQueryResult represents sum type.
func NewInlineQueryResultArticleInlineQueryResult ¶
func NewInlineQueryResultArticleInlineQueryResult(v InlineQueryResultArticle) InlineQueryResult
NewInlineQueryResultArticleInlineQueryResult returns new InlineQueryResult from InlineQueryResultArticle.
func NewInlineQueryResultAudioInlineQueryResult ¶
func NewInlineQueryResultAudioInlineQueryResult(v InlineQueryResultAudio) InlineQueryResult
NewInlineQueryResultAudioInlineQueryResult returns new InlineQueryResult from InlineQueryResultAudio.
func NewInlineQueryResultCachedAudioInlineQueryResult ¶
func NewInlineQueryResultCachedAudioInlineQueryResult(v InlineQueryResultCachedAudio) InlineQueryResult
NewInlineQueryResultCachedAudioInlineQueryResult returns new InlineQueryResult from InlineQueryResultCachedAudio.
func NewInlineQueryResultCachedDocumentInlineQueryResult ¶
func NewInlineQueryResultCachedDocumentInlineQueryResult(v InlineQueryResultCachedDocument) InlineQueryResult
NewInlineQueryResultCachedDocumentInlineQueryResult returns new InlineQueryResult from InlineQueryResultCachedDocument.
func NewInlineQueryResultCachedGifInlineQueryResult ¶
func NewInlineQueryResultCachedGifInlineQueryResult(v InlineQueryResultCachedGif) InlineQueryResult
NewInlineQueryResultCachedGifInlineQueryResult returns new InlineQueryResult from InlineQueryResultCachedGif.
func NewInlineQueryResultCachedMpeg4GifInlineQueryResult ¶
func NewInlineQueryResultCachedMpeg4GifInlineQueryResult(v InlineQueryResultCachedMpeg4Gif) InlineQueryResult
NewInlineQueryResultCachedMpeg4GifInlineQueryResult returns new InlineQueryResult from InlineQueryResultCachedMpeg4Gif.
func NewInlineQueryResultCachedPhotoInlineQueryResult ¶
func NewInlineQueryResultCachedPhotoInlineQueryResult(v InlineQueryResultCachedPhoto) InlineQueryResult
NewInlineQueryResultCachedPhotoInlineQueryResult returns new InlineQueryResult from InlineQueryResultCachedPhoto.
func NewInlineQueryResultCachedStickerInlineQueryResult ¶
func NewInlineQueryResultCachedStickerInlineQueryResult(v InlineQueryResultCachedSticker) InlineQueryResult
NewInlineQueryResultCachedStickerInlineQueryResult returns new InlineQueryResult from InlineQueryResultCachedSticker.
func NewInlineQueryResultCachedVideoInlineQueryResult ¶
func NewInlineQueryResultCachedVideoInlineQueryResult(v InlineQueryResultCachedVideo) InlineQueryResult
NewInlineQueryResultCachedVideoInlineQueryResult returns new InlineQueryResult from InlineQueryResultCachedVideo.
func NewInlineQueryResultCachedVoiceInlineQueryResult ¶
func NewInlineQueryResultCachedVoiceInlineQueryResult(v InlineQueryResultCachedVoice) InlineQueryResult
NewInlineQueryResultCachedVoiceInlineQueryResult returns new InlineQueryResult from InlineQueryResultCachedVoice.
func NewInlineQueryResultContactInlineQueryResult ¶
func NewInlineQueryResultContactInlineQueryResult(v InlineQueryResultContact) InlineQueryResult
NewInlineQueryResultContactInlineQueryResult returns new InlineQueryResult from InlineQueryResultContact.
func NewInlineQueryResultDocumentInlineQueryResult ¶
func NewInlineQueryResultDocumentInlineQueryResult(v InlineQueryResultDocument) InlineQueryResult
NewInlineQueryResultDocumentInlineQueryResult returns new InlineQueryResult from InlineQueryResultDocument.
func NewInlineQueryResultGameInlineQueryResult ¶
func NewInlineQueryResultGameInlineQueryResult(v InlineQueryResultGame) InlineQueryResult
NewInlineQueryResultGameInlineQueryResult returns new InlineQueryResult from InlineQueryResultGame.
func NewInlineQueryResultGifInlineQueryResult ¶
func NewInlineQueryResultGifInlineQueryResult(v InlineQueryResultGif) InlineQueryResult
NewInlineQueryResultGifInlineQueryResult returns new InlineQueryResult from InlineQueryResultGif.
func NewInlineQueryResultLocationInlineQueryResult ¶
func NewInlineQueryResultLocationInlineQueryResult(v InlineQueryResultLocation) InlineQueryResult
NewInlineQueryResultLocationInlineQueryResult returns new InlineQueryResult from InlineQueryResultLocation.
func NewInlineQueryResultMpeg4GifInlineQueryResult ¶
func NewInlineQueryResultMpeg4GifInlineQueryResult(v InlineQueryResultMpeg4Gif) InlineQueryResult
NewInlineQueryResultMpeg4GifInlineQueryResult returns new InlineQueryResult from InlineQueryResultMpeg4Gif.
func NewInlineQueryResultPhotoInlineQueryResult ¶
func NewInlineQueryResultPhotoInlineQueryResult(v InlineQueryResultPhoto) InlineQueryResult
NewInlineQueryResultPhotoInlineQueryResult returns new InlineQueryResult from InlineQueryResultPhoto.
func NewInlineQueryResultVenueInlineQueryResult ¶
func NewInlineQueryResultVenueInlineQueryResult(v InlineQueryResultVenue) InlineQueryResult
NewInlineQueryResultVenueInlineQueryResult returns new InlineQueryResult from InlineQueryResultVenue.
func NewInlineQueryResultVideoInlineQueryResult ¶
func NewInlineQueryResultVideoInlineQueryResult(v InlineQueryResultVideo) InlineQueryResult
NewInlineQueryResultVideoInlineQueryResult returns new InlineQueryResult from InlineQueryResultVideo.
func NewInlineQueryResultVoiceInlineQueryResult ¶
func NewInlineQueryResultVoiceInlineQueryResult(v InlineQueryResultVoice) InlineQueryResult
NewInlineQueryResultVoiceInlineQueryResult returns new InlineQueryResult from InlineQueryResultVoice.
func (*InlineQueryResult) Decode ¶
func (s *InlineQueryResult) Decode(d *jx.Decoder) error
Decode decodes InlineQueryResult from json.
func (InlineQueryResult) Encode ¶
func (s InlineQueryResult) Encode(e *jx.Encoder)
Encode encodes InlineQueryResult as json.
func (InlineQueryResult) GetInlineQueryResultArticle ¶
func (s InlineQueryResult) GetInlineQueryResultArticle() (v InlineQueryResultArticle, ok bool)
GetInlineQueryResultArticle returns InlineQueryResultArticle and true boolean if InlineQueryResult is InlineQueryResultArticle.
func (InlineQueryResult) GetInlineQueryResultAudio ¶
func (s InlineQueryResult) GetInlineQueryResultAudio() (v InlineQueryResultAudio, ok bool)
GetInlineQueryResultAudio returns InlineQueryResultAudio and true boolean if InlineQueryResult is InlineQueryResultAudio.
func (InlineQueryResult) GetInlineQueryResultCachedAudio ¶
func (s InlineQueryResult) GetInlineQueryResultCachedAudio() (v InlineQueryResultCachedAudio, ok bool)
GetInlineQueryResultCachedAudio returns InlineQueryResultCachedAudio and true boolean if InlineQueryResult is InlineQueryResultCachedAudio.
func (InlineQueryResult) GetInlineQueryResultCachedDocument ¶
func (s InlineQueryResult) GetInlineQueryResultCachedDocument() (v InlineQueryResultCachedDocument, ok bool)
GetInlineQueryResultCachedDocument returns InlineQueryResultCachedDocument and true boolean if InlineQueryResult is InlineQueryResultCachedDocument.
func (InlineQueryResult) GetInlineQueryResultCachedGif ¶
func (s InlineQueryResult) GetInlineQueryResultCachedGif() (v InlineQueryResultCachedGif, ok bool)
GetInlineQueryResultCachedGif returns InlineQueryResultCachedGif and true boolean if InlineQueryResult is InlineQueryResultCachedGif.
func (InlineQueryResult) GetInlineQueryResultCachedMpeg4Gif ¶
func (s InlineQueryResult) GetInlineQueryResultCachedMpeg4Gif() (v InlineQueryResultCachedMpeg4Gif, ok bool)
GetInlineQueryResultCachedMpeg4Gif returns InlineQueryResultCachedMpeg4Gif and true boolean if InlineQueryResult is InlineQueryResultCachedMpeg4Gif.
func (InlineQueryResult) GetInlineQueryResultCachedPhoto ¶
func (s InlineQueryResult) GetInlineQueryResultCachedPhoto() (v InlineQueryResultCachedPhoto, ok bool)
GetInlineQueryResultCachedPhoto returns InlineQueryResultCachedPhoto and true boolean if InlineQueryResult is InlineQueryResultCachedPhoto.
func (InlineQueryResult) GetInlineQueryResultCachedSticker ¶
func (s InlineQueryResult) GetInlineQueryResultCachedSticker() (v InlineQueryResultCachedSticker, ok bool)
GetInlineQueryResultCachedSticker returns InlineQueryResultCachedSticker and true boolean if InlineQueryResult is InlineQueryResultCachedSticker.
func (InlineQueryResult) GetInlineQueryResultCachedVideo ¶
func (s InlineQueryResult) GetInlineQueryResultCachedVideo() (v InlineQueryResultCachedVideo, ok bool)
GetInlineQueryResultCachedVideo returns InlineQueryResultCachedVideo and true boolean if InlineQueryResult is InlineQueryResultCachedVideo.
func (InlineQueryResult) GetInlineQueryResultCachedVoice ¶
func (s InlineQueryResult) GetInlineQueryResultCachedVoice() (v InlineQueryResultCachedVoice, ok bool)
GetInlineQueryResultCachedVoice returns InlineQueryResultCachedVoice and true boolean if InlineQueryResult is InlineQueryResultCachedVoice.
func (InlineQueryResult) GetInlineQueryResultContact ¶
func (s InlineQueryResult) GetInlineQueryResultContact() (v InlineQueryResultContact, ok bool)
GetInlineQueryResultContact returns InlineQueryResultContact and true boolean if InlineQueryResult is InlineQueryResultContact.
func (InlineQueryResult) GetInlineQueryResultDocument ¶
func (s InlineQueryResult) GetInlineQueryResultDocument() (v InlineQueryResultDocument, ok bool)
GetInlineQueryResultDocument returns InlineQueryResultDocument and true boolean if InlineQueryResult is InlineQueryResultDocument.
func (InlineQueryResult) GetInlineQueryResultGame ¶
func (s InlineQueryResult) GetInlineQueryResultGame() (v InlineQueryResultGame, ok bool)
GetInlineQueryResultGame returns InlineQueryResultGame and true boolean if InlineQueryResult is InlineQueryResultGame.
func (InlineQueryResult) GetInlineQueryResultGif ¶
func (s InlineQueryResult) GetInlineQueryResultGif() (v InlineQueryResultGif, ok bool)
GetInlineQueryResultGif returns InlineQueryResultGif and true boolean if InlineQueryResult is InlineQueryResultGif.
func (InlineQueryResult) GetInlineQueryResultLocation ¶
func (s InlineQueryResult) GetInlineQueryResultLocation() (v InlineQueryResultLocation, ok bool)
GetInlineQueryResultLocation returns InlineQueryResultLocation and true boolean if InlineQueryResult is InlineQueryResultLocation.
func (InlineQueryResult) GetInlineQueryResultMpeg4Gif ¶
func (s InlineQueryResult) GetInlineQueryResultMpeg4Gif() (v InlineQueryResultMpeg4Gif, ok bool)
GetInlineQueryResultMpeg4Gif returns InlineQueryResultMpeg4Gif and true boolean if InlineQueryResult is InlineQueryResultMpeg4Gif.
func (InlineQueryResult) GetInlineQueryResultPhoto ¶
func (s InlineQueryResult) GetInlineQueryResultPhoto() (v InlineQueryResultPhoto, ok bool)
GetInlineQueryResultPhoto returns InlineQueryResultPhoto and true boolean if InlineQueryResult is InlineQueryResultPhoto.
func (InlineQueryResult) GetInlineQueryResultVenue ¶
func (s InlineQueryResult) GetInlineQueryResultVenue() (v InlineQueryResultVenue, ok bool)
GetInlineQueryResultVenue returns InlineQueryResultVenue and true boolean if InlineQueryResult is InlineQueryResultVenue.
func (InlineQueryResult) GetInlineQueryResultVideo ¶
func (s InlineQueryResult) GetInlineQueryResultVideo() (v InlineQueryResultVideo, ok bool)
GetInlineQueryResultVideo returns InlineQueryResultVideo and true boolean if InlineQueryResult is InlineQueryResultVideo.
func (InlineQueryResult) GetInlineQueryResultVoice ¶
func (s InlineQueryResult) GetInlineQueryResultVoice() (v InlineQueryResultVoice, ok bool)
GetInlineQueryResultVoice returns InlineQueryResultVoice and true boolean if InlineQueryResult is InlineQueryResultVoice.
func (InlineQueryResult) IsInlineQueryResultArticle ¶
func (s InlineQueryResult) IsInlineQueryResultArticle() bool
IsInlineQueryResultArticle reports whether InlineQueryResult is InlineQueryResultArticle.
func (InlineQueryResult) IsInlineQueryResultAudio ¶
func (s InlineQueryResult) IsInlineQueryResultAudio() bool
IsInlineQueryResultAudio reports whether InlineQueryResult is InlineQueryResultAudio.
func (InlineQueryResult) IsInlineQueryResultCachedAudio ¶
func (s InlineQueryResult) IsInlineQueryResultCachedAudio() bool
IsInlineQueryResultCachedAudio reports whether InlineQueryResult is InlineQueryResultCachedAudio.
func (InlineQueryResult) IsInlineQueryResultCachedDocument ¶
func (s InlineQueryResult) IsInlineQueryResultCachedDocument() bool
IsInlineQueryResultCachedDocument reports whether InlineQueryResult is InlineQueryResultCachedDocument.
func (InlineQueryResult) IsInlineQueryResultCachedGif ¶
func (s InlineQueryResult) IsInlineQueryResultCachedGif() bool
IsInlineQueryResultCachedGif reports whether InlineQueryResult is InlineQueryResultCachedGif.
func (InlineQueryResult) IsInlineQueryResultCachedMpeg4Gif ¶
func (s InlineQueryResult) IsInlineQueryResultCachedMpeg4Gif() bool
IsInlineQueryResultCachedMpeg4Gif reports whether InlineQueryResult is InlineQueryResultCachedMpeg4Gif.
func (InlineQueryResult) IsInlineQueryResultCachedPhoto ¶
func (s InlineQueryResult) IsInlineQueryResultCachedPhoto() bool
IsInlineQueryResultCachedPhoto reports whether InlineQueryResult is InlineQueryResultCachedPhoto.
func (InlineQueryResult) IsInlineQueryResultCachedSticker ¶
func (s InlineQueryResult) IsInlineQueryResultCachedSticker() bool
IsInlineQueryResultCachedSticker reports whether InlineQueryResult is InlineQueryResultCachedSticker.
func (InlineQueryResult) IsInlineQueryResultCachedVideo ¶
func (s InlineQueryResult) IsInlineQueryResultCachedVideo() bool
IsInlineQueryResultCachedVideo reports whether InlineQueryResult is InlineQueryResultCachedVideo.
func (InlineQueryResult) IsInlineQueryResultCachedVoice ¶
func (s InlineQueryResult) IsInlineQueryResultCachedVoice() bool
IsInlineQueryResultCachedVoice reports whether InlineQueryResult is InlineQueryResultCachedVoice.
func (InlineQueryResult) IsInlineQueryResultContact ¶
func (s InlineQueryResult) IsInlineQueryResultContact() bool
IsInlineQueryResultContact reports whether InlineQueryResult is InlineQueryResultContact.
func (InlineQueryResult) IsInlineQueryResultDocument ¶
func (s InlineQueryResult) IsInlineQueryResultDocument() bool
IsInlineQueryResultDocument reports whether InlineQueryResult is InlineQueryResultDocument.
func (InlineQueryResult) IsInlineQueryResultGame ¶
func (s InlineQueryResult) IsInlineQueryResultGame() bool
IsInlineQueryResultGame reports whether InlineQueryResult is InlineQueryResultGame.
func (InlineQueryResult) IsInlineQueryResultGif ¶
func (s InlineQueryResult) IsInlineQueryResultGif() bool
IsInlineQueryResultGif reports whether InlineQueryResult is InlineQueryResultGif.
func (InlineQueryResult) IsInlineQueryResultLocation ¶
func (s InlineQueryResult) IsInlineQueryResultLocation() bool
IsInlineQueryResultLocation reports whether InlineQueryResult is InlineQueryResultLocation.
func (InlineQueryResult) IsInlineQueryResultMpeg4Gif ¶
func (s InlineQueryResult) IsInlineQueryResultMpeg4Gif() bool
IsInlineQueryResultMpeg4Gif reports whether InlineQueryResult is InlineQueryResultMpeg4Gif.
func (InlineQueryResult) IsInlineQueryResultPhoto ¶
func (s InlineQueryResult) IsInlineQueryResultPhoto() bool
IsInlineQueryResultPhoto reports whether InlineQueryResult is InlineQueryResultPhoto.
func (InlineQueryResult) IsInlineQueryResultVenue ¶
func (s InlineQueryResult) IsInlineQueryResultVenue() bool
IsInlineQueryResultVenue reports whether InlineQueryResult is InlineQueryResultVenue.
func (InlineQueryResult) IsInlineQueryResultVideo ¶
func (s InlineQueryResult) IsInlineQueryResultVideo() bool
IsInlineQueryResultVideo reports whether InlineQueryResult is InlineQueryResultVideo.
func (InlineQueryResult) IsInlineQueryResultVoice ¶
func (s InlineQueryResult) IsInlineQueryResultVoice() bool
IsInlineQueryResultVoice reports whether InlineQueryResult is InlineQueryResultVoice.
func (InlineQueryResult) MarshalJSON ¶
func (s InlineQueryResult) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InlineQueryResult) SetInlineQueryResultArticle ¶
func (s *InlineQueryResult) SetInlineQueryResultArticle(v InlineQueryResultArticle)
SetInlineQueryResultArticle sets InlineQueryResult to InlineQueryResultArticle.
func (*InlineQueryResult) SetInlineQueryResultAudio ¶
func (s *InlineQueryResult) SetInlineQueryResultAudio(v InlineQueryResultAudio)
SetInlineQueryResultAudio sets InlineQueryResult to InlineQueryResultAudio.
func (*InlineQueryResult) SetInlineQueryResultCachedAudio ¶
func (s *InlineQueryResult) SetInlineQueryResultCachedAudio(v InlineQueryResultCachedAudio)
SetInlineQueryResultCachedAudio sets InlineQueryResult to InlineQueryResultCachedAudio.
func (*InlineQueryResult) SetInlineQueryResultCachedDocument ¶
func (s *InlineQueryResult) SetInlineQueryResultCachedDocument(v InlineQueryResultCachedDocument)
SetInlineQueryResultCachedDocument sets InlineQueryResult to InlineQueryResultCachedDocument.
func (*InlineQueryResult) SetInlineQueryResultCachedGif ¶
func (s *InlineQueryResult) SetInlineQueryResultCachedGif(v InlineQueryResultCachedGif)
SetInlineQueryResultCachedGif sets InlineQueryResult to InlineQueryResultCachedGif.
func (*InlineQueryResult) SetInlineQueryResultCachedMpeg4Gif ¶
func (s *InlineQueryResult) SetInlineQueryResultCachedMpeg4Gif(v InlineQueryResultCachedMpeg4Gif)
SetInlineQueryResultCachedMpeg4Gif sets InlineQueryResult to InlineQueryResultCachedMpeg4Gif.
func (*InlineQueryResult) SetInlineQueryResultCachedPhoto ¶
func (s *InlineQueryResult) SetInlineQueryResultCachedPhoto(v InlineQueryResultCachedPhoto)
SetInlineQueryResultCachedPhoto sets InlineQueryResult to InlineQueryResultCachedPhoto.
func (*InlineQueryResult) SetInlineQueryResultCachedSticker ¶
func (s *InlineQueryResult) SetInlineQueryResultCachedSticker(v InlineQueryResultCachedSticker)
SetInlineQueryResultCachedSticker sets InlineQueryResult to InlineQueryResultCachedSticker.
func (*InlineQueryResult) SetInlineQueryResultCachedVideo ¶
func (s *InlineQueryResult) SetInlineQueryResultCachedVideo(v InlineQueryResultCachedVideo)
SetInlineQueryResultCachedVideo sets InlineQueryResult to InlineQueryResultCachedVideo.
func (*InlineQueryResult) SetInlineQueryResultCachedVoice ¶
func (s *InlineQueryResult) SetInlineQueryResultCachedVoice(v InlineQueryResultCachedVoice)
SetInlineQueryResultCachedVoice sets InlineQueryResult to InlineQueryResultCachedVoice.
func (*InlineQueryResult) SetInlineQueryResultContact ¶
func (s *InlineQueryResult) SetInlineQueryResultContact(v InlineQueryResultContact)
SetInlineQueryResultContact sets InlineQueryResult to InlineQueryResultContact.
func (*InlineQueryResult) SetInlineQueryResultDocument ¶
func (s *InlineQueryResult) SetInlineQueryResultDocument(v InlineQueryResultDocument)
SetInlineQueryResultDocument sets InlineQueryResult to InlineQueryResultDocument.
func (*InlineQueryResult) SetInlineQueryResultGame ¶
func (s *InlineQueryResult) SetInlineQueryResultGame(v InlineQueryResultGame)
SetInlineQueryResultGame sets InlineQueryResult to InlineQueryResultGame.
func (*InlineQueryResult) SetInlineQueryResultGif ¶
func (s *InlineQueryResult) SetInlineQueryResultGif(v InlineQueryResultGif)
SetInlineQueryResultGif sets InlineQueryResult to InlineQueryResultGif.
func (*InlineQueryResult) SetInlineQueryResultLocation ¶
func (s *InlineQueryResult) SetInlineQueryResultLocation(v InlineQueryResultLocation)
SetInlineQueryResultLocation sets InlineQueryResult to InlineQueryResultLocation.
func (*InlineQueryResult) SetInlineQueryResultMpeg4Gif ¶
func (s *InlineQueryResult) SetInlineQueryResultMpeg4Gif(v InlineQueryResultMpeg4Gif)
SetInlineQueryResultMpeg4Gif sets InlineQueryResult to InlineQueryResultMpeg4Gif.
func (*InlineQueryResult) SetInlineQueryResultPhoto ¶
func (s *InlineQueryResult) SetInlineQueryResultPhoto(v InlineQueryResultPhoto)
SetInlineQueryResultPhoto sets InlineQueryResult to InlineQueryResultPhoto.
func (*InlineQueryResult) SetInlineQueryResultVenue ¶
func (s *InlineQueryResult) SetInlineQueryResultVenue(v InlineQueryResultVenue)
SetInlineQueryResultVenue sets InlineQueryResult to InlineQueryResultVenue.
func (*InlineQueryResult) SetInlineQueryResultVideo ¶
func (s *InlineQueryResult) SetInlineQueryResultVideo(v InlineQueryResultVideo)
SetInlineQueryResultVideo sets InlineQueryResult to InlineQueryResultVideo.
func (*InlineQueryResult) SetInlineQueryResultVoice ¶
func (s *InlineQueryResult) SetInlineQueryResultVoice(v InlineQueryResultVoice)
SetInlineQueryResultVoice sets InlineQueryResult to InlineQueryResultVoice.
func (*InlineQueryResult) UnmarshalJSON ¶
func (s *InlineQueryResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (InlineQueryResult) Validate ¶
func (s InlineQueryResult) Validate() error
type InlineQueryResultArticle ¶
type InlineQueryResultArticle struct { // Type of the result, must be article. Type string `json:"type"` // Unique identifier for this result, 1-64 Bytes. ID string `json:"id"` // Title of the result. Title string `json:"title"` InputMessageContent InputMessageContent `json:"input_message_content"` ReplyMarkup OptInlineKeyboardMarkup `json:"reply_markup"` // URL of the result. URL OptURI `json:"url"` // Pass True, if you don't want the URL to be shown in the message. HideURL OptBool `json:"hide_url"` // Short description of the result. Description OptString `json:"description"` // URL of the thumbnail for the result. ThumbURL OptURI `json:"thumb_url"` // Thumbnail width. ThumbWidth OptInt `json:"thumb_width"` // Thumbnail height. ThumbHeight OptInt `json:"thumb_height"` }
Represents a link to an article or web page. Ref: #/components/schemas/InlineQueryResultArticle
func (*InlineQueryResultArticle) Decode ¶
func (s *InlineQueryResultArticle) Decode(d *jx.Decoder) error
Decode decodes InlineQueryResultArticle from json.
func (*InlineQueryResultArticle) Encode ¶
func (s *InlineQueryResultArticle) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InlineQueryResultArticle) GetDescription ¶
func (s *InlineQueryResultArticle) GetDescription() OptString
GetDescription returns the value of Description.
func (*InlineQueryResultArticle) GetHideURL ¶
func (s *InlineQueryResultArticle) GetHideURL() OptBool
GetHideURL returns the value of HideURL.
func (*InlineQueryResultArticle) GetID ¶
func (s *InlineQueryResultArticle) GetID() string
GetID returns the value of ID.
func (*InlineQueryResultArticle) GetInputMessageContent ¶
func (s *InlineQueryResultArticle) GetInputMessageContent() InputMessageContent
GetInputMessageContent returns the value of InputMessageContent.
func (*InlineQueryResultArticle) GetReplyMarkup ¶
func (s *InlineQueryResultArticle) GetReplyMarkup() OptInlineKeyboardMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*InlineQueryResultArticle) GetThumbHeight ¶
func (s *InlineQueryResultArticle) GetThumbHeight() OptInt
GetThumbHeight returns the value of ThumbHeight.
func (*InlineQueryResultArticle) GetThumbURL ¶
func (s *InlineQueryResultArticle) GetThumbURL() OptURI
GetThumbURL returns the value of ThumbURL.
func (*InlineQueryResultArticle) GetThumbWidth ¶
func (s *InlineQueryResultArticle) GetThumbWidth() OptInt
GetThumbWidth returns the value of ThumbWidth.
func (*InlineQueryResultArticle) GetTitle ¶
func (s *InlineQueryResultArticle) GetTitle() string
GetTitle returns the value of Title.
func (*InlineQueryResultArticle) GetType ¶
func (s *InlineQueryResultArticle) GetType() string
GetType returns the value of Type.
func (*InlineQueryResultArticle) GetURL ¶
func (s *InlineQueryResultArticle) GetURL() OptURI
GetURL returns the value of URL.
func (*InlineQueryResultArticle) MarshalJSON ¶
func (s *InlineQueryResultArticle) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InlineQueryResultArticle) SetDescription ¶
func (s *InlineQueryResultArticle) SetDescription(val OptString)
SetDescription sets the value of Description.
func (*InlineQueryResultArticle) SetFake ¶
func (s *InlineQueryResultArticle) SetFake()
SetFake set fake values.
func (*InlineQueryResultArticle) SetHideURL ¶
func (s *InlineQueryResultArticle) SetHideURL(val OptBool)
SetHideURL sets the value of HideURL.
func (*InlineQueryResultArticle) SetID ¶
func (s *InlineQueryResultArticle) SetID(val string)
SetID sets the value of ID.
func (*InlineQueryResultArticle) SetInputMessageContent ¶
func (s *InlineQueryResultArticle) SetInputMessageContent(val InputMessageContent)
SetInputMessageContent sets the value of InputMessageContent.
func (*InlineQueryResultArticle) SetReplyMarkup ¶
func (s *InlineQueryResultArticle) SetReplyMarkup(val OptInlineKeyboardMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*InlineQueryResultArticle) SetThumbHeight ¶
func (s *InlineQueryResultArticle) SetThumbHeight(val OptInt)
SetThumbHeight sets the value of ThumbHeight.
func (*InlineQueryResultArticle) SetThumbURL ¶
func (s *InlineQueryResultArticle) SetThumbURL(val OptURI)
SetThumbURL sets the value of ThumbURL.
func (*InlineQueryResultArticle) SetThumbWidth ¶
func (s *InlineQueryResultArticle) SetThumbWidth(val OptInt)
SetThumbWidth sets the value of ThumbWidth.
func (*InlineQueryResultArticle) SetTitle ¶
func (s *InlineQueryResultArticle) SetTitle(val string)
SetTitle sets the value of Title.
func (*InlineQueryResultArticle) SetType ¶
func (s *InlineQueryResultArticle) SetType(val string)
SetType sets the value of Type.
func (*InlineQueryResultArticle) SetURL ¶
func (s *InlineQueryResultArticle) SetURL(val OptURI)
SetURL sets the value of URL.
func (*InlineQueryResultArticle) UnmarshalJSON ¶
func (s *InlineQueryResultArticle) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InlineQueryResultArticle) Validate ¶
func (s *InlineQueryResultArticle) Validate() error
type InlineQueryResultAudio ¶
type InlineQueryResultAudio struct { // Type of the result, must be audio. Type string `json:"type"` // Unique identifier for this result, 1-64 bytes. ID string `json:"id"` // A valid URL for the audio file. AudioURL url.URL `json:"audio_url"` // Title. Title string `json:"title"` // Caption, 0-1024 characters after entities parsing. Caption OptString `json:"caption"` // Mode for parsing entities in the audio caption. See formatting options for more details. ParseMode OptString `json:"parse_mode"` // List of special entities that appear in the caption, which can be specified instead of parse_mode. CaptionEntities []MessageEntity `json:"caption_entities"` // Performer. Performer OptString `json:"performer"` // Audio duration in seconds. AudioDuration OptInt `json:"audio_duration"` ReplyMarkup OptInlineKeyboardMarkup `json:"reply_markup"` InputMessageContent OptInputMessageContent `json:"input_message_content"` }
Represents a link to an MP3 audio file. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio. Ref: #/components/schemas/InlineQueryResultAudio
func (*InlineQueryResultAudio) Decode ¶
func (s *InlineQueryResultAudio) Decode(d *jx.Decoder) error
Decode decodes InlineQueryResultAudio from json.
func (*InlineQueryResultAudio) Encode ¶
func (s *InlineQueryResultAudio) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InlineQueryResultAudio) GetAudioDuration ¶
func (s *InlineQueryResultAudio) GetAudioDuration() OptInt
GetAudioDuration returns the value of AudioDuration.
func (*InlineQueryResultAudio) GetAudioURL ¶
func (s *InlineQueryResultAudio) GetAudioURL() url.URL
GetAudioURL returns the value of AudioURL.
func (*InlineQueryResultAudio) GetCaption ¶
func (s *InlineQueryResultAudio) GetCaption() OptString
GetCaption returns the value of Caption.
func (*InlineQueryResultAudio) GetCaptionEntities ¶
func (s *InlineQueryResultAudio) GetCaptionEntities() []MessageEntity
GetCaptionEntities returns the value of CaptionEntities.
func (*InlineQueryResultAudio) GetID ¶
func (s *InlineQueryResultAudio) GetID() string
GetID returns the value of ID.
func (*InlineQueryResultAudio) GetInputMessageContent ¶
func (s *InlineQueryResultAudio) GetInputMessageContent() OptInputMessageContent
GetInputMessageContent returns the value of InputMessageContent.
func (*InlineQueryResultAudio) GetParseMode ¶
func (s *InlineQueryResultAudio) GetParseMode() OptString
GetParseMode returns the value of ParseMode.
func (*InlineQueryResultAudio) GetPerformer ¶
func (s *InlineQueryResultAudio) GetPerformer() OptString
GetPerformer returns the value of Performer.
func (*InlineQueryResultAudio) GetReplyMarkup ¶
func (s *InlineQueryResultAudio) GetReplyMarkup() OptInlineKeyboardMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*InlineQueryResultAudio) GetTitle ¶
func (s *InlineQueryResultAudio) GetTitle() string
GetTitle returns the value of Title.
func (*InlineQueryResultAudio) GetType ¶
func (s *InlineQueryResultAudio) GetType() string
GetType returns the value of Type.
func (*InlineQueryResultAudio) MarshalJSON ¶
func (s *InlineQueryResultAudio) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InlineQueryResultAudio) SetAudioDuration ¶
func (s *InlineQueryResultAudio) SetAudioDuration(val OptInt)
SetAudioDuration sets the value of AudioDuration.
func (*InlineQueryResultAudio) SetAudioURL ¶
func (s *InlineQueryResultAudio) SetAudioURL(val url.URL)
SetAudioURL sets the value of AudioURL.
func (*InlineQueryResultAudio) SetCaption ¶
func (s *InlineQueryResultAudio) SetCaption(val OptString)
SetCaption sets the value of Caption.
func (*InlineQueryResultAudio) SetCaptionEntities ¶
func (s *InlineQueryResultAudio) SetCaptionEntities(val []MessageEntity)
SetCaptionEntities sets the value of CaptionEntities.
func (*InlineQueryResultAudio) SetFake ¶
func (s *InlineQueryResultAudio) SetFake()
SetFake set fake values.
func (*InlineQueryResultAudio) SetID ¶
func (s *InlineQueryResultAudio) SetID(val string)
SetID sets the value of ID.
func (*InlineQueryResultAudio) SetInputMessageContent ¶
func (s *InlineQueryResultAudio) SetInputMessageContent(val OptInputMessageContent)
SetInputMessageContent sets the value of InputMessageContent.
func (*InlineQueryResultAudio) SetParseMode ¶
func (s *InlineQueryResultAudio) SetParseMode(val OptString)
SetParseMode sets the value of ParseMode.
func (*InlineQueryResultAudio) SetPerformer ¶
func (s *InlineQueryResultAudio) SetPerformer(val OptString)
SetPerformer sets the value of Performer.
func (*InlineQueryResultAudio) SetReplyMarkup ¶
func (s *InlineQueryResultAudio) SetReplyMarkup(val OptInlineKeyboardMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*InlineQueryResultAudio) SetTitle ¶
func (s *InlineQueryResultAudio) SetTitle(val string)
SetTitle sets the value of Title.
func (*InlineQueryResultAudio) SetType ¶
func (s *InlineQueryResultAudio) SetType(val string)
SetType sets the value of Type.
func (*InlineQueryResultAudio) UnmarshalJSON ¶
func (s *InlineQueryResultAudio) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InlineQueryResultAudio) Validate ¶
func (s *InlineQueryResultAudio) Validate() error
type InlineQueryResultCachedAudio ¶
type InlineQueryResultCachedAudio struct { // Type of the result, must be audio. Type string `json:"type"` // Unique identifier for this result, 1-64 bytes. ID string `json:"id"` // A valid file identifier for the audio file. AudioFileID string `json:"audio_file_id"` // Caption, 0-1024 characters after entities parsing. Caption OptString `json:"caption"` // Mode for parsing entities in the audio caption. See formatting options for more details. ParseMode OptString `json:"parse_mode"` // List of special entities that appear in the caption, which can be specified instead of parse_mode. CaptionEntities []MessageEntity `json:"caption_entities"` ReplyMarkup OptInlineKeyboardMarkup `json:"reply_markup"` InputMessageContent OptInputMessageContent `json:"input_message_content"` }
Represents a link to an MP3 audio file stored on the Telegram servers. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio. Ref: #/components/schemas/InlineQueryResultCachedAudio
func (*InlineQueryResultCachedAudio) Decode ¶
func (s *InlineQueryResultCachedAudio) Decode(d *jx.Decoder) error
Decode decodes InlineQueryResultCachedAudio from json.
func (*InlineQueryResultCachedAudio) Encode ¶
func (s *InlineQueryResultCachedAudio) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InlineQueryResultCachedAudio) GetAudioFileID ¶
func (s *InlineQueryResultCachedAudio) GetAudioFileID() string
GetAudioFileID returns the value of AudioFileID.
func (*InlineQueryResultCachedAudio) GetCaption ¶
func (s *InlineQueryResultCachedAudio) GetCaption() OptString
GetCaption returns the value of Caption.
func (*InlineQueryResultCachedAudio) GetCaptionEntities ¶
func (s *InlineQueryResultCachedAudio) GetCaptionEntities() []MessageEntity
GetCaptionEntities returns the value of CaptionEntities.
func (*InlineQueryResultCachedAudio) GetID ¶
func (s *InlineQueryResultCachedAudio) GetID() string
GetID returns the value of ID.
func (*InlineQueryResultCachedAudio) GetInputMessageContent ¶
func (s *InlineQueryResultCachedAudio) GetInputMessageContent() OptInputMessageContent
GetInputMessageContent returns the value of InputMessageContent.
func (*InlineQueryResultCachedAudio) GetParseMode ¶
func (s *InlineQueryResultCachedAudio) GetParseMode() OptString
GetParseMode returns the value of ParseMode.
func (*InlineQueryResultCachedAudio) GetReplyMarkup ¶
func (s *InlineQueryResultCachedAudio) GetReplyMarkup() OptInlineKeyboardMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*InlineQueryResultCachedAudio) GetType ¶
func (s *InlineQueryResultCachedAudio) GetType() string
GetType returns the value of Type.
func (*InlineQueryResultCachedAudio) MarshalJSON ¶
func (s *InlineQueryResultCachedAudio) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InlineQueryResultCachedAudio) SetAudioFileID ¶
func (s *InlineQueryResultCachedAudio) SetAudioFileID(val string)
SetAudioFileID sets the value of AudioFileID.
func (*InlineQueryResultCachedAudio) SetCaption ¶
func (s *InlineQueryResultCachedAudio) SetCaption(val OptString)
SetCaption sets the value of Caption.
func (*InlineQueryResultCachedAudio) SetCaptionEntities ¶
func (s *InlineQueryResultCachedAudio) SetCaptionEntities(val []MessageEntity)
SetCaptionEntities sets the value of CaptionEntities.
func (*InlineQueryResultCachedAudio) SetFake ¶
func (s *InlineQueryResultCachedAudio) SetFake()
SetFake set fake values.
func (*InlineQueryResultCachedAudio) SetID ¶
func (s *InlineQueryResultCachedAudio) SetID(val string)
SetID sets the value of ID.
func (*InlineQueryResultCachedAudio) SetInputMessageContent ¶
func (s *InlineQueryResultCachedAudio) SetInputMessageContent(val OptInputMessageContent)
SetInputMessageContent sets the value of InputMessageContent.
func (*InlineQueryResultCachedAudio) SetParseMode ¶
func (s *InlineQueryResultCachedAudio) SetParseMode(val OptString)
SetParseMode sets the value of ParseMode.
func (*InlineQueryResultCachedAudio) SetReplyMarkup ¶
func (s *InlineQueryResultCachedAudio) SetReplyMarkup(val OptInlineKeyboardMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*InlineQueryResultCachedAudio) SetType ¶
func (s *InlineQueryResultCachedAudio) SetType(val string)
SetType sets the value of Type.
func (*InlineQueryResultCachedAudio) UnmarshalJSON ¶
func (s *InlineQueryResultCachedAudio) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InlineQueryResultCachedAudio) Validate ¶
func (s *InlineQueryResultCachedAudio) Validate() error
type InlineQueryResultCachedDocument ¶
type InlineQueryResultCachedDocument struct { // Type of the result, must be document. Type string `json:"type"` // Unique identifier for this result, 1-64 bytes. ID string `json:"id"` // Title for the result. Title string `json:"title"` // A valid file identifier for the file. DocumentFileID string `json:"document_file_id"` // Short description of the result. Description OptString `json:"description"` // Caption of the document to be sent, 0-1024 characters after entities parsing. Caption OptString `json:"caption"` // Mode for parsing entities in the document caption. See formatting options for more details. ParseMode OptString `json:"parse_mode"` // List of special entities that appear in the caption, which can be specified instead of parse_mode. CaptionEntities []MessageEntity `json:"caption_entities"` ReplyMarkup OptInlineKeyboardMarkup `json:"reply_markup"` InputMessageContent OptInputMessageContent `json:"input_message_content"` }
Represents a link to a file stored on the Telegram servers. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file. Ref: #/components/schemas/InlineQueryResultCachedDocument
func (*InlineQueryResultCachedDocument) Decode ¶
func (s *InlineQueryResultCachedDocument) Decode(d *jx.Decoder) error
Decode decodes InlineQueryResultCachedDocument from json.
func (*InlineQueryResultCachedDocument) Encode ¶
func (s *InlineQueryResultCachedDocument) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InlineQueryResultCachedDocument) GetCaption ¶
func (s *InlineQueryResultCachedDocument) GetCaption() OptString
GetCaption returns the value of Caption.
func (*InlineQueryResultCachedDocument) GetCaptionEntities ¶
func (s *InlineQueryResultCachedDocument) GetCaptionEntities() []MessageEntity
GetCaptionEntities returns the value of CaptionEntities.
func (*InlineQueryResultCachedDocument) GetDescription ¶
func (s *InlineQueryResultCachedDocument) GetDescription() OptString
GetDescription returns the value of Description.
func (*InlineQueryResultCachedDocument) GetDocumentFileID ¶
func (s *InlineQueryResultCachedDocument) GetDocumentFileID() string
GetDocumentFileID returns the value of DocumentFileID.
func (*InlineQueryResultCachedDocument) GetID ¶
func (s *InlineQueryResultCachedDocument) GetID() string
GetID returns the value of ID.
func (*InlineQueryResultCachedDocument) GetInputMessageContent ¶
func (s *InlineQueryResultCachedDocument) GetInputMessageContent() OptInputMessageContent
GetInputMessageContent returns the value of InputMessageContent.
func (*InlineQueryResultCachedDocument) GetParseMode ¶
func (s *InlineQueryResultCachedDocument) GetParseMode() OptString
GetParseMode returns the value of ParseMode.
func (*InlineQueryResultCachedDocument) GetReplyMarkup ¶
func (s *InlineQueryResultCachedDocument) GetReplyMarkup() OptInlineKeyboardMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*InlineQueryResultCachedDocument) GetTitle ¶
func (s *InlineQueryResultCachedDocument) GetTitle() string
GetTitle returns the value of Title.
func (*InlineQueryResultCachedDocument) GetType ¶
func (s *InlineQueryResultCachedDocument) GetType() string
GetType returns the value of Type.
func (*InlineQueryResultCachedDocument) MarshalJSON ¶
func (s *InlineQueryResultCachedDocument) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InlineQueryResultCachedDocument) SetCaption ¶
func (s *InlineQueryResultCachedDocument) SetCaption(val OptString)
SetCaption sets the value of Caption.
func (*InlineQueryResultCachedDocument) SetCaptionEntities ¶
func (s *InlineQueryResultCachedDocument) SetCaptionEntities(val []MessageEntity)
SetCaptionEntities sets the value of CaptionEntities.
func (*InlineQueryResultCachedDocument) SetDescription ¶
func (s *InlineQueryResultCachedDocument) SetDescription(val OptString)
SetDescription sets the value of Description.
func (*InlineQueryResultCachedDocument) SetDocumentFileID ¶
func (s *InlineQueryResultCachedDocument) SetDocumentFileID(val string)
SetDocumentFileID sets the value of DocumentFileID.
func (*InlineQueryResultCachedDocument) SetFake ¶
func (s *InlineQueryResultCachedDocument) SetFake()
SetFake set fake values.
func (*InlineQueryResultCachedDocument) SetID ¶
func (s *InlineQueryResultCachedDocument) SetID(val string)
SetID sets the value of ID.
func (*InlineQueryResultCachedDocument) SetInputMessageContent ¶
func (s *InlineQueryResultCachedDocument) SetInputMessageContent(val OptInputMessageContent)
SetInputMessageContent sets the value of InputMessageContent.
func (*InlineQueryResultCachedDocument) SetParseMode ¶
func (s *InlineQueryResultCachedDocument) SetParseMode(val OptString)
SetParseMode sets the value of ParseMode.
func (*InlineQueryResultCachedDocument) SetReplyMarkup ¶
func (s *InlineQueryResultCachedDocument) SetReplyMarkup(val OptInlineKeyboardMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*InlineQueryResultCachedDocument) SetTitle ¶
func (s *InlineQueryResultCachedDocument) SetTitle(val string)
SetTitle sets the value of Title.
func (*InlineQueryResultCachedDocument) SetType ¶
func (s *InlineQueryResultCachedDocument) SetType(val string)
SetType sets the value of Type.
func (*InlineQueryResultCachedDocument) UnmarshalJSON ¶
func (s *InlineQueryResultCachedDocument) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InlineQueryResultCachedDocument) Validate ¶
func (s *InlineQueryResultCachedDocument) Validate() error
type InlineQueryResultCachedGif ¶
type InlineQueryResultCachedGif struct { // Type of the result, must be gif. Type string `json:"type"` // Unique identifier for this result, 1-64 bytes. ID string `json:"id"` // A valid file identifier for the GIF file. GIFFileID string `json:"gif_file_id"` // Title for the result. Title OptString `json:"title"` // Caption of the GIF file to be sent, 0-1024 characters after entities parsing. Caption OptString `json:"caption"` // Mode for parsing entities in the caption. See formatting options for more details. ParseMode OptString `json:"parse_mode"` // List of special entities that appear in the caption, which can be specified instead of parse_mode. CaptionEntities []MessageEntity `json:"caption_entities"` ReplyMarkup OptInlineKeyboardMarkup `json:"reply_markup"` InputMessageContent OptInputMessageContent `json:"input_message_content"` }
Represents a link to an animated GIF file stored on the Telegram servers. By default, this animated GIF file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with specified content instead of the animation. Ref: #/components/schemas/InlineQueryResultCachedGif
func (*InlineQueryResultCachedGif) Decode ¶
func (s *InlineQueryResultCachedGif) Decode(d *jx.Decoder) error
Decode decodes InlineQueryResultCachedGif from json.
func (*InlineQueryResultCachedGif) Encode ¶
func (s *InlineQueryResultCachedGif) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InlineQueryResultCachedGif) GetCaption ¶
func (s *InlineQueryResultCachedGif) GetCaption() OptString
GetCaption returns the value of Caption.
func (*InlineQueryResultCachedGif) GetCaptionEntities ¶
func (s *InlineQueryResultCachedGif) GetCaptionEntities() []MessageEntity
GetCaptionEntities returns the value of CaptionEntities.
func (*InlineQueryResultCachedGif) GetGIFFileID ¶
func (s *InlineQueryResultCachedGif) GetGIFFileID() string
GetGIFFileID returns the value of GIFFileID.
func (*InlineQueryResultCachedGif) GetID ¶
func (s *InlineQueryResultCachedGif) GetID() string
GetID returns the value of ID.
func (*InlineQueryResultCachedGif) GetInputMessageContent ¶
func (s *InlineQueryResultCachedGif) GetInputMessageContent() OptInputMessageContent
GetInputMessageContent returns the value of InputMessageContent.
func (*InlineQueryResultCachedGif) GetParseMode ¶
func (s *InlineQueryResultCachedGif) GetParseMode() OptString
GetParseMode returns the value of ParseMode.
func (*InlineQueryResultCachedGif) GetReplyMarkup ¶
func (s *InlineQueryResultCachedGif) GetReplyMarkup() OptInlineKeyboardMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*InlineQueryResultCachedGif) GetTitle ¶
func (s *InlineQueryResultCachedGif) GetTitle() OptString
GetTitle returns the value of Title.
func (*InlineQueryResultCachedGif) GetType ¶
func (s *InlineQueryResultCachedGif) GetType() string
GetType returns the value of Type.
func (*InlineQueryResultCachedGif) MarshalJSON ¶
func (s *InlineQueryResultCachedGif) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InlineQueryResultCachedGif) SetCaption ¶
func (s *InlineQueryResultCachedGif) SetCaption(val OptString)
SetCaption sets the value of Caption.
func (*InlineQueryResultCachedGif) SetCaptionEntities ¶
func (s *InlineQueryResultCachedGif) SetCaptionEntities(val []MessageEntity)
SetCaptionEntities sets the value of CaptionEntities.
func (*InlineQueryResultCachedGif) SetFake ¶
func (s *InlineQueryResultCachedGif) SetFake()
SetFake set fake values.
func (*InlineQueryResultCachedGif) SetGIFFileID ¶
func (s *InlineQueryResultCachedGif) SetGIFFileID(val string)
SetGIFFileID sets the value of GIFFileID.
func (*InlineQueryResultCachedGif) SetID ¶
func (s *InlineQueryResultCachedGif) SetID(val string)
SetID sets the value of ID.
func (*InlineQueryResultCachedGif) SetInputMessageContent ¶
func (s *InlineQueryResultCachedGif) SetInputMessageContent(val OptInputMessageContent)
SetInputMessageContent sets the value of InputMessageContent.
func (*InlineQueryResultCachedGif) SetParseMode ¶
func (s *InlineQueryResultCachedGif) SetParseMode(val OptString)
SetParseMode sets the value of ParseMode.
func (*InlineQueryResultCachedGif) SetReplyMarkup ¶
func (s *InlineQueryResultCachedGif) SetReplyMarkup(val OptInlineKeyboardMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*InlineQueryResultCachedGif) SetTitle ¶
func (s *InlineQueryResultCachedGif) SetTitle(val OptString)
SetTitle sets the value of Title.
func (*InlineQueryResultCachedGif) SetType ¶
func (s *InlineQueryResultCachedGif) SetType(val string)
SetType sets the value of Type.
func (*InlineQueryResultCachedGif) UnmarshalJSON ¶
func (s *InlineQueryResultCachedGif) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InlineQueryResultCachedGif) Validate ¶
func (s *InlineQueryResultCachedGif) Validate() error
type InlineQueryResultCachedMpeg4Gif ¶
type InlineQueryResultCachedMpeg4Gif struct { // Type of the result, must be mpeg4_gif. Type string `json:"type"` // Unique identifier for this result, 1-64 bytes. ID string `json:"id"` // A valid file identifier for the MP4 file. Mpeg4FileID string `json:"mpeg4_file_id"` // Title for the result. Title OptString `json:"title"` // Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing. Caption OptString `json:"caption"` // Mode for parsing entities in the caption. See formatting options for more details. ParseMode OptString `json:"parse_mode"` // List of special entities that appear in the caption, which can be specified instead of parse_mode. CaptionEntities []MessageEntity `json:"caption_entities"` ReplyMarkup OptInlineKeyboardMarkup `json:"reply_markup"` InputMessageContent OptInputMessageContent `json:"input_message_content"` }
Represents a link to a video animation (H.264/MPEG-4 AVC video without sound) stored on the Telegram servers. By default, this animated MPEG-4 file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation. Ref: #/components/schemas/InlineQueryResultCachedMpeg4Gif
func (*InlineQueryResultCachedMpeg4Gif) Decode ¶
func (s *InlineQueryResultCachedMpeg4Gif) Decode(d *jx.Decoder) error
Decode decodes InlineQueryResultCachedMpeg4Gif from json.
func (*InlineQueryResultCachedMpeg4Gif) Encode ¶
func (s *InlineQueryResultCachedMpeg4Gif) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InlineQueryResultCachedMpeg4Gif) GetCaption ¶
func (s *InlineQueryResultCachedMpeg4Gif) GetCaption() OptString
GetCaption returns the value of Caption.
func (*InlineQueryResultCachedMpeg4Gif) GetCaptionEntities ¶
func (s *InlineQueryResultCachedMpeg4Gif) GetCaptionEntities() []MessageEntity
GetCaptionEntities returns the value of CaptionEntities.
func (*InlineQueryResultCachedMpeg4Gif) GetID ¶
func (s *InlineQueryResultCachedMpeg4Gif) GetID() string
GetID returns the value of ID.
func (*InlineQueryResultCachedMpeg4Gif) GetInputMessageContent ¶
func (s *InlineQueryResultCachedMpeg4Gif) GetInputMessageContent() OptInputMessageContent
GetInputMessageContent returns the value of InputMessageContent.
func (*InlineQueryResultCachedMpeg4Gif) GetMpeg4FileID ¶
func (s *InlineQueryResultCachedMpeg4Gif) GetMpeg4FileID() string
GetMpeg4FileID returns the value of Mpeg4FileID.
func (*InlineQueryResultCachedMpeg4Gif) GetParseMode ¶
func (s *InlineQueryResultCachedMpeg4Gif) GetParseMode() OptString
GetParseMode returns the value of ParseMode.
func (*InlineQueryResultCachedMpeg4Gif) GetReplyMarkup ¶
func (s *InlineQueryResultCachedMpeg4Gif) GetReplyMarkup() OptInlineKeyboardMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*InlineQueryResultCachedMpeg4Gif) GetTitle ¶
func (s *InlineQueryResultCachedMpeg4Gif) GetTitle() OptString
GetTitle returns the value of Title.
func (*InlineQueryResultCachedMpeg4Gif) GetType ¶
func (s *InlineQueryResultCachedMpeg4Gif) GetType() string
GetType returns the value of Type.
func (*InlineQueryResultCachedMpeg4Gif) MarshalJSON ¶
func (s *InlineQueryResultCachedMpeg4Gif) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InlineQueryResultCachedMpeg4Gif) SetCaption ¶
func (s *InlineQueryResultCachedMpeg4Gif) SetCaption(val OptString)
SetCaption sets the value of Caption.
func (*InlineQueryResultCachedMpeg4Gif) SetCaptionEntities ¶
func (s *InlineQueryResultCachedMpeg4Gif) SetCaptionEntities(val []MessageEntity)
SetCaptionEntities sets the value of CaptionEntities.
func (*InlineQueryResultCachedMpeg4Gif) SetFake ¶
func (s *InlineQueryResultCachedMpeg4Gif) SetFake()
SetFake set fake values.
func (*InlineQueryResultCachedMpeg4Gif) SetID ¶
func (s *InlineQueryResultCachedMpeg4Gif) SetID(val string)
SetID sets the value of ID.
func (*InlineQueryResultCachedMpeg4Gif) SetInputMessageContent ¶
func (s *InlineQueryResultCachedMpeg4Gif) SetInputMessageContent(val OptInputMessageContent)
SetInputMessageContent sets the value of InputMessageContent.
func (*InlineQueryResultCachedMpeg4Gif) SetMpeg4FileID ¶
func (s *InlineQueryResultCachedMpeg4Gif) SetMpeg4FileID(val string)
SetMpeg4FileID sets the value of Mpeg4FileID.
func (*InlineQueryResultCachedMpeg4Gif) SetParseMode ¶
func (s *InlineQueryResultCachedMpeg4Gif) SetParseMode(val OptString)
SetParseMode sets the value of ParseMode.
func (*InlineQueryResultCachedMpeg4Gif) SetReplyMarkup ¶
func (s *InlineQueryResultCachedMpeg4Gif) SetReplyMarkup(val OptInlineKeyboardMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*InlineQueryResultCachedMpeg4Gif) SetTitle ¶
func (s *InlineQueryResultCachedMpeg4Gif) SetTitle(val OptString)
SetTitle sets the value of Title.
func (*InlineQueryResultCachedMpeg4Gif) SetType ¶
func (s *InlineQueryResultCachedMpeg4Gif) SetType(val string)
SetType sets the value of Type.
func (*InlineQueryResultCachedMpeg4Gif) UnmarshalJSON ¶
func (s *InlineQueryResultCachedMpeg4Gif) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InlineQueryResultCachedMpeg4Gif) Validate ¶
func (s *InlineQueryResultCachedMpeg4Gif) Validate() error
type InlineQueryResultCachedPhoto ¶
type InlineQueryResultCachedPhoto struct { // Type of the result, must be photo. Type string `json:"type"` // Unique identifier for this result, 1-64 bytes. ID string `json:"id"` // A valid file identifier of the photo. PhotoFileID string `json:"photo_file_id"` // Title for the result. Title OptString `json:"title"` // Short description of the result. Description OptString `json:"description"` // Caption of the photo to be sent, 0-1024 characters after entities parsing. Caption OptString `json:"caption"` // Mode for parsing entities in the photo caption. See formatting options for more details. ParseMode OptString `json:"parse_mode"` // List of special entities that appear in the caption, which can be specified instead of parse_mode. CaptionEntities []MessageEntity `json:"caption_entities"` ReplyMarkup OptInlineKeyboardMarkup `json:"reply_markup"` InputMessageContent OptInputMessageContent `json:"input_message_content"` }
Represents a link to a photo stored on the Telegram servers. By default, this photo will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo. Ref: #/components/schemas/InlineQueryResultCachedPhoto
func (*InlineQueryResultCachedPhoto) Decode ¶
func (s *InlineQueryResultCachedPhoto) Decode(d *jx.Decoder) error
Decode decodes InlineQueryResultCachedPhoto from json.
func (*InlineQueryResultCachedPhoto) Encode ¶
func (s *InlineQueryResultCachedPhoto) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InlineQueryResultCachedPhoto) GetCaption ¶
func (s *InlineQueryResultCachedPhoto) GetCaption() OptString
GetCaption returns the value of Caption.
func (*InlineQueryResultCachedPhoto) GetCaptionEntities ¶
func (s *InlineQueryResultCachedPhoto) GetCaptionEntities() []MessageEntity
GetCaptionEntities returns the value of CaptionEntities.
func (*InlineQueryResultCachedPhoto) GetDescription ¶
func (s *InlineQueryResultCachedPhoto) GetDescription() OptString
GetDescription returns the value of Description.
func (*InlineQueryResultCachedPhoto) GetID ¶
func (s *InlineQueryResultCachedPhoto) GetID() string
GetID returns the value of ID.
func (*InlineQueryResultCachedPhoto) GetInputMessageContent ¶
func (s *InlineQueryResultCachedPhoto) GetInputMessageContent() OptInputMessageContent
GetInputMessageContent returns the value of InputMessageContent.
func (*InlineQueryResultCachedPhoto) GetParseMode ¶
func (s *InlineQueryResultCachedPhoto) GetParseMode() OptString
GetParseMode returns the value of ParseMode.
func (*InlineQueryResultCachedPhoto) GetPhotoFileID ¶
func (s *InlineQueryResultCachedPhoto) GetPhotoFileID() string
GetPhotoFileID returns the value of PhotoFileID.
func (*InlineQueryResultCachedPhoto) GetReplyMarkup ¶
func (s *InlineQueryResultCachedPhoto) GetReplyMarkup() OptInlineKeyboardMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*InlineQueryResultCachedPhoto) GetTitle ¶
func (s *InlineQueryResultCachedPhoto) GetTitle() OptString
GetTitle returns the value of Title.
func (*InlineQueryResultCachedPhoto) GetType ¶
func (s *InlineQueryResultCachedPhoto) GetType() string
GetType returns the value of Type.
func (*InlineQueryResultCachedPhoto) MarshalJSON ¶
func (s *InlineQueryResultCachedPhoto) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InlineQueryResultCachedPhoto) SetCaption ¶
func (s *InlineQueryResultCachedPhoto) SetCaption(val OptString)
SetCaption sets the value of Caption.
func (*InlineQueryResultCachedPhoto) SetCaptionEntities ¶
func (s *InlineQueryResultCachedPhoto) SetCaptionEntities(val []MessageEntity)
SetCaptionEntities sets the value of CaptionEntities.
func (*InlineQueryResultCachedPhoto) SetDescription ¶
func (s *InlineQueryResultCachedPhoto) SetDescription(val OptString)
SetDescription sets the value of Description.
func (*InlineQueryResultCachedPhoto) SetFake ¶
func (s *InlineQueryResultCachedPhoto) SetFake()
SetFake set fake values.
func (*InlineQueryResultCachedPhoto) SetID ¶
func (s *InlineQueryResultCachedPhoto) SetID(val string)
SetID sets the value of ID.
func (*InlineQueryResultCachedPhoto) SetInputMessageContent ¶
func (s *InlineQueryResultCachedPhoto) SetInputMessageContent(val OptInputMessageContent)
SetInputMessageContent sets the value of InputMessageContent.
func (*InlineQueryResultCachedPhoto) SetParseMode ¶
func (s *InlineQueryResultCachedPhoto) SetParseMode(val OptString)
SetParseMode sets the value of ParseMode.
func (*InlineQueryResultCachedPhoto) SetPhotoFileID ¶
func (s *InlineQueryResultCachedPhoto) SetPhotoFileID(val string)
SetPhotoFileID sets the value of PhotoFileID.
func (*InlineQueryResultCachedPhoto) SetReplyMarkup ¶
func (s *InlineQueryResultCachedPhoto) SetReplyMarkup(val OptInlineKeyboardMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*InlineQueryResultCachedPhoto) SetTitle ¶
func (s *InlineQueryResultCachedPhoto) SetTitle(val OptString)
SetTitle sets the value of Title.
func (*InlineQueryResultCachedPhoto) SetType ¶
func (s *InlineQueryResultCachedPhoto) SetType(val string)
SetType sets the value of Type.
func (*InlineQueryResultCachedPhoto) UnmarshalJSON ¶
func (s *InlineQueryResultCachedPhoto) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InlineQueryResultCachedPhoto) Validate ¶
func (s *InlineQueryResultCachedPhoto) Validate() error
type InlineQueryResultCachedSticker ¶
type InlineQueryResultCachedSticker struct { // Type of the result, must be sticker. Type string `json:"type"` // Unique identifier for this result, 1-64 bytes. ID string `json:"id"` // A valid file identifier of the sticker. StickerFileID string `json:"sticker_file_id"` ReplyMarkup OptInlineKeyboardMarkup `json:"reply_markup"` InputMessageContent OptInputMessageContent `json:"input_message_content"` }
Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the sticker. Ref: #/components/schemas/InlineQueryResultCachedSticker
func (*InlineQueryResultCachedSticker) Decode ¶
func (s *InlineQueryResultCachedSticker) Decode(d *jx.Decoder) error
Decode decodes InlineQueryResultCachedSticker from json.
func (*InlineQueryResultCachedSticker) Encode ¶
func (s *InlineQueryResultCachedSticker) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InlineQueryResultCachedSticker) GetID ¶
func (s *InlineQueryResultCachedSticker) GetID() string
GetID returns the value of ID.
func (*InlineQueryResultCachedSticker) GetInputMessageContent ¶
func (s *InlineQueryResultCachedSticker) GetInputMessageContent() OptInputMessageContent
GetInputMessageContent returns the value of InputMessageContent.
func (*InlineQueryResultCachedSticker) GetReplyMarkup ¶
func (s *InlineQueryResultCachedSticker) GetReplyMarkup() OptInlineKeyboardMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*InlineQueryResultCachedSticker) GetStickerFileID ¶
func (s *InlineQueryResultCachedSticker) GetStickerFileID() string
GetStickerFileID returns the value of StickerFileID.
func (*InlineQueryResultCachedSticker) GetType ¶
func (s *InlineQueryResultCachedSticker) GetType() string
GetType returns the value of Type.
func (*InlineQueryResultCachedSticker) MarshalJSON ¶
func (s *InlineQueryResultCachedSticker) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InlineQueryResultCachedSticker) SetFake ¶
func (s *InlineQueryResultCachedSticker) SetFake()
SetFake set fake values.
func (*InlineQueryResultCachedSticker) SetID ¶
func (s *InlineQueryResultCachedSticker) SetID(val string)
SetID sets the value of ID.
func (*InlineQueryResultCachedSticker) SetInputMessageContent ¶
func (s *InlineQueryResultCachedSticker) SetInputMessageContent(val OptInputMessageContent)
SetInputMessageContent sets the value of InputMessageContent.
func (*InlineQueryResultCachedSticker) SetReplyMarkup ¶
func (s *InlineQueryResultCachedSticker) SetReplyMarkup(val OptInlineKeyboardMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*InlineQueryResultCachedSticker) SetStickerFileID ¶
func (s *InlineQueryResultCachedSticker) SetStickerFileID(val string)
SetStickerFileID sets the value of StickerFileID.
func (*InlineQueryResultCachedSticker) SetType ¶
func (s *InlineQueryResultCachedSticker) SetType(val string)
SetType sets the value of Type.
func (*InlineQueryResultCachedSticker) UnmarshalJSON ¶
func (s *InlineQueryResultCachedSticker) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InlineQueryResultCachedSticker) Validate ¶
func (s *InlineQueryResultCachedSticker) Validate() error
type InlineQueryResultCachedVideo ¶
type InlineQueryResultCachedVideo struct { // Type of the result, must be video. Type string `json:"type"` // Unique identifier for this result, 1-64 bytes. ID string `json:"id"` // A valid file identifier for the video file. VideoFileID string `json:"video_file_id"` // Title for the result. Title string `json:"title"` // Short description of the result. Description OptString `json:"description"` // Caption of the video to be sent, 0-1024 characters after entities parsing. Caption OptString `json:"caption"` // Mode for parsing entities in the video caption. See formatting options for more details. ParseMode OptString `json:"parse_mode"` // List of special entities that appear in the caption, which can be specified instead of parse_mode. CaptionEntities []MessageEntity `json:"caption_entities"` ReplyMarkup OptInlineKeyboardMarkup `json:"reply_markup"` InputMessageContent OptInputMessageContent `json:"input_message_content"` }
Represents a link to a video file stored on the Telegram servers. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video. Ref: #/components/schemas/InlineQueryResultCachedVideo
func (*InlineQueryResultCachedVideo) Decode ¶
func (s *InlineQueryResultCachedVideo) Decode(d *jx.Decoder) error
Decode decodes InlineQueryResultCachedVideo from json.
func (*InlineQueryResultCachedVideo) Encode ¶
func (s *InlineQueryResultCachedVideo) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InlineQueryResultCachedVideo) GetCaption ¶
func (s *InlineQueryResultCachedVideo) GetCaption() OptString
GetCaption returns the value of Caption.
func (*InlineQueryResultCachedVideo) GetCaptionEntities ¶
func (s *InlineQueryResultCachedVideo) GetCaptionEntities() []MessageEntity
GetCaptionEntities returns the value of CaptionEntities.
func (*InlineQueryResultCachedVideo) GetDescription ¶
func (s *InlineQueryResultCachedVideo) GetDescription() OptString
GetDescription returns the value of Description.
func (*InlineQueryResultCachedVideo) GetID ¶
func (s *InlineQueryResultCachedVideo) GetID() string
GetID returns the value of ID.
func (*InlineQueryResultCachedVideo) GetInputMessageContent ¶
func (s *InlineQueryResultCachedVideo) GetInputMessageContent() OptInputMessageContent
GetInputMessageContent returns the value of InputMessageContent.
func (*InlineQueryResultCachedVideo) GetParseMode ¶
func (s *InlineQueryResultCachedVideo) GetParseMode() OptString
GetParseMode returns the value of ParseMode.
func (*InlineQueryResultCachedVideo) GetReplyMarkup ¶
func (s *InlineQueryResultCachedVideo) GetReplyMarkup() OptInlineKeyboardMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*InlineQueryResultCachedVideo) GetTitle ¶
func (s *InlineQueryResultCachedVideo) GetTitle() string
GetTitle returns the value of Title.
func (*InlineQueryResultCachedVideo) GetType ¶
func (s *InlineQueryResultCachedVideo) GetType() string
GetType returns the value of Type.
func (*InlineQueryResultCachedVideo) GetVideoFileID ¶
func (s *InlineQueryResultCachedVideo) GetVideoFileID() string
GetVideoFileID returns the value of VideoFileID.
func (*InlineQueryResultCachedVideo) MarshalJSON ¶
func (s *InlineQueryResultCachedVideo) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InlineQueryResultCachedVideo) SetCaption ¶
func (s *InlineQueryResultCachedVideo) SetCaption(val OptString)
SetCaption sets the value of Caption.
func (*InlineQueryResultCachedVideo) SetCaptionEntities ¶
func (s *InlineQueryResultCachedVideo) SetCaptionEntities(val []MessageEntity)
SetCaptionEntities sets the value of CaptionEntities.
func (*InlineQueryResultCachedVideo) SetDescription ¶
func (s *InlineQueryResultCachedVideo) SetDescription(val OptString)
SetDescription sets the value of Description.
func (*InlineQueryResultCachedVideo) SetFake ¶
func (s *InlineQueryResultCachedVideo) SetFake()
SetFake set fake values.
func (*InlineQueryResultCachedVideo) SetID ¶
func (s *InlineQueryResultCachedVideo) SetID(val string)
SetID sets the value of ID.
func (*InlineQueryResultCachedVideo) SetInputMessageContent ¶
func (s *InlineQueryResultCachedVideo) SetInputMessageContent(val OptInputMessageContent)
SetInputMessageContent sets the value of InputMessageContent.
func (*InlineQueryResultCachedVideo) SetParseMode ¶
func (s *InlineQueryResultCachedVideo) SetParseMode(val OptString)
SetParseMode sets the value of ParseMode.
func (*InlineQueryResultCachedVideo) SetReplyMarkup ¶
func (s *InlineQueryResultCachedVideo) SetReplyMarkup(val OptInlineKeyboardMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*InlineQueryResultCachedVideo) SetTitle ¶
func (s *InlineQueryResultCachedVideo) SetTitle(val string)
SetTitle sets the value of Title.
func (*InlineQueryResultCachedVideo) SetType ¶
func (s *InlineQueryResultCachedVideo) SetType(val string)
SetType sets the value of Type.
func (*InlineQueryResultCachedVideo) SetVideoFileID ¶
func (s *InlineQueryResultCachedVideo) SetVideoFileID(val string)
SetVideoFileID sets the value of VideoFileID.
func (*InlineQueryResultCachedVideo) UnmarshalJSON ¶
func (s *InlineQueryResultCachedVideo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InlineQueryResultCachedVideo) Validate ¶
func (s *InlineQueryResultCachedVideo) Validate() error
type InlineQueryResultCachedVoice ¶
type InlineQueryResultCachedVoice struct { // Type of the result, must be voice. Type string `json:"type"` // Unique identifier for this result, 1-64 bytes. ID string `json:"id"` // A valid file identifier for the voice message. VoiceFileID string `json:"voice_file_id"` // Voice message title. Title string `json:"title"` // Caption, 0-1024 characters after entities parsing. Caption OptString `json:"caption"` // Mode for parsing entities in the voice message caption. See formatting options for more details. ParseMode OptString `json:"parse_mode"` // List of special entities that appear in the caption, which can be specified instead of parse_mode. CaptionEntities []MessageEntity `json:"caption_entities"` ReplyMarkup OptInlineKeyboardMarkup `json:"reply_markup"` InputMessageContent OptInputMessageContent `json:"input_message_content"` }
Represents a link to a voice message stored on the Telegram servers. By default, this voice message will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the voice message. Ref: #/components/schemas/InlineQueryResultCachedVoice
func (*InlineQueryResultCachedVoice) Decode ¶
func (s *InlineQueryResultCachedVoice) Decode(d *jx.Decoder) error
Decode decodes InlineQueryResultCachedVoice from json.
func (*InlineQueryResultCachedVoice) Encode ¶
func (s *InlineQueryResultCachedVoice) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InlineQueryResultCachedVoice) GetCaption ¶
func (s *InlineQueryResultCachedVoice) GetCaption() OptString
GetCaption returns the value of Caption.
func (*InlineQueryResultCachedVoice) GetCaptionEntities ¶
func (s *InlineQueryResultCachedVoice) GetCaptionEntities() []MessageEntity
GetCaptionEntities returns the value of CaptionEntities.
func (*InlineQueryResultCachedVoice) GetID ¶
func (s *InlineQueryResultCachedVoice) GetID() string
GetID returns the value of ID.
func (*InlineQueryResultCachedVoice) GetInputMessageContent ¶
func (s *InlineQueryResultCachedVoice) GetInputMessageContent() OptInputMessageContent
GetInputMessageContent returns the value of InputMessageContent.
func (*InlineQueryResultCachedVoice) GetParseMode ¶
func (s *InlineQueryResultCachedVoice) GetParseMode() OptString
GetParseMode returns the value of ParseMode.
func (*InlineQueryResultCachedVoice) GetReplyMarkup ¶
func (s *InlineQueryResultCachedVoice) GetReplyMarkup() OptInlineKeyboardMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*InlineQueryResultCachedVoice) GetTitle ¶
func (s *InlineQueryResultCachedVoice) GetTitle() string
GetTitle returns the value of Title.
func (*InlineQueryResultCachedVoice) GetType ¶
func (s *InlineQueryResultCachedVoice) GetType() string
GetType returns the value of Type.
func (*InlineQueryResultCachedVoice) GetVoiceFileID ¶
func (s *InlineQueryResultCachedVoice) GetVoiceFileID() string
GetVoiceFileID returns the value of VoiceFileID.
func (*InlineQueryResultCachedVoice) MarshalJSON ¶
func (s *InlineQueryResultCachedVoice) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InlineQueryResultCachedVoice) SetCaption ¶
func (s *InlineQueryResultCachedVoice) SetCaption(val OptString)
SetCaption sets the value of Caption.
func (*InlineQueryResultCachedVoice) SetCaptionEntities ¶
func (s *InlineQueryResultCachedVoice) SetCaptionEntities(val []MessageEntity)
SetCaptionEntities sets the value of CaptionEntities.
func (*InlineQueryResultCachedVoice) SetFake ¶
func (s *InlineQueryResultCachedVoice) SetFake()
SetFake set fake values.
func (*InlineQueryResultCachedVoice) SetID ¶
func (s *InlineQueryResultCachedVoice) SetID(val string)
SetID sets the value of ID.
func (*InlineQueryResultCachedVoice) SetInputMessageContent ¶
func (s *InlineQueryResultCachedVoice) SetInputMessageContent(val OptInputMessageContent)
SetInputMessageContent sets the value of InputMessageContent.
func (*InlineQueryResultCachedVoice) SetParseMode ¶
func (s *InlineQueryResultCachedVoice) SetParseMode(val OptString)
SetParseMode sets the value of ParseMode.
func (*InlineQueryResultCachedVoice) SetReplyMarkup ¶
func (s *InlineQueryResultCachedVoice) SetReplyMarkup(val OptInlineKeyboardMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*InlineQueryResultCachedVoice) SetTitle ¶
func (s *InlineQueryResultCachedVoice) SetTitle(val string)
SetTitle sets the value of Title.
func (*InlineQueryResultCachedVoice) SetType ¶
func (s *InlineQueryResultCachedVoice) SetType(val string)
SetType sets the value of Type.
func (*InlineQueryResultCachedVoice) SetVoiceFileID ¶
func (s *InlineQueryResultCachedVoice) SetVoiceFileID(val string)
SetVoiceFileID sets the value of VoiceFileID.
func (*InlineQueryResultCachedVoice) UnmarshalJSON ¶
func (s *InlineQueryResultCachedVoice) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InlineQueryResultCachedVoice) Validate ¶
func (s *InlineQueryResultCachedVoice) Validate() error
type InlineQueryResultContact ¶
type InlineQueryResultContact struct { // Type of the result, must be contact. Type string `json:"type"` // Unique identifier for this result, 1-64 Bytes. ID string `json:"id"` // Contact's phone number. PhoneNumber string `json:"phone_number"` // Contact's first name. FirstName string `json:"first_name"` // Contact's last name. LastName OptString `json:"last_name"` // Additional data about the contact in the form of a vCard, 0-2048 bytes. Vcard OptString `json:"vcard"` ReplyMarkup OptInlineKeyboardMarkup `json:"reply_markup"` InputMessageContent OptInputMessageContent `json:"input_message_content"` // URL of the thumbnail for the result. ThumbURL OptURI `json:"thumb_url"` // Thumbnail width. ThumbWidth OptInt `json:"thumb_width"` // Thumbnail height. ThumbHeight OptInt `json:"thumb_height"` }
Represents a contact with a phone number. By default, this contact will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the contact. Ref: #/components/schemas/InlineQueryResultContact
func (*InlineQueryResultContact) Decode ¶
func (s *InlineQueryResultContact) Decode(d *jx.Decoder) error
Decode decodes InlineQueryResultContact from json.
func (*InlineQueryResultContact) Encode ¶
func (s *InlineQueryResultContact) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InlineQueryResultContact) GetFirstName ¶
func (s *InlineQueryResultContact) GetFirstName() string
GetFirstName returns the value of FirstName.
func (*InlineQueryResultContact) GetID ¶
func (s *InlineQueryResultContact) GetID() string
GetID returns the value of ID.
func (*InlineQueryResultContact) GetInputMessageContent ¶
func (s *InlineQueryResultContact) GetInputMessageContent() OptInputMessageContent
GetInputMessageContent returns the value of InputMessageContent.
func (*InlineQueryResultContact) GetLastName ¶
func (s *InlineQueryResultContact) GetLastName() OptString
GetLastName returns the value of LastName.
func (*InlineQueryResultContact) GetPhoneNumber ¶
func (s *InlineQueryResultContact) GetPhoneNumber() string
GetPhoneNumber returns the value of PhoneNumber.
func (*InlineQueryResultContact) GetReplyMarkup ¶
func (s *InlineQueryResultContact) GetReplyMarkup() OptInlineKeyboardMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*InlineQueryResultContact) GetThumbHeight ¶
func (s *InlineQueryResultContact) GetThumbHeight() OptInt
GetThumbHeight returns the value of ThumbHeight.
func (*InlineQueryResultContact) GetThumbURL ¶
func (s *InlineQueryResultContact) GetThumbURL() OptURI
GetThumbURL returns the value of ThumbURL.
func (*InlineQueryResultContact) GetThumbWidth ¶
func (s *InlineQueryResultContact) GetThumbWidth() OptInt
GetThumbWidth returns the value of ThumbWidth.
func (*InlineQueryResultContact) GetType ¶
func (s *InlineQueryResultContact) GetType() string
GetType returns the value of Type.
func (*InlineQueryResultContact) GetVcard ¶
func (s *InlineQueryResultContact) GetVcard() OptString
GetVcard returns the value of Vcard.
func (*InlineQueryResultContact) MarshalJSON ¶
func (s *InlineQueryResultContact) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InlineQueryResultContact) SetFake ¶
func (s *InlineQueryResultContact) SetFake()
SetFake set fake values.
func (*InlineQueryResultContact) SetFirstName ¶
func (s *InlineQueryResultContact) SetFirstName(val string)
SetFirstName sets the value of FirstName.
func (*InlineQueryResultContact) SetID ¶
func (s *InlineQueryResultContact) SetID(val string)
SetID sets the value of ID.
func (*InlineQueryResultContact) SetInputMessageContent ¶
func (s *InlineQueryResultContact) SetInputMessageContent(val OptInputMessageContent)
SetInputMessageContent sets the value of InputMessageContent.
func (*InlineQueryResultContact) SetLastName ¶
func (s *InlineQueryResultContact) SetLastName(val OptString)
SetLastName sets the value of LastName.
func (*InlineQueryResultContact) SetPhoneNumber ¶
func (s *InlineQueryResultContact) SetPhoneNumber(val string)
SetPhoneNumber sets the value of PhoneNumber.
func (*InlineQueryResultContact) SetReplyMarkup ¶
func (s *InlineQueryResultContact) SetReplyMarkup(val OptInlineKeyboardMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*InlineQueryResultContact) SetThumbHeight ¶
func (s *InlineQueryResultContact) SetThumbHeight(val OptInt)
SetThumbHeight sets the value of ThumbHeight.
func (*InlineQueryResultContact) SetThumbURL ¶
func (s *InlineQueryResultContact) SetThumbURL(val OptURI)
SetThumbURL sets the value of ThumbURL.
func (*InlineQueryResultContact) SetThumbWidth ¶
func (s *InlineQueryResultContact) SetThumbWidth(val OptInt)
SetThumbWidth sets the value of ThumbWidth.
func (*InlineQueryResultContact) SetType ¶
func (s *InlineQueryResultContact) SetType(val string)
SetType sets the value of Type.
func (*InlineQueryResultContact) SetVcard ¶
func (s *InlineQueryResultContact) SetVcard(val OptString)
SetVcard sets the value of Vcard.
func (*InlineQueryResultContact) UnmarshalJSON ¶
func (s *InlineQueryResultContact) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InlineQueryResultContact) Validate ¶
func (s *InlineQueryResultContact) Validate() error
type InlineQueryResultDocument ¶
type InlineQueryResultDocument struct { // Type of the result, must be document. Type string `json:"type"` // Unique identifier for this result, 1-64 bytes. ID string `json:"id"` // Title for the result. Title string `json:"title"` // Caption of the document to be sent, 0-1024 characters after entities parsing. Caption OptString `json:"caption"` // Mode for parsing entities in the document caption. See formatting options for more details. ParseMode OptString `json:"parse_mode"` // List of special entities that appear in the caption, which can be specified instead of parse_mode. CaptionEntities []MessageEntity `json:"caption_entities"` // A valid URL for the file. DocumentURL url.URL `json:"document_url"` // Mime type of the content of the file, either “application/pdf” or “application/zip”. MimeType string `json:"mime_type"` // Short description of the result. Description OptString `json:"description"` ReplyMarkup OptInlineKeyboardMarkup `json:"reply_markup"` InputMessageContent OptInputMessageContent `json:"input_message_content"` // URL of the thumbnail (JPEG only) for the file. ThumbURL OptURI `json:"thumb_url"` // Thumbnail width. ThumbWidth OptInt `json:"thumb_width"` // Thumbnail height. ThumbHeight OptInt `json:"thumb_height"` }
Represents a link to a file. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file. Currently, only .PDF and .ZIP files can be sent using this method. Ref: #/components/schemas/InlineQueryResultDocument
func (*InlineQueryResultDocument) Decode ¶
func (s *InlineQueryResultDocument) Decode(d *jx.Decoder) error
Decode decodes InlineQueryResultDocument from json.
func (*InlineQueryResultDocument) Encode ¶
func (s *InlineQueryResultDocument) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InlineQueryResultDocument) GetCaption ¶
func (s *InlineQueryResultDocument) GetCaption() OptString
GetCaption returns the value of Caption.
func (*InlineQueryResultDocument) GetCaptionEntities ¶
func (s *InlineQueryResultDocument) GetCaptionEntities() []MessageEntity
GetCaptionEntities returns the value of CaptionEntities.
func (*InlineQueryResultDocument) GetDescription ¶
func (s *InlineQueryResultDocument) GetDescription() OptString
GetDescription returns the value of Description.
func (*InlineQueryResultDocument) GetDocumentURL ¶
func (s *InlineQueryResultDocument) GetDocumentURL() url.URL
GetDocumentURL returns the value of DocumentURL.
func (*InlineQueryResultDocument) GetID ¶
func (s *InlineQueryResultDocument) GetID() string
GetID returns the value of ID.
func (*InlineQueryResultDocument) GetInputMessageContent ¶
func (s *InlineQueryResultDocument) GetInputMessageContent() OptInputMessageContent
GetInputMessageContent returns the value of InputMessageContent.
func (*InlineQueryResultDocument) GetMimeType ¶
func (s *InlineQueryResultDocument) GetMimeType() string
GetMimeType returns the value of MimeType.
func (*InlineQueryResultDocument) GetParseMode ¶
func (s *InlineQueryResultDocument) GetParseMode() OptString
GetParseMode returns the value of ParseMode.
func (*InlineQueryResultDocument) GetReplyMarkup ¶
func (s *InlineQueryResultDocument) GetReplyMarkup() OptInlineKeyboardMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*InlineQueryResultDocument) GetThumbHeight ¶
func (s *InlineQueryResultDocument) GetThumbHeight() OptInt
GetThumbHeight returns the value of ThumbHeight.
func (*InlineQueryResultDocument) GetThumbURL ¶
func (s *InlineQueryResultDocument) GetThumbURL() OptURI
GetThumbURL returns the value of ThumbURL.
func (*InlineQueryResultDocument) GetThumbWidth ¶
func (s *InlineQueryResultDocument) GetThumbWidth() OptInt
GetThumbWidth returns the value of ThumbWidth.
func (*InlineQueryResultDocument) GetTitle ¶
func (s *InlineQueryResultDocument) GetTitle() string
GetTitle returns the value of Title.
func (*InlineQueryResultDocument) GetType ¶
func (s *InlineQueryResultDocument) GetType() string
GetType returns the value of Type.
func (*InlineQueryResultDocument) MarshalJSON ¶
func (s *InlineQueryResultDocument) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InlineQueryResultDocument) SetCaption ¶
func (s *InlineQueryResultDocument) SetCaption(val OptString)
SetCaption sets the value of Caption.
func (*InlineQueryResultDocument) SetCaptionEntities ¶
func (s *InlineQueryResultDocument) SetCaptionEntities(val []MessageEntity)
SetCaptionEntities sets the value of CaptionEntities.
func (*InlineQueryResultDocument) SetDescription ¶
func (s *InlineQueryResultDocument) SetDescription(val OptString)
SetDescription sets the value of Description.
func (*InlineQueryResultDocument) SetDocumentURL ¶
func (s *InlineQueryResultDocument) SetDocumentURL(val url.URL)
SetDocumentURL sets the value of DocumentURL.
func (*InlineQueryResultDocument) SetFake ¶
func (s *InlineQueryResultDocument) SetFake()
SetFake set fake values.
func (*InlineQueryResultDocument) SetID ¶
func (s *InlineQueryResultDocument) SetID(val string)
SetID sets the value of ID.
func (*InlineQueryResultDocument) SetInputMessageContent ¶
func (s *InlineQueryResultDocument) SetInputMessageContent(val OptInputMessageContent)
SetInputMessageContent sets the value of InputMessageContent.
func (*InlineQueryResultDocument) SetMimeType ¶
func (s *InlineQueryResultDocument) SetMimeType(val string)
SetMimeType sets the value of MimeType.
func (*InlineQueryResultDocument) SetParseMode ¶
func (s *InlineQueryResultDocument) SetParseMode(val OptString)
SetParseMode sets the value of ParseMode.
func (*InlineQueryResultDocument) SetReplyMarkup ¶
func (s *InlineQueryResultDocument) SetReplyMarkup(val OptInlineKeyboardMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*InlineQueryResultDocument) SetThumbHeight ¶
func (s *InlineQueryResultDocument) SetThumbHeight(val OptInt)
SetThumbHeight sets the value of ThumbHeight.
func (*InlineQueryResultDocument) SetThumbURL ¶
func (s *InlineQueryResultDocument) SetThumbURL(val OptURI)
SetThumbURL sets the value of ThumbURL.
func (*InlineQueryResultDocument) SetThumbWidth ¶
func (s *InlineQueryResultDocument) SetThumbWidth(val OptInt)
SetThumbWidth sets the value of ThumbWidth.
func (*InlineQueryResultDocument) SetTitle ¶
func (s *InlineQueryResultDocument) SetTitle(val string)
SetTitle sets the value of Title.
func (*InlineQueryResultDocument) SetType ¶
func (s *InlineQueryResultDocument) SetType(val string)
SetType sets the value of Type.
func (*InlineQueryResultDocument) UnmarshalJSON ¶
func (s *InlineQueryResultDocument) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InlineQueryResultDocument) Validate ¶
func (s *InlineQueryResultDocument) Validate() error
type InlineQueryResultGame ¶
type InlineQueryResultGame struct { // Type of the result, must be game. Type string `json:"type"` // Unique identifier for this result, 1-64 bytes. ID string `json:"id"` // Short name of the game. GameShortName string `json:"game_short_name"` ReplyMarkup OptInlineKeyboardMarkup `json:"reply_markup"` }
Represents a Game. Ref: #/components/schemas/InlineQueryResultGame
func (*InlineQueryResultGame) Decode ¶
func (s *InlineQueryResultGame) Decode(d *jx.Decoder) error
Decode decodes InlineQueryResultGame from json.
func (*InlineQueryResultGame) Encode ¶
func (s *InlineQueryResultGame) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InlineQueryResultGame) GetGameShortName ¶
func (s *InlineQueryResultGame) GetGameShortName() string
GetGameShortName returns the value of GameShortName.
func (*InlineQueryResultGame) GetID ¶
func (s *InlineQueryResultGame) GetID() string
GetID returns the value of ID.
func (*InlineQueryResultGame) GetReplyMarkup ¶
func (s *InlineQueryResultGame) GetReplyMarkup() OptInlineKeyboardMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*InlineQueryResultGame) GetType ¶
func (s *InlineQueryResultGame) GetType() string
GetType returns the value of Type.
func (*InlineQueryResultGame) MarshalJSON ¶
func (s *InlineQueryResultGame) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InlineQueryResultGame) SetFake ¶
func (s *InlineQueryResultGame) SetFake()
SetFake set fake values.
func (*InlineQueryResultGame) SetGameShortName ¶
func (s *InlineQueryResultGame) SetGameShortName(val string)
SetGameShortName sets the value of GameShortName.
func (*InlineQueryResultGame) SetID ¶
func (s *InlineQueryResultGame) SetID(val string)
SetID sets the value of ID.
func (*InlineQueryResultGame) SetReplyMarkup ¶
func (s *InlineQueryResultGame) SetReplyMarkup(val OptInlineKeyboardMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*InlineQueryResultGame) SetType ¶
func (s *InlineQueryResultGame) SetType(val string)
SetType sets the value of Type.
func (*InlineQueryResultGame) UnmarshalJSON ¶
func (s *InlineQueryResultGame) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InlineQueryResultGame) Validate ¶
func (s *InlineQueryResultGame) Validate() error
type InlineQueryResultGif ¶
type InlineQueryResultGif struct { // Type of the result, must be gif. Type string `json:"type"` // Unique identifier for this result, 1-64 bytes. ID string `json:"id"` // A valid URL for the GIF file. File size must not exceed 1MB. GIFURL url.URL `json:"gif_url"` // Width of the GIF. GIFWidth OptInt `json:"gif_width"` // Height of the GIF. GIFHeight OptInt `json:"gif_height"` // Duration of the GIF in seconds. GIFDuration OptInt `json:"gif_duration"` // URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result. ThumbURL url.URL `json:"thumb_url"` // MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. // Defaults to “image/jpeg”. ThumbMimeType OptString `json:"thumb_mime_type"` // Title for the result. Title OptString `json:"title"` // Caption of the GIF file to be sent, 0-1024 characters after entities parsing. Caption OptString `json:"caption"` // Mode for parsing entities in the caption. See formatting options for more details. ParseMode OptString `json:"parse_mode"` // List of special entities that appear in the caption, which can be specified instead of parse_mode. CaptionEntities []MessageEntity `json:"caption_entities"` ReplyMarkup OptInlineKeyboardMarkup `json:"reply_markup"` InputMessageContent OptInputMessageContent `json:"input_message_content"` }
Represents a link to an animated GIF file. By default, this animated GIF file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation. Ref: #/components/schemas/InlineQueryResultGif
func (*InlineQueryResultGif) Decode ¶
func (s *InlineQueryResultGif) Decode(d *jx.Decoder) error
Decode decodes InlineQueryResultGif from json.
func (*InlineQueryResultGif) Encode ¶
func (s *InlineQueryResultGif) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InlineQueryResultGif) GetCaption ¶
func (s *InlineQueryResultGif) GetCaption() OptString
GetCaption returns the value of Caption.
func (*InlineQueryResultGif) GetCaptionEntities ¶
func (s *InlineQueryResultGif) GetCaptionEntities() []MessageEntity
GetCaptionEntities returns the value of CaptionEntities.
func (*InlineQueryResultGif) GetGIFDuration ¶
func (s *InlineQueryResultGif) GetGIFDuration() OptInt
GetGIFDuration returns the value of GIFDuration.
func (*InlineQueryResultGif) GetGIFHeight ¶
func (s *InlineQueryResultGif) GetGIFHeight() OptInt
GetGIFHeight returns the value of GIFHeight.
func (*InlineQueryResultGif) GetGIFURL ¶
func (s *InlineQueryResultGif) GetGIFURL() url.URL
GetGIFURL returns the value of GIFURL.
func (*InlineQueryResultGif) GetGIFWidth ¶
func (s *InlineQueryResultGif) GetGIFWidth() OptInt
GetGIFWidth returns the value of GIFWidth.
func (*InlineQueryResultGif) GetID ¶
func (s *InlineQueryResultGif) GetID() string
GetID returns the value of ID.
func (*InlineQueryResultGif) GetInputMessageContent ¶
func (s *InlineQueryResultGif) GetInputMessageContent() OptInputMessageContent
GetInputMessageContent returns the value of InputMessageContent.
func (*InlineQueryResultGif) GetParseMode ¶
func (s *InlineQueryResultGif) GetParseMode() OptString
GetParseMode returns the value of ParseMode.
func (*InlineQueryResultGif) GetReplyMarkup ¶
func (s *InlineQueryResultGif) GetReplyMarkup() OptInlineKeyboardMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*InlineQueryResultGif) GetThumbMimeType ¶
func (s *InlineQueryResultGif) GetThumbMimeType() OptString
GetThumbMimeType returns the value of ThumbMimeType.
func (*InlineQueryResultGif) GetThumbURL ¶
func (s *InlineQueryResultGif) GetThumbURL() url.URL
GetThumbURL returns the value of ThumbURL.
func (*InlineQueryResultGif) GetTitle ¶
func (s *InlineQueryResultGif) GetTitle() OptString
GetTitle returns the value of Title.
func (*InlineQueryResultGif) GetType ¶
func (s *InlineQueryResultGif) GetType() string
GetType returns the value of Type.
func (*InlineQueryResultGif) MarshalJSON ¶
func (s *InlineQueryResultGif) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InlineQueryResultGif) SetCaption ¶
func (s *InlineQueryResultGif) SetCaption(val OptString)
SetCaption sets the value of Caption.
func (*InlineQueryResultGif) SetCaptionEntities ¶
func (s *InlineQueryResultGif) SetCaptionEntities(val []MessageEntity)
SetCaptionEntities sets the value of CaptionEntities.
func (*InlineQueryResultGif) SetFake ¶
func (s *InlineQueryResultGif) SetFake()
SetFake set fake values.
func (*InlineQueryResultGif) SetGIFDuration ¶
func (s *InlineQueryResultGif) SetGIFDuration(val OptInt)
SetGIFDuration sets the value of GIFDuration.
func (*InlineQueryResultGif) SetGIFHeight ¶
func (s *InlineQueryResultGif) SetGIFHeight(val OptInt)
SetGIFHeight sets the value of GIFHeight.
func (*InlineQueryResultGif) SetGIFURL ¶
func (s *InlineQueryResultGif) SetGIFURL(val url.URL)
SetGIFURL sets the value of GIFURL.
func (*InlineQueryResultGif) SetGIFWidth ¶
func (s *InlineQueryResultGif) SetGIFWidth(val OptInt)
SetGIFWidth sets the value of GIFWidth.
func (*InlineQueryResultGif) SetID ¶
func (s *InlineQueryResultGif) SetID(val string)
SetID sets the value of ID.
func (*InlineQueryResultGif) SetInputMessageContent ¶
func (s *InlineQueryResultGif) SetInputMessageContent(val OptInputMessageContent)
SetInputMessageContent sets the value of InputMessageContent.
func (*InlineQueryResultGif) SetParseMode ¶
func (s *InlineQueryResultGif) SetParseMode(val OptString)
SetParseMode sets the value of ParseMode.
func (*InlineQueryResultGif) SetReplyMarkup ¶
func (s *InlineQueryResultGif) SetReplyMarkup(val OptInlineKeyboardMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*InlineQueryResultGif) SetThumbMimeType ¶
func (s *InlineQueryResultGif) SetThumbMimeType(val OptString)
SetThumbMimeType sets the value of ThumbMimeType.
func (*InlineQueryResultGif) SetThumbURL ¶
func (s *InlineQueryResultGif) SetThumbURL(val url.URL)
SetThumbURL sets the value of ThumbURL.
func (*InlineQueryResultGif) SetTitle ¶
func (s *InlineQueryResultGif) SetTitle(val OptString)
SetTitle sets the value of Title.
func (*InlineQueryResultGif) SetType ¶
func (s *InlineQueryResultGif) SetType(val string)
SetType sets the value of Type.
func (*InlineQueryResultGif) UnmarshalJSON ¶
func (s *InlineQueryResultGif) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InlineQueryResultGif) Validate ¶
func (s *InlineQueryResultGif) Validate() error
type InlineQueryResultLocation ¶
type InlineQueryResultLocation struct { // Type of the result, must be location. Type string `json:"type"` // Unique identifier for this result, 1-64 Bytes. ID string `json:"id"` // Location latitude in degrees. Latitude float64 `json:"latitude"` // Location longitude in degrees. Longitude float64 `json:"longitude"` // Location title. Title string `json:"title"` // The radius of uncertainty for the location, measured in meters; 0-1500. HorizontalAccuracy OptFloat64 `json:"horizontal_accuracy"` // Period in seconds for which the location can be updated, should be between 60 and 86400. LivePeriod OptInt `json:"live_period"` // For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 // if specified. Heading OptInt `json:"heading"` // For live locations, a maximum distance for proximity alerts about approaching another chat member, // in meters. Must be between 1 and 100000 if specified. ProximityAlertRadius OptInt `json:"proximity_alert_radius"` ReplyMarkup OptInlineKeyboardMarkup `json:"reply_markup"` InputMessageContent OptInputMessageContent `json:"input_message_content"` // URL of the thumbnail for the result. ThumbURL OptURI `json:"thumb_url"` // Thumbnail width. ThumbWidth OptInt `json:"thumb_width"` // Thumbnail height. ThumbHeight OptInt `json:"thumb_height"` }
Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the location. Ref: #/components/schemas/InlineQueryResultLocation
func (*InlineQueryResultLocation) Decode ¶
func (s *InlineQueryResultLocation) Decode(d *jx.Decoder) error
Decode decodes InlineQueryResultLocation from json.
func (*InlineQueryResultLocation) Encode ¶
func (s *InlineQueryResultLocation) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InlineQueryResultLocation) GetHeading ¶
func (s *InlineQueryResultLocation) GetHeading() OptInt
GetHeading returns the value of Heading.
func (*InlineQueryResultLocation) GetHorizontalAccuracy ¶
func (s *InlineQueryResultLocation) GetHorizontalAccuracy() OptFloat64
GetHorizontalAccuracy returns the value of HorizontalAccuracy.
func (*InlineQueryResultLocation) GetID ¶
func (s *InlineQueryResultLocation) GetID() string
GetID returns the value of ID.
func (*InlineQueryResultLocation) GetInputMessageContent ¶
func (s *InlineQueryResultLocation) GetInputMessageContent() OptInputMessageContent
GetInputMessageContent returns the value of InputMessageContent.
func (*InlineQueryResultLocation) GetLatitude ¶
func (s *InlineQueryResultLocation) GetLatitude() float64
GetLatitude returns the value of Latitude.
func (*InlineQueryResultLocation) GetLivePeriod ¶
func (s *InlineQueryResultLocation) GetLivePeriod() OptInt
GetLivePeriod returns the value of LivePeriod.
func (*InlineQueryResultLocation) GetLongitude ¶
func (s *InlineQueryResultLocation) GetLongitude() float64
GetLongitude returns the value of Longitude.
func (*InlineQueryResultLocation) GetProximityAlertRadius ¶
func (s *InlineQueryResultLocation) GetProximityAlertRadius() OptInt
GetProximityAlertRadius returns the value of ProximityAlertRadius.
func (*InlineQueryResultLocation) GetReplyMarkup ¶
func (s *InlineQueryResultLocation) GetReplyMarkup() OptInlineKeyboardMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*InlineQueryResultLocation) GetThumbHeight ¶
func (s *InlineQueryResultLocation) GetThumbHeight() OptInt
GetThumbHeight returns the value of ThumbHeight.
func (*InlineQueryResultLocation) GetThumbURL ¶
func (s *InlineQueryResultLocation) GetThumbURL() OptURI
GetThumbURL returns the value of ThumbURL.
func (*InlineQueryResultLocation) GetThumbWidth ¶
func (s *InlineQueryResultLocation) GetThumbWidth() OptInt
GetThumbWidth returns the value of ThumbWidth.
func (*InlineQueryResultLocation) GetTitle ¶
func (s *InlineQueryResultLocation) GetTitle() string
GetTitle returns the value of Title.
func (*InlineQueryResultLocation) GetType ¶
func (s *InlineQueryResultLocation) GetType() string
GetType returns the value of Type.
func (*InlineQueryResultLocation) MarshalJSON ¶
func (s *InlineQueryResultLocation) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InlineQueryResultLocation) SetFake ¶
func (s *InlineQueryResultLocation) SetFake()
SetFake set fake values.
func (*InlineQueryResultLocation) SetHeading ¶
func (s *InlineQueryResultLocation) SetHeading(val OptInt)
SetHeading sets the value of Heading.
func (*InlineQueryResultLocation) SetHorizontalAccuracy ¶
func (s *InlineQueryResultLocation) SetHorizontalAccuracy(val OptFloat64)
SetHorizontalAccuracy sets the value of HorizontalAccuracy.
func (*InlineQueryResultLocation) SetID ¶
func (s *InlineQueryResultLocation) SetID(val string)
SetID sets the value of ID.
func (*InlineQueryResultLocation) SetInputMessageContent ¶
func (s *InlineQueryResultLocation) SetInputMessageContent(val OptInputMessageContent)
SetInputMessageContent sets the value of InputMessageContent.
func (*InlineQueryResultLocation) SetLatitude ¶
func (s *InlineQueryResultLocation) SetLatitude(val float64)
SetLatitude sets the value of Latitude.
func (*InlineQueryResultLocation) SetLivePeriod ¶
func (s *InlineQueryResultLocation) SetLivePeriod(val OptInt)
SetLivePeriod sets the value of LivePeriod.
func (*InlineQueryResultLocation) SetLongitude ¶
func (s *InlineQueryResultLocation) SetLongitude(val float64)
SetLongitude sets the value of Longitude.
func (*InlineQueryResultLocation) SetProximityAlertRadius ¶
func (s *InlineQueryResultLocation) SetProximityAlertRadius(val OptInt)
SetProximityAlertRadius sets the value of ProximityAlertRadius.
func (*InlineQueryResultLocation) SetReplyMarkup ¶
func (s *InlineQueryResultLocation) SetReplyMarkup(val OptInlineKeyboardMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*InlineQueryResultLocation) SetThumbHeight ¶
func (s *InlineQueryResultLocation) SetThumbHeight(val OptInt)
SetThumbHeight sets the value of ThumbHeight.
func (*InlineQueryResultLocation) SetThumbURL ¶
func (s *InlineQueryResultLocation) SetThumbURL(val OptURI)
SetThumbURL sets the value of ThumbURL.
func (*InlineQueryResultLocation) SetThumbWidth ¶
func (s *InlineQueryResultLocation) SetThumbWidth(val OptInt)
SetThumbWidth sets the value of ThumbWidth.
func (*InlineQueryResultLocation) SetTitle ¶
func (s *InlineQueryResultLocation) SetTitle(val string)
SetTitle sets the value of Title.
func (*InlineQueryResultLocation) SetType ¶
func (s *InlineQueryResultLocation) SetType(val string)
SetType sets the value of Type.
func (*InlineQueryResultLocation) UnmarshalJSON ¶
func (s *InlineQueryResultLocation) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InlineQueryResultLocation) Validate ¶
func (s *InlineQueryResultLocation) Validate() error
type InlineQueryResultMpeg4Gif ¶
type InlineQueryResultMpeg4Gif struct { // Type of the result, must be mpeg4_gif. Type string `json:"type"` // Unique identifier for this result, 1-64 bytes. ID string `json:"id"` // A valid URL for the MP4 file. File size must not exceed 1MB. Mpeg4URL url.URL `json:"mpeg4_url"` // Video width. Mpeg4Width OptInt `json:"mpeg4_width"` // Video height. Mpeg4Height OptInt `json:"mpeg4_height"` // Video duration in seconds. Mpeg4Duration OptInt `json:"mpeg4_duration"` // URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result. ThumbURL url.URL `json:"thumb_url"` // MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. // Defaults to “image/jpeg”. ThumbMimeType OptString `json:"thumb_mime_type"` // Title for the result. Title OptString `json:"title"` // Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing. Caption OptString `json:"caption"` // Mode for parsing entities in the caption. See formatting options for more details. ParseMode OptString `json:"parse_mode"` // List of special entities that appear in the caption, which can be specified instead of parse_mode. CaptionEntities []MessageEntity `json:"caption_entities"` ReplyMarkup OptInlineKeyboardMarkup `json:"reply_markup"` InputMessageContent OptInputMessageContent `json:"input_message_content"` }
Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default, this animated MPEG-4 file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation. Ref: #/components/schemas/InlineQueryResultMpeg4Gif
func (*InlineQueryResultMpeg4Gif) Decode ¶
func (s *InlineQueryResultMpeg4Gif) Decode(d *jx.Decoder) error
Decode decodes InlineQueryResultMpeg4Gif from json.
func (*InlineQueryResultMpeg4Gif) Encode ¶
func (s *InlineQueryResultMpeg4Gif) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InlineQueryResultMpeg4Gif) GetCaption ¶
func (s *InlineQueryResultMpeg4Gif) GetCaption() OptString
GetCaption returns the value of Caption.
func (*InlineQueryResultMpeg4Gif) GetCaptionEntities ¶
func (s *InlineQueryResultMpeg4Gif) GetCaptionEntities() []MessageEntity
GetCaptionEntities returns the value of CaptionEntities.
func (*InlineQueryResultMpeg4Gif) GetID ¶
func (s *InlineQueryResultMpeg4Gif) GetID() string
GetID returns the value of ID.
func (*InlineQueryResultMpeg4Gif) GetInputMessageContent ¶
func (s *InlineQueryResultMpeg4Gif) GetInputMessageContent() OptInputMessageContent
GetInputMessageContent returns the value of InputMessageContent.
func (*InlineQueryResultMpeg4Gif) GetMpeg4Duration ¶
func (s *InlineQueryResultMpeg4Gif) GetMpeg4Duration() OptInt
GetMpeg4Duration returns the value of Mpeg4Duration.
func (*InlineQueryResultMpeg4Gif) GetMpeg4Height ¶
func (s *InlineQueryResultMpeg4Gif) GetMpeg4Height() OptInt
GetMpeg4Height returns the value of Mpeg4Height.
func (*InlineQueryResultMpeg4Gif) GetMpeg4URL ¶
func (s *InlineQueryResultMpeg4Gif) GetMpeg4URL() url.URL
GetMpeg4URL returns the value of Mpeg4URL.
func (*InlineQueryResultMpeg4Gif) GetMpeg4Width ¶
func (s *InlineQueryResultMpeg4Gif) GetMpeg4Width() OptInt
GetMpeg4Width returns the value of Mpeg4Width.
func (*InlineQueryResultMpeg4Gif) GetParseMode ¶
func (s *InlineQueryResultMpeg4Gif) GetParseMode() OptString
GetParseMode returns the value of ParseMode.
func (*InlineQueryResultMpeg4Gif) GetReplyMarkup ¶
func (s *InlineQueryResultMpeg4Gif) GetReplyMarkup() OptInlineKeyboardMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*InlineQueryResultMpeg4Gif) GetThumbMimeType ¶
func (s *InlineQueryResultMpeg4Gif) GetThumbMimeType() OptString
GetThumbMimeType returns the value of ThumbMimeType.
func (*InlineQueryResultMpeg4Gif) GetThumbURL ¶
func (s *InlineQueryResultMpeg4Gif) GetThumbURL() url.URL
GetThumbURL returns the value of ThumbURL.
func (*InlineQueryResultMpeg4Gif) GetTitle ¶
func (s *InlineQueryResultMpeg4Gif) GetTitle() OptString
GetTitle returns the value of Title.
func (*InlineQueryResultMpeg4Gif) GetType ¶
func (s *InlineQueryResultMpeg4Gif) GetType() string
GetType returns the value of Type.
func (*InlineQueryResultMpeg4Gif) MarshalJSON ¶
func (s *InlineQueryResultMpeg4Gif) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InlineQueryResultMpeg4Gif) SetCaption ¶
func (s *InlineQueryResultMpeg4Gif) SetCaption(val OptString)
SetCaption sets the value of Caption.
func (*InlineQueryResultMpeg4Gif) SetCaptionEntities ¶
func (s *InlineQueryResultMpeg4Gif) SetCaptionEntities(val []MessageEntity)
SetCaptionEntities sets the value of CaptionEntities.
func (*InlineQueryResultMpeg4Gif) SetFake ¶
func (s *InlineQueryResultMpeg4Gif) SetFake()
SetFake set fake values.
func (*InlineQueryResultMpeg4Gif) SetID ¶
func (s *InlineQueryResultMpeg4Gif) SetID(val string)
SetID sets the value of ID.
func (*InlineQueryResultMpeg4Gif) SetInputMessageContent ¶
func (s *InlineQueryResultMpeg4Gif) SetInputMessageContent(val OptInputMessageContent)
SetInputMessageContent sets the value of InputMessageContent.
func (*InlineQueryResultMpeg4Gif) SetMpeg4Duration ¶
func (s *InlineQueryResultMpeg4Gif) SetMpeg4Duration(val OptInt)
SetMpeg4Duration sets the value of Mpeg4Duration.
func (*InlineQueryResultMpeg4Gif) SetMpeg4Height ¶
func (s *InlineQueryResultMpeg4Gif) SetMpeg4Height(val OptInt)
SetMpeg4Height sets the value of Mpeg4Height.
func (*InlineQueryResultMpeg4Gif) SetMpeg4URL ¶
func (s *InlineQueryResultMpeg4Gif) SetMpeg4URL(val url.URL)
SetMpeg4URL sets the value of Mpeg4URL.
func (*InlineQueryResultMpeg4Gif) SetMpeg4Width ¶
func (s *InlineQueryResultMpeg4Gif) SetMpeg4Width(val OptInt)
SetMpeg4Width sets the value of Mpeg4Width.
func (*InlineQueryResultMpeg4Gif) SetParseMode ¶
func (s *InlineQueryResultMpeg4Gif) SetParseMode(val OptString)
SetParseMode sets the value of ParseMode.
func (*InlineQueryResultMpeg4Gif) SetReplyMarkup ¶
func (s *InlineQueryResultMpeg4Gif) SetReplyMarkup(val OptInlineKeyboardMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*InlineQueryResultMpeg4Gif) SetThumbMimeType ¶
func (s *InlineQueryResultMpeg4Gif) SetThumbMimeType(val OptString)
SetThumbMimeType sets the value of ThumbMimeType.
func (*InlineQueryResultMpeg4Gif) SetThumbURL ¶
func (s *InlineQueryResultMpeg4Gif) SetThumbURL(val url.URL)
SetThumbURL sets the value of ThumbURL.
func (*InlineQueryResultMpeg4Gif) SetTitle ¶
func (s *InlineQueryResultMpeg4Gif) SetTitle(val OptString)
SetTitle sets the value of Title.
func (*InlineQueryResultMpeg4Gif) SetType ¶
func (s *InlineQueryResultMpeg4Gif) SetType(val string)
SetType sets the value of Type.
func (*InlineQueryResultMpeg4Gif) UnmarshalJSON ¶
func (s *InlineQueryResultMpeg4Gif) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InlineQueryResultMpeg4Gif) Validate ¶
func (s *InlineQueryResultMpeg4Gif) Validate() error
type InlineQueryResultPhoto ¶
type InlineQueryResultPhoto struct { // Type of the result, must be photo. Type string `json:"type"` // Unique identifier for this result, 1-64 bytes. ID string `json:"id"` // A valid URL of the photo. Photo must be in JPEG format. Photo size must not exceed 5MB. PhotoURL url.URL `json:"photo_url"` // URL of the thumbnail for the photo. ThumbURL url.URL `json:"thumb_url"` // Width of the photo. PhotoWidth OptInt `json:"photo_width"` // Height of the photo. PhotoHeight OptInt `json:"photo_height"` // Title for the result. Title OptString `json:"title"` // Short description of the result. Description OptString `json:"description"` // Caption of the photo to be sent, 0-1024 characters after entities parsing. Caption OptString `json:"caption"` // Mode for parsing entities in the photo caption. See formatting options for more details. ParseMode OptString `json:"parse_mode"` // List of special entities that appear in the caption, which can be specified instead of parse_mode. CaptionEntities []MessageEntity `json:"caption_entities"` ReplyMarkup OptInlineKeyboardMarkup `json:"reply_markup"` InputMessageContent OptInputMessageContent `json:"input_message_content"` }
Represents a link to a photo. By default, this photo will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo. Ref: #/components/schemas/InlineQueryResultPhoto
func (*InlineQueryResultPhoto) Decode ¶
func (s *InlineQueryResultPhoto) Decode(d *jx.Decoder) error
Decode decodes InlineQueryResultPhoto from json.
func (*InlineQueryResultPhoto) Encode ¶
func (s *InlineQueryResultPhoto) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InlineQueryResultPhoto) GetCaption ¶
func (s *InlineQueryResultPhoto) GetCaption() OptString
GetCaption returns the value of Caption.
func (*InlineQueryResultPhoto) GetCaptionEntities ¶
func (s *InlineQueryResultPhoto) GetCaptionEntities() []MessageEntity
GetCaptionEntities returns the value of CaptionEntities.
func (*InlineQueryResultPhoto) GetDescription ¶
func (s *InlineQueryResultPhoto) GetDescription() OptString
GetDescription returns the value of Description.
func (*InlineQueryResultPhoto) GetID ¶
func (s *InlineQueryResultPhoto) GetID() string
GetID returns the value of ID.
func (*InlineQueryResultPhoto) GetInputMessageContent ¶
func (s *InlineQueryResultPhoto) GetInputMessageContent() OptInputMessageContent
GetInputMessageContent returns the value of InputMessageContent.
func (*InlineQueryResultPhoto) GetParseMode ¶
func (s *InlineQueryResultPhoto) GetParseMode() OptString
GetParseMode returns the value of ParseMode.
func (*InlineQueryResultPhoto) GetPhotoHeight ¶
func (s *InlineQueryResultPhoto) GetPhotoHeight() OptInt
GetPhotoHeight returns the value of PhotoHeight.
func (*InlineQueryResultPhoto) GetPhotoURL ¶
func (s *InlineQueryResultPhoto) GetPhotoURL() url.URL
GetPhotoURL returns the value of PhotoURL.
func (*InlineQueryResultPhoto) GetPhotoWidth ¶
func (s *InlineQueryResultPhoto) GetPhotoWidth() OptInt
GetPhotoWidth returns the value of PhotoWidth.
func (*InlineQueryResultPhoto) GetReplyMarkup ¶
func (s *InlineQueryResultPhoto) GetReplyMarkup() OptInlineKeyboardMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*InlineQueryResultPhoto) GetThumbURL ¶
func (s *InlineQueryResultPhoto) GetThumbURL() url.URL
GetThumbURL returns the value of ThumbURL.
func (*InlineQueryResultPhoto) GetTitle ¶
func (s *InlineQueryResultPhoto) GetTitle() OptString
GetTitle returns the value of Title.
func (*InlineQueryResultPhoto) GetType ¶
func (s *InlineQueryResultPhoto) GetType() string
GetType returns the value of Type.
func (*InlineQueryResultPhoto) MarshalJSON ¶
func (s *InlineQueryResultPhoto) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InlineQueryResultPhoto) SetCaption ¶
func (s *InlineQueryResultPhoto) SetCaption(val OptString)
SetCaption sets the value of Caption.
func (*InlineQueryResultPhoto) SetCaptionEntities ¶
func (s *InlineQueryResultPhoto) SetCaptionEntities(val []MessageEntity)
SetCaptionEntities sets the value of CaptionEntities.
func (*InlineQueryResultPhoto) SetDescription ¶
func (s *InlineQueryResultPhoto) SetDescription(val OptString)
SetDescription sets the value of Description.
func (*InlineQueryResultPhoto) SetFake ¶
func (s *InlineQueryResultPhoto) SetFake()
SetFake set fake values.
func (*InlineQueryResultPhoto) SetID ¶
func (s *InlineQueryResultPhoto) SetID(val string)
SetID sets the value of ID.
func (*InlineQueryResultPhoto) SetInputMessageContent ¶
func (s *InlineQueryResultPhoto) SetInputMessageContent(val OptInputMessageContent)
SetInputMessageContent sets the value of InputMessageContent.
func (*InlineQueryResultPhoto) SetParseMode ¶
func (s *InlineQueryResultPhoto) SetParseMode(val OptString)
SetParseMode sets the value of ParseMode.
func (*InlineQueryResultPhoto) SetPhotoHeight ¶
func (s *InlineQueryResultPhoto) SetPhotoHeight(val OptInt)
SetPhotoHeight sets the value of PhotoHeight.
func (*InlineQueryResultPhoto) SetPhotoURL ¶
func (s *InlineQueryResultPhoto) SetPhotoURL(val url.URL)
SetPhotoURL sets the value of PhotoURL.
func (*InlineQueryResultPhoto) SetPhotoWidth ¶
func (s *InlineQueryResultPhoto) SetPhotoWidth(val OptInt)
SetPhotoWidth sets the value of PhotoWidth.
func (*InlineQueryResultPhoto) SetReplyMarkup ¶
func (s *InlineQueryResultPhoto) SetReplyMarkup(val OptInlineKeyboardMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*InlineQueryResultPhoto) SetThumbURL ¶
func (s *InlineQueryResultPhoto) SetThumbURL(val url.URL)
SetThumbURL sets the value of ThumbURL.
func (*InlineQueryResultPhoto) SetTitle ¶
func (s *InlineQueryResultPhoto) SetTitle(val OptString)
SetTitle sets the value of Title.
func (*InlineQueryResultPhoto) SetType ¶
func (s *InlineQueryResultPhoto) SetType(val string)
SetType sets the value of Type.
func (*InlineQueryResultPhoto) UnmarshalJSON ¶
func (s *InlineQueryResultPhoto) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InlineQueryResultPhoto) Validate ¶
func (s *InlineQueryResultPhoto) Validate() error
type InlineQueryResultType ¶
type InlineQueryResultType string
InlineQueryResultType is oneOf type of InlineQueryResult.
const ( InlineQueryResultCachedAudioInlineQueryResult InlineQueryResultType = "InlineQueryResultCachedAudio" InlineQueryResultCachedDocumentInlineQueryResult InlineQueryResultType = "InlineQueryResultCachedDocument" InlineQueryResultCachedGifInlineQueryResult InlineQueryResultType = "InlineQueryResultCachedGif" InlineQueryResultCachedMpeg4GifInlineQueryResult InlineQueryResultType = "InlineQueryResultCachedMpeg4Gif" InlineQueryResultCachedPhotoInlineQueryResult InlineQueryResultType = "InlineQueryResultCachedPhoto" InlineQueryResultCachedStickerInlineQueryResult InlineQueryResultType = "sticker" InlineQueryResultCachedVideoInlineQueryResult InlineQueryResultType = "InlineQueryResultCachedVideo" InlineQueryResultCachedVoiceInlineQueryResult InlineQueryResultType = "InlineQueryResultCachedVoice" InlineQueryResultArticleInlineQueryResult InlineQueryResultType = "article" InlineQueryResultAudioInlineQueryResult InlineQueryResultType = "audio" InlineQueryResultContactInlineQueryResult InlineQueryResultType = "contact" InlineQueryResultGameInlineQueryResult InlineQueryResultType = "game" InlineQueryResultDocumentInlineQueryResult InlineQueryResultType = "document" InlineQueryResultGifInlineQueryResult InlineQueryResultType = "gif" InlineQueryResultLocationInlineQueryResult InlineQueryResultType = "location" InlineQueryResultMpeg4GifInlineQueryResult InlineQueryResultType = "mpeg4_gif" InlineQueryResultPhotoInlineQueryResult InlineQueryResultType = "photo" InlineQueryResultVenueInlineQueryResult InlineQueryResultType = "venue" InlineQueryResultVideoInlineQueryResult InlineQueryResultType = "video" InlineQueryResultVoiceInlineQueryResult InlineQueryResultType = "voice" )
Possible values for InlineQueryResultType.
type InlineQueryResultVenue ¶
type InlineQueryResultVenue struct { // Type of the result, must be venue. Type string `json:"type"` // Unique identifier for this result, 1-64 Bytes. ID string `json:"id"` // Latitude of the venue location in degrees. Latitude float64 `json:"latitude"` // Longitude of the venue location in degrees. Longitude float64 `json:"longitude"` // Title of the venue. Title string `json:"title"` // Address of the venue. Address string `json:"address"` // Foursquare identifier of the venue if known. FoursquareID OptString `json:"foursquare_id"` // Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, // “arts_entertainment/aquarium” or “food/icecream”.). FoursquareType OptString `json:"foursquare_type"` // Google Places identifier of the venue. GooglePlaceID OptString `json:"google_place_id"` // Google Places type of the venue. (See supported types.). GooglePlaceType OptString `json:"google_place_type"` ReplyMarkup OptInlineKeyboardMarkup `json:"reply_markup"` InputMessageContent OptInputMessageContent `json:"input_message_content"` // URL of the thumbnail for the result. ThumbURL OptURI `json:"thumb_url"` // Thumbnail width. ThumbWidth OptInt `json:"thumb_width"` // Thumbnail height. ThumbHeight OptInt `json:"thumb_height"` }
Represents a venue. By default, the venue will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the venue. Ref: #/components/schemas/InlineQueryResultVenue
func (*InlineQueryResultVenue) Decode ¶
func (s *InlineQueryResultVenue) Decode(d *jx.Decoder) error
Decode decodes InlineQueryResultVenue from json.
func (*InlineQueryResultVenue) Encode ¶
func (s *InlineQueryResultVenue) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InlineQueryResultVenue) GetAddress ¶
func (s *InlineQueryResultVenue) GetAddress() string
GetAddress returns the value of Address.
func (*InlineQueryResultVenue) GetFoursquareID ¶
func (s *InlineQueryResultVenue) GetFoursquareID() OptString
GetFoursquareID returns the value of FoursquareID.
func (*InlineQueryResultVenue) GetFoursquareType ¶
func (s *InlineQueryResultVenue) GetFoursquareType() OptString
GetFoursquareType returns the value of FoursquareType.
func (*InlineQueryResultVenue) GetGooglePlaceID ¶
func (s *InlineQueryResultVenue) GetGooglePlaceID() OptString
GetGooglePlaceID returns the value of GooglePlaceID.
func (*InlineQueryResultVenue) GetGooglePlaceType ¶
func (s *InlineQueryResultVenue) GetGooglePlaceType() OptString
GetGooglePlaceType returns the value of GooglePlaceType.
func (*InlineQueryResultVenue) GetID ¶
func (s *InlineQueryResultVenue) GetID() string
GetID returns the value of ID.
func (*InlineQueryResultVenue) GetInputMessageContent ¶
func (s *InlineQueryResultVenue) GetInputMessageContent() OptInputMessageContent
GetInputMessageContent returns the value of InputMessageContent.
func (*InlineQueryResultVenue) GetLatitude ¶
func (s *InlineQueryResultVenue) GetLatitude() float64
GetLatitude returns the value of Latitude.
func (*InlineQueryResultVenue) GetLongitude ¶
func (s *InlineQueryResultVenue) GetLongitude() float64
GetLongitude returns the value of Longitude.
func (*InlineQueryResultVenue) GetReplyMarkup ¶
func (s *InlineQueryResultVenue) GetReplyMarkup() OptInlineKeyboardMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*InlineQueryResultVenue) GetThumbHeight ¶
func (s *InlineQueryResultVenue) GetThumbHeight() OptInt
GetThumbHeight returns the value of ThumbHeight.
func (*InlineQueryResultVenue) GetThumbURL ¶
func (s *InlineQueryResultVenue) GetThumbURL() OptURI
GetThumbURL returns the value of ThumbURL.
func (*InlineQueryResultVenue) GetThumbWidth ¶
func (s *InlineQueryResultVenue) GetThumbWidth() OptInt
GetThumbWidth returns the value of ThumbWidth.
func (*InlineQueryResultVenue) GetTitle ¶
func (s *InlineQueryResultVenue) GetTitle() string
GetTitle returns the value of Title.
func (*InlineQueryResultVenue) GetType ¶
func (s *InlineQueryResultVenue) GetType() string
GetType returns the value of Type.
func (*InlineQueryResultVenue) MarshalJSON ¶
func (s *InlineQueryResultVenue) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InlineQueryResultVenue) SetAddress ¶
func (s *InlineQueryResultVenue) SetAddress(val string)
SetAddress sets the value of Address.
func (*InlineQueryResultVenue) SetFake ¶
func (s *InlineQueryResultVenue) SetFake()
SetFake set fake values.
func (*InlineQueryResultVenue) SetFoursquareID ¶
func (s *InlineQueryResultVenue) SetFoursquareID(val OptString)
SetFoursquareID sets the value of FoursquareID.
func (*InlineQueryResultVenue) SetFoursquareType ¶
func (s *InlineQueryResultVenue) SetFoursquareType(val OptString)
SetFoursquareType sets the value of FoursquareType.
func (*InlineQueryResultVenue) SetGooglePlaceID ¶
func (s *InlineQueryResultVenue) SetGooglePlaceID(val OptString)
SetGooglePlaceID sets the value of GooglePlaceID.
func (*InlineQueryResultVenue) SetGooglePlaceType ¶
func (s *InlineQueryResultVenue) SetGooglePlaceType(val OptString)
SetGooglePlaceType sets the value of GooglePlaceType.
func (*InlineQueryResultVenue) SetID ¶
func (s *InlineQueryResultVenue) SetID(val string)
SetID sets the value of ID.
func (*InlineQueryResultVenue) SetInputMessageContent ¶
func (s *InlineQueryResultVenue) SetInputMessageContent(val OptInputMessageContent)
SetInputMessageContent sets the value of InputMessageContent.
func (*InlineQueryResultVenue) SetLatitude ¶
func (s *InlineQueryResultVenue) SetLatitude(val float64)
SetLatitude sets the value of Latitude.
func (*InlineQueryResultVenue) SetLongitude ¶
func (s *InlineQueryResultVenue) SetLongitude(val float64)
SetLongitude sets the value of Longitude.
func (*InlineQueryResultVenue) SetReplyMarkup ¶
func (s *InlineQueryResultVenue) SetReplyMarkup(val OptInlineKeyboardMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*InlineQueryResultVenue) SetThumbHeight ¶
func (s *InlineQueryResultVenue) SetThumbHeight(val OptInt)
SetThumbHeight sets the value of ThumbHeight.
func (*InlineQueryResultVenue) SetThumbURL ¶
func (s *InlineQueryResultVenue) SetThumbURL(val OptURI)
SetThumbURL sets the value of ThumbURL.
func (*InlineQueryResultVenue) SetThumbWidth ¶
func (s *InlineQueryResultVenue) SetThumbWidth(val OptInt)
SetThumbWidth sets the value of ThumbWidth.
func (*InlineQueryResultVenue) SetTitle ¶
func (s *InlineQueryResultVenue) SetTitle(val string)
SetTitle sets the value of Title.
func (*InlineQueryResultVenue) SetType ¶
func (s *InlineQueryResultVenue) SetType(val string)
SetType sets the value of Type.
func (*InlineQueryResultVenue) UnmarshalJSON ¶
func (s *InlineQueryResultVenue) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InlineQueryResultVenue) Validate ¶
func (s *InlineQueryResultVenue) Validate() error
type InlineQueryResultVideo ¶
type InlineQueryResultVideo struct { // Type of the result, must be video. Type string `json:"type"` // Unique identifier for this result, 1-64 bytes. ID string `json:"id"` // A valid URL for the embedded video player or video file. VideoURL url.URL `json:"video_url"` // Mime type of the content of video url, “text/html” or “video/mp4”. MimeType string `json:"mime_type"` // URL of the thumbnail (JPEG only) for the video. ThumbURL url.URL `json:"thumb_url"` // Title for the result. Title string `json:"title"` // Caption of the video to be sent, 0-1024 characters after entities parsing. Caption OptString `json:"caption"` // Mode for parsing entities in the video caption. See formatting options for more details. ParseMode OptString `json:"parse_mode"` // List of special entities that appear in the caption, which can be specified instead of parse_mode. CaptionEntities []MessageEntity `json:"caption_entities"` // Video width. VideoWidth OptInt `json:"video_width"` // Video height. VideoHeight OptInt `json:"video_height"` // Video duration in seconds. VideoDuration OptInt `json:"video_duration"` // Short description of the result. Description OptString `json:"description"` ReplyMarkup OptInlineKeyboardMarkup `json:"reply_markup"` InputMessageContent OptInputMessageContent `json:"input_message_content"` }
Represents a link to a page containing an embedded video player or a video file. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video. Ref: #/components/schemas/InlineQueryResultVideo
func (*InlineQueryResultVideo) Decode ¶
func (s *InlineQueryResultVideo) Decode(d *jx.Decoder) error
Decode decodes InlineQueryResultVideo from json.
func (*InlineQueryResultVideo) Encode ¶
func (s *InlineQueryResultVideo) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InlineQueryResultVideo) GetCaption ¶
func (s *InlineQueryResultVideo) GetCaption() OptString
GetCaption returns the value of Caption.
func (*InlineQueryResultVideo) GetCaptionEntities ¶
func (s *InlineQueryResultVideo) GetCaptionEntities() []MessageEntity
GetCaptionEntities returns the value of CaptionEntities.
func (*InlineQueryResultVideo) GetDescription ¶
func (s *InlineQueryResultVideo) GetDescription() OptString
GetDescription returns the value of Description.
func (*InlineQueryResultVideo) GetID ¶
func (s *InlineQueryResultVideo) GetID() string
GetID returns the value of ID.
func (*InlineQueryResultVideo) GetInputMessageContent ¶
func (s *InlineQueryResultVideo) GetInputMessageContent() OptInputMessageContent
GetInputMessageContent returns the value of InputMessageContent.
func (*InlineQueryResultVideo) GetMimeType ¶
func (s *InlineQueryResultVideo) GetMimeType() string
GetMimeType returns the value of MimeType.
func (*InlineQueryResultVideo) GetParseMode ¶
func (s *InlineQueryResultVideo) GetParseMode() OptString
GetParseMode returns the value of ParseMode.
func (*InlineQueryResultVideo) GetReplyMarkup ¶
func (s *InlineQueryResultVideo) GetReplyMarkup() OptInlineKeyboardMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*InlineQueryResultVideo) GetThumbURL ¶
func (s *InlineQueryResultVideo) GetThumbURL() url.URL
GetThumbURL returns the value of ThumbURL.
func (*InlineQueryResultVideo) GetTitle ¶
func (s *InlineQueryResultVideo) GetTitle() string
GetTitle returns the value of Title.
func (*InlineQueryResultVideo) GetType ¶
func (s *InlineQueryResultVideo) GetType() string
GetType returns the value of Type.
func (*InlineQueryResultVideo) GetVideoDuration ¶
func (s *InlineQueryResultVideo) GetVideoDuration() OptInt
GetVideoDuration returns the value of VideoDuration.
func (*InlineQueryResultVideo) GetVideoHeight ¶
func (s *InlineQueryResultVideo) GetVideoHeight() OptInt
GetVideoHeight returns the value of VideoHeight.
func (*InlineQueryResultVideo) GetVideoURL ¶
func (s *InlineQueryResultVideo) GetVideoURL() url.URL
GetVideoURL returns the value of VideoURL.
func (*InlineQueryResultVideo) GetVideoWidth ¶
func (s *InlineQueryResultVideo) GetVideoWidth() OptInt
GetVideoWidth returns the value of VideoWidth.
func (*InlineQueryResultVideo) MarshalJSON ¶
func (s *InlineQueryResultVideo) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InlineQueryResultVideo) SetCaption ¶
func (s *InlineQueryResultVideo) SetCaption(val OptString)
SetCaption sets the value of Caption.
func (*InlineQueryResultVideo) SetCaptionEntities ¶
func (s *InlineQueryResultVideo) SetCaptionEntities(val []MessageEntity)
SetCaptionEntities sets the value of CaptionEntities.
func (*InlineQueryResultVideo) SetDescription ¶
func (s *InlineQueryResultVideo) SetDescription(val OptString)
SetDescription sets the value of Description.
func (*InlineQueryResultVideo) SetFake ¶
func (s *InlineQueryResultVideo) SetFake()
SetFake set fake values.
func (*InlineQueryResultVideo) SetID ¶
func (s *InlineQueryResultVideo) SetID(val string)
SetID sets the value of ID.
func (*InlineQueryResultVideo) SetInputMessageContent ¶
func (s *InlineQueryResultVideo) SetInputMessageContent(val OptInputMessageContent)
SetInputMessageContent sets the value of InputMessageContent.
func (*InlineQueryResultVideo) SetMimeType ¶
func (s *InlineQueryResultVideo) SetMimeType(val string)
SetMimeType sets the value of MimeType.
func (*InlineQueryResultVideo) SetParseMode ¶
func (s *InlineQueryResultVideo) SetParseMode(val OptString)
SetParseMode sets the value of ParseMode.
func (*InlineQueryResultVideo) SetReplyMarkup ¶
func (s *InlineQueryResultVideo) SetReplyMarkup(val OptInlineKeyboardMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*InlineQueryResultVideo) SetThumbURL ¶
func (s *InlineQueryResultVideo) SetThumbURL(val url.URL)
SetThumbURL sets the value of ThumbURL.
func (*InlineQueryResultVideo) SetTitle ¶
func (s *InlineQueryResultVideo) SetTitle(val string)
SetTitle sets the value of Title.
func (*InlineQueryResultVideo) SetType ¶
func (s *InlineQueryResultVideo) SetType(val string)
SetType sets the value of Type.
func (*InlineQueryResultVideo) SetVideoDuration ¶
func (s *InlineQueryResultVideo) SetVideoDuration(val OptInt)
SetVideoDuration sets the value of VideoDuration.
func (*InlineQueryResultVideo) SetVideoHeight ¶
func (s *InlineQueryResultVideo) SetVideoHeight(val OptInt)
SetVideoHeight sets the value of VideoHeight.
func (*InlineQueryResultVideo) SetVideoURL ¶
func (s *InlineQueryResultVideo) SetVideoURL(val url.URL)
SetVideoURL sets the value of VideoURL.
func (*InlineQueryResultVideo) SetVideoWidth ¶
func (s *InlineQueryResultVideo) SetVideoWidth(val OptInt)
SetVideoWidth sets the value of VideoWidth.
func (*InlineQueryResultVideo) UnmarshalJSON ¶
func (s *InlineQueryResultVideo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InlineQueryResultVideo) Validate ¶
func (s *InlineQueryResultVideo) Validate() error
type InlineQueryResultVoice ¶
type InlineQueryResultVoice struct { // Type of the result, must be voice. Type string `json:"type"` // Unique identifier for this result, 1-64 bytes. ID string `json:"id"` // A valid URL for the voice recording. VoiceURL url.URL `json:"voice_url"` // Recording title. Title string `json:"title"` // Caption, 0-1024 characters after entities parsing. Caption OptString `json:"caption"` // Mode for parsing entities in the voice message caption. See formatting options for more details. ParseMode OptString `json:"parse_mode"` // List of special entities that appear in the caption, which can be specified instead of parse_mode. CaptionEntities []MessageEntity `json:"caption_entities"` // Recording duration in seconds. VoiceDuration OptInt `json:"voice_duration"` ReplyMarkup OptInlineKeyboardMarkup `json:"reply_markup"` InputMessageContent OptInputMessageContent `json:"input_message_content"` }
Represents a link to a voice recording in an .OGG container encoded with OPUS. By default, this voice recording will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the the voice message. Ref: #/components/schemas/InlineQueryResultVoice
func (*InlineQueryResultVoice) Decode ¶
func (s *InlineQueryResultVoice) Decode(d *jx.Decoder) error
Decode decodes InlineQueryResultVoice from json.
func (*InlineQueryResultVoice) Encode ¶
func (s *InlineQueryResultVoice) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InlineQueryResultVoice) GetCaption ¶
func (s *InlineQueryResultVoice) GetCaption() OptString
GetCaption returns the value of Caption.
func (*InlineQueryResultVoice) GetCaptionEntities ¶
func (s *InlineQueryResultVoice) GetCaptionEntities() []MessageEntity
GetCaptionEntities returns the value of CaptionEntities.
func (*InlineQueryResultVoice) GetID ¶
func (s *InlineQueryResultVoice) GetID() string
GetID returns the value of ID.
func (*InlineQueryResultVoice) GetInputMessageContent ¶
func (s *InlineQueryResultVoice) GetInputMessageContent() OptInputMessageContent
GetInputMessageContent returns the value of InputMessageContent.
func (*InlineQueryResultVoice) GetParseMode ¶
func (s *InlineQueryResultVoice) GetParseMode() OptString
GetParseMode returns the value of ParseMode.
func (*InlineQueryResultVoice) GetReplyMarkup ¶
func (s *InlineQueryResultVoice) GetReplyMarkup() OptInlineKeyboardMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*InlineQueryResultVoice) GetTitle ¶
func (s *InlineQueryResultVoice) GetTitle() string
GetTitle returns the value of Title.
func (*InlineQueryResultVoice) GetType ¶
func (s *InlineQueryResultVoice) GetType() string
GetType returns the value of Type.
func (*InlineQueryResultVoice) GetVoiceDuration ¶
func (s *InlineQueryResultVoice) GetVoiceDuration() OptInt
GetVoiceDuration returns the value of VoiceDuration.
func (*InlineQueryResultVoice) GetVoiceURL ¶
func (s *InlineQueryResultVoice) GetVoiceURL() url.URL
GetVoiceURL returns the value of VoiceURL.
func (*InlineQueryResultVoice) MarshalJSON ¶
func (s *InlineQueryResultVoice) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InlineQueryResultVoice) SetCaption ¶
func (s *InlineQueryResultVoice) SetCaption(val OptString)
SetCaption sets the value of Caption.
func (*InlineQueryResultVoice) SetCaptionEntities ¶
func (s *InlineQueryResultVoice) SetCaptionEntities(val []MessageEntity)
SetCaptionEntities sets the value of CaptionEntities.
func (*InlineQueryResultVoice) SetFake ¶
func (s *InlineQueryResultVoice) SetFake()
SetFake set fake values.
func (*InlineQueryResultVoice) SetID ¶
func (s *InlineQueryResultVoice) SetID(val string)
SetID sets the value of ID.
func (*InlineQueryResultVoice) SetInputMessageContent ¶
func (s *InlineQueryResultVoice) SetInputMessageContent(val OptInputMessageContent)
SetInputMessageContent sets the value of InputMessageContent.
func (*InlineQueryResultVoice) SetParseMode ¶
func (s *InlineQueryResultVoice) SetParseMode(val OptString)
SetParseMode sets the value of ParseMode.
func (*InlineQueryResultVoice) SetReplyMarkup ¶
func (s *InlineQueryResultVoice) SetReplyMarkup(val OptInlineKeyboardMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*InlineQueryResultVoice) SetTitle ¶
func (s *InlineQueryResultVoice) SetTitle(val string)
SetTitle sets the value of Title.
func (*InlineQueryResultVoice) SetType ¶
func (s *InlineQueryResultVoice) SetType(val string)
SetType sets the value of Type.
func (*InlineQueryResultVoice) SetVoiceDuration ¶
func (s *InlineQueryResultVoice) SetVoiceDuration(val OptInt)
SetVoiceDuration sets the value of VoiceDuration.
func (*InlineQueryResultVoice) SetVoiceURL ¶
func (s *InlineQueryResultVoice) SetVoiceURL(val url.URL)
SetVoiceURL sets the value of VoiceURL.
func (*InlineQueryResultVoice) UnmarshalJSON ¶
func (s *InlineQueryResultVoice) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InlineQueryResultVoice) Validate ¶
func (s *InlineQueryResultVoice) Validate() error
type InputContactMessageContent ¶
type InputContactMessageContent struct { // Contact's phone number. PhoneNumber string `json:"phone_number"` // Contact's first name. FirstName string `json:"first_name"` // Contact's last name. LastName OptString `json:"last_name"` // Additional data about the contact in the form of a vCard, 0-2048 bytes. Vcard OptString `json:"vcard"` }
Represents the content of a contact message to be sent as the result of an inline query. Ref: #/components/schemas/InputContactMessageContent
func (*InputContactMessageContent) Decode ¶
func (s *InputContactMessageContent) Decode(d *jx.Decoder) error
Decode decodes InputContactMessageContent from json.
func (*InputContactMessageContent) Encode ¶
func (s *InputContactMessageContent) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InputContactMessageContent) GetFirstName ¶
func (s *InputContactMessageContent) GetFirstName() string
GetFirstName returns the value of FirstName.
func (*InputContactMessageContent) GetLastName ¶
func (s *InputContactMessageContent) GetLastName() OptString
GetLastName returns the value of LastName.
func (*InputContactMessageContent) GetPhoneNumber ¶
func (s *InputContactMessageContent) GetPhoneNumber() string
GetPhoneNumber returns the value of PhoneNumber.
func (*InputContactMessageContent) GetVcard ¶
func (s *InputContactMessageContent) GetVcard() OptString
GetVcard returns the value of Vcard.
func (*InputContactMessageContent) MarshalJSON ¶
func (s *InputContactMessageContent) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InputContactMessageContent) SetFake ¶
func (s *InputContactMessageContent) SetFake()
SetFake set fake values.
func (*InputContactMessageContent) SetFirstName ¶
func (s *InputContactMessageContent) SetFirstName(val string)
SetFirstName sets the value of FirstName.
func (*InputContactMessageContent) SetLastName ¶
func (s *InputContactMessageContent) SetLastName(val OptString)
SetLastName sets the value of LastName.
func (*InputContactMessageContent) SetPhoneNumber ¶
func (s *InputContactMessageContent) SetPhoneNumber(val string)
SetPhoneNumber sets the value of PhoneNumber.
func (*InputContactMessageContent) SetVcard ¶
func (s *InputContactMessageContent) SetVcard(val OptString)
SetVcard sets the value of Vcard.
func (*InputContactMessageContent) UnmarshalJSON ¶
func (s *InputContactMessageContent) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InputContactMessageContent) Validate ¶
func (s *InputContactMessageContent) Validate() error
type InputInvoiceMessageContent ¶
type InputInvoiceMessageContent struct { // Product name, 1-32 characters. Title string `json:"title"` // Product description, 1-255 characters. Description string `json:"description"` // Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your // internal processes. Payload string `json:"payload"` // Payment provider token, obtained via Botfather. ProviderToken string `json:"provider_token"` // Three-letter ISO 4217 currency code, see more on currencies. Currency string `json:"currency"` // Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery // cost, delivery tax, bonus, etc.). Prices []LabeledPrice `json:"prices"` // The maximum accepted amount for tips in the smallest units of the currency (integer, not // float/double). For example, for a maximum tip of US$ 1.45 pass max_tip_amount = 145. See the exp // parameter in currencies.json, it shows the number of digits past the decimal point for each // currency (2 for the majority of currencies). Defaults to 0. MaxTipAmount OptInt `json:"max_tip_amount"` // A JSON-serialized array of suggested amounts of tip in the smallest units of the currency (integer, // not float/double). At most 4 suggested tip amounts can be specified. The suggested tip amounts // must be positive, passed in a strictly increased order and must not exceed max_tip_amount. SuggestedTipAmounts []int `json:"suggested_tip_amounts"` // A JSON-serialized object for data about the invoice, which will be shared with the payment // provider. A detailed description of the required fields should be provided by the payment provider. ProviderData OptString `json:"provider_data"` // URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a // service. People like it better when they see what they are paying for. PhotoURL OptURI `json:"photo_url"` // Photo size. PhotoSize OptInt `json:"photo_size"` // Photo width. PhotoWidth OptInt `json:"photo_width"` // Photo height. PhotoHeight OptInt `json:"photo_height"` // Pass True, if you require the user's full name to complete the order. NeedName OptBool `json:"need_name"` // Pass True, if you require the user's phone number to complete the order. NeedPhoneNumber OptBool `json:"need_phone_number"` // Pass True, if you require the user's email address to complete the order. NeedEmail OptBool `json:"need_email"` // Pass True, if you require the user's shipping address to complete the order. NeedShippingAddress OptBool `json:"need_shipping_address"` // Pass True, if user's phone number should be sent to provider. SendPhoneNumberToProvider OptBool `json:"send_phone_number_to_provider"` // Pass True, if user's email address should be sent to provider. SendEmailToProvider OptBool `json:"send_email_to_provider"` // Pass True, if the final price depends on the shipping method. IsFlexible OptBool `json:"is_flexible"` }
Represents the content of an invoice message to be sent as the result of an inline query. Ref: #/components/schemas/InputInvoiceMessageContent
func (*InputInvoiceMessageContent) Decode ¶
func (s *InputInvoiceMessageContent) Decode(d *jx.Decoder) error
Decode decodes InputInvoiceMessageContent from json.
func (*InputInvoiceMessageContent) Encode ¶
func (s *InputInvoiceMessageContent) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InputInvoiceMessageContent) GetCurrency ¶
func (s *InputInvoiceMessageContent) GetCurrency() string
GetCurrency returns the value of Currency.
func (*InputInvoiceMessageContent) GetDescription ¶
func (s *InputInvoiceMessageContent) GetDescription() string
GetDescription returns the value of Description.
func (*InputInvoiceMessageContent) GetIsFlexible ¶
func (s *InputInvoiceMessageContent) GetIsFlexible() OptBool
GetIsFlexible returns the value of IsFlexible.
func (*InputInvoiceMessageContent) GetMaxTipAmount ¶
func (s *InputInvoiceMessageContent) GetMaxTipAmount() OptInt
GetMaxTipAmount returns the value of MaxTipAmount.
func (*InputInvoiceMessageContent) GetNeedEmail ¶
func (s *InputInvoiceMessageContent) GetNeedEmail() OptBool
GetNeedEmail returns the value of NeedEmail.
func (*InputInvoiceMessageContent) GetNeedName ¶
func (s *InputInvoiceMessageContent) GetNeedName() OptBool
GetNeedName returns the value of NeedName.
func (*InputInvoiceMessageContent) GetNeedPhoneNumber ¶
func (s *InputInvoiceMessageContent) GetNeedPhoneNumber() OptBool
GetNeedPhoneNumber returns the value of NeedPhoneNumber.
func (*InputInvoiceMessageContent) GetNeedShippingAddress ¶
func (s *InputInvoiceMessageContent) GetNeedShippingAddress() OptBool
GetNeedShippingAddress returns the value of NeedShippingAddress.
func (*InputInvoiceMessageContent) GetPayload ¶
func (s *InputInvoiceMessageContent) GetPayload() string
GetPayload returns the value of Payload.
func (*InputInvoiceMessageContent) GetPhotoHeight ¶
func (s *InputInvoiceMessageContent) GetPhotoHeight() OptInt
GetPhotoHeight returns the value of PhotoHeight.
func (*InputInvoiceMessageContent) GetPhotoSize ¶
func (s *InputInvoiceMessageContent) GetPhotoSize() OptInt
GetPhotoSize returns the value of PhotoSize.
func (*InputInvoiceMessageContent) GetPhotoURL ¶
func (s *InputInvoiceMessageContent) GetPhotoURL() OptURI
GetPhotoURL returns the value of PhotoURL.
func (*InputInvoiceMessageContent) GetPhotoWidth ¶
func (s *InputInvoiceMessageContent) GetPhotoWidth() OptInt
GetPhotoWidth returns the value of PhotoWidth.
func (*InputInvoiceMessageContent) GetPrices ¶
func (s *InputInvoiceMessageContent) GetPrices() []LabeledPrice
GetPrices returns the value of Prices.
func (*InputInvoiceMessageContent) GetProviderData ¶
func (s *InputInvoiceMessageContent) GetProviderData() OptString
GetProviderData returns the value of ProviderData.
func (*InputInvoiceMessageContent) GetProviderToken ¶
func (s *InputInvoiceMessageContent) GetProviderToken() string
GetProviderToken returns the value of ProviderToken.
func (*InputInvoiceMessageContent) GetSendEmailToProvider ¶
func (s *InputInvoiceMessageContent) GetSendEmailToProvider() OptBool
GetSendEmailToProvider returns the value of SendEmailToProvider.
func (*InputInvoiceMessageContent) GetSendPhoneNumberToProvider ¶
func (s *InputInvoiceMessageContent) GetSendPhoneNumberToProvider() OptBool
GetSendPhoneNumberToProvider returns the value of SendPhoneNumberToProvider.
func (*InputInvoiceMessageContent) GetSuggestedTipAmounts ¶
func (s *InputInvoiceMessageContent) GetSuggestedTipAmounts() []int
GetSuggestedTipAmounts returns the value of SuggestedTipAmounts.
func (*InputInvoiceMessageContent) GetTitle ¶
func (s *InputInvoiceMessageContent) GetTitle() string
GetTitle returns the value of Title.
func (*InputInvoiceMessageContent) MarshalJSON ¶
func (s *InputInvoiceMessageContent) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InputInvoiceMessageContent) SetCurrency ¶
func (s *InputInvoiceMessageContent) SetCurrency(val string)
SetCurrency sets the value of Currency.
func (*InputInvoiceMessageContent) SetDescription ¶
func (s *InputInvoiceMessageContent) SetDescription(val string)
SetDescription sets the value of Description.
func (*InputInvoiceMessageContent) SetFake ¶
func (s *InputInvoiceMessageContent) SetFake()
SetFake set fake values.
func (*InputInvoiceMessageContent) SetIsFlexible ¶
func (s *InputInvoiceMessageContent) SetIsFlexible(val OptBool)
SetIsFlexible sets the value of IsFlexible.
func (*InputInvoiceMessageContent) SetMaxTipAmount ¶
func (s *InputInvoiceMessageContent) SetMaxTipAmount(val OptInt)
SetMaxTipAmount sets the value of MaxTipAmount.
func (*InputInvoiceMessageContent) SetNeedEmail ¶
func (s *InputInvoiceMessageContent) SetNeedEmail(val OptBool)
SetNeedEmail sets the value of NeedEmail.
func (*InputInvoiceMessageContent) SetNeedName ¶
func (s *InputInvoiceMessageContent) SetNeedName(val OptBool)
SetNeedName sets the value of NeedName.
func (*InputInvoiceMessageContent) SetNeedPhoneNumber ¶
func (s *InputInvoiceMessageContent) SetNeedPhoneNumber(val OptBool)
SetNeedPhoneNumber sets the value of NeedPhoneNumber.
func (*InputInvoiceMessageContent) SetNeedShippingAddress ¶
func (s *InputInvoiceMessageContent) SetNeedShippingAddress(val OptBool)
SetNeedShippingAddress sets the value of NeedShippingAddress.
func (*InputInvoiceMessageContent) SetPayload ¶
func (s *InputInvoiceMessageContent) SetPayload(val string)
SetPayload sets the value of Payload.
func (*InputInvoiceMessageContent) SetPhotoHeight ¶
func (s *InputInvoiceMessageContent) SetPhotoHeight(val OptInt)
SetPhotoHeight sets the value of PhotoHeight.
func (*InputInvoiceMessageContent) SetPhotoSize ¶
func (s *InputInvoiceMessageContent) SetPhotoSize(val OptInt)
SetPhotoSize sets the value of PhotoSize.
func (*InputInvoiceMessageContent) SetPhotoURL ¶
func (s *InputInvoiceMessageContent) SetPhotoURL(val OptURI)
SetPhotoURL sets the value of PhotoURL.
func (*InputInvoiceMessageContent) SetPhotoWidth ¶
func (s *InputInvoiceMessageContent) SetPhotoWidth(val OptInt)
SetPhotoWidth sets the value of PhotoWidth.
func (*InputInvoiceMessageContent) SetPrices ¶
func (s *InputInvoiceMessageContent) SetPrices(val []LabeledPrice)
SetPrices sets the value of Prices.
func (*InputInvoiceMessageContent) SetProviderData ¶
func (s *InputInvoiceMessageContent) SetProviderData(val OptString)
SetProviderData sets the value of ProviderData.
func (*InputInvoiceMessageContent) SetProviderToken ¶
func (s *InputInvoiceMessageContent) SetProviderToken(val string)
SetProviderToken sets the value of ProviderToken.
func (*InputInvoiceMessageContent) SetSendEmailToProvider ¶
func (s *InputInvoiceMessageContent) SetSendEmailToProvider(val OptBool)
SetSendEmailToProvider sets the value of SendEmailToProvider.
func (*InputInvoiceMessageContent) SetSendPhoneNumberToProvider ¶
func (s *InputInvoiceMessageContent) SetSendPhoneNumberToProvider(val OptBool)
SetSendPhoneNumberToProvider sets the value of SendPhoneNumberToProvider.
func (*InputInvoiceMessageContent) SetSuggestedTipAmounts ¶
func (s *InputInvoiceMessageContent) SetSuggestedTipAmounts(val []int)
SetSuggestedTipAmounts sets the value of SuggestedTipAmounts.
func (*InputInvoiceMessageContent) SetTitle ¶
func (s *InputInvoiceMessageContent) SetTitle(val string)
SetTitle sets the value of Title.
func (*InputInvoiceMessageContent) UnmarshalJSON ¶
func (s *InputInvoiceMessageContent) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InputInvoiceMessageContent) Validate ¶
func (s *InputInvoiceMessageContent) Validate() error
type InputLocationMessageContent ¶
type InputLocationMessageContent struct { // Latitude of the location in degrees. Latitude float64 `json:"latitude"` // Longitude of the location in degrees. Longitude float64 `json:"longitude"` // The radius of uncertainty for the location, measured in meters; 0-1500. HorizontalAccuracy OptFloat64 `json:"horizontal_accuracy"` // Period in seconds for which the location can be updated, should be between 60 and 86400. LivePeriod OptInt `json:"live_period"` // For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 // if specified. Heading OptInt `json:"heading"` // For live locations, a maximum distance for proximity alerts about approaching another chat member, // in meters. Must be between 1 and 100000 if specified. ProximityAlertRadius OptInt `json:"proximity_alert_radius"` }
Represents the content of a location message to be sent as the result of an inline query. Ref: #/components/schemas/InputLocationMessageContent
func (*InputLocationMessageContent) Decode ¶
func (s *InputLocationMessageContent) Decode(d *jx.Decoder) error
Decode decodes InputLocationMessageContent from json.
func (*InputLocationMessageContent) Encode ¶
func (s *InputLocationMessageContent) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InputLocationMessageContent) GetHeading ¶
func (s *InputLocationMessageContent) GetHeading() OptInt
GetHeading returns the value of Heading.
func (*InputLocationMessageContent) GetHorizontalAccuracy ¶
func (s *InputLocationMessageContent) GetHorizontalAccuracy() OptFloat64
GetHorizontalAccuracy returns the value of HorizontalAccuracy.
func (*InputLocationMessageContent) GetLatitude ¶
func (s *InputLocationMessageContent) GetLatitude() float64
GetLatitude returns the value of Latitude.
func (*InputLocationMessageContent) GetLivePeriod ¶
func (s *InputLocationMessageContent) GetLivePeriod() OptInt
GetLivePeriod returns the value of LivePeriod.
func (*InputLocationMessageContent) GetLongitude ¶
func (s *InputLocationMessageContent) GetLongitude() float64
GetLongitude returns the value of Longitude.
func (*InputLocationMessageContent) GetProximityAlertRadius ¶
func (s *InputLocationMessageContent) GetProximityAlertRadius() OptInt
GetProximityAlertRadius returns the value of ProximityAlertRadius.
func (*InputLocationMessageContent) MarshalJSON ¶
func (s *InputLocationMessageContent) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InputLocationMessageContent) SetFake ¶
func (s *InputLocationMessageContent) SetFake()
SetFake set fake values.
func (*InputLocationMessageContent) SetHeading ¶
func (s *InputLocationMessageContent) SetHeading(val OptInt)
SetHeading sets the value of Heading.
func (*InputLocationMessageContent) SetHorizontalAccuracy ¶
func (s *InputLocationMessageContent) SetHorizontalAccuracy(val OptFloat64)
SetHorizontalAccuracy sets the value of HorizontalAccuracy.
func (*InputLocationMessageContent) SetLatitude ¶
func (s *InputLocationMessageContent) SetLatitude(val float64)
SetLatitude sets the value of Latitude.
func (*InputLocationMessageContent) SetLivePeriod ¶
func (s *InputLocationMessageContent) SetLivePeriod(val OptInt)
SetLivePeriod sets the value of LivePeriod.
func (*InputLocationMessageContent) SetLongitude ¶
func (s *InputLocationMessageContent) SetLongitude(val float64)
SetLongitude sets the value of Longitude.
func (*InputLocationMessageContent) SetProximityAlertRadius ¶
func (s *InputLocationMessageContent) SetProximityAlertRadius(val OptInt)
SetProximityAlertRadius sets the value of ProximityAlertRadius.
func (*InputLocationMessageContent) UnmarshalJSON ¶
func (s *InputLocationMessageContent) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InputLocationMessageContent) Validate ¶
func (s *InputLocationMessageContent) Validate() error
type InputMedia ¶
type InputMedia struct { Type InputMediaType // switch on this field InputMediaAnimation InputMediaAnimation InputMediaDocument InputMediaDocument InputMediaAudio InputMediaAudio InputMediaPhoto InputMediaPhoto InputMediaVideo InputMediaVideo }
This object represents the content of a media message to be sent. Ref: #/components/schemas/InputMedia InputMedia represents sum type.
func NewInputMediaAnimationInputMedia ¶
func NewInputMediaAnimationInputMedia(v InputMediaAnimation) InputMedia
NewInputMediaAnimationInputMedia returns new InputMedia from InputMediaAnimation.
func NewInputMediaAudioInputMedia ¶
func NewInputMediaAudioInputMedia(v InputMediaAudio) InputMedia
NewInputMediaAudioInputMedia returns new InputMedia from InputMediaAudio.
func NewInputMediaDocumentInputMedia ¶
func NewInputMediaDocumentInputMedia(v InputMediaDocument) InputMedia
NewInputMediaDocumentInputMedia returns new InputMedia from InputMediaDocument.
func NewInputMediaPhotoInputMedia ¶
func NewInputMediaPhotoInputMedia(v InputMediaPhoto) InputMedia
NewInputMediaPhotoInputMedia returns new InputMedia from InputMediaPhoto.
func NewInputMediaVideoInputMedia ¶
func NewInputMediaVideoInputMedia(v InputMediaVideo) InputMedia
NewInputMediaVideoInputMedia returns new InputMedia from InputMediaVideo.
func (*InputMedia) Decode ¶
func (s *InputMedia) Decode(d *jx.Decoder) error
Decode decodes InputMedia from json.
func (InputMedia) Encode ¶
func (s InputMedia) Encode(e *jx.Encoder)
Encode encodes InputMedia as json.
func (InputMedia) GetInputMediaAnimation ¶
func (s InputMedia) GetInputMediaAnimation() (v InputMediaAnimation, ok bool)
GetInputMediaAnimation returns InputMediaAnimation and true boolean if InputMedia is InputMediaAnimation.
func (InputMedia) GetInputMediaAudio ¶
func (s InputMedia) GetInputMediaAudio() (v InputMediaAudio, ok bool)
GetInputMediaAudio returns InputMediaAudio and true boolean if InputMedia is InputMediaAudio.
func (InputMedia) GetInputMediaDocument ¶
func (s InputMedia) GetInputMediaDocument() (v InputMediaDocument, ok bool)
GetInputMediaDocument returns InputMediaDocument and true boolean if InputMedia is InputMediaDocument.
func (InputMedia) GetInputMediaPhoto ¶
func (s InputMedia) GetInputMediaPhoto() (v InputMediaPhoto, ok bool)
GetInputMediaPhoto returns InputMediaPhoto and true boolean if InputMedia is InputMediaPhoto.
func (InputMedia) GetInputMediaVideo ¶
func (s InputMedia) GetInputMediaVideo() (v InputMediaVideo, ok bool)
GetInputMediaVideo returns InputMediaVideo and true boolean if InputMedia is InputMediaVideo.
func (InputMedia) IsInputMediaAnimation ¶
func (s InputMedia) IsInputMediaAnimation() bool
IsInputMediaAnimation reports whether InputMedia is InputMediaAnimation.
func (InputMedia) IsInputMediaAudio ¶
func (s InputMedia) IsInputMediaAudio() bool
IsInputMediaAudio reports whether InputMedia is InputMediaAudio.
func (InputMedia) IsInputMediaDocument ¶
func (s InputMedia) IsInputMediaDocument() bool
IsInputMediaDocument reports whether InputMedia is InputMediaDocument.
func (InputMedia) IsInputMediaPhoto ¶
func (s InputMedia) IsInputMediaPhoto() bool
IsInputMediaPhoto reports whether InputMedia is InputMediaPhoto.
func (InputMedia) IsInputMediaVideo ¶
func (s InputMedia) IsInputMediaVideo() bool
IsInputMediaVideo reports whether InputMedia is InputMediaVideo.
func (InputMedia) MarshalJSON ¶
func (s InputMedia) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InputMedia) SetInputMediaAnimation ¶
func (s *InputMedia) SetInputMediaAnimation(v InputMediaAnimation)
SetInputMediaAnimation sets InputMedia to InputMediaAnimation.
func (*InputMedia) SetInputMediaAudio ¶
func (s *InputMedia) SetInputMediaAudio(v InputMediaAudio)
SetInputMediaAudio sets InputMedia to InputMediaAudio.
func (*InputMedia) SetInputMediaDocument ¶
func (s *InputMedia) SetInputMediaDocument(v InputMediaDocument)
SetInputMediaDocument sets InputMedia to InputMediaDocument.
func (*InputMedia) SetInputMediaPhoto ¶
func (s *InputMedia) SetInputMediaPhoto(v InputMediaPhoto)
SetInputMediaPhoto sets InputMedia to InputMediaPhoto.
func (*InputMedia) SetInputMediaVideo ¶
func (s *InputMedia) SetInputMediaVideo(v InputMediaVideo)
SetInputMediaVideo sets InputMedia to InputMediaVideo.
func (*InputMedia) UnmarshalJSON ¶
func (s *InputMedia) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (InputMedia) Validate ¶
func (s InputMedia) Validate() error
type InputMediaAnimation ¶
type InputMediaAnimation struct { // Type of the result, must be animation. Type string `json:"type"` // File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), // pass an HTTP URL for Telegram to get a file from the Internet, or pass // “attach://<file_attach_name>” to upload a new one using multipart/form-data under // <file_attach_name> name. More info on Sending Files ». Media string `json:"media"` // Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported // server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's // width and height should not exceed 320. Ignored if the file is not uploaded using // multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can // pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data // under <file_attach_name>. More info on Sending Files ». Thumb OptString `json:"thumb"` // Caption of the animation to be sent, 0-1024 characters after entities parsing. Caption OptString `json:"caption"` // Mode for parsing entities in the animation caption. See formatting options for more details. ParseMode OptString `json:"parse_mode"` // List of special entities that appear in the caption, which can be specified instead of parse_mode. CaptionEntities []MessageEntity `json:"caption_entities"` // Animation width. Width OptInt `json:"width"` // Animation height. Height OptInt `json:"height"` // Animation duration in seconds. Duration OptInt `json:"duration"` }
Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent. Ref: #/components/schemas/InputMediaAnimation
func (*InputMediaAnimation) Decode ¶
func (s *InputMediaAnimation) Decode(d *jx.Decoder) error
Decode decodes InputMediaAnimation from json.
func (*InputMediaAnimation) Encode ¶
func (s *InputMediaAnimation) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InputMediaAnimation) GetCaption ¶
func (s *InputMediaAnimation) GetCaption() OptString
GetCaption returns the value of Caption.
func (*InputMediaAnimation) GetCaptionEntities ¶
func (s *InputMediaAnimation) GetCaptionEntities() []MessageEntity
GetCaptionEntities returns the value of CaptionEntities.
func (*InputMediaAnimation) GetDuration ¶
func (s *InputMediaAnimation) GetDuration() OptInt
GetDuration returns the value of Duration.
func (*InputMediaAnimation) GetHeight ¶
func (s *InputMediaAnimation) GetHeight() OptInt
GetHeight returns the value of Height.
func (*InputMediaAnimation) GetMedia ¶
func (s *InputMediaAnimation) GetMedia() string
GetMedia returns the value of Media.
func (*InputMediaAnimation) GetParseMode ¶
func (s *InputMediaAnimation) GetParseMode() OptString
GetParseMode returns the value of ParseMode.
func (*InputMediaAnimation) GetThumb ¶
func (s *InputMediaAnimation) GetThumb() OptString
GetThumb returns the value of Thumb.
func (*InputMediaAnimation) GetType ¶
func (s *InputMediaAnimation) GetType() string
GetType returns the value of Type.
func (*InputMediaAnimation) GetWidth ¶
func (s *InputMediaAnimation) GetWidth() OptInt
GetWidth returns the value of Width.
func (*InputMediaAnimation) MarshalJSON ¶
func (s *InputMediaAnimation) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InputMediaAnimation) SetCaption ¶
func (s *InputMediaAnimation) SetCaption(val OptString)
SetCaption sets the value of Caption.
func (*InputMediaAnimation) SetCaptionEntities ¶
func (s *InputMediaAnimation) SetCaptionEntities(val []MessageEntity)
SetCaptionEntities sets the value of CaptionEntities.
func (*InputMediaAnimation) SetDuration ¶
func (s *InputMediaAnimation) SetDuration(val OptInt)
SetDuration sets the value of Duration.
func (*InputMediaAnimation) SetFake ¶
func (s *InputMediaAnimation) SetFake()
SetFake set fake values.
func (*InputMediaAnimation) SetHeight ¶
func (s *InputMediaAnimation) SetHeight(val OptInt)
SetHeight sets the value of Height.
func (*InputMediaAnimation) SetMedia ¶
func (s *InputMediaAnimation) SetMedia(val string)
SetMedia sets the value of Media.
func (*InputMediaAnimation) SetParseMode ¶
func (s *InputMediaAnimation) SetParseMode(val OptString)
SetParseMode sets the value of ParseMode.
func (*InputMediaAnimation) SetThumb ¶
func (s *InputMediaAnimation) SetThumb(val OptString)
SetThumb sets the value of Thumb.
func (*InputMediaAnimation) SetType ¶
func (s *InputMediaAnimation) SetType(val string)
SetType sets the value of Type.
func (*InputMediaAnimation) SetWidth ¶
func (s *InputMediaAnimation) SetWidth(val OptInt)
SetWidth sets the value of Width.
func (*InputMediaAnimation) UnmarshalJSON ¶
func (s *InputMediaAnimation) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InputMediaAnimation) Validate ¶
func (s *InputMediaAnimation) Validate() error
type InputMediaAudio ¶
type InputMediaAudio struct { // Type of the result, must be audio. Type string `json:"type"` // File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), // pass an HTTP URL for Telegram to get a file from the Internet, or pass // “attach://<file_attach_name>” to upload a new one using multipart/form-data under // <file_attach_name> name. More info on Sending Files ». Media string `json:"media"` // Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported // server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's // width and height should not exceed 320. Ignored if the file is not uploaded using // multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can // pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data // under <file_attach_name>. More info on Sending Files ». Thumb OptString `json:"thumb"` // Caption of the audio to be sent, 0-1024 characters after entities parsing. Caption OptString `json:"caption"` // Mode for parsing entities in the audio caption. See formatting options for more details. ParseMode OptString `json:"parse_mode"` // List of special entities that appear in the caption, which can be specified instead of parse_mode. CaptionEntities []MessageEntity `json:"caption_entities"` // Duration of the audio in seconds. Duration OptInt `json:"duration"` // Performer of the audio. Performer OptString `json:"performer"` // Title of the audio. Title OptString `json:"title"` }
Represents an audio file to be treated as music to be sent. Ref: #/components/schemas/InputMediaAudio
func (*InputMediaAudio) Decode ¶
func (s *InputMediaAudio) Decode(d *jx.Decoder) error
Decode decodes InputMediaAudio from json.
func (*InputMediaAudio) Encode ¶
func (s *InputMediaAudio) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InputMediaAudio) GetCaption ¶
func (s *InputMediaAudio) GetCaption() OptString
GetCaption returns the value of Caption.
func (*InputMediaAudio) GetCaptionEntities ¶
func (s *InputMediaAudio) GetCaptionEntities() []MessageEntity
GetCaptionEntities returns the value of CaptionEntities.
func (*InputMediaAudio) GetDuration ¶
func (s *InputMediaAudio) GetDuration() OptInt
GetDuration returns the value of Duration.
func (*InputMediaAudio) GetMedia ¶
func (s *InputMediaAudio) GetMedia() string
GetMedia returns the value of Media.
func (*InputMediaAudio) GetParseMode ¶
func (s *InputMediaAudio) GetParseMode() OptString
GetParseMode returns the value of ParseMode.
func (*InputMediaAudio) GetPerformer ¶
func (s *InputMediaAudio) GetPerformer() OptString
GetPerformer returns the value of Performer.
func (*InputMediaAudio) GetThumb ¶
func (s *InputMediaAudio) GetThumb() OptString
GetThumb returns the value of Thumb.
func (*InputMediaAudio) GetTitle ¶
func (s *InputMediaAudio) GetTitle() OptString
GetTitle returns the value of Title.
func (*InputMediaAudio) GetType ¶
func (s *InputMediaAudio) GetType() string
GetType returns the value of Type.
func (*InputMediaAudio) MarshalJSON ¶
func (s *InputMediaAudio) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InputMediaAudio) SetCaption ¶
func (s *InputMediaAudio) SetCaption(val OptString)
SetCaption sets the value of Caption.
func (*InputMediaAudio) SetCaptionEntities ¶
func (s *InputMediaAudio) SetCaptionEntities(val []MessageEntity)
SetCaptionEntities sets the value of CaptionEntities.
func (*InputMediaAudio) SetDuration ¶
func (s *InputMediaAudio) SetDuration(val OptInt)
SetDuration sets the value of Duration.
func (*InputMediaAudio) SetMedia ¶
func (s *InputMediaAudio) SetMedia(val string)
SetMedia sets the value of Media.
func (*InputMediaAudio) SetParseMode ¶
func (s *InputMediaAudio) SetParseMode(val OptString)
SetParseMode sets the value of ParseMode.
func (*InputMediaAudio) SetPerformer ¶
func (s *InputMediaAudio) SetPerformer(val OptString)
SetPerformer sets the value of Performer.
func (*InputMediaAudio) SetThumb ¶
func (s *InputMediaAudio) SetThumb(val OptString)
SetThumb sets the value of Thumb.
func (*InputMediaAudio) SetTitle ¶
func (s *InputMediaAudio) SetTitle(val OptString)
SetTitle sets the value of Title.
func (*InputMediaAudio) SetType ¶
func (s *InputMediaAudio) SetType(val string)
SetType sets the value of Type.
func (*InputMediaAudio) UnmarshalJSON ¶
func (s *InputMediaAudio) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InputMediaAudio) Validate ¶
func (s *InputMediaAudio) Validate() error
type InputMediaDocument ¶
type InputMediaDocument struct { // Type of the result, must be document. Type string `json:"type"` // File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), // pass an HTTP URL for Telegram to get a file from the Internet, or pass // “attach://<file_attach_name>” to upload a new one using multipart/form-data under // <file_attach_name> name. More info on Sending Files ». Media string `json:"media"` // Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported // server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's // width and height should not exceed 320. Ignored if the file is not uploaded using // multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can // pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data // under <file_attach_name>. More info on Sending Files ». Thumb OptString `json:"thumb"` // Caption of the document to be sent, 0-1024 characters after entities parsing. Caption OptString `json:"caption"` // Mode for parsing entities in the document caption. See formatting options for more details. ParseMode OptString `json:"parse_mode"` // List of special entities that appear in the caption, which can be specified instead of parse_mode. CaptionEntities []MessageEntity `json:"caption_entities"` // Disables automatic server-side content type detection for files uploaded using multipart/form-data. // Always True, if the document is sent as part of an album. DisableContentTypeDetection OptBool `json:"disable_content_type_detection"` }
Represents a general file to be sent. Ref: #/components/schemas/InputMediaDocument
func (*InputMediaDocument) Decode ¶
func (s *InputMediaDocument) Decode(d *jx.Decoder) error
Decode decodes InputMediaDocument from json.
func (*InputMediaDocument) Encode ¶
func (s *InputMediaDocument) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InputMediaDocument) GetCaption ¶
func (s *InputMediaDocument) GetCaption() OptString
GetCaption returns the value of Caption.
func (*InputMediaDocument) GetCaptionEntities ¶
func (s *InputMediaDocument) GetCaptionEntities() []MessageEntity
GetCaptionEntities returns the value of CaptionEntities.
func (*InputMediaDocument) GetDisableContentTypeDetection ¶
func (s *InputMediaDocument) GetDisableContentTypeDetection() OptBool
GetDisableContentTypeDetection returns the value of DisableContentTypeDetection.
func (*InputMediaDocument) GetMedia ¶
func (s *InputMediaDocument) GetMedia() string
GetMedia returns the value of Media.
func (*InputMediaDocument) GetParseMode ¶
func (s *InputMediaDocument) GetParseMode() OptString
GetParseMode returns the value of ParseMode.
func (*InputMediaDocument) GetThumb ¶
func (s *InputMediaDocument) GetThumb() OptString
GetThumb returns the value of Thumb.
func (*InputMediaDocument) GetType ¶
func (s *InputMediaDocument) GetType() string
GetType returns the value of Type.
func (*InputMediaDocument) MarshalJSON ¶
func (s *InputMediaDocument) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InputMediaDocument) SetCaption ¶
func (s *InputMediaDocument) SetCaption(val OptString)
SetCaption sets the value of Caption.
func (*InputMediaDocument) SetCaptionEntities ¶
func (s *InputMediaDocument) SetCaptionEntities(val []MessageEntity)
SetCaptionEntities sets the value of CaptionEntities.
func (*InputMediaDocument) SetDisableContentTypeDetection ¶
func (s *InputMediaDocument) SetDisableContentTypeDetection(val OptBool)
SetDisableContentTypeDetection sets the value of DisableContentTypeDetection.
func (*InputMediaDocument) SetFake ¶
func (s *InputMediaDocument) SetFake()
SetFake set fake values.
func (*InputMediaDocument) SetMedia ¶
func (s *InputMediaDocument) SetMedia(val string)
SetMedia sets the value of Media.
func (*InputMediaDocument) SetParseMode ¶
func (s *InputMediaDocument) SetParseMode(val OptString)
SetParseMode sets the value of ParseMode.
func (*InputMediaDocument) SetThumb ¶
func (s *InputMediaDocument) SetThumb(val OptString)
SetThumb sets the value of Thumb.
func (*InputMediaDocument) SetType ¶
func (s *InputMediaDocument) SetType(val string)
SetType sets the value of Type.
func (*InputMediaDocument) UnmarshalJSON ¶
func (s *InputMediaDocument) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InputMediaDocument) Validate ¶
func (s *InputMediaDocument) Validate() error
type InputMediaPhoto ¶
type InputMediaPhoto struct { // Type of the result, must be photo. Type string `json:"type"` // File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), // pass an HTTP URL for Telegram to get a file from the Internet, or pass // “attach://<file_attach_name>” to upload a new one using multipart/form-data under // <file_attach_name> name. More info on Sending Files ». Media string `json:"media"` // Caption of the photo to be sent, 0-1024 characters after entities parsing. Caption OptString `json:"caption"` // Mode for parsing entities in the photo caption. See formatting options for more details. ParseMode OptString `json:"parse_mode"` // List of special entities that appear in the caption, which can be specified instead of parse_mode. CaptionEntities []MessageEntity `json:"caption_entities"` }
Represents a photo to be sent. Ref: #/components/schemas/InputMediaPhoto
func (*InputMediaPhoto) Decode ¶
func (s *InputMediaPhoto) Decode(d *jx.Decoder) error
Decode decodes InputMediaPhoto from json.
func (*InputMediaPhoto) Encode ¶
func (s *InputMediaPhoto) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InputMediaPhoto) GetCaption ¶
func (s *InputMediaPhoto) GetCaption() OptString
GetCaption returns the value of Caption.
func (*InputMediaPhoto) GetCaptionEntities ¶
func (s *InputMediaPhoto) GetCaptionEntities() []MessageEntity
GetCaptionEntities returns the value of CaptionEntities.
func (*InputMediaPhoto) GetMedia ¶
func (s *InputMediaPhoto) GetMedia() string
GetMedia returns the value of Media.
func (*InputMediaPhoto) GetParseMode ¶
func (s *InputMediaPhoto) GetParseMode() OptString
GetParseMode returns the value of ParseMode.
func (*InputMediaPhoto) GetType ¶
func (s *InputMediaPhoto) GetType() string
GetType returns the value of Type.
func (*InputMediaPhoto) MarshalJSON ¶
func (s *InputMediaPhoto) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InputMediaPhoto) SetCaption ¶
func (s *InputMediaPhoto) SetCaption(val OptString)
SetCaption sets the value of Caption.
func (*InputMediaPhoto) SetCaptionEntities ¶
func (s *InputMediaPhoto) SetCaptionEntities(val []MessageEntity)
SetCaptionEntities sets the value of CaptionEntities.
func (*InputMediaPhoto) SetMedia ¶
func (s *InputMediaPhoto) SetMedia(val string)
SetMedia sets the value of Media.
func (*InputMediaPhoto) SetParseMode ¶
func (s *InputMediaPhoto) SetParseMode(val OptString)
SetParseMode sets the value of ParseMode.
func (*InputMediaPhoto) SetType ¶
func (s *InputMediaPhoto) SetType(val string)
SetType sets the value of Type.
func (*InputMediaPhoto) UnmarshalJSON ¶
func (s *InputMediaPhoto) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InputMediaPhoto) Validate ¶
func (s *InputMediaPhoto) Validate() error
type InputMediaType ¶
type InputMediaType string
InputMediaType is oneOf type of InputMedia.
const ( InputMediaAnimationInputMedia InputMediaType = "animation" InputMediaDocumentInputMedia InputMediaType = "document" InputMediaAudioInputMedia InputMediaType = "audio" InputMediaPhotoInputMedia InputMediaType = "photo" InputMediaVideoInputMedia InputMediaType = "video" )
Possible values for InputMediaType.
type InputMediaVideo ¶
type InputMediaVideo struct { // Type of the result, must be video. Type string `json:"type"` // File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), // pass an HTTP URL for Telegram to get a file from the Internet, or pass // “attach://<file_attach_name>” to upload a new one using multipart/form-data under // <file_attach_name> name. More info on Sending Files ». Media string `json:"media"` // Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported // server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's // width and height should not exceed 320. Ignored if the file is not uploaded using // multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can // pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data // under <file_attach_name>. More info on Sending Files ». Thumb OptString `json:"thumb"` // Caption of the video to be sent, 0-1024 characters after entities parsing. Caption OptString `json:"caption"` // Mode for parsing entities in the video caption. See formatting options for more details. ParseMode OptString `json:"parse_mode"` // List of special entities that appear in the caption, which can be specified instead of parse_mode. CaptionEntities []MessageEntity `json:"caption_entities"` // Video width. Width OptInt `json:"width"` // Video height. Height OptInt `json:"height"` // Video duration in seconds. Duration OptInt `json:"duration"` // Pass True, if the uploaded video is suitable for streaming. SupportsStreaming OptBool `json:"supports_streaming"` }
Represents a video to be sent. Ref: #/components/schemas/InputMediaVideo
func (*InputMediaVideo) Decode ¶
func (s *InputMediaVideo) Decode(d *jx.Decoder) error
Decode decodes InputMediaVideo from json.
func (*InputMediaVideo) Encode ¶
func (s *InputMediaVideo) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InputMediaVideo) GetCaption ¶
func (s *InputMediaVideo) GetCaption() OptString
GetCaption returns the value of Caption.
func (*InputMediaVideo) GetCaptionEntities ¶
func (s *InputMediaVideo) GetCaptionEntities() []MessageEntity
GetCaptionEntities returns the value of CaptionEntities.
func (*InputMediaVideo) GetDuration ¶
func (s *InputMediaVideo) GetDuration() OptInt
GetDuration returns the value of Duration.
func (*InputMediaVideo) GetHeight ¶
func (s *InputMediaVideo) GetHeight() OptInt
GetHeight returns the value of Height.
func (*InputMediaVideo) GetMedia ¶
func (s *InputMediaVideo) GetMedia() string
GetMedia returns the value of Media.
func (*InputMediaVideo) GetParseMode ¶
func (s *InputMediaVideo) GetParseMode() OptString
GetParseMode returns the value of ParseMode.
func (*InputMediaVideo) GetSupportsStreaming ¶
func (s *InputMediaVideo) GetSupportsStreaming() OptBool
GetSupportsStreaming returns the value of SupportsStreaming.
func (*InputMediaVideo) GetThumb ¶
func (s *InputMediaVideo) GetThumb() OptString
GetThumb returns the value of Thumb.
func (*InputMediaVideo) GetType ¶
func (s *InputMediaVideo) GetType() string
GetType returns the value of Type.
func (*InputMediaVideo) GetWidth ¶
func (s *InputMediaVideo) GetWidth() OptInt
GetWidth returns the value of Width.
func (*InputMediaVideo) MarshalJSON ¶
func (s *InputMediaVideo) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InputMediaVideo) SetCaption ¶
func (s *InputMediaVideo) SetCaption(val OptString)
SetCaption sets the value of Caption.
func (*InputMediaVideo) SetCaptionEntities ¶
func (s *InputMediaVideo) SetCaptionEntities(val []MessageEntity)
SetCaptionEntities sets the value of CaptionEntities.
func (*InputMediaVideo) SetDuration ¶
func (s *InputMediaVideo) SetDuration(val OptInt)
SetDuration sets the value of Duration.
func (*InputMediaVideo) SetHeight ¶
func (s *InputMediaVideo) SetHeight(val OptInt)
SetHeight sets the value of Height.
func (*InputMediaVideo) SetMedia ¶
func (s *InputMediaVideo) SetMedia(val string)
SetMedia sets the value of Media.
func (*InputMediaVideo) SetParseMode ¶
func (s *InputMediaVideo) SetParseMode(val OptString)
SetParseMode sets the value of ParseMode.
func (*InputMediaVideo) SetSupportsStreaming ¶
func (s *InputMediaVideo) SetSupportsStreaming(val OptBool)
SetSupportsStreaming sets the value of SupportsStreaming.
func (*InputMediaVideo) SetThumb ¶
func (s *InputMediaVideo) SetThumb(val OptString)
SetThumb sets the value of Thumb.
func (*InputMediaVideo) SetType ¶
func (s *InputMediaVideo) SetType(val string)
SetType sets the value of Type.
func (*InputMediaVideo) SetWidth ¶
func (s *InputMediaVideo) SetWidth(val OptInt)
SetWidth sets the value of Width.
func (*InputMediaVideo) UnmarshalJSON ¶
func (s *InputMediaVideo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InputMediaVideo) Validate ¶
func (s *InputMediaVideo) Validate() error
type InputMessageContent ¶
type InputMessageContent struct { Type InputMessageContentType // switch on this field InputTextMessageContent InputTextMessageContent InputLocationMessageContent InputLocationMessageContent InputVenueMessageContent InputVenueMessageContent InputContactMessageContent InputContactMessageContent InputInvoiceMessageContent InputInvoiceMessageContent }
This object represents the content of a message to be sent as a result of an inline query. 5 types:. Ref: #/components/schemas/InputMessageContent InputMessageContent represents sum type.
func NewInputContactMessageContentInputMessageContent ¶
func NewInputContactMessageContentInputMessageContent(v InputContactMessageContent) InputMessageContent
NewInputContactMessageContentInputMessageContent returns new InputMessageContent from InputContactMessageContent.
func NewInputInvoiceMessageContentInputMessageContent ¶
func NewInputInvoiceMessageContentInputMessageContent(v InputInvoiceMessageContent) InputMessageContent
NewInputInvoiceMessageContentInputMessageContent returns new InputMessageContent from InputInvoiceMessageContent.
func NewInputLocationMessageContentInputMessageContent ¶
func NewInputLocationMessageContentInputMessageContent(v InputLocationMessageContent) InputMessageContent
NewInputLocationMessageContentInputMessageContent returns new InputMessageContent from InputLocationMessageContent.
func NewInputTextMessageContentInputMessageContent ¶
func NewInputTextMessageContentInputMessageContent(v InputTextMessageContent) InputMessageContent
NewInputTextMessageContentInputMessageContent returns new InputMessageContent from InputTextMessageContent.
func NewInputVenueMessageContentInputMessageContent ¶
func NewInputVenueMessageContentInputMessageContent(v InputVenueMessageContent) InputMessageContent
NewInputVenueMessageContentInputMessageContent returns new InputMessageContent from InputVenueMessageContent.
func (*InputMessageContent) Decode ¶
func (s *InputMessageContent) Decode(d *jx.Decoder) error
Decode decodes InputMessageContent from json.
func (InputMessageContent) Encode ¶
func (s InputMessageContent) Encode(e *jx.Encoder)
Encode encodes InputMessageContent as json.
func (InputMessageContent) GetInputContactMessageContent ¶
func (s InputMessageContent) GetInputContactMessageContent() (v InputContactMessageContent, ok bool)
GetInputContactMessageContent returns InputContactMessageContent and true boolean if InputMessageContent is InputContactMessageContent.
func (InputMessageContent) GetInputInvoiceMessageContent ¶
func (s InputMessageContent) GetInputInvoiceMessageContent() (v InputInvoiceMessageContent, ok bool)
GetInputInvoiceMessageContent returns InputInvoiceMessageContent and true boolean if InputMessageContent is InputInvoiceMessageContent.
func (InputMessageContent) GetInputLocationMessageContent ¶
func (s InputMessageContent) GetInputLocationMessageContent() (v InputLocationMessageContent, ok bool)
GetInputLocationMessageContent returns InputLocationMessageContent and true boolean if InputMessageContent is InputLocationMessageContent.
func (InputMessageContent) GetInputTextMessageContent ¶
func (s InputMessageContent) GetInputTextMessageContent() (v InputTextMessageContent, ok bool)
GetInputTextMessageContent returns InputTextMessageContent and true boolean if InputMessageContent is InputTextMessageContent.
func (InputMessageContent) GetInputVenueMessageContent ¶
func (s InputMessageContent) GetInputVenueMessageContent() (v InputVenueMessageContent, ok bool)
GetInputVenueMessageContent returns InputVenueMessageContent and true boolean if InputMessageContent is InputVenueMessageContent.
func (InputMessageContent) IsInputContactMessageContent ¶
func (s InputMessageContent) IsInputContactMessageContent() bool
IsInputContactMessageContent reports whether InputMessageContent is InputContactMessageContent.
func (InputMessageContent) IsInputInvoiceMessageContent ¶
func (s InputMessageContent) IsInputInvoiceMessageContent() bool
IsInputInvoiceMessageContent reports whether InputMessageContent is InputInvoiceMessageContent.
func (InputMessageContent) IsInputLocationMessageContent ¶
func (s InputMessageContent) IsInputLocationMessageContent() bool
IsInputLocationMessageContent reports whether InputMessageContent is InputLocationMessageContent.
func (InputMessageContent) IsInputTextMessageContent ¶
func (s InputMessageContent) IsInputTextMessageContent() bool
IsInputTextMessageContent reports whether InputMessageContent is InputTextMessageContent.
func (InputMessageContent) IsInputVenueMessageContent ¶
func (s InputMessageContent) IsInputVenueMessageContent() bool
IsInputVenueMessageContent reports whether InputMessageContent is InputVenueMessageContent.
func (InputMessageContent) MarshalJSON ¶
func (s InputMessageContent) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InputMessageContent) SetFake ¶
func (s *InputMessageContent) SetFake()
SetFake set fake values.
func (*InputMessageContent) SetInputContactMessageContent ¶
func (s *InputMessageContent) SetInputContactMessageContent(v InputContactMessageContent)
SetInputContactMessageContent sets InputMessageContent to InputContactMessageContent.
func (*InputMessageContent) SetInputInvoiceMessageContent ¶
func (s *InputMessageContent) SetInputInvoiceMessageContent(v InputInvoiceMessageContent)
SetInputInvoiceMessageContent sets InputMessageContent to InputInvoiceMessageContent.
func (*InputMessageContent) SetInputLocationMessageContent ¶
func (s *InputMessageContent) SetInputLocationMessageContent(v InputLocationMessageContent)
SetInputLocationMessageContent sets InputMessageContent to InputLocationMessageContent.
func (*InputMessageContent) SetInputTextMessageContent ¶
func (s *InputMessageContent) SetInputTextMessageContent(v InputTextMessageContent)
SetInputTextMessageContent sets InputMessageContent to InputTextMessageContent.
func (*InputMessageContent) SetInputVenueMessageContent ¶
func (s *InputMessageContent) SetInputVenueMessageContent(v InputVenueMessageContent)
SetInputVenueMessageContent sets InputMessageContent to InputVenueMessageContent.
func (*InputMessageContent) UnmarshalJSON ¶
func (s *InputMessageContent) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (InputMessageContent) Validate ¶
func (s InputMessageContent) Validate() error
type InputMessageContentType ¶
type InputMessageContentType string
InputMessageContentType is oneOf type of InputMessageContent.
const ( InputTextMessageContentInputMessageContent InputMessageContentType = "InputTextMessageContent" InputLocationMessageContentInputMessageContent InputMessageContentType = "InputLocationMessageContent" InputVenueMessageContentInputMessageContent InputMessageContentType = "InputVenueMessageContent" InputContactMessageContentInputMessageContent InputMessageContentType = "InputContactMessageContent" InputInvoiceMessageContentInputMessageContent InputMessageContentType = "InputInvoiceMessageContent" )
Possible values for InputMessageContentType.
type InputTextMessageContent ¶
type InputTextMessageContent struct { // Text of the message to be sent, 1-4096 characters. MessageText string `json:"message_text"` // Mode for parsing entities in the message text. See formatting options for more details. ParseMode OptString `json:"parse_mode"` // List of special entities that appear in message text, which can be specified instead of parse_mode. Entities []MessageEntity `json:"entities"` // Disables link previews for links in the sent message. DisableWebPagePreview OptBool `json:"disable_web_page_preview"` }
Represents the content of a text message to be sent as the result of an inline query. Ref: #/components/schemas/InputTextMessageContent
func (*InputTextMessageContent) Decode ¶
func (s *InputTextMessageContent) Decode(d *jx.Decoder) error
Decode decodes InputTextMessageContent from json.
func (*InputTextMessageContent) Encode ¶
func (s *InputTextMessageContent) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InputTextMessageContent) GetDisableWebPagePreview ¶
func (s *InputTextMessageContent) GetDisableWebPagePreview() OptBool
GetDisableWebPagePreview returns the value of DisableWebPagePreview.
func (*InputTextMessageContent) GetEntities ¶
func (s *InputTextMessageContent) GetEntities() []MessageEntity
GetEntities returns the value of Entities.
func (*InputTextMessageContent) GetMessageText ¶
func (s *InputTextMessageContent) GetMessageText() string
GetMessageText returns the value of MessageText.
func (*InputTextMessageContent) GetParseMode ¶
func (s *InputTextMessageContent) GetParseMode() OptString
GetParseMode returns the value of ParseMode.
func (*InputTextMessageContent) MarshalJSON ¶
func (s *InputTextMessageContent) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InputTextMessageContent) SetDisableWebPagePreview ¶
func (s *InputTextMessageContent) SetDisableWebPagePreview(val OptBool)
SetDisableWebPagePreview sets the value of DisableWebPagePreview.
func (*InputTextMessageContent) SetEntities ¶
func (s *InputTextMessageContent) SetEntities(val []MessageEntity)
SetEntities sets the value of Entities.
func (*InputTextMessageContent) SetFake ¶
func (s *InputTextMessageContent) SetFake()
SetFake set fake values.
func (*InputTextMessageContent) SetMessageText ¶
func (s *InputTextMessageContent) SetMessageText(val string)
SetMessageText sets the value of MessageText.
func (*InputTextMessageContent) SetParseMode ¶
func (s *InputTextMessageContent) SetParseMode(val OptString)
SetParseMode sets the value of ParseMode.
func (*InputTextMessageContent) UnmarshalJSON ¶
func (s *InputTextMessageContent) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InputTextMessageContent) Validate ¶
func (s *InputTextMessageContent) Validate() error
type InputVenueMessageContent ¶
type InputVenueMessageContent struct { // Latitude of the venue in degrees. Latitude float64 `json:"latitude"` // Longitude of the venue in degrees. Longitude float64 `json:"longitude"` // Name of the venue. Title string `json:"title"` // Address of the venue. Address string `json:"address"` // Foursquare identifier of the venue, if known. FoursquareID OptString `json:"foursquare_id"` // Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, // “arts_entertainment/aquarium” or “food/icecream”.). FoursquareType OptString `json:"foursquare_type"` // Google Places identifier of the venue. GooglePlaceID OptString `json:"google_place_id"` // Google Places type of the venue. (See supported types.). GooglePlaceType OptString `json:"google_place_type"` }
Represents the content of a venue message to be sent as the result of an inline query. Ref: #/components/schemas/InputVenueMessageContent
func (*InputVenueMessageContent) Decode ¶
func (s *InputVenueMessageContent) Decode(d *jx.Decoder) error
Decode decodes InputVenueMessageContent from json.
func (*InputVenueMessageContent) Encode ¶
func (s *InputVenueMessageContent) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InputVenueMessageContent) GetAddress ¶
func (s *InputVenueMessageContent) GetAddress() string
GetAddress returns the value of Address.
func (*InputVenueMessageContent) GetFoursquareID ¶
func (s *InputVenueMessageContent) GetFoursquareID() OptString
GetFoursquareID returns the value of FoursquareID.
func (*InputVenueMessageContent) GetFoursquareType ¶
func (s *InputVenueMessageContent) GetFoursquareType() OptString
GetFoursquareType returns the value of FoursquareType.
func (*InputVenueMessageContent) GetGooglePlaceID ¶
func (s *InputVenueMessageContent) GetGooglePlaceID() OptString
GetGooglePlaceID returns the value of GooglePlaceID.
func (*InputVenueMessageContent) GetGooglePlaceType ¶
func (s *InputVenueMessageContent) GetGooglePlaceType() OptString
GetGooglePlaceType returns the value of GooglePlaceType.
func (*InputVenueMessageContent) GetLatitude ¶
func (s *InputVenueMessageContent) GetLatitude() float64
GetLatitude returns the value of Latitude.
func (*InputVenueMessageContent) GetLongitude ¶
func (s *InputVenueMessageContent) GetLongitude() float64
GetLongitude returns the value of Longitude.
func (*InputVenueMessageContent) GetTitle ¶
func (s *InputVenueMessageContent) GetTitle() string
GetTitle returns the value of Title.
func (*InputVenueMessageContent) MarshalJSON ¶
func (s *InputVenueMessageContent) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InputVenueMessageContent) SetAddress ¶
func (s *InputVenueMessageContent) SetAddress(val string)
SetAddress sets the value of Address.
func (*InputVenueMessageContent) SetFake ¶
func (s *InputVenueMessageContent) SetFake()
SetFake set fake values.
func (*InputVenueMessageContent) SetFoursquareID ¶
func (s *InputVenueMessageContent) SetFoursquareID(val OptString)
SetFoursquareID sets the value of FoursquareID.
func (*InputVenueMessageContent) SetFoursquareType ¶
func (s *InputVenueMessageContent) SetFoursquareType(val OptString)
SetFoursquareType sets the value of FoursquareType.
func (*InputVenueMessageContent) SetGooglePlaceID ¶
func (s *InputVenueMessageContent) SetGooglePlaceID(val OptString)
SetGooglePlaceID sets the value of GooglePlaceID.
func (*InputVenueMessageContent) SetGooglePlaceType ¶
func (s *InputVenueMessageContent) SetGooglePlaceType(val OptString)
SetGooglePlaceType sets the value of GooglePlaceType.
func (*InputVenueMessageContent) SetLatitude ¶
func (s *InputVenueMessageContent) SetLatitude(val float64)
SetLatitude sets the value of Latitude.
func (*InputVenueMessageContent) SetLongitude ¶
func (s *InputVenueMessageContent) SetLongitude(val float64)
SetLongitude sets the value of Longitude.
func (*InputVenueMessageContent) SetTitle ¶
func (s *InputVenueMessageContent) SetTitle(val string)
SetTitle sets the value of Title.
func (*InputVenueMessageContent) UnmarshalJSON ¶
func (s *InputVenueMessageContent) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*InputVenueMessageContent) Validate ¶
func (s *InputVenueMessageContent) Validate() error
type Invoice ¶
type Invoice struct { // Product name. Title string `json:"title"` // Product description. Description string `json:"description"` // Unique bot deep-linking parameter that can be used to generate this invoice. StartParameter string `json:"start_parameter"` // Three-letter ISO 4217 currency code. Currency string `json:"currency"` // Total price in the smallest units of the currency (integer, not float/double). For example, for a // price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number // of digits past the decimal point for each currency (2 for the majority of currencies). TotalAmount int `json:"total_amount"` }
This object contains basic information about an invoice. Ref: #/components/schemas/Invoice
func (*Invoice) GetCurrency ¶
GetCurrency returns the value of Currency.
func (*Invoice) GetDescription ¶
GetDescription returns the value of Description.
func (*Invoice) GetStartParameter ¶
GetStartParameter returns the value of StartParameter.
func (*Invoice) GetTotalAmount ¶
GetTotalAmount returns the value of TotalAmount.
func (*Invoice) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Invoice) SetCurrency ¶
SetCurrency sets the value of Currency.
func (*Invoice) SetDescription ¶
SetDescription sets the value of Description.
func (*Invoice) SetStartParameter ¶
SetStartParameter sets the value of StartParameter.
func (*Invoice) SetTotalAmount ¶
SetTotalAmount sets the value of TotalAmount.
func (*Invoice) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type Invoker ¶
type Invoker interface { // AddStickerToSet invokes addStickerToSet operation. // // POST /addStickerToSet AddStickerToSet(ctx context.Context, request *AddStickerToSet) (*Result, error) // AnswerCallbackQuery invokes answerCallbackQuery operation. // // POST /answerCallbackQuery AnswerCallbackQuery(ctx context.Context, request *AnswerCallbackQuery) (*Result, error) // AnswerInlineQuery invokes answerInlineQuery operation. // // POST /answerInlineQuery AnswerInlineQuery(ctx context.Context, request *AnswerInlineQuery) (*Result, error) // AnswerPreCheckoutQuery invokes answerPreCheckoutQuery operation. // // POST /answerPreCheckoutQuery AnswerPreCheckoutQuery(ctx context.Context, request *AnswerPreCheckoutQuery) (*Result, error) // AnswerShippingQuery invokes answerShippingQuery operation. // // POST /answerShippingQuery AnswerShippingQuery(ctx context.Context, request *AnswerShippingQuery) (*Result, error) // ApproveChatJoinRequest invokes approveChatJoinRequest operation. // // POST /approveChatJoinRequest ApproveChatJoinRequest(ctx context.Context, request *ApproveChatJoinRequest) (*Result, error) // BanChatMember invokes banChatMember operation. // // POST /banChatMember BanChatMember(ctx context.Context, request *BanChatMember) (*Result, error) // BanChatSenderChat invokes banChatSenderChat operation. // // POST /banChatSenderChat BanChatSenderChat(ctx context.Context, request *BanChatSenderChat) (*Result, error) // Close invokes close operation. // // POST /close Close(ctx context.Context) (*Result, error) // CopyMessage invokes copyMessage operation. // // POST /copyMessage CopyMessage(ctx context.Context, request *CopyMessage) (*ResultMessageId, error) // CreateChatInviteLink invokes createChatInviteLink operation. // // POST /createChatInviteLink CreateChatInviteLink(ctx context.Context, request *CreateChatInviteLink) (*ResultChatInviteLink, error) // CreateNewStickerSet invokes createNewStickerSet operation. // // POST /createNewStickerSet CreateNewStickerSet(ctx context.Context, request *CreateNewStickerSet) (*Result, error) // DeclineChatJoinRequest invokes declineChatJoinRequest operation. // // POST /declineChatJoinRequest DeclineChatJoinRequest(ctx context.Context, request *DeclineChatJoinRequest) (*Result, error) // DeleteChatPhoto invokes deleteChatPhoto operation. // // POST /deleteChatPhoto DeleteChatPhoto(ctx context.Context, request *DeleteChatPhoto) (*Result, error) // DeleteChatStickerSet invokes deleteChatStickerSet operation. // // POST /deleteChatStickerSet DeleteChatStickerSet(ctx context.Context, request *DeleteChatStickerSet) (*Result, error) // DeleteMessage invokes deleteMessage operation. // // POST /deleteMessage DeleteMessage(ctx context.Context, request *DeleteMessage) (*Result, error) // DeleteMyCommands invokes deleteMyCommands operation. // // POST /deleteMyCommands DeleteMyCommands(ctx context.Context, request OptDeleteMyCommands) (*Result, error) // DeleteStickerFromSet invokes deleteStickerFromSet operation. // // POST /deleteStickerFromSet DeleteStickerFromSet(ctx context.Context, request *DeleteStickerFromSet) (*Result, error) // DeleteWebhook invokes deleteWebhook operation. // // POST /deleteWebhook DeleteWebhook(ctx context.Context, request OptDeleteWebhook) (*Result, error) // EditChatInviteLink invokes editChatInviteLink operation. // // POST /editChatInviteLink EditChatInviteLink(ctx context.Context, request *EditChatInviteLink) (*ResultChatInviteLink, error) // EditMessageCaption invokes editMessageCaption operation. // // POST /editMessageCaption EditMessageCaption(ctx context.Context, request *EditMessageCaption) (*Result, error) // EditMessageLiveLocation invokes editMessageLiveLocation operation. // // POST /editMessageLiveLocation EditMessageLiveLocation(ctx context.Context, request *EditMessageLiveLocation) (*Result, error) // EditMessageMedia invokes editMessageMedia operation. // // POST /editMessageMedia EditMessageMedia(ctx context.Context, request *EditMessageMedia) (*Result, error) // EditMessageReplyMarkup invokes editMessageReplyMarkup operation. // // POST /editMessageReplyMarkup EditMessageReplyMarkup(ctx context.Context, request *EditMessageReplyMarkup) (*Result, error) // EditMessageText invokes editMessageText operation. // // POST /editMessageText EditMessageText(ctx context.Context, request *EditMessageText) (*Result, error) // ExportChatInviteLink invokes exportChatInviteLink operation. // // POST /exportChatInviteLink ExportChatInviteLink(ctx context.Context, request *ExportChatInviteLink) (*ResultString, error) // ForwardMessage invokes forwardMessage operation. // // POST /forwardMessage ForwardMessage(ctx context.Context, request *ForwardMessage) (*ResultMessage, error) // GetChat invokes getChat operation. // // POST /getChat GetChat(ctx context.Context, request *GetChat) (*ResultChat, error) // GetChatAdministrators invokes getChatAdministrators operation. // // POST /getChatAdministrators GetChatAdministrators(ctx context.Context, request *GetChatAdministrators) (*ResultArrayOfChatMember, error) // GetChatMember invokes getChatMember operation. // // POST /getChatMember GetChatMember(ctx context.Context, request *GetChatMember) (*ResultChatMember, error) // GetChatMemberCount invokes getChatMemberCount operation. // // POST /getChatMemberCount GetChatMemberCount(ctx context.Context, request *GetChatMemberCount) (*ResultInt, error) // GetFile invokes getFile operation. // // POST /getFile GetFile(ctx context.Context, request *GetFile) (*Result, error) // GetGameHighScores invokes getGameHighScores operation. // // POST /getGameHighScores GetGameHighScores(ctx context.Context, request *GetGameHighScores) (*ResultArrayOfGameHighScore, error) // GetMe invokes getMe operation. // // POST /getMe GetMe(ctx context.Context) (*ResultUser, error) // GetMyCommands invokes getMyCommands operation. // // POST /getMyCommands GetMyCommands(ctx context.Context, request OptGetMyCommands) (*ResultArrayOfBotCommand, error) // GetStickerSet invokes getStickerSet operation. // // POST /getStickerSet GetStickerSet(ctx context.Context, request *GetStickerSet) (*Result, error) // GetUpdates invokes getUpdates operation. // // POST /getUpdates GetUpdates(ctx context.Context, request OptGetUpdates) (*ResultArrayOfUpdate, error) // GetUserProfilePhotos invokes getUserProfilePhotos operation. // // POST /getUserProfilePhotos GetUserProfilePhotos(ctx context.Context, request *GetUserProfilePhotos) (*ResultUserProfilePhotos, error) // GetWebhookInfo invokes getWebhookInfo operation. // // POST /getWebhookInfo GetWebhookInfo(ctx context.Context) (*ResultWebhookInfo, error) // LeaveChat invokes leaveChat operation. // // POST /leaveChat LeaveChat(ctx context.Context, request *LeaveChat) (*Result, error) // LogOut invokes logOut operation. // // POST /logOut LogOut(ctx context.Context) (*Result, error) // PinChatMessage invokes pinChatMessage operation. // // POST /pinChatMessage PinChatMessage(ctx context.Context, request *PinChatMessage) (*Result, error) // PromoteChatMember invokes promoteChatMember operation. // // POST /promoteChatMember PromoteChatMember(ctx context.Context, request *PromoteChatMember) (*Result, error) // RestrictChatMember invokes restrictChatMember operation. // // POST /restrictChatMember RestrictChatMember(ctx context.Context, request *RestrictChatMember) (*Result, error) // RevokeChatInviteLink invokes revokeChatInviteLink operation. // // POST /revokeChatInviteLink RevokeChatInviteLink(ctx context.Context, request *RevokeChatInviteLink) (*ResultChatInviteLink, error) // SendAnimation invokes sendAnimation operation. // // POST /sendAnimation SendAnimation(ctx context.Context, request *SendAnimation) (*ResultMessage, error) // SendAudio invokes sendAudio operation. // // POST /sendAudio SendAudio(ctx context.Context, request *SendAudio) (*ResultMessage, error) // SendChatAction invokes sendChatAction operation. // // POST /sendChatAction SendChatAction(ctx context.Context, request *SendChatAction) (*Result, error) // SendContact invokes sendContact operation. // // POST /sendContact SendContact(ctx context.Context, request *SendContact) (*ResultMessage, error) // SendDice invokes sendDice operation. // // POST /sendDice SendDice(ctx context.Context, request *SendDice) (*ResultMessage, error) // SendDocument invokes sendDocument operation. // // POST /sendDocument SendDocument(ctx context.Context, request *SendDocument) (*ResultMessage, error) // SendGame invokes sendGame operation. // // POST /sendGame SendGame(ctx context.Context, request *SendGame) (*ResultMessage, error) // SendInvoice invokes sendInvoice operation. // // POST /sendInvoice SendInvoice(ctx context.Context, request *SendInvoice) (*ResultMessage, error) // SendLocation invokes sendLocation operation. // // POST /sendLocation SendLocation(ctx context.Context, request *SendLocation) (*ResultMessage, error) // SendMediaGroup invokes sendMediaGroup operation. // // POST /sendMediaGroup SendMediaGroup(ctx context.Context, request *SendMediaGroup) (*ResultArrayOfMessage, error) // SendMessage invokes sendMessage operation. // // POST /sendMessage SendMessage(ctx context.Context, request *SendMessage) (*ResultMessage, error) // SendPhoto invokes sendPhoto operation. // // POST /sendPhoto SendPhoto(ctx context.Context, request *SendPhoto) (*ResultMessage, error) // SendPoll invokes sendPoll operation. // // POST /sendPoll SendPoll(ctx context.Context, request *SendPoll) (*ResultMessage, error) // SendSticker invokes sendSticker operation. // // POST /sendSticker SendSticker(ctx context.Context, request *SendSticker) (*ResultMessage, error) // SendVenue invokes sendVenue operation. // // POST /sendVenue SendVenue(ctx context.Context, request *SendVenue) (*ResultMessage, error) // SendVideo invokes sendVideo operation. // // POST /sendVideo SendVideo(ctx context.Context, request *SendVideo) (*ResultMessage, error) // SendVideoNote invokes sendVideoNote operation. // // POST /sendVideoNote SendVideoNote(ctx context.Context, request *SendVideoNote) (*ResultMessage, error) // SendVoice invokes sendVoice operation. // // POST /sendVoice SendVoice(ctx context.Context, request *SendVoice) (*ResultMessage, error) // SetChatAdministratorCustomTitle invokes setChatAdministratorCustomTitle operation. // // POST /setChatAdministratorCustomTitle SetChatAdministratorCustomTitle(ctx context.Context, request *SetChatAdministratorCustomTitle) (*Result, error) // SetChatDescription invokes setChatDescription operation. // // POST /setChatDescription SetChatDescription(ctx context.Context, request *SetChatDescription) (*Result, error) // SetChatPermissions invokes setChatPermissions operation. // // POST /setChatPermissions SetChatPermissions(ctx context.Context, request *SetChatPermissions) (*Result, error) // SetChatPhoto invokes setChatPhoto operation. // // POST /setChatPhoto SetChatPhoto(ctx context.Context, request *SetChatPhoto) (*Result, error) // SetChatStickerSet invokes setChatStickerSet operation. // // POST /setChatStickerSet SetChatStickerSet(ctx context.Context, request *SetChatStickerSet) (*Result, error) // SetChatTitle invokes setChatTitle operation. // // POST /setChatTitle SetChatTitle(ctx context.Context, request *SetChatTitle) (*Result, error) // SetGameScore invokes setGameScore operation. // // POST /setGameScore SetGameScore(ctx context.Context, request *SetGameScore) (*Result, error) // SetMyCommands invokes setMyCommands operation. // // POST /setMyCommands SetMyCommands(ctx context.Context, request *SetMyCommands) (*Result, error) // SetPassportDataErrors invokes setPassportDataErrors operation. // // POST /setPassportDataErrors SetPassportDataErrors(ctx context.Context, request *SetPassportDataErrors) (*Result, error) // SetStickerPositionInSet invokes setStickerPositionInSet operation. // // POST /setStickerPositionInSet SetStickerPositionInSet(ctx context.Context, request *SetStickerPositionInSet) (*Result, error) // SetStickerSetThumb invokes setStickerSetThumb operation. // // POST /setStickerSetThumb SetStickerSetThumb(ctx context.Context, request *SetStickerSetThumb) (*Result, error) // SetWebhook invokes setWebhook operation. // // POST /setWebhook SetWebhook(ctx context.Context, request *SetWebhook) (*Result, error) // StopMessageLiveLocation invokes stopMessageLiveLocation operation. // // POST /stopMessageLiveLocation StopMessageLiveLocation(ctx context.Context, request *StopMessageLiveLocation) (*Result, error) // StopPoll invokes stopPoll operation. // // POST /stopPoll StopPoll(ctx context.Context, request *StopPoll) (*ResultPoll, error) // UnbanChatMember invokes unbanChatMember operation. // // POST /unbanChatMember UnbanChatMember(ctx context.Context, request *UnbanChatMember) (*Result, error) // UnbanChatSenderChat invokes unbanChatSenderChat operation. // // POST /unbanChatSenderChat UnbanChatSenderChat(ctx context.Context, request *UnbanChatSenderChat) (*Result, error) // UnpinAllChatMessages invokes unpinAllChatMessages operation. // // POST /unpinAllChatMessages UnpinAllChatMessages(ctx context.Context, request *UnpinAllChatMessages) (*Result, error) // UnpinChatMessage invokes unpinChatMessage operation. // // POST /unpinChatMessage UnpinChatMessage(ctx context.Context, request *UnpinChatMessage) (*Result, error) // UploadStickerFile invokes uploadStickerFile operation. // // POST /uploadStickerFile UploadStickerFile(ctx context.Context, request *UploadStickerFile) (*ResultFile, error) }
Invoker invokes operations described by OpenAPI v3 specification.
type KeyboardButton ¶
type KeyboardButton struct { Type KeyboardButtonType // switch on this field String string KeyboardButtonObject KeyboardButtonObject }
This object represents one button of the reply keyboard. For simple text buttons String can be used instead of this object to specify text of the button. Optional fields request_contact, request_location, and request_poll are mutually exclusive. Ref: #/components/schemas/KeyboardButton KeyboardButton represents sum type.
func NewKeyboardButtonObjectKeyboardButton ¶
func NewKeyboardButtonObjectKeyboardButton(v KeyboardButtonObject) KeyboardButton
NewKeyboardButtonObjectKeyboardButton returns new KeyboardButton from KeyboardButtonObject.
func NewStringKeyboardButton ¶
func NewStringKeyboardButton(v string) KeyboardButton
NewStringKeyboardButton returns new KeyboardButton from string.
func (*KeyboardButton) Decode ¶
func (s *KeyboardButton) Decode(d *jx.Decoder) error
Decode decodes KeyboardButton from json.
func (KeyboardButton) Encode ¶
func (s KeyboardButton) Encode(e *jx.Encoder)
Encode encodes KeyboardButton as json.
func (KeyboardButton) GetKeyboardButtonObject ¶
func (s KeyboardButton) GetKeyboardButtonObject() (v KeyboardButtonObject, ok bool)
GetKeyboardButtonObject returns KeyboardButtonObject and true boolean if KeyboardButton is KeyboardButtonObject.
func (KeyboardButton) GetString ¶
func (s KeyboardButton) GetString() (v string, ok bool)
GetString returns string and true boolean if KeyboardButton is string.
func (KeyboardButton) IsKeyboardButtonObject ¶
func (s KeyboardButton) IsKeyboardButtonObject() bool
IsKeyboardButtonObject reports whether KeyboardButton is KeyboardButtonObject.
func (KeyboardButton) IsString ¶
func (s KeyboardButton) IsString() bool
IsString reports whether KeyboardButton is string.
func (KeyboardButton) MarshalJSON ¶
func (s KeyboardButton) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*KeyboardButton) SetKeyboardButtonObject ¶
func (s *KeyboardButton) SetKeyboardButtonObject(v KeyboardButtonObject)
SetKeyboardButtonObject sets KeyboardButton to KeyboardButtonObject.
func (*KeyboardButton) SetString ¶
func (s *KeyboardButton) SetString(v string)
SetString sets KeyboardButton to string.
func (*KeyboardButton) UnmarshalJSON ¶
func (s *KeyboardButton) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type KeyboardButtonObject ¶
type KeyboardButtonObject struct { // Text of the button. If none of the optional fields are used, it will be sent as a message when the // button is pressed. Text string `json:"text"` // If True, the user's phone number will be sent as a contact when the button is pressed. Available // in private chats only. RequestContact OptBool `json:"request_contact"` // If True, the user's current location will be sent when the button is pressed. Available in private // chats only. RequestLocation OptBool `json:"request_location"` RequestPoll OptKeyboardButtonPollType `json:"request_poll"` }
This object represents one button of the reply keyboard. For simple text buttons String can be used instead of this object to specify text of the button. Optional fields request_contact, request_location, and request_poll are mutually exclusive. Ref: #/components/schemas/KeyboardButtonObject
func (*KeyboardButtonObject) Decode ¶
func (s *KeyboardButtonObject) Decode(d *jx.Decoder) error
Decode decodes KeyboardButtonObject from json.
func (*KeyboardButtonObject) Encode ¶
func (s *KeyboardButtonObject) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*KeyboardButtonObject) GetRequestContact ¶
func (s *KeyboardButtonObject) GetRequestContact() OptBool
GetRequestContact returns the value of RequestContact.
func (*KeyboardButtonObject) GetRequestLocation ¶
func (s *KeyboardButtonObject) GetRequestLocation() OptBool
GetRequestLocation returns the value of RequestLocation.
func (*KeyboardButtonObject) GetRequestPoll ¶
func (s *KeyboardButtonObject) GetRequestPoll() OptKeyboardButtonPollType
GetRequestPoll returns the value of RequestPoll.
func (*KeyboardButtonObject) GetText ¶
func (s *KeyboardButtonObject) GetText() string
GetText returns the value of Text.
func (*KeyboardButtonObject) MarshalJSON ¶
func (s *KeyboardButtonObject) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*KeyboardButtonObject) SetFake ¶
func (s *KeyboardButtonObject) SetFake()
SetFake set fake values.
func (*KeyboardButtonObject) SetRequestContact ¶
func (s *KeyboardButtonObject) SetRequestContact(val OptBool)
SetRequestContact sets the value of RequestContact.
func (*KeyboardButtonObject) SetRequestLocation ¶
func (s *KeyboardButtonObject) SetRequestLocation(val OptBool)
SetRequestLocation sets the value of RequestLocation.
func (*KeyboardButtonObject) SetRequestPoll ¶
func (s *KeyboardButtonObject) SetRequestPoll(val OptKeyboardButtonPollType)
SetRequestPoll sets the value of RequestPoll.
func (*KeyboardButtonObject) SetText ¶
func (s *KeyboardButtonObject) SetText(val string)
SetText sets the value of Text.
func (*KeyboardButtonObject) UnmarshalJSON ¶
func (s *KeyboardButtonObject) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type KeyboardButtonPollType ¶
type KeyboardButtonPollType struct { // If quiz is passed, the user will be allowed to create only polls in the quiz mode. If regular is // passed, only regular polls will be allowed. Otherwise, the user will be allowed to create a poll // of any type. Type OptString `json:"type"` }
This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed. Ref: #/components/schemas/KeyboardButtonPollType
func (*KeyboardButtonPollType) Decode ¶
func (s *KeyboardButtonPollType) Decode(d *jx.Decoder) error
Decode decodes KeyboardButtonPollType from json.
func (*KeyboardButtonPollType) Encode ¶
func (s *KeyboardButtonPollType) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*KeyboardButtonPollType) GetType ¶
func (s *KeyboardButtonPollType) GetType() OptString
GetType returns the value of Type.
func (*KeyboardButtonPollType) MarshalJSON ¶
func (s *KeyboardButtonPollType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*KeyboardButtonPollType) SetFake ¶
func (s *KeyboardButtonPollType) SetFake()
SetFake set fake values.
func (*KeyboardButtonPollType) SetType ¶
func (s *KeyboardButtonPollType) SetType(val OptString)
SetType sets the value of Type.
func (*KeyboardButtonPollType) UnmarshalJSON ¶
func (s *KeyboardButtonPollType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type KeyboardButtonType ¶
type KeyboardButtonType string
KeyboardButtonType is oneOf type of KeyboardButton.
const ( StringKeyboardButton KeyboardButtonType = "string" KeyboardButtonObjectKeyboardButton KeyboardButtonType = "KeyboardButtonObject" )
Possible values for KeyboardButtonType.
type LabeledPrice ¶
type LabeledPrice struct { // Portion label. Label string `json:"label"` // Price of the product in the smallest units of the currency (integer, not float/double). For // example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it // shows the number of digits past the decimal point for each currency (2 for the majority of // currencies). Amount int `json:"amount"` }
This object represents a portion of the price for goods or services. Ref: #/components/schemas/LabeledPrice
func (*LabeledPrice) Decode ¶
func (s *LabeledPrice) Decode(d *jx.Decoder) error
Decode decodes LabeledPrice from json.
func (*LabeledPrice) Encode ¶
func (s *LabeledPrice) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*LabeledPrice) GetAmount ¶
func (s *LabeledPrice) GetAmount() int
GetAmount returns the value of Amount.
func (*LabeledPrice) GetLabel ¶
func (s *LabeledPrice) GetLabel() string
GetLabel returns the value of Label.
func (*LabeledPrice) MarshalJSON ¶
func (s *LabeledPrice) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*LabeledPrice) SetAmount ¶
func (s *LabeledPrice) SetAmount(val int)
SetAmount sets the value of Amount.
func (*LabeledPrice) SetLabel ¶
func (s *LabeledPrice) SetLabel(val string)
SetLabel sets the value of Label.
func (*LabeledPrice) UnmarshalJSON ¶
func (s *LabeledPrice) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Labeler ¶
type Labeler struct {
// contains filtered or unexported fields
}
Labeler is used to allow adding custom attributes to the server request metrics.
func LabelerFromContext ¶
LabelerFromContext retrieves the Labeler from the provided context, if present.
If no Labeler was found in the provided context a new, empty Labeler is returned and the second return value is false. In this case it is safe to use the Labeler but any attributes added to it will not be used.
func (*Labeler) AttributeSet ¶
AttributeSet returns the attributes added to the Labeler as an attribute.Set.
type LeaveChat ¶
type LeaveChat struct {
ChatID ID `json:"chat_id"`
}
Input for leaveChat. Ref: #/components/schemas/leaveChat
func (*LeaveChat) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*LeaveChat) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type Location ¶
type Location struct { // Longitude as defined by sender. Longitude float64 `json:"longitude"` // Latitude as defined by sender. Latitude float64 `json:"latitude"` // The radius of uncertainty for the location, measured in meters; 0-1500. HorizontalAccuracy OptFloat64 `json:"horizontal_accuracy"` // Time relative to the message sending date, during which the location can be updated; in seconds. // For active live locations only. LivePeriod OptInt `json:"live_period"` // The direction in which user is moving, in degrees; 1-360. For active live locations only. Heading OptInt `json:"heading"` // Maximum distance for proximity alerts about approaching another chat member, in meters. For sent // live locations only. ProximityAlertRadius OptInt `json:"proximity_alert_radius"` }
This object represents a point on the map. Ref: #/components/schemas/Location
func (*Location) GetHeading ¶
GetHeading returns the value of Heading.
func (*Location) GetHorizontalAccuracy ¶
func (s *Location) GetHorizontalAccuracy() OptFloat64
GetHorizontalAccuracy returns the value of HorizontalAccuracy.
func (*Location) GetLatitude ¶
GetLatitude returns the value of Latitude.
func (*Location) GetLivePeriod ¶
GetLivePeriod returns the value of LivePeriod.
func (*Location) GetLongitude ¶
GetLongitude returns the value of Longitude.
func (*Location) GetProximityAlertRadius ¶
GetProximityAlertRadius returns the value of ProximityAlertRadius.
func (*Location) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Location) SetHeading ¶
SetHeading sets the value of Heading.
func (*Location) SetHorizontalAccuracy ¶
func (s *Location) SetHorizontalAccuracy(val OptFloat64)
SetHorizontalAccuracy sets the value of HorizontalAccuracy.
func (*Location) SetLatitude ¶
SetLatitude sets the value of Latitude.
func (*Location) SetLivePeriod ¶
SetLivePeriod sets the value of LivePeriod.
func (*Location) SetLongitude ¶
SetLongitude sets the value of Longitude.
func (*Location) SetProximityAlertRadius ¶
SetProximityAlertRadius sets the value of ProximityAlertRadius.
func (*Location) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type LoginUrl ¶
type LoginUrl struct { // An HTTP URL to be opened with user authorization data added to the query string when the button is // pressed. If the user refuses to provide authorization data, the original URL without information // about the user will be opened. The data added is the same as described in Receiving authorization // data.NOTE: You must always check the hash of the received data to verify the authentication and // the integrity of the data as described in Checking authorization. URL url.URL `json:"url"` // New text of the button in forwarded messages. ForwardText OptString `json:"forward_text"` // Username of a bot, which will be used for user authorization. See Setting up a bot for more // details. If not specified, the current bot's username will be assumed. The url's domain must be // the same as the domain linked with the bot. See Linking your domain to the bot for more details. BotUsername OptString `json:"bot_username"` // Pass True to request the permission for your bot to send messages to the user. RequestWriteAccess OptBool `json:"request_write_access"` }
Telegram apps support these buttons as of version 5.7. Ref: #/components/schemas/LoginUrl
func (*LoginUrl) GetBotUsername ¶
GetBotUsername returns the value of BotUsername.
func (*LoginUrl) GetForwardText ¶
GetForwardText returns the value of ForwardText.
func (*LoginUrl) GetRequestWriteAccess ¶
GetRequestWriteAccess returns the value of RequestWriteAccess.
func (*LoginUrl) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*LoginUrl) SetBotUsername ¶
SetBotUsername sets the value of BotUsername.
func (*LoginUrl) SetForwardText ¶
SetForwardText sets the value of ForwardText.
func (*LoginUrl) SetRequestWriteAccess ¶
SetRequestWriteAccess sets the value of RequestWriteAccess.
func (*LoginUrl) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type MaskPosition ¶
type MaskPosition struct { // The part of the face relative to which the mask should be placed. One of “forehead”, // “eyes”, “mouth”, or “chin”. Point string `json:"point"` // Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. For // example, choosing -1.0 will place mask just to the left of the default mask position. XShift float64 `json:"x_shift"` // Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. For // example, 1.0 will place the mask just below the default mask position. YShift float64 `json:"y_shift"` // Mask scaling coefficient. For example, 2.0 means double size. Scale float64 `json:"scale"` }
This object describes the position on faces where a mask should be placed by default. Ref: #/components/schemas/MaskPosition
func (*MaskPosition) Decode ¶
func (s *MaskPosition) Decode(d *jx.Decoder) error
Decode decodes MaskPosition from json.
func (*MaskPosition) Encode ¶
func (s *MaskPosition) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*MaskPosition) GetPoint ¶
func (s *MaskPosition) GetPoint() string
GetPoint returns the value of Point.
func (*MaskPosition) GetScale ¶
func (s *MaskPosition) GetScale() float64
GetScale returns the value of Scale.
func (*MaskPosition) GetXShift ¶
func (s *MaskPosition) GetXShift() float64
GetXShift returns the value of XShift.
func (*MaskPosition) GetYShift ¶
func (s *MaskPosition) GetYShift() float64
GetYShift returns the value of YShift.
func (*MaskPosition) MarshalJSON ¶
func (s *MaskPosition) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*MaskPosition) SetPoint ¶
func (s *MaskPosition) SetPoint(val string)
SetPoint sets the value of Point.
func (*MaskPosition) SetScale ¶
func (s *MaskPosition) SetScale(val float64)
SetScale sets the value of Scale.
func (*MaskPosition) SetXShift ¶
func (s *MaskPosition) SetXShift(val float64)
SetXShift sets the value of XShift.
func (*MaskPosition) SetYShift ¶
func (s *MaskPosition) SetYShift(val float64)
SetYShift sets the value of YShift.
func (*MaskPosition) UnmarshalJSON ¶
func (s *MaskPosition) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*MaskPosition) Validate ¶
func (s *MaskPosition) Validate() error
type Message ¶
type Message struct { // Unique message identifier inside this chat. MessageID int `json:"message_id"` From OptUser `json:"from"` SenderChat OptChat `json:"sender_chat"` // Date the message was sent in Unix time. Date int `json:"date"` Chat Chat `json:"chat"` ForwardFrom OptUser `json:"forward_from"` ForwardFromChat OptChat `json:"forward_from_chat"` // For messages forwarded from channels, identifier of the original message in the channel. ForwardFromMessageID OptInt `json:"forward_from_message_id"` // For messages forwarded from channels, signature of the post author if present. ForwardSignature OptString `json:"forward_signature"` // Sender's name for messages forwarded from users who disallow adding a link to their account in // forwarded messages. ForwardSenderName OptString `json:"forward_sender_name"` // For forwarded messages, date the original message was sent in Unix time. ForwardDate OptInt `json:"forward_date"` // True, if the message is a channel post that was automatically forwarded to the connected // discussion group. IsAutomaticForward OptBool `json:"is_automatic_forward"` ReplyToMessage *Message `json:"reply_to_message"` ViaBot OptUser `json:"via_bot"` // Date the message was last edited in Unix time. EditDate OptInt `json:"edit_date"` // True, if the message can't be forwarded. HasProtectedContent OptBool `json:"has_protected_content"` // The unique identifier of a media message group this message belongs to. MediaGroupID OptString `json:"media_group_id"` // Signature of the post author for messages in channels, or the custom title of an anonymous group // administrator. AuthorSignature OptString `json:"author_signature"` // For text messages, the actual UTF-8 text of the message, 0-4096 characters. Text OptString `json:"text"` // For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the // text. Entities []MessageEntity `json:"entities"` Animation OptAnimation `json:"animation"` Audio OptAudio `json:"audio"` Document OptDocument `json:"document"` // Message is a photo, available sizes of the photo. Photo []PhotoSize `json:"photo"` Sticker OptSticker `json:"sticker"` Video OptVideo `json:"video"` VideoNote OptVideoNote `json:"video_note"` Voice OptVoice `json:"voice"` // Caption for the animation, audio, document, photo, video or voice, 0-1024 characters. Caption OptString `json:"caption"` // For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear // in the caption. CaptionEntities []MessageEntity `json:"caption_entities"` Contact OptContact `json:"contact"` Dice OptDice `json:"dice"` Game OptGame `json:"game"` Poll OptPoll `json:"poll"` Venue OptVenue `json:"venue"` Location OptLocation `json:"location"` // New members that were added to the group or supergroup and information about them (the bot itself // may be one of these members). NewChatMembers []User `json:"new_chat_members"` LeftChatMember OptUser `json:"left_chat_member"` // A chat title was changed to this value. NewChatTitle OptString `json:"new_chat_title"` // A chat photo was change to this value. NewChatPhoto []PhotoSize `json:"new_chat_photo"` // Service message: the chat photo was deleted. DeleteChatPhoto OptBool `json:"delete_chat_photo"` // Service message: the group has been created. GroupChatCreated OptBool `json:"group_chat_created"` // Service message: the supergroup has been created. This field can't be received in a message coming // through updates, because bot can't be a member of a supergroup when it is created. It can only be // found in reply_to_message if someone replies to a very first message in a directly created // supergroup. SupergroupChatCreated OptBool `json:"supergroup_chat_created"` // Service message: the channel has been created. This field can't be received in a message coming // through updates, because bot can't be a member of a channel when it is created. It can only be // found in reply_to_message if someone replies to a very first message in a channel. ChannelChatCreated OptBool `json:"channel_chat_created"` MessageAutoDeleteTimerChanged OptMessageAutoDeleteTimerChanged `json:"message_auto_delete_timer_changed"` // The group has been migrated to a supergroup with the specified identifier. This number may have // more than 32 significant bits and some programming languages may have difficulty/silent defects in // interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or // double-precision float type are safe for storing this identifier. MigrateToChatID OptInt64 `json:"migrate_to_chat_id"` // The supergroup has been migrated from a group with the specified identifier. This number may have // more than 32 significant bits and some programming languages may have difficulty/silent defects in // interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or // double-precision float type are safe for storing this identifier. MigrateFromChatID OptInt64 `json:"migrate_from_chat_id"` PinnedMessage *Message `json:"pinned_message"` Invoice OptInvoice `json:"invoice"` SuccessfulPayment OptSuccessfulPayment `json:"successful_payment"` // The domain name of the website on which the user has logged in. More about Telegram Login ». ConnectedWebsite OptString `json:"connected_website"` PassportData OptPassportData `json:"passport_data"` ProximityAlertTriggered OptProximityAlertTriggered `json:"proximity_alert_triggered"` VoiceChatScheduled OptVoiceChatScheduled `json:"voice_chat_scheduled"` VoiceChatStarted *VoiceChatStarted `json:"voice_chat_started"` VoiceChatEnded OptVoiceChatEnded `json:"voice_chat_ended"` VoiceChatParticipantsInvited OptVoiceChatParticipantsInvited `json:"voice_chat_participants_invited"` ReplyMarkup OptInlineKeyboardMarkup `json:"reply_markup"` }
This object represents a message. Ref: #/components/schemas/Message
func (*Message) GetAnimation ¶
func (s *Message) GetAnimation() OptAnimation
GetAnimation returns the value of Animation.
func (*Message) GetAuthorSignature ¶
GetAuthorSignature returns the value of AuthorSignature.
func (*Message) GetCaption ¶
GetCaption returns the value of Caption.
func (*Message) GetCaptionEntities ¶
func (s *Message) GetCaptionEntities() []MessageEntity
GetCaptionEntities returns the value of CaptionEntities.
func (*Message) GetChannelChatCreated ¶
GetChannelChatCreated returns the value of ChannelChatCreated.
func (*Message) GetConnectedWebsite ¶
GetConnectedWebsite returns the value of ConnectedWebsite.
func (*Message) GetContact ¶
func (s *Message) GetContact() OptContact
GetContact returns the value of Contact.
func (*Message) GetDeleteChatPhoto ¶
GetDeleteChatPhoto returns the value of DeleteChatPhoto.
func (*Message) GetDocument ¶
func (s *Message) GetDocument() OptDocument
GetDocument returns the value of Document.
func (*Message) GetEditDate ¶
GetEditDate returns the value of EditDate.
func (*Message) GetEntities ¶
func (s *Message) GetEntities() []MessageEntity
GetEntities returns the value of Entities.
func (*Message) GetForwardDate ¶
GetForwardDate returns the value of ForwardDate.
func (*Message) GetForwardFrom ¶
GetForwardFrom returns the value of ForwardFrom.
func (*Message) GetForwardFromChat ¶
GetForwardFromChat returns the value of ForwardFromChat.
func (*Message) GetForwardFromMessageID ¶
GetForwardFromMessageID returns the value of ForwardFromMessageID.
func (*Message) GetForwardSenderName ¶
GetForwardSenderName returns the value of ForwardSenderName.
func (*Message) GetForwardSignature ¶
GetForwardSignature returns the value of ForwardSignature.
func (*Message) GetGroupChatCreated ¶
GetGroupChatCreated returns the value of GroupChatCreated.
func (*Message) GetHasProtectedContent ¶
GetHasProtectedContent returns the value of HasProtectedContent.
func (*Message) GetInvoice ¶
func (s *Message) GetInvoice() OptInvoice
GetInvoice returns the value of Invoice.
func (*Message) GetIsAutomaticForward ¶
GetIsAutomaticForward returns the value of IsAutomaticForward.
func (*Message) GetLeftChatMember ¶
GetLeftChatMember returns the value of LeftChatMember.
func (*Message) GetLocation ¶
func (s *Message) GetLocation() OptLocation
GetLocation returns the value of Location.
func (*Message) GetMediaGroupID ¶
GetMediaGroupID returns the value of MediaGroupID.
func (*Message) GetMessageAutoDeleteTimerChanged ¶
func (s *Message) GetMessageAutoDeleteTimerChanged() OptMessageAutoDeleteTimerChanged
GetMessageAutoDeleteTimerChanged returns the value of MessageAutoDeleteTimerChanged.
func (*Message) GetMessageID ¶
GetMessageID returns the value of MessageID.
func (*Message) GetMigrateFromChatID ¶
GetMigrateFromChatID returns the value of MigrateFromChatID.
func (*Message) GetMigrateToChatID ¶
GetMigrateToChatID returns the value of MigrateToChatID.
func (*Message) GetNewChatMembers ¶
GetNewChatMembers returns the value of NewChatMembers.
func (*Message) GetNewChatPhoto ¶
GetNewChatPhoto returns the value of NewChatPhoto.
func (*Message) GetNewChatTitle ¶
GetNewChatTitle returns the value of NewChatTitle.
func (*Message) GetPassportData ¶
func (s *Message) GetPassportData() OptPassportData
GetPassportData returns the value of PassportData.
func (*Message) GetPinnedMessage ¶
GetPinnedMessage returns the value of PinnedMessage.
func (*Message) GetProximityAlertTriggered ¶
func (s *Message) GetProximityAlertTriggered() OptProximityAlertTriggered
GetProximityAlertTriggered returns the value of ProximityAlertTriggered.
func (*Message) GetReplyMarkup ¶
func (s *Message) GetReplyMarkup() OptInlineKeyboardMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*Message) GetReplyToMessage ¶
GetReplyToMessage returns the value of ReplyToMessage.
func (*Message) GetSenderChat ¶
GetSenderChat returns the value of SenderChat.
func (*Message) GetSticker ¶
func (s *Message) GetSticker() OptSticker
GetSticker returns the value of Sticker.
func (*Message) GetSuccessfulPayment ¶
func (s *Message) GetSuccessfulPayment() OptSuccessfulPayment
GetSuccessfulPayment returns the value of SuccessfulPayment.
func (*Message) GetSupergroupChatCreated ¶
GetSupergroupChatCreated returns the value of SupergroupChatCreated.
func (*Message) GetVideoNote ¶
func (s *Message) GetVideoNote() OptVideoNote
GetVideoNote returns the value of VideoNote.
func (*Message) GetVoiceChatEnded ¶
func (s *Message) GetVoiceChatEnded() OptVoiceChatEnded
GetVoiceChatEnded returns the value of VoiceChatEnded.
func (*Message) GetVoiceChatParticipantsInvited ¶
func (s *Message) GetVoiceChatParticipantsInvited() OptVoiceChatParticipantsInvited
GetVoiceChatParticipantsInvited returns the value of VoiceChatParticipantsInvited.
func (*Message) GetVoiceChatScheduled ¶
func (s *Message) GetVoiceChatScheduled() OptVoiceChatScheduled
GetVoiceChatScheduled returns the value of VoiceChatScheduled.
func (*Message) GetVoiceChatStarted ¶
func (s *Message) GetVoiceChatStarted() *VoiceChatStarted
GetVoiceChatStarted returns the value of VoiceChatStarted.
func (*Message) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Message) SetAnimation ¶
func (s *Message) SetAnimation(val OptAnimation)
SetAnimation sets the value of Animation.
func (*Message) SetAuthorSignature ¶
SetAuthorSignature sets the value of AuthorSignature.
func (*Message) SetCaption ¶
SetCaption sets the value of Caption.
func (*Message) SetCaptionEntities ¶
func (s *Message) SetCaptionEntities(val []MessageEntity)
SetCaptionEntities sets the value of CaptionEntities.
func (*Message) SetChannelChatCreated ¶
SetChannelChatCreated sets the value of ChannelChatCreated.
func (*Message) SetConnectedWebsite ¶
SetConnectedWebsite sets the value of ConnectedWebsite.
func (*Message) SetContact ¶
func (s *Message) SetContact(val OptContact)
SetContact sets the value of Contact.
func (*Message) SetDeleteChatPhoto ¶
SetDeleteChatPhoto sets the value of DeleteChatPhoto.
func (*Message) SetDocument ¶
func (s *Message) SetDocument(val OptDocument)
SetDocument sets the value of Document.
func (*Message) SetEditDate ¶
SetEditDate sets the value of EditDate.
func (*Message) SetEntities ¶
func (s *Message) SetEntities(val []MessageEntity)
SetEntities sets the value of Entities.
func (*Message) SetForwardDate ¶
SetForwardDate sets the value of ForwardDate.
func (*Message) SetForwardFrom ¶
SetForwardFrom sets the value of ForwardFrom.
func (*Message) SetForwardFromChat ¶
SetForwardFromChat sets the value of ForwardFromChat.
func (*Message) SetForwardFromMessageID ¶
SetForwardFromMessageID sets the value of ForwardFromMessageID.
func (*Message) SetForwardSenderName ¶
SetForwardSenderName sets the value of ForwardSenderName.
func (*Message) SetForwardSignature ¶
SetForwardSignature sets the value of ForwardSignature.
func (*Message) SetGroupChatCreated ¶
SetGroupChatCreated sets the value of GroupChatCreated.
func (*Message) SetHasProtectedContent ¶
SetHasProtectedContent sets the value of HasProtectedContent.
func (*Message) SetInvoice ¶
func (s *Message) SetInvoice(val OptInvoice)
SetInvoice sets the value of Invoice.
func (*Message) SetIsAutomaticForward ¶
SetIsAutomaticForward sets the value of IsAutomaticForward.
func (*Message) SetLeftChatMember ¶
SetLeftChatMember sets the value of LeftChatMember.
func (*Message) SetLocation ¶
func (s *Message) SetLocation(val OptLocation)
SetLocation sets the value of Location.
func (*Message) SetMediaGroupID ¶
SetMediaGroupID sets the value of MediaGroupID.
func (*Message) SetMessageAutoDeleteTimerChanged ¶
func (s *Message) SetMessageAutoDeleteTimerChanged(val OptMessageAutoDeleteTimerChanged)
SetMessageAutoDeleteTimerChanged sets the value of MessageAutoDeleteTimerChanged.
func (*Message) SetMessageID ¶
SetMessageID sets the value of MessageID.
func (*Message) SetMigrateFromChatID ¶
SetMigrateFromChatID sets the value of MigrateFromChatID.
func (*Message) SetMigrateToChatID ¶
SetMigrateToChatID sets the value of MigrateToChatID.
func (*Message) SetNewChatMembers ¶
SetNewChatMembers sets the value of NewChatMembers.
func (*Message) SetNewChatPhoto ¶
SetNewChatPhoto sets the value of NewChatPhoto.
func (*Message) SetNewChatTitle ¶
SetNewChatTitle sets the value of NewChatTitle.
func (*Message) SetPassportData ¶
func (s *Message) SetPassportData(val OptPassportData)
SetPassportData sets the value of PassportData.
func (*Message) SetPinnedMessage ¶
SetPinnedMessage sets the value of PinnedMessage.
func (*Message) SetProximityAlertTriggered ¶
func (s *Message) SetProximityAlertTriggered(val OptProximityAlertTriggered)
SetProximityAlertTriggered sets the value of ProximityAlertTriggered.
func (*Message) SetReplyMarkup ¶
func (s *Message) SetReplyMarkup(val OptInlineKeyboardMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*Message) SetReplyToMessage ¶
SetReplyToMessage sets the value of ReplyToMessage.
func (*Message) SetSenderChat ¶
SetSenderChat sets the value of SenderChat.
func (*Message) SetSticker ¶
func (s *Message) SetSticker(val OptSticker)
SetSticker sets the value of Sticker.
func (*Message) SetSuccessfulPayment ¶
func (s *Message) SetSuccessfulPayment(val OptSuccessfulPayment)
SetSuccessfulPayment sets the value of SuccessfulPayment.
func (*Message) SetSupergroupChatCreated ¶
SetSupergroupChatCreated sets the value of SupergroupChatCreated.
func (*Message) SetVideoNote ¶
func (s *Message) SetVideoNote(val OptVideoNote)
SetVideoNote sets the value of VideoNote.
func (*Message) SetVoiceChatEnded ¶
func (s *Message) SetVoiceChatEnded(val OptVoiceChatEnded)
SetVoiceChatEnded sets the value of VoiceChatEnded.
func (*Message) SetVoiceChatParticipantsInvited ¶
func (s *Message) SetVoiceChatParticipantsInvited(val OptVoiceChatParticipantsInvited)
SetVoiceChatParticipantsInvited sets the value of VoiceChatParticipantsInvited.
func (*Message) SetVoiceChatScheduled ¶
func (s *Message) SetVoiceChatScheduled(val OptVoiceChatScheduled)
SetVoiceChatScheduled sets the value of VoiceChatScheduled.
func (*Message) SetVoiceChatStarted ¶
func (s *Message) SetVoiceChatStarted(val *VoiceChatStarted)
SetVoiceChatStarted sets the value of VoiceChatStarted.
func (*Message) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type MessageAutoDeleteTimerChanged ¶
type MessageAutoDeleteTimerChanged struct { // New auto-delete time for messages in the chat; in seconds. MessageAutoDeleteTime int `json:"message_auto_delete_time"` }
This object represents a service message about a change in auto-delete timer settings. Ref: #/components/schemas/MessageAutoDeleteTimerChanged
func (*MessageAutoDeleteTimerChanged) Decode ¶
func (s *MessageAutoDeleteTimerChanged) Decode(d *jx.Decoder) error
Decode decodes MessageAutoDeleteTimerChanged from json.
func (*MessageAutoDeleteTimerChanged) Encode ¶
func (s *MessageAutoDeleteTimerChanged) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*MessageAutoDeleteTimerChanged) GetMessageAutoDeleteTime ¶
func (s *MessageAutoDeleteTimerChanged) GetMessageAutoDeleteTime() int
GetMessageAutoDeleteTime returns the value of MessageAutoDeleteTime.
func (*MessageAutoDeleteTimerChanged) MarshalJSON ¶
func (s *MessageAutoDeleteTimerChanged) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*MessageAutoDeleteTimerChanged) SetFake ¶
func (s *MessageAutoDeleteTimerChanged) SetFake()
SetFake set fake values.
func (*MessageAutoDeleteTimerChanged) SetMessageAutoDeleteTime ¶
func (s *MessageAutoDeleteTimerChanged) SetMessageAutoDeleteTime(val int)
SetMessageAutoDeleteTime sets the value of MessageAutoDeleteTime.
func (*MessageAutoDeleteTimerChanged) UnmarshalJSON ¶
func (s *MessageAutoDeleteTimerChanged) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type MessageEntity ¶
type MessageEntity struct { // Type of the entity. Can be “mention” (@username), “hashtag” (#hashtag), “cashtag” // ($USD), “bot_command” (/start@jobs_bot), “url” (https://telegram.org), “email” // (do-not-reply@telegram.org), “phone_number” (+1-212-555-0123), “bold” (bold text), // “italic” (italic text), “underline” (underlined text), “strikethrough” (strikethrough // text), “code” (monowidth string), “pre” (monowidth block), “text_link” (for clickable // text URLs), “text_mention” (for users without usernames). Type MessageEntityType `json:"type"` // Offset in UTF-16 code units to the start of the entity. Offset int `json:"offset"` // Length of the entity in UTF-16 code units. Length int `json:"length"` // For “text_link” only, url that will be opened after user taps on the text. URL OptURI `json:"url"` User OptUser `json:"user"` // For “pre” only, the programming language of the entity text. Language OptString `json:"language"` }
This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc. Ref: #/components/schemas/MessageEntity
func (*MessageEntity) Decode ¶
func (s *MessageEntity) Decode(d *jx.Decoder) error
Decode decodes MessageEntity from json.
func (*MessageEntity) Encode ¶
func (s *MessageEntity) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*MessageEntity) GetLanguage ¶
func (s *MessageEntity) GetLanguage() OptString
GetLanguage returns the value of Language.
func (*MessageEntity) GetLength ¶
func (s *MessageEntity) GetLength() int
GetLength returns the value of Length.
func (*MessageEntity) GetOffset ¶
func (s *MessageEntity) GetOffset() int
GetOffset returns the value of Offset.
func (*MessageEntity) GetType ¶
func (s *MessageEntity) GetType() MessageEntityType
GetType returns the value of Type.
func (*MessageEntity) GetURL ¶
func (s *MessageEntity) GetURL() OptURI
GetURL returns the value of URL.
func (*MessageEntity) GetUser ¶
func (s *MessageEntity) GetUser() OptUser
GetUser returns the value of User.
func (*MessageEntity) MarshalJSON ¶
func (s *MessageEntity) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*MessageEntity) SetLanguage ¶
func (s *MessageEntity) SetLanguage(val OptString)
SetLanguage sets the value of Language.
func (*MessageEntity) SetLength ¶
func (s *MessageEntity) SetLength(val int)
SetLength sets the value of Length.
func (*MessageEntity) SetOffset ¶
func (s *MessageEntity) SetOffset(val int)
SetOffset sets the value of Offset.
func (*MessageEntity) SetType ¶
func (s *MessageEntity) SetType(val MessageEntityType)
SetType sets the value of Type.
func (*MessageEntity) SetURL ¶
func (s *MessageEntity) SetURL(val OptURI)
SetURL sets the value of URL.
func (*MessageEntity) SetUser ¶
func (s *MessageEntity) SetUser(val OptUser)
SetUser sets the value of User.
func (*MessageEntity) UnmarshalJSON ¶
func (s *MessageEntity) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*MessageEntity) Validate ¶
func (s *MessageEntity) Validate() error
type MessageEntityType ¶
type MessageEntityType string
Type of the entity. Can be “mention” (@username), “hashtag” (#hashtag), “cashtag” ($USD), “bot_command” (/start@jobs_bot), “url” (https://telegram.org), “email” (do-not-reply@telegram.org), “phone_number” (+1-212-555-0123), “bold” (bold text), “italic” (italic text), “underline” (underlined text), “strikethrough” (strikethrough text), “code” (monowidth string), “pre” (monowidth block), “text_link” (for clickable text URLs), “text_mention” (for users without usernames).
const ( MessageEntityTypeMention MessageEntityType = "mention" MessageEntityTypeHashtag MessageEntityType = "hashtag" MessageEntityTypeCashtag MessageEntityType = "cashtag" MessageEntityTypeBotCommand MessageEntityType = "bot_command" MessageEntityTypeURL MessageEntityType = "url" MessageEntityTypeEmail MessageEntityType = "email" MessageEntityTypePhoneNumber MessageEntityType = "phone_number" MessageEntityTypeBold MessageEntityType = "bold" MessageEntityTypeItalic MessageEntityType = "italic" MessageEntityTypeUnderline MessageEntityType = "underline" MessageEntityTypeStrikethrough MessageEntityType = "strikethrough" MessageEntityTypeCode MessageEntityType = "code" MessageEntityTypePre MessageEntityType = "pre" MessageEntityTypeTextLink MessageEntityType = "text_link" MessageEntityTypeTextMention MessageEntityType = "text_mention" )
func (MessageEntityType) AllValues ¶
func (MessageEntityType) AllValues() []MessageEntityType
AllValues returns all MessageEntityType values.
func (*MessageEntityType) Decode ¶
func (s *MessageEntityType) Decode(d *jx.Decoder) error
Decode decodes MessageEntityType from json.
func (MessageEntityType) Encode ¶
func (s MessageEntityType) Encode(e *jx.Encoder)
Encode encodes MessageEntityType as json.
func (MessageEntityType) MarshalJSON ¶
func (s MessageEntityType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (MessageEntityType) MarshalText ¶
func (s MessageEntityType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*MessageEntityType) UnmarshalJSON ¶
func (s *MessageEntityType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*MessageEntityType) UnmarshalText ¶
func (s *MessageEntityType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (MessageEntityType) Validate ¶
func (s MessageEntityType) Validate() error
type MessageId ¶
type MessageId struct { // Unique message identifier. MessageID int `json:"message_id"` }
This object represents a unique message identifier. Ref: #/components/schemas/MessageId
func (*MessageId) GetMessageID ¶
GetMessageID returns the value of MessageID.
func (*MessageId) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*MessageId) SetMessageID ¶
SetMessageID sets the value of MessageID.
func (*MessageId) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptAnimation ¶
OptAnimation is optional Animation.
func NewOptAnimation ¶
func NewOptAnimation(v Animation) OptAnimation
NewOptAnimation returns new OptAnimation with value set to v.
func (*OptAnimation) Decode ¶
func (o *OptAnimation) Decode(d *jx.Decoder) error
Decode decodes Animation from json.
func (OptAnimation) Encode ¶
func (o OptAnimation) Encode(e *jx.Encoder)
Encode encodes Animation as json.
func (OptAnimation) Get ¶
func (o OptAnimation) Get() (v Animation, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptAnimation) IsSet ¶
func (o OptAnimation) IsSet() bool
IsSet returns true if OptAnimation was set.
func (OptAnimation) MarshalJSON ¶
func (s OptAnimation) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptAnimation) Or ¶
func (o OptAnimation) Or(d Animation) Animation
Or returns value if set, or given parameter if does not.
func (*OptAnimation) UnmarshalJSON ¶
func (s *OptAnimation) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptAudio ¶
OptAudio is optional Audio.
func NewOptAudio ¶
NewOptAudio returns new OptAudio with value set to v.
func (OptAudio) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptAudio) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptBool ¶
OptBool is optional bool.
func NewOptBool ¶
NewOptBool returns new OptBool with value set to v.
func (OptBool) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptBool) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptBotCommandScope ¶
type OptBotCommandScope struct { Value BotCommandScope Set bool }
OptBotCommandScope is optional BotCommandScope.
func NewOptBotCommandScope ¶
func NewOptBotCommandScope(v BotCommandScope) OptBotCommandScope
NewOptBotCommandScope returns new OptBotCommandScope with value set to v.
func (*OptBotCommandScope) Decode ¶
func (o *OptBotCommandScope) Decode(d *jx.Decoder) error
Decode decodes BotCommandScope from json.
func (OptBotCommandScope) Encode ¶
func (o OptBotCommandScope) Encode(e *jx.Encoder)
Encode encodes BotCommandScope as json.
func (OptBotCommandScope) Get ¶
func (o OptBotCommandScope) Get() (v BotCommandScope, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptBotCommandScope) IsSet ¶
func (o OptBotCommandScope) IsSet() bool
IsSet returns true if OptBotCommandScope was set.
func (OptBotCommandScope) MarshalJSON ¶
func (s OptBotCommandScope) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptBotCommandScope) Or ¶
func (o OptBotCommandScope) Or(d BotCommandScope) BotCommandScope
Or returns value if set, or given parameter if does not.
func (*OptBotCommandScope) SetFake ¶
func (s *OptBotCommandScope) SetFake()
SetFake set fake values.
func (*OptBotCommandScope) SetTo ¶
func (o *OptBotCommandScope) SetTo(v BotCommandScope)
SetTo sets value to v.
func (*OptBotCommandScope) UnmarshalJSON ¶
func (s *OptBotCommandScope) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptCallbackQuery ¶
type OptCallbackQuery struct { Value CallbackQuery Set bool }
OptCallbackQuery is optional CallbackQuery.
func NewOptCallbackQuery ¶
func NewOptCallbackQuery(v CallbackQuery) OptCallbackQuery
NewOptCallbackQuery returns new OptCallbackQuery with value set to v.
func (*OptCallbackQuery) Decode ¶
func (o *OptCallbackQuery) Decode(d *jx.Decoder) error
Decode decodes CallbackQuery from json.
func (OptCallbackQuery) Encode ¶
func (o OptCallbackQuery) Encode(e *jx.Encoder)
Encode encodes CallbackQuery as json.
func (OptCallbackQuery) Get ¶
func (o OptCallbackQuery) Get() (v CallbackQuery, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptCallbackQuery) IsSet ¶
func (o OptCallbackQuery) IsSet() bool
IsSet returns true if OptCallbackQuery was set.
func (OptCallbackQuery) MarshalJSON ¶
func (s OptCallbackQuery) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptCallbackQuery) Or ¶
func (o OptCallbackQuery) Or(d CallbackQuery) CallbackQuery
Or returns value if set, or given parameter if does not.
func (*OptCallbackQuery) SetTo ¶
func (o *OptCallbackQuery) SetTo(v CallbackQuery)
SetTo sets value to v.
func (*OptCallbackQuery) UnmarshalJSON ¶
func (s *OptCallbackQuery) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptChat ¶
OptChat is optional Chat.
func NewOptChat ¶
NewOptChat returns new OptChat with value set to v.
func (OptChat) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptChat) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptChatInviteLink ¶
type OptChatInviteLink struct { Value ChatInviteLink Set bool }
OptChatInviteLink is optional ChatInviteLink.
func NewOptChatInviteLink ¶
func NewOptChatInviteLink(v ChatInviteLink) OptChatInviteLink
NewOptChatInviteLink returns new OptChatInviteLink with value set to v.
func (*OptChatInviteLink) Decode ¶
func (o *OptChatInviteLink) Decode(d *jx.Decoder) error
Decode decodes ChatInviteLink from json.
func (OptChatInviteLink) Encode ¶
func (o OptChatInviteLink) Encode(e *jx.Encoder)
Encode encodes ChatInviteLink as json.
func (OptChatInviteLink) Get ¶
func (o OptChatInviteLink) Get() (v ChatInviteLink, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptChatInviteLink) IsSet ¶
func (o OptChatInviteLink) IsSet() bool
IsSet returns true if OptChatInviteLink was set.
func (OptChatInviteLink) MarshalJSON ¶
func (s OptChatInviteLink) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptChatInviteLink) Or ¶
func (o OptChatInviteLink) Or(d ChatInviteLink) ChatInviteLink
Or returns value if set, or given parameter if does not.
func (*OptChatInviteLink) SetTo ¶
func (o *OptChatInviteLink) SetTo(v ChatInviteLink)
SetTo sets value to v.
func (*OptChatInviteLink) UnmarshalJSON ¶
func (s *OptChatInviteLink) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptChatJoinRequest ¶
type OptChatJoinRequest struct { Value ChatJoinRequest Set bool }
OptChatJoinRequest is optional ChatJoinRequest.
func NewOptChatJoinRequest ¶
func NewOptChatJoinRequest(v ChatJoinRequest) OptChatJoinRequest
NewOptChatJoinRequest returns new OptChatJoinRequest with value set to v.
func (*OptChatJoinRequest) Decode ¶
func (o *OptChatJoinRequest) Decode(d *jx.Decoder) error
Decode decodes ChatJoinRequest from json.
func (OptChatJoinRequest) Encode ¶
func (o OptChatJoinRequest) Encode(e *jx.Encoder)
Encode encodes ChatJoinRequest as json.
func (OptChatJoinRequest) Get ¶
func (o OptChatJoinRequest) Get() (v ChatJoinRequest, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptChatJoinRequest) IsSet ¶
func (o OptChatJoinRequest) IsSet() bool
IsSet returns true if OptChatJoinRequest was set.
func (OptChatJoinRequest) MarshalJSON ¶
func (s OptChatJoinRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptChatJoinRequest) Or ¶
func (o OptChatJoinRequest) Or(d ChatJoinRequest) ChatJoinRequest
Or returns value if set, or given parameter if does not.
func (*OptChatJoinRequest) SetFake ¶
func (s *OptChatJoinRequest) SetFake()
SetFake set fake values.
func (*OptChatJoinRequest) SetTo ¶
func (o *OptChatJoinRequest) SetTo(v ChatJoinRequest)
SetTo sets value to v.
func (*OptChatJoinRequest) UnmarshalJSON ¶
func (s *OptChatJoinRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptChatLocation ¶
type OptChatLocation struct { Value ChatLocation Set bool }
OptChatLocation is optional ChatLocation.
func NewOptChatLocation ¶
func NewOptChatLocation(v ChatLocation) OptChatLocation
NewOptChatLocation returns new OptChatLocation with value set to v.
func (*OptChatLocation) Decode ¶
func (o *OptChatLocation) Decode(d *jx.Decoder) error
Decode decodes ChatLocation from json.
func (OptChatLocation) Encode ¶
func (o OptChatLocation) Encode(e *jx.Encoder)
Encode encodes ChatLocation as json.
func (OptChatLocation) Get ¶
func (o OptChatLocation) Get() (v ChatLocation, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptChatLocation) IsSet ¶
func (o OptChatLocation) IsSet() bool
IsSet returns true if OptChatLocation was set.
func (OptChatLocation) MarshalJSON ¶
func (s OptChatLocation) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptChatLocation) Or ¶
func (o OptChatLocation) Or(d ChatLocation) ChatLocation
Or returns value if set, or given parameter if does not.
func (*OptChatLocation) SetTo ¶
func (o *OptChatLocation) SetTo(v ChatLocation)
SetTo sets value to v.
func (*OptChatLocation) UnmarshalJSON ¶
func (s *OptChatLocation) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptChatMember ¶
type OptChatMember struct { Value ChatMember Set bool }
OptChatMember is optional ChatMember.
func NewOptChatMember ¶
func NewOptChatMember(v ChatMember) OptChatMember
NewOptChatMember returns new OptChatMember with value set to v.
func (*OptChatMember) Decode ¶
func (o *OptChatMember) Decode(d *jx.Decoder) error
Decode decodes ChatMember from json.
func (OptChatMember) Encode ¶
func (o OptChatMember) Encode(e *jx.Encoder)
Encode encodes ChatMember as json.
func (OptChatMember) Get ¶
func (o OptChatMember) Get() (v ChatMember, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptChatMember) IsSet ¶
func (o OptChatMember) IsSet() bool
IsSet returns true if OptChatMember was set.
func (OptChatMember) MarshalJSON ¶
func (s OptChatMember) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptChatMember) Or ¶
func (o OptChatMember) Or(d ChatMember) ChatMember
Or returns value if set, or given parameter if does not.
func (*OptChatMember) UnmarshalJSON ¶
func (s *OptChatMember) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptChatMemberUpdated ¶
type OptChatMemberUpdated struct { Value ChatMemberUpdated Set bool }
OptChatMemberUpdated is optional ChatMemberUpdated.
func NewOptChatMemberUpdated ¶
func NewOptChatMemberUpdated(v ChatMemberUpdated) OptChatMemberUpdated
NewOptChatMemberUpdated returns new OptChatMemberUpdated with value set to v.
func (*OptChatMemberUpdated) Decode ¶
func (o *OptChatMemberUpdated) Decode(d *jx.Decoder) error
Decode decodes ChatMemberUpdated from json.
func (OptChatMemberUpdated) Encode ¶
func (o OptChatMemberUpdated) Encode(e *jx.Encoder)
Encode encodes ChatMemberUpdated as json.
func (OptChatMemberUpdated) Get ¶
func (o OptChatMemberUpdated) Get() (v ChatMemberUpdated, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptChatMemberUpdated) IsSet ¶
func (o OptChatMemberUpdated) IsSet() bool
IsSet returns true if OptChatMemberUpdated was set.
func (OptChatMemberUpdated) MarshalJSON ¶
func (s OptChatMemberUpdated) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptChatMemberUpdated) Or ¶
func (o OptChatMemberUpdated) Or(d ChatMemberUpdated) ChatMemberUpdated
Or returns value if set, or given parameter if does not.
func (*OptChatMemberUpdated) SetFake ¶
func (s *OptChatMemberUpdated) SetFake()
SetFake set fake values.
func (*OptChatMemberUpdated) SetTo ¶
func (o *OptChatMemberUpdated) SetTo(v ChatMemberUpdated)
SetTo sets value to v.
func (*OptChatMemberUpdated) UnmarshalJSON ¶
func (s *OptChatMemberUpdated) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptChatPermissions ¶
type OptChatPermissions struct { Value ChatPermissions Set bool }
OptChatPermissions is optional ChatPermissions.
func NewOptChatPermissions ¶
func NewOptChatPermissions(v ChatPermissions) OptChatPermissions
NewOptChatPermissions returns new OptChatPermissions with value set to v.
func (*OptChatPermissions) Decode ¶
func (o *OptChatPermissions) Decode(d *jx.Decoder) error
Decode decodes ChatPermissions from json.
func (OptChatPermissions) Encode ¶
func (o OptChatPermissions) Encode(e *jx.Encoder)
Encode encodes ChatPermissions as json.
func (OptChatPermissions) Get ¶
func (o OptChatPermissions) Get() (v ChatPermissions, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptChatPermissions) IsSet ¶
func (o OptChatPermissions) IsSet() bool
IsSet returns true if OptChatPermissions was set.
func (OptChatPermissions) MarshalJSON ¶
func (s OptChatPermissions) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptChatPermissions) Or ¶
func (o OptChatPermissions) Or(d ChatPermissions) ChatPermissions
Or returns value if set, or given parameter if does not.
func (*OptChatPermissions) SetFake ¶
func (s *OptChatPermissions) SetFake()
SetFake set fake values.
func (*OptChatPermissions) SetTo ¶
func (o *OptChatPermissions) SetTo(v ChatPermissions)
SetTo sets value to v.
func (*OptChatPermissions) UnmarshalJSON ¶
func (s *OptChatPermissions) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptChatPhoto ¶
OptChatPhoto is optional ChatPhoto.
func NewOptChatPhoto ¶
func NewOptChatPhoto(v ChatPhoto) OptChatPhoto
NewOptChatPhoto returns new OptChatPhoto with value set to v.
func (*OptChatPhoto) Decode ¶
func (o *OptChatPhoto) Decode(d *jx.Decoder) error
Decode decodes ChatPhoto from json.
func (OptChatPhoto) Encode ¶
func (o OptChatPhoto) Encode(e *jx.Encoder)
Encode encodes ChatPhoto as json.
func (OptChatPhoto) Get ¶
func (o OptChatPhoto) Get() (v ChatPhoto, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptChatPhoto) IsSet ¶
func (o OptChatPhoto) IsSet() bool
IsSet returns true if OptChatPhoto was set.
func (OptChatPhoto) MarshalJSON ¶
func (s OptChatPhoto) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptChatPhoto) Or ¶
func (o OptChatPhoto) Or(d ChatPhoto) ChatPhoto
Or returns value if set, or given parameter if does not.
func (*OptChatPhoto) UnmarshalJSON ¶
func (s *OptChatPhoto) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptChosenInlineResult ¶
type OptChosenInlineResult struct { Value ChosenInlineResult Set bool }
OptChosenInlineResult is optional ChosenInlineResult.
func NewOptChosenInlineResult ¶
func NewOptChosenInlineResult(v ChosenInlineResult) OptChosenInlineResult
NewOptChosenInlineResult returns new OptChosenInlineResult with value set to v.
func (*OptChosenInlineResult) Decode ¶
func (o *OptChosenInlineResult) Decode(d *jx.Decoder) error
Decode decodes ChosenInlineResult from json.
func (OptChosenInlineResult) Encode ¶
func (o OptChosenInlineResult) Encode(e *jx.Encoder)
Encode encodes ChosenInlineResult as json.
func (OptChosenInlineResult) Get ¶
func (o OptChosenInlineResult) Get() (v ChosenInlineResult, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptChosenInlineResult) IsSet ¶
func (o OptChosenInlineResult) IsSet() bool
IsSet returns true if OptChosenInlineResult was set.
func (OptChosenInlineResult) MarshalJSON ¶
func (s OptChosenInlineResult) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptChosenInlineResult) Or ¶
func (o OptChosenInlineResult) Or(d ChosenInlineResult) ChosenInlineResult
Or returns value if set, or given parameter if does not.
func (*OptChosenInlineResult) SetFake ¶
func (s *OptChosenInlineResult) SetFake()
SetFake set fake values.
func (*OptChosenInlineResult) SetTo ¶
func (o *OptChosenInlineResult) SetTo(v ChosenInlineResult)
SetTo sets value to v.
func (*OptChosenInlineResult) UnmarshalJSON ¶
func (s *OptChosenInlineResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptContact ¶
OptContact is optional Contact.
func NewOptContact ¶
func NewOptContact(v Contact) OptContact
NewOptContact returns new OptContact with value set to v.
func (*OptContact) Decode ¶
func (o *OptContact) Decode(d *jx.Decoder) error
Decode decodes Contact from json.
func (OptContact) Encode ¶
func (o OptContact) Encode(e *jx.Encoder)
Encode encodes Contact as json.
func (OptContact) Get ¶
func (o OptContact) Get() (v Contact, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptContact) IsSet ¶
func (o OptContact) IsSet() bool
IsSet returns true if OptContact was set.
func (OptContact) MarshalJSON ¶
func (s OptContact) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptContact) Or ¶
func (o OptContact) Or(d Contact) Contact
Or returns value if set, or given parameter if does not.
func (*OptContact) UnmarshalJSON ¶
func (s *OptContact) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptCopyMessageReplyMarkup ¶
type OptCopyMessageReplyMarkup struct { Value CopyMessageReplyMarkup Set bool }
OptCopyMessageReplyMarkup is optional CopyMessageReplyMarkup.
func NewOptCopyMessageReplyMarkup ¶
func NewOptCopyMessageReplyMarkup(v CopyMessageReplyMarkup) OptCopyMessageReplyMarkup
NewOptCopyMessageReplyMarkup returns new OptCopyMessageReplyMarkup with value set to v.
func (*OptCopyMessageReplyMarkup) Decode ¶
func (o *OptCopyMessageReplyMarkup) Decode(d *jx.Decoder) error
Decode decodes CopyMessageReplyMarkup from json.
func (OptCopyMessageReplyMarkup) Encode ¶
func (o OptCopyMessageReplyMarkup) Encode(e *jx.Encoder)
Encode encodes CopyMessageReplyMarkup as json.
func (OptCopyMessageReplyMarkup) Get ¶
func (o OptCopyMessageReplyMarkup) Get() (v CopyMessageReplyMarkup, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptCopyMessageReplyMarkup) IsSet ¶
func (o OptCopyMessageReplyMarkup) IsSet() bool
IsSet returns true if OptCopyMessageReplyMarkup was set.
func (OptCopyMessageReplyMarkup) MarshalJSON ¶
func (s OptCopyMessageReplyMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptCopyMessageReplyMarkup) Reset ¶
func (o *OptCopyMessageReplyMarkup) Reset()
Reset unsets value.
func (*OptCopyMessageReplyMarkup) SetFake ¶
func (s *OptCopyMessageReplyMarkup) SetFake()
SetFake set fake values.
func (*OptCopyMessageReplyMarkup) SetTo ¶
func (o *OptCopyMessageReplyMarkup) SetTo(v CopyMessageReplyMarkup)
SetTo sets value to v.
func (*OptCopyMessageReplyMarkup) UnmarshalJSON ¶
func (s *OptCopyMessageReplyMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptDeleteMyCommands ¶
type OptDeleteMyCommands struct { Value DeleteMyCommands Set bool }
OptDeleteMyCommands is optional DeleteMyCommands.
func NewOptDeleteMyCommands ¶
func NewOptDeleteMyCommands(v DeleteMyCommands) OptDeleteMyCommands
NewOptDeleteMyCommands returns new OptDeleteMyCommands with value set to v.
func (*OptDeleteMyCommands) Decode ¶
func (o *OptDeleteMyCommands) Decode(d *jx.Decoder) error
Decode decodes DeleteMyCommands from json.
func (OptDeleteMyCommands) Encode ¶
func (o OptDeleteMyCommands) Encode(e *jx.Encoder)
Encode encodes DeleteMyCommands as json.
func (OptDeleteMyCommands) Get ¶
func (o OptDeleteMyCommands) Get() (v DeleteMyCommands, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptDeleteMyCommands) IsSet ¶
func (o OptDeleteMyCommands) IsSet() bool
IsSet returns true if OptDeleteMyCommands was set.
func (OptDeleteMyCommands) MarshalJSON ¶
func (s OptDeleteMyCommands) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptDeleteMyCommands) Or ¶
func (o OptDeleteMyCommands) Or(d DeleteMyCommands) DeleteMyCommands
Or returns value if set, or given parameter if does not.
func (*OptDeleteMyCommands) SetFake ¶
func (s *OptDeleteMyCommands) SetFake()
SetFake set fake values.
func (*OptDeleteMyCommands) SetTo ¶
func (o *OptDeleteMyCommands) SetTo(v DeleteMyCommands)
SetTo sets value to v.
func (*OptDeleteMyCommands) UnmarshalJSON ¶
func (s *OptDeleteMyCommands) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptDeleteWebhook ¶
type OptDeleteWebhook struct { Value DeleteWebhook Set bool }
OptDeleteWebhook is optional DeleteWebhook.
func NewOptDeleteWebhook ¶
func NewOptDeleteWebhook(v DeleteWebhook) OptDeleteWebhook
NewOptDeleteWebhook returns new OptDeleteWebhook with value set to v.
func (*OptDeleteWebhook) Decode ¶
func (o *OptDeleteWebhook) Decode(d *jx.Decoder) error
Decode decodes DeleteWebhook from json.
func (OptDeleteWebhook) Encode ¶
func (o OptDeleteWebhook) Encode(e *jx.Encoder)
Encode encodes DeleteWebhook as json.
func (OptDeleteWebhook) Get ¶
func (o OptDeleteWebhook) Get() (v DeleteWebhook, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptDeleteWebhook) IsSet ¶
func (o OptDeleteWebhook) IsSet() bool
IsSet returns true if OptDeleteWebhook was set.
func (OptDeleteWebhook) MarshalJSON ¶
func (s OptDeleteWebhook) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptDeleteWebhook) Or ¶
func (o OptDeleteWebhook) Or(d DeleteWebhook) DeleteWebhook
Or returns value if set, or given parameter if does not.
func (*OptDeleteWebhook) SetTo ¶
func (o *OptDeleteWebhook) SetTo(v DeleteWebhook)
SetTo sets value to v.
func (*OptDeleteWebhook) UnmarshalJSON ¶
func (s *OptDeleteWebhook) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptDice ¶
OptDice is optional Dice.
func NewOptDice ¶
NewOptDice returns new OptDice with value set to v.
func (OptDice) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptDice) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptDocument ¶
OptDocument is optional Document.
func NewOptDocument ¶
func NewOptDocument(v Document) OptDocument
NewOptDocument returns new OptDocument with value set to v.
func (*OptDocument) Decode ¶
func (o *OptDocument) Decode(d *jx.Decoder) error
Decode decodes Document from json.
func (OptDocument) Encode ¶
func (o OptDocument) Encode(e *jx.Encoder)
Encode encodes Document as json.
func (OptDocument) Get ¶
func (o OptDocument) Get() (v Document, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptDocument) IsSet ¶
func (o OptDocument) IsSet() bool
IsSet returns true if OptDocument was set.
func (OptDocument) MarshalJSON ¶
func (s OptDocument) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptDocument) Or ¶
func (o OptDocument) Or(d Document) Document
Or returns value if set, or given parameter if does not.
func (*OptDocument) UnmarshalJSON ¶
func (s *OptDocument) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptFile ¶
OptFile is optional File.
func NewOptFile ¶
NewOptFile returns new OptFile with value set to v.
func (OptFile) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptFile) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptFloat64 ¶
OptFloat64 is optional float64.
func NewOptFloat64 ¶
func NewOptFloat64(v float64) OptFloat64
NewOptFloat64 returns new OptFloat64 with value set to v.
func (*OptFloat64) Decode ¶
func (o *OptFloat64) Decode(d *jx.Decoder) error
Decode decodes float64 from json.
func (OptFloat64) Encode ¶
func (o OptFloat64) Encode(e *jx.Encoder)
Encode encodes float64 as json.
func (OptFloat64) Get ¶
func (o OptFloat64) Get() (v float64, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptFloat64) IsSet ¶
func (o OptFloat64) IsSet() bool
IsSet returns true if OptFloat64 was set.
func (OptFloat64) MarshalJSON ¶
func (s OptFloat64) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptFloat64) Or ¶
func (o OptFloat64) Or(d float64) float64
Or returns value if set, or given parameter if does not.
func (*OptFloat64) UnmarshalJSON ¶
func (s *OptFloat64) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptGame ¶
OptGame is optional Game.
func NewOptGame ¶
NewOptGame returns new OptGame with value set to v.
func (OptGame) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptGame) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptGetMyCommands ¶
type OptGetMyCommands struct { Value GetMyCommands Set bool }
OptGetMyCommands is optional GetMyCommands.
func NewOptGetMyCommands ¶
func NewOptGetMyCommands(v GetMyCommands) OptGetMyCommands
NewOptGetMyCommands returns new OptGetMyCommands with value set to v.
func (*OptGetMyCommands) Decode ¶
func (o *OptGetMyCommands) Decode(d *jx.Decoder) error
Decode decodes GetMyCommands from json.
func (OptGetMyCommands) Encode ¶
func (o OptGetMyCommands) Encode(e *jx.Encoder)
Encode encodes GetMyCommands as json.
func (OptGetMyCommands) Get ¶
func (o OptGetMyCommands) Get() (v GetMyCommands, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptGetMyCommands) IsSet ¶
func (o OptGetMyCommands) IsSet() bool
IsSet returns true if OptGetMyCommands was set.
func (OptGetMyCommands) MarshalJSON ¶
func (s OptGetMyCommands) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptGetMyCommands) Or ¶
func (o OptGetMyCommands) Or(d GetMyCommands) GetMyCommands
Or returns value if set, or given parameter if does not.
func (*OptGetMyCommands) SetTo ¶
func (o *OptGetMyCommands) SetTo(v GetMyCommands)
SetTo sets value to v.
func (*OptGetMyCommands) UnmarshalJSON ¶
func (s *OptGetMyCommands) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptGetUpdates ¶
type OptGetUpdates struct { Value GetUpdates Set bool }
OptGetUpdates is optional GetUpdates.
func NewOptGetUpdates ¶
func NewOptGetUpdates(v GetUpdates) OptGetUpdates
NewOptGetUpdates returns new OptGetUpdates with value set to v.
func (*OptGetUpdates) Decode ¶
func (o *OptGetUpdates) Decode(d *jx.Decoder) error
Decode decodes GetUpdates from json.
func (OptGetUpdates) Encode ¶
func (o OptGetUpdates) Encode(e *jx.Encoder)
Encode encodes GetUpdates as json.
func (OptGetUpdates) Get ¶
func (o OptGetUpdates) Get() (v GetUpdates, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptGetUpdates) IsSet ¶
func (o OptGetUpdates) IsSet() bool
IsSet returns true if OptGetUpdates was set.
func (OptGetUpdates) MarshalJSON ¶
func (s OptGetUpdates) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptGetUpdates) Or ¶
func (o OptGetUpdates) Or(d GetUpdates) GetUpdates
Or returns value if set, or given parameter if does not.
func (*OptGetUpdates) UnmarshalJSON ¶
func (s *OptGetUpdates) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptID ¶
OptID is optional ID.
func (OptID) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptID) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptInlineKeyboardMarkup ¶
type OptInlineKeyboardMarkup struct { Value InlineKeyboardMarkup Set bool }
OptInlineKeyboardMarkup is optional InlineKeyboardMarkup.
func NewOptInlineKeyboardMarkup ¶
func NewOptInlineKeyboardMarkup(v InlineKeyboardMarkup) OptInlineKeyboardMarkup
NewOptInlineKeyboardMarkup returns new OptInlineKeyboardMarkup with value set to v.
func (*OptInlineKeyboardMarkup) Decode ¶
func (o *OptInlineKeyboardMarkup) Decode(d *jx.Decoder) error
Decode decodes InlineKeyboardMarkup from json.
func (OptInlineKeyboardMarkup) Encode ¶
func (o OptInlineKeyboardMarkup) Encode(e *jx.Encoder)
Encode encodes InlineKeyboardMarkup as json.
func (OptInlineKeyboardMarkup) Get ¶
func (o OptInlineKeyboardMarkup) Get() (v InlineKeyboardMarkup, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptInlineKeyboardMarkup) IsSet ¶
func (o OptInlineKeyboardMarkup) IsSet() bool
IsSet returns true if OptInlineKeyboardMarkup was set.
func (OptInlineKeyboardMarkup) MarshalJSON ¶
func (s OptInlineKeyboardMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptInlineKeyboardMarkup) Or ¶
func (o OptInlineKeyboardMarkup) Or(d InlineKeyboardMarkup) InlineKeyboardMarkup
Or returns value if set, or given parameter if does not.
func (*OptInlineKeyboardMarkup) Reset ¶
func (o *OptInlineKeyboardMarkup) Reset()
Reset unsets value.
func (*OptInlineKeyboardMarkup) SetFake ¶
func (s *OptInlineKeyboardMarkup) SetFake()
SetFake set fake values.
func (*OptInlineKeyboardMarkup) SetTo ¶
func (o *OptInlineKeyboardMarkup) SetTo(v InlineKeyboardMarkup)
SetTo sets value to v.
func (*OptInlineKeyboardMarkup) UnmarshalJSON ¶
func (s *OptInlineKeyboardMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptInlineQuery ¶
type OptInlineQuery struct { Value InlineQuery Set bool }
OptInlineQuery is optional InlineQuery.
func NewOptInlineQuery ¶
func NewOptInlineQuery(v InlineQuery) OptInlineQuery
NewOptInlineQuery returns new OptInlineQuery with value set to v.
func (*OptInlineQuery) Decode ¶
func (o *OptInlineQuery) Decode(d *jx.Decoder) error
Decode decodes InlineQuery from json.
func (OptInlineQuery) Encode ¶
func (o OptInlineQuery) Encode(e *jx.Encoder)
Encode encodes InlineQuery as json.
func (OptInlineQuery) Get ¶
func (o OptInlineQuery) Get() (v InlineQuery, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptInlineQuery) IsSet ¶
func (o OptInlineQuery) IsSet() bool
IsSet returns true if OptInlineQuery was set.
func (OptInlineQuery) MarshalJSON ¶
func (s OptInlineQuery) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptInlineQuery) Or ¶
func (o OptInlineQuery) Or(d InlineQuery) InlineQuery
Or returns value if set, or given parameter if does not.
func (*OptInlineQuery) UnmarshalJSON ¶
func (s *OptInlineQuery) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptInlineQueryChatType ¶
type OptInlineQueryChatType struct { Value InlineQueryChatType Set bool }
OptInlineQueryChatType is optional InlineQueryChatType.
func NewOptInlineQueryChatType ¶
func NewOptInlineQueryChatType(v InlineQueryChatType) OptInlineQueryChatType
NewOptInlineQueryChatType returns new OptInlineQueryChatType with value set to v.
func (*OptInlineQueryChatType) Decode ¶
func (o *OptInlineQueryChatType) Decode(d *jx.Decoder) error
Decode decodes InlineQueryChatType from json.
func (OptInlineQueryChatType) Encode ¶
func (o OptInlineQueryChatType) Encode(e *jx.Encoder)
Encode encodes InlineQueryChatType as json.
func (OptInlineQueryChatType) Get ¶
func (o OptInlineQueryChatType) Get() (v InlineQueryChatType, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptInlineQueryChatType) IsSet ¶
func (o OptInlineQueryChatType) IsSet() bool
IsSet returns true if OptInlineQueryChatType was set.
func (OptInlineQueryChatType) MarshalJSON ¶
func (s OptInlineQueryChatType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptInlineQueryChatType) Or ¶
func (o OptInlineQueryChatType) Or(d InlineQueryChatType) InlineQueryChatType
Or returns value if set, or given parameter if does not.
func (*OptInlineQueryChatType) SetFake ¶
func (s *OptInlineQueryChatType) SetFake()
SetFake set fake values.
func (*OptInlineQueryChatType) SetTo ¶
func (o *OptInlineQueryChatType) SetTo(v InlineQueryChatType)
SetTo sets value to v.
func (*OptInlineQueryChatType) UnmarshalJSON ¶
func (s *OptInlineQueryChatType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptInputMessageContent ¶
type OptInputMessageContent struct { Value InputMessageContent Set bool }
OptInputMessageContent is optional InputMessageContent.
func NewOptInputMessageContent ¶
func NewOptInputMessageContent(v InputMessageContent) OptInputMessageContent
NewOptInputMessageContent returns new OptInputMessageContent with value set to v.
func (*OptInputMessageContent) Decode ¶
func (o *OptInputMessageContent) Decode(d *jx.Decoder) error
Decode decodes InputMessageContent from json.
func (OptInputMessageContent) Encode ¶
func (o OptInputMessageContent) Encode(e *jx.Encoder)
Encode encodes InputMessageContent as json.
func (OptInputMessageContent) Get ¶
func (o OptInputMessageContent) Get() (v InputMessageContent, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptInputMessageContent) IsSet ¶
func (o OptInputMessageContent) IsSet() bool
IsSet returns true if OptInputMessageContent was set.
func (OptInputMessageContent) MarshalJSON ¶
func (s OptInputMessageContent) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptInputMessageContent) Or ¶
func (o OptInputMessageContent) Or(d InputMessageContent) InputMessageContent
Or returns value if set, or given parameter if does not.
func (*OptInputMessageContent) SetFake ¶
func (s *OptInputMessageContent) SetFake()
SetFake set fake values.
func (*OptInputMessageContent) SetTo ¶
func (o *OptInputMessageContent) SetTo(v InputMessageContent)
SetTo sets value to v.
func (*OptInputMessageContent) UnmarshalJSON ¶
func (s *OptInputMessageContent) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptInt ¶
OptInt is optional int.
func (OptInt) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptInt) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptInt64 ¶
OptInt64 is optional int64.
func NewOptInt64 ¶
NewOptInt64 returns new OptInt64 with value set to v.
func (OptInt64) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptInt64) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptInvoice ¶
OptInvoice is optional Invoice.
func NewOptInvoice ¶
func NewOptInvoice(v Invoice) OptInvoice
NewOptInvoice returns new OptInvoice with value set to v.
func (*OptInvoice) Decode ¶
func (o *OptInvoice) Decode(d *jx.Decoder) error
Decode decodes Invoice from json.
func (OptInvoice) Encode ¶
func (o OptInvoice) Encode(e *jx.Encoder)
Encode encodes Invoice as json.
func (OptInvoice) Get ¶
func (o OptInvoice) Get() (v Invoice, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptInvoice) IsSet ¶
func (o OptInvoice) IsSet() bool
IsSet returns true if OptInvoice was set.
func (OptInvoice) MarshalJSON ¶
func (s OptInvoice) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptInvoice) Or ¶
func (o OptInvoice) Or(d Invoice) Invoice
Or returns value if set, or given parameter if does not.
func (*OptInvoice) UnmarshalJSON ¶
func (s *OptInvoice) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptKeyboardButtonPollType ¶
type OptKeyboardButtonPollType struct { Value KeyboardButtonPollType Set bool }
OptKeyboardButtonPollType is optional KeyboardButtonPollType.
func NewOptKeyboardButtonPollType ¶
func NewOptKeyboardButtonPollType(v KeyboardButtonPollType) OptKeyboardButtonPollType
NewOptKeyboardButtonPollType returns new OptKeyboardButtonPollType with value set to v.
func (*OptKeyboardButtonPollType) Decode ¶
func (o *OptKeyboardButtonPollType) Decode(d *jx.Decoder) error
Decode decodes KeyboardButtonPollType from json.
func (OptKeyboardButtonPollType) Encode ¶
func (o OptKeyboardButtonPollType) Encode(e *jx.Encoder)
Encode encodes KeyboardButtonPollType as json.
func (OptKeyboardButtonPollType) Get ¶
func (o OptKeyboardButtonPollType) Get() (v KeyboardButtonPollType, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptKeyboardButtonPollType) IsSet ¶
func (o OptKeyboardButtonPollType) IsSet() bool
IsSet returns true if OptKeyboardButtonPollType was set.
func (OptKeyboardButtonPollType) MarshalJSON ¶
func (s OptKeyboardButtonPollType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptKeyboardButtonPollType) Reset ¶
func (o *OptKeyboardButtonPollType) Reset()
Reset unsets value.
func (*OptKeyboardButtonPollType) SetFake ¶
func (s *OptKeyboardButtonPollType) SetFake()
SetFake set fake values.
func (*OptKeyboardButtonPollType) SetTo ¶
func (o *OptKeyboardButtonPollType) SetTo(v KeyboardButtonPollType)
SetTo sets value to v.
func (*OptKeyboardButtonPollType) UnmarshalJSON ¶
func (s *OptKeyboardButtonPollType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptLocation ¶
OptLocation is optional Location.
func NewOptLocation ¶
func NewOptLocation(v Location) OptLocation
NewOptLocation returns new OptLocation with value set to v.
func (*OptLocation) Decode ¶
func (o *OptLocation) Decode(d *jx.Decoder) error
Decode decodes Location from json.
func (OptLocation) Encode ¶
func (o OptLocation) Encode(e *jx.Encoder)
Encode encodes Location as json.
func (OptLocation) Get ¶
func (o OptLocation) Get() (v Location, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptLocation) IsSet ¶
func (o OptLocation) IsSet() bool
IsSet returns true if OptLocation was set.
func (OptLocation) MarshalJSON ¶
func (s OptLocation) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptLocation) Or ¶
func (o OptLocation) Or(d Location) Location
Or returns value if set, or given parameter if does not.
func (*OptLocation) UnmarshalJSON ¶
func (s *OptLocation) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptLoginUrl ¶
OptLoginUrl is optional LoginUrl.
func NewOptLoginUrl ¶
func NewOptLoginUrl(v LoginUrl) OptLoginUrl
NewOptLoginUrl returns new OptLoginUrl with value set to v.
func (*OptLoginUrl) Decode ¶
func (o *OptLoginUrl) Decode(d *jx.Decoder) error
Decode decodes LoginUrl from json.
func (OptLoginUrl) Encode ¶
func (o OptLoginUrl) Encode(e *jx.Encoder)
Encode encodes LoginUrl as json.
func (OptLoginUrl) Get ¶
func (o OptLoginUrl) Get() (v LoginUrl, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptLoginUrl) IsSet ¶
func (o OptLoginUrl) IsSet() bool
IsSet returns true if OptLoginUrl was set.
func (OptLoginUrl) MarshalJSON ¶
func (s OptLoginUrl) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptLoginUrl) Or ¶
func (o OptLoginUrl) Or(d LoginUrl) LoginUrl
Or returns value if set, or given parameter if does not.
func (*OptLoginUrl) UnmarshalJSON ¶
func (s *OptLoginUrl) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptMaskPosition ¶
type OptMaskPosition struct { Value MaskPosition Set bool }
OptMaskPosition is optional MaskPosition.
func NewOptMaskPosition ¶
func NewOptMaskPosition(v MaskPosition) OptMaskPosition
NewOptMaskPosition returns new OptMaskPosition with value set to v.
func (*OptMaskPosition) Decode ¶
func (o *OptMaskPosition) Decode(d *jx.Decoder) error
Decode decodes MaskPosition from json.
func (OptMaskPosition) Encode ¶
func (o OptMaskPosition) Encode(e *jx.Encoder)
Encode encodes MaskPosition as json.
func (OptMaskPosition) Get ¶
func (o OptMaskPosition) Get() (v MaskPosition, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptMaskPosition) IsSet ¶
func (o OptMaskPosition) IsSet() bool
IsSet returns true if OptMaskPosition was set.
func (OptMaskPosition) MarshalJSON ¶
func (s OptMaskPosition) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptMaskPosition) Or ¶
func (o OptMaskPosition) Or(d MaskPosition) MaskPosition
Or returns value if set, or given parameter if does not.
func (*OptMaskPosition) SetTo ¶
func (o *OptMaskPosition) SetTo(v MaskPosition)
SetTo sets value to v.
func (*OptMaskPosition) UnmarshalJSON ¶
func (s *OptMaskPosition) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptMessage ¶
OptMessage is optional Message.
func NewOptMessage ¶
func NewOptMessage(v Message) OptMessage
NewOptMessage returns new OptMessage with value set to v.
func (*OptMessage) Decode ¶
func (o *OptMessage) Decode(d *jx.Decoder) error
Decode decodes Message from json.
func (OptMessage) Encode ¶
func (o OptMessage) Encode(e *jx.Encoder)
Encode encodes Message as json.
func (OptMessage) Get ¶
func (o OptMessage) Get() (v Message, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptMessage) IsSet ¶
func (o OptMessage) IsSet() bool
IsSet returns true if OptMessage was set.
func (OptMessage) MarshalJSON ¶
func (s OptMessage) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptMessage) Or ¶
func (o OptMessage) Or(d Message) Message
Or returns value if set, or given parameter if does not.
func (*OptMessage) UnmarshalJSON ¶
func (s *OptMessage) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptMessageAutoDeleteTimerChanged ¶
type OptMessageAutoDeleteTimerChanged struct { Value MessageAutoDeleteTimerChanged Set bool }
OptMessageAutoDeleteTimerChanged is optional MessageAutoDeleteTimerChanged.
func NewOptMessageAutoDeleteTimerChanged ¶
func NewOptMessageAutoDeleteTimerChanged(v MessageAutoDeleteTimerChanged) OptMessageAutoDeleteTimerChanged
NewOptMessageAutoDeleteTimerChanged returns new OptMessageAutoDeleteTimerChanged with value set to v.
func (*OptMessageAutoDeleteTimerChanged) Decode ¶
func (o *OptMessageAutoDeleteTimerChanged) Decode(d *jx.Decoder) error
Decode decodes MessageAutoDeleteTimerChanged from json.
func (OptMessageAutoDeleteTimerChanged) Encode ¶
func (o OptMessageAutoDeleteTimerChanged) Encode(e *jx.Encoder)
Encode encodes MessageAutoDeleteTimerChanged as json.
func (OptMessageAutoDeleteTimerChanged) Get ¶
func (o OptMessageAutoDeleteTimerChanged) Get() (v MessageAutoDeleteTimerChanged, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptMessageAutoDeleteTimerChanged) IsSet ¶
func (o OptMessageAutoDeleteTimerChanged) IsSet() bool
IsSet returns true if OptMessageAutoDeleteTimerChanged was set.
func (OptMessageAutoDeleteTimerChanged) MarshalJSON ¶
func (s OptMessageAutoDeleteTimerChanged) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptMessageAutoDeleteTimerChanged) Or ¶
func (o OptMessageAutoDeleteTimerChanged) Or(d MessageAutoDeleteTimerChanged) MessageAutoDeleteTimerChanged
Or returns value if set, or given parameter if does not.
func (*OptMessageAutoDeleteTimerChanged) Reset ¶
func (o *OptMessageAutoDeleteTimerChanged) Reset()
Reset unsets value.
func (*OptMessageAutoDeleteTimerChanged) SetFake ¶
func (s *OptMessageAutoDeleteTimerChanged) SetFake()
SetFake set fake values.
func (*OptMessageAutoDeleteTimerChanged) SetTo ¶
func (o *OptMessageAutoDeleteTimerChanged) SetTo(v MessageAutoDeleteTimerChanged)
SetTo sets value to v.
func (*OptMessageAutoDeleteTimerChanged) UnmarshalJSON ¶
func (s *OptMessageAutoDeleteTimerChanged) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptMessageId ¶
OptMessageId is optional MessageId.
func NewOptMessageId ¶
func NewOptMessageId(v MessageId) OptMessageId
NewOptMessageId returns new OptMessageId with value set to v.
func (*OptMessageId) Decode ¶
func (o *OptMessageId) Decode(d *jx.Decoder) error
Decode decodes MessageId from json.
func (OptMessageId) Encode ¶
func (o OptMessageId) Encode(e *jx.Encoder)
Encode encodes MessageId as json.
func (OptMessageId) Get ¶
func (o OptMessageId) Get() (v MessageId, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptMessageId) IsSet ¶
func (o OptMessageId) IsSet() bool
IsSet returns true if OptMessageId was set.
func (OptMessageId) MarshalJSON ¶
func (s OptMessageId) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptMessageId) Or ¶
func (o OptMessageId) Or(d MessageId) MessageId
Or returns value if set, or given parameter if does not.
func (*OptMessageId) UnmarshalJSON ¶
func (s *OptMessageId) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptOrderInfo ¶
OptOrderInfo is optional OrderInfo.
func NewOptOrderInfo ¶
func NewOptOrderInfo(v OrderInfo) OptOrderInfo
NewOptOrderInfo returns new OptOrderInfo with value set to v.
func (*OptOrderInfo) Decode ¶
func (o *OptOrderInfo) Decode(d *jx.Decoder) error
Decode decodes OrderInfo from json.
func (OptOrderInfo) Encode ¶
func (o OptOrderInfo) Encode(e *jx.Encoder)
Encode encodes OrderInfo as json.
func (OptOrderInfo) Get ¶
func (o OptOrderInfo) Get() (v OrderInfo, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptOrderInfo) IsSet ¶
func (o OptOrderInfo) IsSet() bool
IsSet returns true if OptOrderInfo was set.
func (OptOrderInfo) MarshalJSON ¶
func (s OptOrderInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptOrderInfo) Or ¶
func (o OptOrderInfo) Or(d OrderInfo) OrderInfo
Or returns value if set, or given parameter if does not.
func (*OptOrderInfo) UnmarshalJSON ¶
func (s *OptOrderInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptPassportData ¶
type OptPassportData struct { Value PassportData Set bool }
OptPassportData is optional PassportData.
func NewOptPassportData ¶
func NewOptPassportData(v PassportData) OptPassportData
NewOptPassportData returns new OptPassportData with value set to v.
func (*OptPassportData) Decode ¶
func (o *OptPassportData) Decode(d *jx.Decoder) error
Decode decodes PassportData from json.
func (OptPassportData) Encode ¶
func (o OptPassportData) Encode(e *jx.Encoder)
Encode encodes PassportData as json.
func (OptPassportData) Get ¶
func (o OptPassportData) Get() (v PassportData, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptPassportData) IsSet ¶
func (o OptPassportData) IsSet() bool
IsSet returns true if OptPassportData was set.
func (OptPassportData) MarshalJSON ¶
func (s OptPassportData) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptPassportData) Or ¶
func (o OptPassportData) Or(d PassportData) PassportData
Or returns value if set, or given parameter if does not.
func (*OptPassportData) SetTo ¶
func (o *OptPassportData) SetTo(v PassportData)
SetTo sets value to v.
func (*OptPassportData) UnmarshalJSON ¶
func (s *OptPassportData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptPassportFile ¶
type OptPassportFile struct { Value PassportFile Set bool }
OptPassportFile is optional PassportFile.
func NewOptPassportFile ¶
func NewOptPassportFile(v PassportFile) OptPassportFile
NewOptPassportFile returns new OptPassportFile with value set to v.
func (*OptPassportFile) Decode ¶
func (o *OptPassportFile) Decode(d *jx.Decoder) error
Decode decodes PassportFile from json.
func (OptPassportFile) Encode ¶
func (o OptPassportFile) Encode(e *jx.Encoder)
Encode encodes PassportFile as json.
func (OptPassportFile) Get ¶
func (o OptPassportFile) Get() (v PassportFile, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptPassportFile) IsSet ¶
func (o OptPassportFile) IsSet() bool
IsSet returns true if OptPassportFile was set.
func (OptPassportFile) MarshalJSON ¶
func (s OptPassportFile) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptPassportFile) Or ¶
func (o OptPassportFile) Or(d PassportFile) PassportFile
Or returns value if set, or given parameter if does not.
func (*OptPassportFile) SetTo ¶
func (o *OptPassportFile) SetTo(v PassportFile)
SetTo sets value to v.
func (*OptPassportFile) UnmarshalJSON ¶
func (s *OptPassportFile) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptPhotoSize ¶
OptPhotoSize is optional PhotoSize.
func NewOptPhotoSize ¶
func NewOptPhotoSize(v PhotoSize) OptPhotoSize
NewOptPhotoSize returns new OptPhotoSize with value set to v.
func (*OptPhotoSize) Decode ¶
func (o *OptPhotoSize) Decode(d *jx.Decoder) error
Decode decodes PhotoSize from json.
func (OptPhotoSize) Encode ¶
func (o OptPhotoSize) Encode(e *jx.Encoder)
Encode encodes PhotoSize as json.
func (OptPhotoSize) Get ¶
func (o OptPhotoSize) Get() (v PhotoSize, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptPhotoSize) IsSet ¶
func (o OptPhotoSize) IsSet() bool
IsSet returns true if OptPhotoSize was set.
func (OptPhotoSize) MarshalJSON ¶
func (s OptPhotoSize) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptPhotoSize) Or ¶
func (o OptPhotoSize) Or(d PhotoSize) PhotoSize
Or returns value if set, or given parameter if does not.
func (*OptPhotoSize) UnmarshalJSON ¶
func (s *OptPhotoSize) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptPoll ¶
OptPoll is optional Poll.
func NewOptPoll ¶
NewOptPoll returns new OptPoll with value set to v.
func (OptPoll) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptPoll) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptPollAnswer ¶
type OptPollAnswer struct { Value PollAnswer Set bool }
OptPollAnswer is optional PollAnswer.
func NewOptPollAnswer ¶
func NewOptPollAnswer(v PollAnswer) OptPollAnswer
NewOptPollAnswer returns new OptPollAnswer with value set to v.
func (*OptPollAnswer) Decode ¶
func (o *OptPollAnswer) Decode(d *jx.Decoder) error
Decode decodes PollAnswer from json.
func (OptPollAnswer) Encode ¶
func (o OptPollAnswer) Encode(e *jx.Encoder)
Encode encodes PollAnswer as json.
func (OptPollAnswer) Get ¶
func (o OptPollAnswer) Get() (v PollAnswer, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptPollAnswer) IsSet ¶
func (o OptPollAnswer) IsSet() bool
IsSet returns true if OptPollAnswer was set.
func (OptPollAnswer) MarshalJSON ¶
func (s OptPollAnswer) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptPollAnswer) Or ¶
func (o OptPollAnswer) Or(d PollAnswer) PollAnswer
Or returns value if set, or given parameter if does not.
func (*OptPollAnswer) UnmarshalJSON ¶
func (s *OptPollAnswer) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptPreCheckoutQuery ¶
type OptPreCheckoutQuery struct { Value PreCheckoutQuery Set bool }
OptPreCheckoutQuery is optional PreCheckoutQuery.
func NewOptPreCheckoutQuery ¶
func NewOptPreCheckoutQuery(v PreCheckoutQuery) OptPreCheckoutQuery
NewOptPreCheckoutQuery returns new OptPreCheckoutQuery with value set to v.
func (*OptPreCheckoutQuery) Decode ¶
func (o *OptPreCheckoutQuery) Decode(d *jx.Decoder) error
Decode decodes PreCheckoutQuery from json.
func (OptPreCheckoutQuery) Encode ¶
func (o OptPreCheckoutQuery) Encode(e *jx.Encoder)
Encode encodes PreCheckoutQuery as json.
func (OptPreCheckoutQuery) Get ¶
func (o OptPreCheckoutQuery) Get() (v PreCheckoutQuery, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptPreCheckoutQuery) IsSet ¶
func (o OptPreCheckoutQuery) IsSet() bool
IsSet returns true if OptPreCheckoutQuery was set.
func (OptPreCheckoutQuery) MarshalJSON ¶
func (s OptPreCheckoutQuery) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptPreCheckoutQuery) Or ¶
func (o OptPreCheckoutQuery) Or(d PreCheckoutQuery) PreCheckoutQuery
Or returns value if set, or given parameter if does not.
func (*OptPreCheckoutQuery) SetFake ¶
func (s *OptPreCheckoutQuery) SetFake()
SetFake set fake values.
func (*OptPreCheckoutQuery) SetTo ¶
func (o *OptPreCheckoutQuery) SetTo(v PreCheckoutQuery)
SetTo sets value to v.
func (*OptPreCheckoutQuery) UnmarshalJSON ¶
func (s *OptPreCheckoutQuery) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptProximityAlertTriggered ¶
type OptProximityAlertTriggered struct { Value ProximityAlertTriggered Set bool }
OptProximityAlertTriggered is optional ProximityAlertTriggered.
func NewOptProximityAlertTriggered ¶
func NewOptProximityAlertTriggered(v ProximityAlertTriggered) OptProximityAlertTriggered
NewOptProximityAlertTriggered returns new OptProximityAlertTriggered with value set to v.
func (*OptProximityAlertTriggered) Decode ¶
func (o *OptProximityAlertTriggered) Decode(d *jx.Decoder) error
Decode decodes ProximityAlertTriggered from json.
func (OptProximityAlertTriggered) Encode ¶
func (o OptProximityAlertTriggered) Encode(e *jx.Encoder)
Encode encodes ProximityAlertTriggered as json.
func (OptProximityAlertTriggered) Get ¶
func (o OptProximityAlertTriggered) Get() (v ProximityAlertTriggered, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptProximityAlertTriggered) IsSet ¶
func (o OptProximityAlertTriggered) IsSet() bool
IsSet returns true if OptProximityAlertTriggered was set.
func (OptProximityAlertTriggered) MarshalJSON ¶
func (s OptProximityAlertTriggered) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptProximityAlertTriggered) Reset ¶
func (o *OptProximityAlertTriggered) Reset()
Reset unsets value.
func (*OptProximityAlertTriggered) SetFake ¶
func (s *OptProximityAlertTriggered) SetFake()
SetFake set fake values.
func (*OptProximityAlertTriggered) SetTo ¶
func (o *OptProximityAlertTriggered) SetTo(v ProximityAlertTriggered)
SetTo sets value to v.
func (*OptProximityAlertTriggered) UnmarshalJSON ¶
func (s *OptProximityAlertTriggered) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptResponse ¶
OptResponse is optional Response.
func NewOptResponse ¶
func NewOptResponse(v Response) OptResponse
NewOptResponse returns new OptResponse with value set to v.
func (*OptResponse) Decode ¶
func (o *OptResponse) Decode(d *jx.Decoder) error
Decode decodes Response from json.
func (OptResponse) Encode ¶
func (o OptResponse) Encode(e *jx.Encoder)
Encode encodes Response as json.
func (OptResponse) Get ¶
func (o OptResponse) Get() (v Response, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptResponse) IsSet ¶
func (o OptResponse) IsSet() bool
IsSet returns true if OptResponse was set.
func (OptResponse) MarshalJSON ¶
func (s OptResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptResponse) Or ¶
func (o OptResponse) Or(d Response) Response
Or returns value if set, or given parameter if does not.
func (*OptResponse) UnmarshalJSON ¶
func (s *OptResponse) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSendAnimationReplyMarkup ¶
type OptSendAnimationReplyMarkup struct { Value SendAnimationReplyMarkup Set bool }
OptSendAnimationReplyMarkup is optional SendAnimationReplyMarkup.
func NewOptSendAnimationReplyMarkup ¶
func NewOptSendAnimationReplyMarkup(v SendAnimationReplyMarkup) OptSendAnimationReplyMarkup
NewOptSendAnimationReplyMarkup returns new OptSendAnimationReplyMarkup with value set to v.
func (*OptSendAnimationReplyMarkup) Decode ¶
func (o *OptSendAnimationReplyMarkup) Decode(d *jx.Decoder) error
Decode decodes SendAnimationReplyMarkup from json.
func (OptSendAnimationReplyMarkup) Encode ¶
func (o OptSendAnimationReplyMarkup) Encode(e *jx.Encoder)
Encode encodes SendAnimationReplyMarkup as json.
func (OptSendAnimationReplyMarkup) Get ¶
func (o OptSendAnimationReplyMarkup) Get() (v SendAnimationReplyMarkup, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSendAnimationReplyMarkup) IsSet ¶
func (o OptSendAnimationReplyMarkup) IsSet() bool
IsSet returns true if OptSendAnimationReplyMarkup was set.
func (OptSendAnimationReplyMarkup) MarshalJSON ¶
func (s OptSendAnimationReplyMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptSendAnimationReplyMarkup) Reset ¶
func (o *OptSendAnimationReplyMarkup) Reset()
Reset unsets value.
func (*OptSendAnimationReplyMarkup) SetFake ¶
func (s *OptSendAnimationReplyMarkup) SetFake()
SetFake set fake values.
func (*OptSendAnimationReplyMarkup) SetTo ¶
func (o *OptSendAnimationReplyMarkup) SetTo(v SendAnimationReplyMarkup)
SetTo sets value to v.
func (*OptSendAnimationReplyMarkup) UnmarshalJSON ¶
func (s *OptSendAnimationReplyMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSendAudioReplyMarkup ¶
type OptSendAudioReplyMarkup struct { Value SendAudioReplyMarkup Set bool }
OptSendAudioReplyMarkup is optional SendAudioReplyMarkup.
func NewOptSendAudioReplyMarkup ¶
func NewOptSendAudioReplyMarkup(v SendAudioReplyMarkup) OptSendAudioReplyMarkup
NewOptSendAudioReplyMarkup returns new OptSendAudioReplyMarkup with value set to v.
func (*OptSendAudioReplyMarkup) Decode ¶
func (o *OptSendAudioReplyMarkup) Decode(d *jx.Decoder) error
Decode decodes SendAudioReplyMarkup from json.
func (OptSendAudioReplyMarkup) Encode ¶
func (o OptSendAudioReplyMarkup) Encode(e *jx.Encoder)
Encode encodes SendAudioReplyMarkup as json.
func (OptSendAudioReplyMarkup) Get ¶
func (o OptSendAudioReplyMarkup) Get() (v SendAudioReplyMarkup, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSendAudioReplyMarkup) IsSet ¶
func (o OptSendAudioReplyMarkup) IsSet() bool
IsSet returns true if OptSendAudioReplyMarkup was set.
func (OptSendAudioReplyMarkup) MarshalJSON ¶
func (s OptSendAudioReplyMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptSendAudioReplyMarkup) Or ¶
func (o OptSendAudioReplyMarkup) Or(d SendAudioReplyMarkup) SendAudioReplyMarkup
Or returns value if set, or given parameter if does not.
func (*OptSendAudioReplyMarkup) Reset ¶
func (o *OptSendAudioReplyMarkup) Reset()
Reset unsets value.
func (*OptSendAudioReplyMarkup) SetFake ¶
func (s *OptSendAudioReplyMarkup) SetFake()
SetFake set fake values.
func (*OptSendAudioReplyMarkup) SetTo ¶
func (o *OptSendAudioReplyMarkup) SetTo(v SendAudioReplyMarkup)
SetTo sets value to v.
func (*OptSendAudioReplyMarkup) UnmarshalJSON ¶
func (s *OptSendAudioReplyMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSendContactReplyMarkup ¶
type OptSendContactReplyMarkup struct { Value SendContactReplyMarkup Set bool }
OptSendContactReplyMarkup is optional SendContactReplyMarkup.
func NewOptSendContactReplyMarkup ¶
func NewOptSendContactReplyMarkup(v SendContactReplyMarkup) OptSendContactReplyMarkup
NewOptSendContactReplyMarkup returns new OptSendContactReplyMarkup with value set to v.
func (*OptSendContactReplyMarkup) Decode ¶
func (o *OptSendContactReplyMarkup) Decode(d *jx.Decoder) error
Decode decodes SendContactReplyMarkup from json.
func (OptSendContactReplyMarkup) Encode ¶
func (o OptSendContactReplyMarkup) Encode(e *jx.Encoder)
Encode encodes SendContactReplyMarkup as json.
func (OptSendContactReplyMarkup) Get ¶
func (o OptSendContactReplyMarkup) Get() (v SendContactReplyMarkup, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSendContactReplyMarkup) IsSet ¶
func (o OptSendContactReplyMarkup) IsSet() bool
IsSet returns true if OptSendContactReplyMarkup was set.
func (OptSendContactReplyMarkup) MarshalJSON ¶
func (s OptSendContactReplyMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptSendContactReplyMarkup) Reset ¶
func (o *OptSendContactReplyMarkup) Reset()
Reset unsets value.
func (*OptSendContactReplyMarkup) SetFake ¶
func (s *OptSendContactReplyMarkup) SetFake()
SetFake set fake values.
func (*OptSendContactReplyMarkup) SetTo ¶
func (o *OptSendContactReplyMarkup) SetTo(v SendContactReplyMarkup)
SetTo sets value to v.
func (*OptSendContactReplyMarkup) UnmarshalJSON ¶
func (s *OptSendContactReplyMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSendDiceReplyMarkup ¶
type OptSendDiceReplyMarkup struct { Value SendDiceReplyMarkup Set bool }
OptSendDiceReplyMarkup is optional SendDiceReplyMarkup.
func NewOptSendDiceReplyMarkup ¶
func NewOptSendDiceReplyMarkup(v SendDiceReplyMarkup) OptSendDiceReplyMarkup
NewOptSendDiceReplyMarkup returns new OptSendDiceReplyMarkup with value set to v.
func (*OptSendDiceReplyMarkup) Decode ¶
func (o *OptSendDiceReplyMarkup) Decode(d *jx.Decoder) error
Decode decodes SendDiceReplyMarkup from json.
func (OptSendDiceReplyMarkup) Encode ¶
func (o OptSendDiceReplyMarkup) Encode(e *jx.Encoder)
Encode encodes SendDiceReplyMarkup as json.
func (OptSendDiceReplyMarkup) Get ¶
func (o OptSendDiceReplyMarkup) Get() (v SendDiceReplyMarkup, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSendDiceReplyMarkup) IsSet ¶
func (o OptSendDiceReplyMarkup) IsSet() bool
IsSet returns true if OptSendDiceReplyMarkup was set.
func (OptSendDiceReplyMarkup) MarshalJSON ¶
func (s OptSendDiceReplyMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptSendDiceReplyMarkup) Or ¶
func (o OptSendDiceReplyMarkup) Or(d SendDiceReplyMarkup) SendDiceReplyMarkup
Or returns value if set, or given parameter if does not.
func (*OptSendDiceReplyMarkup) SetFake ¶
func (s *OptSendDiceReplyMarkup) SetFake()
SetFake set fake values.
func (*OptSendDiceReplyMarkup) SetTo ¶
func (o *OptSendDiceReplyMarkup) SetTo(v SendDiceReplyMarkup)
SetTo sets value to v.
func (*OptSendDiceReplyMarkup) UnmarshalJSON ¶
func (s *OptSendDiceReplyMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSendDocumentReplyMarkup ¶
type OptSendDocumentReplyMarkup struct { Value SendDocumentReplyMarkup Set bool }
OptSendDocumentReplyMarkup is optional SendDocumentReplyMarkup.
func NewOptSendDocumentReplyMarkup ¶
func NewOptSendDocumentReplyMarkup(v SendDocumentReplyMarkup) OptSendDocumentReplyMarkup
NewOptSendDocumentReplyMarkup returns new OptSendDocumentReplyMarkup with value set to v.
func (*OptSendDocumentReplyMarkup) Decode ¶
func (o *OptSendDocumentReplyMarkup) Decode(d *jx.Decoder) error
Decode decodes SendDocumentReplyMarkup from json.
func (OptSendDocumentReplyMarkup) Encode ¶
func (o OptSendDocumentReplyMarkup) Encode(e *jx.Encoder)
Encode encodes SendDocumentReplyMarkup as json.
func (OptSendDocumentReplyMarkup) Get ¶
func (o OptSendDocumentReplyMarkup) Get() (v SendDocumentReplyMarkup, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSendDocumentReplyMarkup) IsSet ¶
func (o OptSendDocumentReplyMarkup) IsSet() bool
IsSet returns true if OptSendDocumentReplyMarkup was set.
func (OptSendDocumentReplyMarkup) MarshalJSON ¶
func (s OptSendDocumentReplyMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptSendDocumentReplyMarkup) Reset ¶
func (o *OptSendDocumentReplyMarkup) Reset()
Reset unsets value.
func (*OptSendDocumentReplyMarkup) SetFake ¶
func (s *OptSendDocumentReplyMarkup) SetFake()
SetFake set fake values.
func (*OptSendDocumentReplyMarkup) SetTo ¶
func (o *OptSendDocumentReplyMarkup) SetTo(v SendDocumentReplyMarkup)
SetTo sets value to v.
func (*OptSendDocumentReplyMarkup) UnmarshalJSON ¶
func (s *OptSendDocumentReplyMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSendLocationReplyMarkup ¶
type OptSendLocationReplyMarkup struct { Value SendLocationReplyMarkup Set bool }
OptSendLocationReplyMarkup is optional SendLocationReplyMarkup.
func NewOptSendLocationReplyMarkup ¶
func NewOptSendLocationReplyMarkup(v SendLocationReplyMarkup) OptSendLocationReplyMarkup
NewOptSendLocationReplyMarkup returns new OptSendLocationReplyMarkup with value set to v.
func (*OptSendLocationReplyMarkup) Decode ¶
func (o *OptSendLocationReplyMarkup) Decode(d *jx.Decoder) error
Decode decodes SendLocationReplyMarkup from json.
func (OptSendLocationReplyMarkup) Encode ¶
func (o OptSendLocationReplyMarkup) Encode(e *jx.Encoder)
Encode encodes SendLocationReplyMarkup as json.
func (OptSendLocationReplyMarkup) Get ¶
func (o OptSendLocationReplyMarkup) Get() (v SendLocationReplyMarkup, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSendLocationReplyMarkup) IsSet ¶
func (o OptSendLocationReplyMarkup) IsSet() bool
IsSet returns true if OptSendLocationReplyMarkup was set.
func (OptSendLocationReplyMarkup) MarshalJSON ¶
func (s OptSendLocationReplyMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptSendLocationReplyMarkup) Reset ¶
func (o *OptSendLocationReplyMarkup) Reset()
Reset unsets value.
func (*OptSendLocationReplyMarkup) SetFake ¶
func (s *OptSendLocationReplyMarkup) SetFake()
SetFake set fake values.
func (*OptSendLocationReplyMarkup) SetTo ¶
func (o *OptSendLocationReplyMarkup) SetTo(v SendLocationReplyMarkup)
SetTo sets value to v.
func (*OptSendLocationReplyMarkup) UnmarshalJSON ¶
func (s *OptSendLocationReplyMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSendMessageReplyMarkup ¶
type OptSendMessageReplyMarkup struct { Value SendMessageReplyMarkup Set bool }
OptSendMessageReplyMarkup is optional SendMessageReplyMarkup.
func NewOptSendMessageReplyMarkup ¶
func NewOptSendMessageReplyMarkup(v SendMessageReplyMarkup) OptSendMessageReplyMarkup
NewOptSendMessageReplyMarkup returns new OptSendMessageReplyMarkup with value set to v.
func (*OptSendMessageReplyMarkup) Decode ¶
func (o *OptSendMessageReplyMarkup) Decode(d *jx.Decoder) error
Decode decodes SendMessageReplyMarkup from json.
func (OptSendMessageReplyMarkup) Encode ¶
func (o OptSendMessageReplyMarkup) Encode(e *jx.Encoder)
Encode encodes SendMessageReplyMarkup as json.
func (OptSendMessageReplyMarkup) Get ¶
func (o OptSendMessageReplyMarkup) Get() (v SendMessageReplyMarkup, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSendMessageReplyMarkup) IsSet ¶
func (o OptSendMessageReplyMarkup) IsSet() bool
IsSet returns true if OptSendMessageReplyMarkup was set.
func (OptSendMessageReplyMarkup) MarshalJSON ¶
func (s OptSendMessageReplyMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptSendMessageReplyMarkup) Reset ¶
func (o *OptSendMessageReplyMarkup) Reset()
Reset unsets value.
func (*OptSendMessageReplyMarkup) SetFake ¶
func (s *OptSendMessageReplyMarkup) SetFake()
SetFake set fake values.
func (*OptSendMessageReplyMarkup) SetTo ¶
func (o *OptSendMessageReplyMarkup) SetTo(v SendMessageReplyMarkup)
SetTo sets value to v.
func (*OptSendMessageReplyMarkup) UnmarshalJSON ¶
func (s *OptSendMessageReplyMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSendPhotoReplyMarkup ¶
type OptSendPhotoReplyMarkup struct { Value SendPhotoReplyMarkup Set bool }
OptSendPhotoReplyMarkup is optional SendPhotoReplyMarkup.
func NewOptSendPhotoReplyMarkup ¶
func NewOptSendPhotoReplyMarkup(v SendPhotoReplyMarkup) OptSendPhotoReplyMarkup
NewOptSendPhotoReplyMarkup returns new OptSendPhotoReplyMarkup with value set to v.
func (*OptSendPhotoReplyMarkup) Decode ¶
func (o *OptSendPhotoReplyMarkup) Decode(d *jx.Decoder) error
Decode decodes SendPhotoReplyMarkup from json.
func (OptSendPhotoReplyMarkup) Encode ¶
func (o OptSendPhotoReplyMarkup) Encode(e *jx.Encoder)
Encode encodes SendPhotoReplyMarkup as json.
func (OptSendPhotoReplyMarkup) Get ¶
func (o OptSendPhotoReplyMarkup) Get() (v SendPhotoReplyMarkup, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSendPhotoReplyMarkup) IsSet ¶
func (o OptSendPhotoReplyMarkup) IsSet() bool
IsSet returns true if OptSendPhotoReplyMarkup was set.
func (OptSendPhotoReplyMarkup) MarshalJSON ¶
func (s OptSendPhotoReplyMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptSendPhotoReplyMarkup) Or ¶
func (o OptSendPhotoReplyMarkup) Or(d SendPhotoReplyMarkup) SendPhotoReplyMarkup
Or returns value if set, or given parameter if does not.
func (*OptSendPhotoReplyMarkup) Reset ¶
func (o *OptSendPhotoReplyMarkup) Reset()
Reset unsets value.
func (*OptSendPhotoReplyMarkup) SetFake ¶
func (s *OptSendPhotoReplyMarkup) SetFake()
SetFake set fake values.
func (*OptSendPhotoReplyMarkup) SetTo ¶
func (o *OptSendPhotoReplyMarkup) SetTo(v SendPhotoReplyMarkup)
SetTo sets value to v.
func (*OptSendPhotoReplyMarkup) UnmarshalJSON ¶
func (s *OptSendPhotoReplyMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSendPollReplyMarkup ¶
type OptSendPollReplyMarkup struct { Value SendPollReplyMarkup Set bool }
OptSendPollReplyMarkup is optional SendPollReplyMarkup.
func NewOptSendPollReplyMarkup ¶
func NewOptSendPollReplyMarkup(v SendPollReplyMarkup) OptSendPollReplyMarkup
NewOptSendPollReplyMarkup returns new OptSendPollReplyMarkup with value set to v.
func (*OptSendPollReplyMarkup) Decode ¶
func (o *OptSendPollReplyMarkup) Decode(d *jx.Decoder) error
Decode decodes SendPollReplyMarkup from json.
func (OptSendPollReplyMarkup) Encode ¶
func (o OptSendPollReplyMarkup) Encode(e *jx.Encoder)
Encode encodes SendPollReplyMarkup as json.
func (OptSendPollReplyMarkup) Get ¶
func (o OptSendPollReplyMarkup) Get() (v SendPollReplyMarkup, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSendPollReplyMarkup) IsSet ¶
func (o OptSendPollReplyMarkup) IsSet() bool
IsSet returns true if OptSendPollReplyMarkup was set.
func (OptSendPollReplyMarkup) MarshalJSON ¶
func (s OptSendPollReplyMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptSendPollReplyMarkup) Or ¶
func (o OptSendPollReplyMarkup) Or(d SendPollReplyMarkup) SendPollReplyMarkup
Or returns value if set, or given parameter if does not.
func (*OptSendPollReplyMarkup) SetFake ¶
func (s *OptSendPollReplyMarkup) SetFake()
SetFake set fake values.
func (*OptSendPollReplyMarkup) SetTo ¶
func (o *OptSendPollReplyMarkup) SetTo(v SendPollReplyMarkup)
SetTo sets value to v.
func (*OptSendPollReplyMarkup) UnmarshalJSON ¶
func (s *OptSendPollReplyMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSendStickerReplyMarkup ¶
type OptSendStickerReplyMarkup struct { Value SendStickerReplyMarkup Set bool }
OptSendStickerReplyMarkup is optional SendStickerReplyMarkup.
func NewOptSendStickerReplyMarkup ¶
func NewOptSendStickerReplyMarkup(v SendStickerReplyMarkup) OptSendStickerReplyMarkup
NewOptSendStickerReplyMarkup returns new OptSendStickerReplyMarkup with value set to v.
func (*OptSendStickerReplyMarkup) Decode ¶
func (o *OptSendStickerReplyMarkup) Decode(d *jx.Decoder) error
Decode decodes SendStickerReplyMarkup from json.
func (OptSendStickerReplyMarkup) Encode ¶
func (o OptSendStickerReplyMarkup) Encode(e *jx.Encoder)
Encode encodes SendStickerReplyMarkup as json.
func (OptSendStickerReplyMarkup) Get ¶
func (o OptSendStickerReplyMarkup) Get() (v SendStickerReplyMarkup, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSendStickerReplyMarkup) IsSet ¶
func (o OptSendStickerReplyMarkup) IsSet() bool
IsSet returns true if OptSendStickerReplyMarkup was set.
func (OptSendStickerReplyMarkup) MarshalJSON ¶
func (s OptSendStickerReplyMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptSendStickerReplyMarkup) Reset ¶
func (o *OptSendStickerReplyMarkup) Reset()
Reset unsets value.
func (*OptSendStickerReplyMarkup) SetFake ¶
func (s *OptSendStickerReplyMarkup) SetFake()
SetFake set fake values.
func (*OptSendStickerReplyMarkup) SetTo ¶
func (o *OptSendStickerReplyMarkup) SetTo(v SendStickerReplyMarkup)
SetTo sets value to v.
func (*OptSendStickerReplyMarkup) UnmarshalJSON ¶
func (s *OptSendStickerReplyMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSendVenueReplyMarkup ¶
type OptSendVenueReplyMarkup struct { Value SendVenueReplyMarkup Set bool }
OptSendVenueReplyMarkup is optional SendVenueReplyMarkup.
func NewOptSendVenueReplyMarkup ¶
func NewOptSendVenueReplyMarkup(v SendVenueReplyMarkup) OptSendVenueReplyMarkup
NewOptSendVenueReplyMarkup returns new OptSendVenueReplyMarkup with value set to v.
func (*OptSendVenueReplyMarkup) Decode ¶
func (o *OptSendVenueReplyMarkup) Decode(d *jx.Decoder) error
Decode decodes SendVenueReplyMarkup from json.
func (OptSendVenueReplyMarkup) Encode ¶
func (o OptSendVenueReplyMarkup) Encode(e *jx.Encoder)
Encode encodes SendVenueReplyMarkup as json.
func (OptSendVenueReplyMarkup) Get ¶
func (o OptSendVenueReplyMarkup) Get() (v SendVenueReplyMarkup, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSendVenueReplyMarkup) IsSet ¶
func (o OptSendVenueReplyMarkup) IsSet() bool
IsSet returns true if OptSendVenueReplyMarkup was set.
func (OptSendVenueReplyMarkup) MarshalJSON ¶
func (s OptSendVenueReplyMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptSendVenueReplyMarkup) Or ¶
func (o OptSendVenueReplyMarkup) Or(d SendVenueReplyMarkup) SendVenueReplyMarkup
Or returns value if set, or given parameter if does not.
func (*OptSendVenueReplyMarkup) Reset ¶
func (o *OptSendVenueReplyMarkup) Reset()
Reset unsets value.
func (*OptSendVenueReplyMarkup) SetFake ¶
func (s *OptSendVenueReplyMarkup) SetFake()
SetFake set fake values.
func (*OptSendVenueReplyMarkup) SetTo ¶
func (o *OptSendVenueReplyMarkup) SetTo(v SendVenueReplyMarkup)
SetTo sets value to v.
func (*OptSendVenueReplyMarkup) UnmarshalJSON ¶
func (s *OptSendVenueReplyMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSendVideoNoteReplyMarkup ¶
type OptSendVideoNoteReplyMarkup struct { Value SendVideoNoteReplyMarkup Set bool }
OptSendVideoNoteReplyMarkup is optional SendVideoNoteReplyMarkup.
func NewOptSendVideoNoteReplyMarkup ¶
func NewOptSendVideoNoteReplyMarkup(v SendVideoNoteReplyMarkup) OptSendVideoNoteReplyMarkup
NewOptSendVideoNoteReplyMarkup returns new OptSendVideoNoteReplyMarkup with value set to v.
func (*OptSendVideoNoteReplyMarkup) Decode ¶
func (o *OptSendVideoNoteReplyMarkup) Decode(d *jx.Decoder) error
Decode decodes SendVideoNoteReplyMarkup from json.
func (OptSendVideoNoteReplyMarkup) Encode ¶
func (o OptSendVideoNoteReplyMarkup) Encode(e *jx.Encoder)
Encode encodes SendVideoNoteReplyMarkup as json.
func (OptSendVideoNoteReplyMarkup) Get ¶
func (o OptSendVideoNoteReplyMarkup) Get() (v SendVideoNoteReplyMarkup, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSendVideoNoteReplyMarkup) IsSet ¶
func (o OptSendVideoNoteReplyMarkup) IsSet() bool
IsSet returns true if OptSendVideoNoteReplyMarkup was set.
func (OptSendVideoNoteReplyMarkup) MarshalJSON ¶
func (s OptSendVideoNoteReplyMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptSendVideoNoteReplyMarkup) Reset ¶
func (o *OptSendVideoNoteReplyMarkup) Reset()
Reset unsets value.
func (*OptSendVideoNoteReplyMarkup) SetFake ¶
func (s *OptSendVideoNoteReplyMarkup) SetFake()
SetFake set fake values.
func (*OptSendVideoNoteReplyMarkup) SetTo ¶
func (o *OptSendVideoNoteReplyMarkup) SetTo(v SendVideoNoteReplyMarkup)
SetTo sets value to v.
func (*OptSendVideoNoteReplyMarkup) UnmarshalJSON ¶
func (s *OptSendVideoNoteReplyMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSendVideoReplyMarkup ¶
type OptSendVideoReplyMarkup struct { Value SendVideoReplyMarkup Set bool }
OptSendVideoReplyMarkup is optional SendVideoReplyMarkup.
func NewOptSendVideoReplyMarkup ¶
func NewOptSendVideoReplyMarkup(v SendVideoReplyMarkup) OptSendVideoReplyMarkup
NewOptSendVideoReplyMarkup returns new OptSendVideoReplyMarkup with value set to v.
func (*OptSendVideoReplyMarkup) Decode ¶
func (o *OptSendVideoReplyMarkup) Decode(d *jx.Decoder) error
Decode decodes SendVideoReplyMarkup from json.
func (OptSendVideoReplyMarkup) Encode ¶
func (o OptSendVideoReplyMarkup) Encode(e *jx.Encoder)
Encode encodes SendVideoReplyMarkup as json.
func (OptSendVideoReplyMarkup) Get ¶
func (o OptSendVideoReplyMarkup) Get() (v SendVideoReplyMarkup, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSendVideoReplyMarkup) IsSet ¶
func (o OptSendVideoReplyMarkup) IsSet() bool
IsSet returns true if OptSendVideoReplyMarkup was set.
func (OptSendVideoReplyMarkup) MarshalJSON ¶
func (s OptSendVideoReplyMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptSendVideoReplyMarkup) Or ¶
func (o OptSendVideoReplyMarkup) Or(d SendVideoReplyMarkup) SendVideoReplyMarkup
Or returns value if set, or given parameter if does not.
func (*OptSendVideoReplyMarkup) Reset ¶
func (o *OptSendVideoReplyMarkup) Reset()
Reset unsets value.
func (*OptSendVideoReplyMarkup) SetFake ¶
func (s *OptSendVideoReplyMarkup) SetFake()
SetFake set fake values.
func (*OptSendVideoReplyMarkup) SetTo ¶
func (o *OptSendVideoReplyMarkup) SetTo(v SendVideoReplyMarkup)
SetTo sets value to v.
func (*OptSendVideoReplyMarkup) UnmarshalJSON ¶
func (s *OptSendVideoReplyMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSendVoiceReplyMarkup ¶
type OptSendVoiceReplyMarkup struct { Value SendVoiceReplyMarkup Set bool }
OptSendVoiceReplyMarkup is optional SendVoiceReplyMarkup.
func NewOptSendVoiceReplyMarkup ¶
func NewOptSendVoiceReplyMarkup(v SendVoiceReplyMarkup) OptSendVoiceReplyMarkup
NewOptSendVoiceReplyMarkup returns new OptSendVoiceReplyMarkup with value set to v.
func (*OptSendVoiceReplyMarkup) Decode ¶
func (o *OptSendVoiceReplyMarkup) Decode(d *jx.Decoder) error
Decode decodes SendVoiceReplyMarkup from json.
func (OptSendVoiceReplyMarkup) Encode ¶
func (o OptSendVoiceReplyMarkup) Encode(e *jx.Encoder)
Encode encodes SendVoiceReplyMarkup as json.
func (OptSendVoiceReplyMarkup) Get ¶
func (o OptSendVoiceReplyMarkup) Get() (v SendVoiceReplyMarkup, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSendVoiceReplyMarkup) IsSet ¶
func (o OptSendVoiceReplyMarkup) IsSet() bool
IsSet returns true if OptSendVoiceReplyMarkup was set.
func (OptSendVoiceReplyMarkup) MarshalJSON ¶
func (s OptSendVoiceReplyMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptSendVoiceReplyMarkup) Or ¶
func (o OptSendVoiceReplyMarkup) Or(d SendVoiceReplyMarkup) SendVoiceReplyMarkup
Or returns value if set, or given parameter if does not.
func (*OptSendVoiceReplyMarkup) Reset ¶
func (o *OptSendVoiceReplyMarkup) Reset()
Reset unsets value.
func (*OptSendVoiceReplyMarkup) SetFake ¶
func (s *OptSendVoiceReplyMarkup) SetFake()
SetFake set fake values.
func (*OptSendVoiceReplyMarkup) SetTo ¶
func (o *OptSendVoiceReplyMarkup) SetTo(v SendVoiceReplyMarkup)
SetTo sets value to v.
func (*OptSendVoiceReplyMarkup) UnmarshalJSON ¶
func (s *OptSendVoiceReplyMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptShippingAddress ¶
type OptShippingAddress struct { Value ShippingAddress Set bool }
OptShippingAddress is optional ShippingAddress.
func NewOptShippingAddress ¶
func NewOptShippingAddress(v ShippingAddress) OptShippingAddress
NewOptShippingAddress returns new OptShippingAddress with value set to v.
func (*OptShippingAddress) Decode ¶
func (o *OptShippingAddress) Decode(d *jx.Decoder) error
Decode decodes ShippingAddress from json.
func (OptShippingAddress) Encode ¶
func (o OptShippingAddress) Encode(e *jx.Encoder)
Encode encodes ShippingAddress as json.
func (OptShippingAddress) Get ¶
func (o OptShippingAddress) Get() (v ShippingAddress, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptShippingAddress) IsSet ¶
func (o OptShippingAddress) IsSet() bool
IsSet returns true if OptShippingAddress was set.
func (OptShippingAddress) MarshalJSON ¶
func (s OptShippingAddress) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptShippingAddress) Or ¶
func (o OptShippingAddress) Or(d ShippingAddress) ShippingAddress
Or returns value if set, or given parameter if does not.
func (*OptShippingAddress) SetFake ¶
func (s *OptShippingAddress) SetFake()
SetFake set fake values.
func (*OptShippingAddress) SetTo ¶
func (o *OptShippingAddress) SetTo(v ShippingAddress)
SetTo sets value to v.
func (*OptShippingAddress) UnmarshalJSON ¶
func (s *OptShippingAddress) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptShippingQuery ¶
type OptShippingQuery struct { Value ShippingQuery Set bool }
OptShippingQuery is optional ShippingQuery.
func NewOptShippingQuery ¶
func NewOptShippingQuery(v ShippingQuery) OptShippingQuery
NewOptShippingQuery returns new OptShippingQuery with value set to v.
func (*OptShippingQuery) Decode ¶
func (o *OptShippingQuery) Decode(d *jx.Decoder) error
Decode decodes ShippingQuery from json.
func (OptShippingQuery) Encode ¶
func (o OptShippingQuery) Encode(e *jx.Encoder)
Encode encodes ShippingQuery as json.
func (OptShippingQuery) Get ¶
func (o OptShippingQuery) Get() (v ShippingQuery, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptShippingQuery) IsSet ¶
func (o OptShippingQuery) IsSet() bool
IsSet returns true if OptShippingQuery was set.
func (OptShippingQuery) MarshalJSON ¶
func (s OptShippingQuery) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptShippingQuery) Or ¶
func (o OptShippingQuery) Or(d ShippingQuery) ShippingQuery
Or returns value if set, or given parameter if does not.
func (*OptShippingQuery) SetTo ¶
func (o *OptShippingQuery) SetTo(v ShippingQuery)
SetTo sets value to v.
func (*OptShippingQuery) UnmarshalJSON ¶
func (s *OptShippingQuery) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSticker ¶
OptSticker is optional Sticker.
func NewOptSticker ¶
func NewOptSticker(v Sticker) OptSticker
NewOptSticker returns new OptSticker with value set to v.
func (*OptSticker) Decode ¶
func (o *OptSticker) Decode(d *jx.Decoder) error
Decode decodes Sticker from json.
func (OptSticker) Encode ¶
func (o OptSticker) Encode(e *jx.Encoder)
Encode encodes Sticker as json.
func (OptSticker) Get ¶
func (o OptSticker) Get() (v Sticker, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSticker) IsSet ¶
func (o OptSticker) IsSet() bool
IsSet returns true if OptSticker was set.
func (OptSticker) MarshalJSON ¶
func (s OptSticker) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptSticker) Or ¶
func (o OptSticker) Or(d Sticker) Sticker
Or returns value if set, or given parameter if does not.
func (*OptSticker) UnmarshalJSON ¶
func (s *OptSticker) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptString ¶
OptString is optional string.
func NewOptString ¶
NewOptString returns new OptString with value set to v.
func (OptString) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptString) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSuccessfulPayment ¶
type OptSuccessfulPayment struct { Value SuccessfulPayment Set bool }
OptSuccessfulPayment is optional SuccessfulPayment.
func NewOptSuccessfulPayment ¶
func NewOptSuccessfulPayment(v SuccessfulPayment) OptSuccessfulPayment
NewOptSuccessfulPayment returns new OptSuccessfulPayment with value set to v.
func (*OptSuccessfulPayment) Decode ¶
func (o *OptSuccessfulPayment) Decode(d *jx.Decoder) error
Decode decodes SuccessfulPayment from json.
func (OptSuccessfulPayment) Encode ¶
func (o OptSuccessfulPayment) Encode(e *jx.Encoder)
Encode encodes SuccessfulPayment as json.
func (OptSuccessfulPayment) Get ¶
func (o OptSuccessfulPayment) Get() (v SuccessfulPayment, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSuccessfulPayment) IsSet ¶
func (o OptSuccessfulPayment) IsSet() bool
IsSet returns true if OptSuccessfulPayment was set.
func (OptSuccessfulPayment) MarshalJSON ¶
func (s OptSuccessfulPayment) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptSuccessfulPayment) Or ¶
func (o OptSuccessfulPayment) Or(d SuccessfulPayment) SuccessfulPayment
Or returns value if set, or given parameter if does not.
func (*OptSuccessfulPayment) SetFake ¶
func (s *OptSuccessfulPayment) SetFake()
SetFake set fake values.
func (*OptSuccessfulPayment) SetTo ¶
func (o *OptSuccessfulPayment) SetTo(v SuccessfulPayment)
SetTo sets value to v.
func (*OptSuccessfulPayment) UnmarshalJSON ¶
func (s *OptSuccessfulPayment) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptURI ¶
OptURI is optional url.URL.
func (OptURI) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptURI) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUser ¶
OptUser is optional User.
func NewOptUser ¶
NewOptUser returns new OptUser with value set to v.
func (OptUser) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptUser) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUserProfilePhotos ¶
type OptUserProfilePhotos struct { Value UserProfilePhotos Set bool }
OptUserProfilePhotos is optional UserProfilePhotos.
func NewOptUserProfilePhotos ¶
func NewOptUserProfilePhotos(v UserProfilePhotos) OptUserProfilePhotos
NewOptUserProfilePhotos returns new OptUserProfilePhotos with value set to v.
func (*OptUserProfilePhotos) Decode ¶
func (o *OptUserProfilePhotos) Decode(d *jx.Decoder) error
Decode decodes UserProfilePhotos from json.
func (OptUserProfilePhotos) Encode ¶
func (o OptUserProfilePhotos) Encode(e *jx.Encoder)
Encode encodes UserProfilePhotos as json.
func (OptUserProfilePhotos) Get ¶
func (o OptUserProfilePhotos) Get() (v UserProfilePhotos, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUserProfilePhotos) IsSet ¶
func (o OptUserProfilePhotos) IsSet() bool
IsSet returns true if OptUserProfilePhotos was set.
func (OptUserProfilePhotos) MarshalJSON ¶
func (s OptUserProfilePhotos) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptUserProfilePhotos) Or ¶
func (o OptUserProfilePhotos) Or(d UserProfilePhotos) UserProfilePhotos
Or returns value if set, or given parameter if does not.
func (*OptUserProfilePhotos) SetFake ¶
func (s *OptUserProfilePhotos) SetFake()
SetFake set fake values.
func (*OptUserProfilePhotos) SetTo ¶
func (o *OptUserProfilePhotos) SetTo(v UserProfilePhotos)
SetTo sets value to v.
func (*OptUserProfilePhotos) UnmarshalJSON ¶
func (s *OptUserProfilePhotos) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptVenue ¶
OptVenue is optional Venue.
func NewOptVenue ¶
NewOptVenue returns new OptVenue with value set to v.
func (OptVenue) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptVenue) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptVideo ¶
OptVideo is optional Video.
func NewOptVideo ¶
NewOptVideo returns new OptVideo with value set to v.
func (OptVideo) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptVideo) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptVideoNote ¶
OptVideoNote is optional VideoNote.
func NewOptVideoNote ¶
func NewOptVideoNote(v VideoNote) OptVideoNote
NewOptVideoNote returns new OptVideoNote with value set to v.
func (*OptVideoNote) Decode ¶
func (o *OptVideoNote) Decode(d *jx.Decoder) error
Decode decodes VideoNote from json.
func (OptVideoNote) Encode ¶
func (o OptVideoNote) Encode(e *jx.Encoder)
Encode encodes VideoNote as json.
func (OptVideoNote) Get ¶
func (o OptVideoNote) Get() (v VideoNote, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptVideoNote) IsSet ¶
func (o OptVideoNote) IsSet() bool
IsSet returns true if OptVideoNote was set.
func (OptVideoNote) MarshalJSON ¶
func (s OptVideoNote) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptVideoNote) Or ¶
func (o OptVideoNote) Or(d VideoNote) VideoNote
Or returns value if set, or given parameter if does not.
func (*OptVideoNote) UnmarshalJSON ¶
func (s *OptVideoNote) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptVoice ¶
OptVoice is optional Voice.
func NewOptVoice ¶
NewOptVoice returns new OptVoice with value set to v.
func (OptVoice) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptVoice) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptVoiceChatEnded ¶
type OptVoiceChatEnded struct { Value VoiceChatEnded Set bool }
OptVoiceChatEnded is optional VoiceChatEnded.
func NewOptVoiceChatEnded ¶
func NewOptVoiceChatEnded(v VoiceChatEnded) OptVoiceChatEnded
NewOptVoiceChatEnded returns new OptVoiceChatEnded with value set to v.
func (*OptVoiceChatEnded) Decode ¶
func (o *OptVoiceChatEnded) Decode(d *jx.Decoder) error
Decode decodes VoiceChatEnded from json.
func (OptVoiceChatEnded) Encode ¶
func (o OptVoiceChatEnded) Encode(e *jx.Encoder)
Encode encodes VoiceChatEnded as json.
func (OptVoiceChatEnded) Get ¶
func (o OptVoiceChatEnded) Get() (v VoiceChatEnded, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptVoiceChatEnded) IsSet ¶
func (o OptVoiceChatEnded) IsSet() bool
IsSet returns true if OptVoiceChatEnded was set.
func (OptVoiceChatEnded) MarshalJSON ¶
func (s OptVoiceChatEnded) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptVoiceChatEnded) Or ¶
func (o OptVoiceChatEnded) Or(d VoiceChatEnded) VoiceChatEnded
Or returns value if set, or given parameter if does not.
func (*OptVoiceChatEnded) SetTo ¶
func (o *OptVoiceChatEnded) SetTo(v VoiceChatEnded)
SetTo sets value to v.
func (*OptVoiceChatEnded) UnmarshalJSON ¶
func (s *OptVoiceChatEnded) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptVoiceChatParticipantsInvited ¶
type OptVoiceChatParticipantsInvited struct { Value VoiceChatParticipantsInvited Set bool }
OptVoiceChatParticipantsInvited is optional VoiceChatParticipantsInvited.
func NewOptVoiceChatParticipantsInvited ¶
func NewOptVoiceChatParticipantsInvited(v VoiceChatParticipantsInvited) OptVoiceChatParticipantsInvited
NewOptVoiceChatParticipantsInvited returns new OptVoiceChatParticipantsInvited with value set to v.
func (*OptVoiceChatParticipantsInvited) Decode ¶
func (o *OptVoiceChatParticipantsInvited) Decode(d *jx.Decoder) error
Decode decodes VoiceChatParticipantsInvited from json.
func (OptVoiceChatParticipantsInvited) Encode ¶
func (o OptVoiceChatParticipantsInvited) Encode(e *jx.Encoder)
Encode encodes VoiceChatParticipantsInvited as json.
func (OptVoiceChatParticipantsInvited) Get ¶
func (o OptVoiceChatParticipantsInvited) Get() (v VoiceChatParticipantsInvited, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptVoiceChatParticipantsInvited) IsSet ¶
func (o OptVoiceChatParticipantsInvited) IsSet() bool
IsSet returns true if OptVoiceChatParticipantsInvited was set.
func (OptVoiceChatParticipantsInvited) MarshalJSON ¶
func (s OptVoiceChatParticipantsInvited) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptVoiceChatParticipantsInvited) Or ¶
func (o OptVoiceChatParticipantsInvited) Or(d VoiceChatParticipantsInvited) VoiceChatParticipantsInvited
Or returns value if set, or given parameter if does not.
func (*OptVoiceChatParticipantsInvited) Reset ¶
func (o *OptVoiceChatParticipantsInvited) Reset()
Reset unsets value.
func (*OptVoiceChatParticipantsInvited) SetFake ¶
func (s *OptVoiceChatParticipantsInvited) SetFake()
SetFake set fake values.
func (*OptVoiceChatParticipantsInvited) SetTo ¶
func (o *OptVoiceChatParticipantsInvited) SetTo(v VoiceChatParticipantsInvited)
SetTo sets value to v.
func (*OptVoiceChatParticipantsInvited) UnmarshalJSON ¶
func (s *OptVoiceChatParticipantsInvited) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptVoiceChatScheduled ¶
type OptVoiceChatScheduled struct { Value VoiceChatScheduled Set bool }
OptVoiceChatScheduled is optional VoiceChatScheduled.
func NewOptVoiceChatScheduled ¶
func NewOptVoiceChatScheduled(v VoiceChatScheduled) OptVoiceChatScheduled
NewOptVoiceChatScheduled returns new OptVoiceChatScheduled with value set to v.
func (*OptVoiceChatScheduled) Decode ¶
func (o *OptVoiceChatScheduled) Decode(d *jx.Decoder) error
Decode decodes VoiceChatScheduled from json.
func (OptVoiceChatScheduled) Encode ¶
func (o OptVoiceChatScheduled) Encode(e *jx.Encoder)
Encode encodes VoiceChatScheduled as json.
func (OptVoiceChatScheduled) Get ¶
func (o OptVoiceChatScheduled) Get() (v VoiceChatScheduled, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptVoiceChatScheduled) IsSet ¶
func (o OptVoiceChatScheduled) IsSet() bool
IsSet returns true if OptVoiceChatScheduled was set.
func (OptVoiceChatScheduled) MarshalJSON ¶
func (s OptVoiceChatScheduled) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptVoiceChatScheduled) Or ¶
func (o OptVoiceChatScheduled) Or(d VoiceChatScheduled) VoiceChatScheduled
Or returns value if set, or given parameter if does not.
func (*OptVoiceChatScheduled) SetFake ¶
func (s *OptVoiceChatScheduled) SetFake()
SetFake set fake values.
func (*OptVoiceChatScheduled) SetTo ¶
func (o *OptVoiceChatScheduled) SetTo(v VoiceChatScheduled)
SetTo sets value to v.
func (*OptVoiceChatScheduled) UnmarshalJSON ¶
func (s *OptVoiceChatScheduled) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptWebhookInfo ¶
type OptWebhookInfo struct { Value WebhookInfo Set bool }
OptWebhookInfo is optional WebhookInfo.
func NewOptWebhookInfo ¶
func NewOptWebhookInfo(v WebhookInfo) OptWebhookInfo
NewOptWebhookInfo returns new OptWebhookInfo with value set to v.
func (*OptWebhookInfo) Decode ¶
func (o *OptWebhookInfo) Decode(d *jx.Decoder) error
Decode decodes WebhookInfo from json.
func (OptWebhookInfo) Encode ¶
func (o OptWebhookInfo) Encode(e *jx.Encoder)
Encode encodes WebhookInfo as json.
func (OptWebhookInfo) Get ¶
func (o OptWebhookInfo) Get() (v WebhookInfo, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptWebhookInfo) IsSet ¶
func (o OptWebhookInfo) IsSet() bool
IsSet returns true if OptWebhookInfo was set.
func (OptWebhookInfo) MarshalJSON ¶
func (s OptWebhookInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptWebhookInfo) Or ¶
func (o OptWebhookInfo) Or(d WebhookInfo) WebhookInfo
Or returns value if set, or given parameter if does not.
func (*OptWebhookInfo) UnmarshalJSON ¶
func (s *OptWebhookInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Option ¶
type Option interface { ServerOption ClientOption }
Option is config option.
func WithMeterProvider ¶
func WithMeterProvider(provider metric.MeterProvider) Option
WithMeterProvider specifies a meter provider to use for creating a meter.
If none is specified, the otel.GetMeterProvider() is used.
func WithTracerProvider ¶
func WithTracerProvider(provider trace.TracerProvider) Option
WithTracerProvider specifies a tracer provider to use for creating a tracer.
If none is specified, the global provider is used.
type OrderInfo ¶
type OrderInfo struct { // User name. Name OptString `json:"name"` // User's phone number. PhoneNumber OptString `json:"phone_number"` // User email. Email OptString `json:"email"` ShippingAddress OptShippingAddress `json:"shipping_address"` }
This object represents information about an order. Ref: #/components/schemas/OrderInfo
func (*OrderInfo) GetPhoneNumber ¶
GetPhoneNumber returns the value of PhoneNumber.
func (*OrderInfo) GetShippingAddress ¶
func (s *OrderInfo) GetShippingAddress() OptShippingAddress
GetShippingAddress returns the value of ShippingAddress.
func (*OrderInfo) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OrderInfo) SetPhoneNumber ¶
SetPhoneNumber sets the value of PhoneNumber.
func (*OrderInfo) SetShippingAddress ¶
func (s *OrderInfo) SetShippingAddress(val OptShippingAddress)
SetShippingAddress sets the value of ShippingAddress.
func (*OrderInfo) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type PassportData ¶
type PassportData struct { // Array with information about documents and other Telegram Passport elements that was shared with // the bot. Data []EncryptedPassportElement `json:"data"` Credentials EncryptedCredentials `json:"credentials"` }
Contains information about Telegram Passport data shared with the bot by the user. Ref: #/components/schemas/PassportData
func (*PassportData) Decode ¶
func (s *PassportData) Decode(d *jx.Decoder) error
Decode decodes PassportData from json.
func (*PassportData) Encode ¶
func (s *PassportData) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PassportData) GetCredentials ¶
func (s *PassportData) GetCredentials() EncryptedCredentials
GetCredentials returns the value of Credentials.
func (*PassportData) GetData ¶
func (s *PassportData) GetData() []EncryptedPassportElement
GetData returns the value of Data.
func (*PassportData) MarshalJSON ¶
func (s *PassportData) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PassportData) SetCredentials ¶
func (s *PassportData) SetCredentials(val EncryptedCredentials)
SetCredentials sets the value of Credentials.
func (*PassportData) SetData ¶
func (s *PassportData) SetData(val []EncryptedPassportElement)
SetData sets the value of Data.
func (*PassportData) UnmarshalJSON ¶
func (s *PassportData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PassportData) Validate ¶
func (s *PassportData) Validate() error
type PassportElementError ¶
type PassportElementError struct { Type PassportElementErrorType // switch on this field PassportElementErrorDataField PassportElementErrorDataField PassportElementErrorFrontSide PassportElementErrorFrontSide PassportElementErrorReverseSide PassportElementErrorReverseSide PassportElementErrorSelfie PassportElementErrorSelfie PassportElementErrorFile PassportElementErrorFile PassportElementErrorFiles PassportElementErrorFiles PassportElementErrorTranslationFile PassportElementErrorTranslationFile PassportElementErrorTranslationFiles PassportElementErrorTranslationFiles PassportElementErrorUnspecified PassportElementErrorUnspecified }
This object represents an error in the Telegram Passport element which was submitted that should be resolved by the user. :. Ref: #/components/schemas/PassportElementError PassportElementError represents sum type.
func NewPassportElementErrorDataFieldPassportElementError ¶
func NewPassportElementErrorDataFieldPassportElementError(v PassportElementErrorDataField) PassportElementError
NewPassportElementErrorDataFieldPassportElementError returns new PassportElementError from PassportElementErrorDataField.
func NewPassportElementErrorFilePassportElementError ¶
func NewPassportElementErrorFilePassportElementError(v PassportElementErrorFile) PassportElementError
NewPassportElementErrorFilePassportElementError returns new PassportElementError from PassportElementErrorFile.
func NewPassportElementErrorFilesPassportElementError ¶
func NewPassportElementErrorFilesPassportElementError(v PassportElementErrorFiles) PassportElementError
NewPassportElementErrorFilesPassportElementError returns new PassportElementError from PassportElementErrorFiles.
func NewPassportElementErrorFrontSidePassportElementError ¶
func NewPassportElementErrorFrontSidePassportElementError(v PassportElementErrorFrontSide) PassportElementError
NewPassportElementErrorFrontSidePassportElementError returns new PassportElementError from PassportElementErrorFrontSide.
func NewPassportElementErrorReverseSidePassportElementError ¶
func NewPassportElementErrorReverseSidePassportElementError(v PassportElementErrorReverseSide) PassportElementError
NewPassportElementErrorReverseSidePassportElementError returns new PassportElementError from PassportElementErrorReverseSide.
func NewPassportElementErrorSelfiePassportElementError ¶
func NewPassportElementErrorSelfiePassportElementError(v PassportElementErrorSelfie) PassportElementError
NewPassportElementErrorSelfiePassportElementError returns new PassportElementError from PassportElementErrorSelfie.
func NewPassportElementErrorTranslationFilePassportElementError ¶
func NewPassportElementErrorTranslationFilePassportElementError(v PassportElementErrorTranslationFile) PassportElementError
NewPassportElementErrorTranslationFilePassportElementError returns new PassportElementError from PassportElementErrorTranslationFile.
func NewPassportElementErrorTranslationFilesPassportElementError ¶
func NewPassportElementErrorTranslationFilesPassportElementError(v PassportElementErrorTranslationFiles) PassportElementError
NewPassportElementErrorTranslationFilesPassportElementError returns new PassportElementError from PassportElementErrorTranslationFiles.
func NewPassportElementErrorUnspecifiedPassportElementError ¶
func NewPassportElementErrorUnspecifiedPassportElementError(v PassportElementErrorUnspecified) PassportElementError
NewPassportElementErrorUnspecifiedPassportElementError returns new PassportElementError from PassportElementErrorUnspecified.
func (*PassportElementError) Decode ¶
func (s *PassportElementError) Decode(d *jx.Decoder) error
Decode decodes PassportElementError from json.
func (PassportElementError) Encode ¶
func (s PassportElementError) Encode(e *jx.Encoder)
Encode encodes PassportElementError as json.
func (PassportElementError) GetPassportElementErrorDataField ¶
func (s PassportElementError) GetPassportElementErrorDataField() (v PassportElementErrorDataField, ok bool)
GetPassportElementErrorDataField returns PassportElementErrorDataField and true boolean if PassportElementError is PassportElementErrorDataField.
func (PassportElementError) GetPassportElementErrorFile ¶
func (s PassportElementError) GetPassportElementErrorFile() (v PassportElementErrorFile, ok bool)
GetPassportElementErrorFile returns PassportElementErrorFile and true boolean if PassportElementError is PassportElementErrorFile.
func (PassportElementError) GetPassportElementErrorFiles ¶
func (s PassportElementError) GetPassportElementErrorFiles() (v PassportElementErrorFiles, ok bool)
GetPassportElementErrorFiles returns PassportElementErrorFiles and true boolean if PassportElementError is PassportElementErrorFiles.
func (PassportElementError) GetPassportElementErrorFrontSide ¶
func (s PassportElementError) GetPassportElementErrorFrontSide() (v PassportElementErrorFrontSide, ok bool)
GetPassportElementErrorFrontSide returns PassportElementErrorFrontSide and true boolean if PassportElementError is PassportElementErrorFrontSide.
func (PassportElementError) GetPassportElementErrorReverseSide ¶
func (s PassportElementError) GetPassportElementErrorReverseSide() (v PassportElementErrorReverseSide, ok bool)
GetPassportElementErrorReverseSide returns PassportElementErrorReverseSide and true boolean if PassportElementError is PassportElementErrorReverseSide.
func (PassportElementError) GetPassportElementErrorSelfie ¶
func (s PassportElementError) GetPassportElementErrorSelfie() (v PassportElementErrorSelfie, ok bool)
GetPassportElementErrorSelfie returns PassportElementErrorSelfie and true boolean if PassportElementError is PassportElementErrorSelfie.
func (PassportElementError) GetPassportElementErrorTranslationFile ¶
func (s PassportElementError) GetPassportElementErrorTranslationFile() (v PassportElementErrorTranslationFile, ok bool)
GetPassportElementErrorTranslationFile returns PassportElementErrorTranslationFile and true boolean if PassportElementError is PassportElementErrorTranslationFile.
func (PassportElementError) GetPassportElementErrorTranslationFiles ¶
func (s PassportElementError) GetPassportElementErrorTranslationFiles() (v PassportElementErrorTranslationFiles, ok bool)
GetPassportElementErrorTranslationFiles returns PassportElementErrorTranslationFiles and true boolean if PassportElementError is PassportElementErrorTranslationFiles.
func (PassportElementError) GetPassportElementErrorUnspecified ¶
func (s PassportElementError) GetPassportElementErrorUnspecified() (v PassportElementErrorUnspecified, ok bool)
GetPassportElementErrorUnspecified returns PassportElementErrorUnspecified and true boolean if PassportElementError is PassportElementErrorUnspecified.
func (PassportElementError) IsPassportElementErrorDataField ¶
func (s PassportElementError) IsPassportElementErrorDataField() bool
IsPassportElementErrorDataField reports whether PassportElementError is PassportElementErrorDataField.
func (PassportElementError) IsPassportElementErrorFile ¶
func (s PassportElementError) IsPassportElementErrorFile() bool
IsPassportElementErrorFile reports whether PassportElementError is PassportElementErrorFile.
func (PassportElementError) IsPassportElementErrorFiles ¶
func (s PassportElementError) IsPassportElementErrorFiles() bool
IsPassportElementErrorFiles reports whether PassportElementError is PassportElementErrorFiles.
func (PassportElementError) IsPassportElementErrorFrontSide ¶
func (s PassportElementError) IsPassportElementErrorFrontSide() bool
IsPassportElementErrorFrontSide reports whether PassportElementError is PassportElementErrorFrontSide.
func (PassportElementError) IsPassportElementErrorReverseSide ¶
func (s PassportElementError) IsPassportElementErrorReverseSide() bool
IsPassportElementErrorReverseSide reports whether PassportElementError is PassportElementErrorReverseSide.
func (PassportElementError) IsPassportElementErrorSelfie ¶
func (s PassportElementError) IsPassportElementErrorSelfie() bool
IsPassportElementErrorSelfie reports whether PassportElementError is PassportElementErrorSelfie.
func (PassportElementError) IsPassportElementErrorTranslationFile ¶
func (s PassportElementError) IsPassportElementErrorTranslationFile() bool
IsPassportElementErrorTranslationFile reports whether PassportElementError is PassportElementErrorTranslationFile.
func (PassportElementError) IsPassportElementErrorTranslationFiles ¶
func (s PassportElementError) IsPassportElementErrorTranslationFiles() bool
IsPassportElementErrorTranslationFiles reports whether PassportElementError is PassportElementErrorTranslationFiles.
func (PassportElementError) IsPassportElementErrorUnspecified ¶
func (s PassportElementError) IsPassportElementErrorUnspecified() bool
IsPassportElementErrorUnspecified reports whether PassportElementError is PassportElementErrorUnspecified.
func (PassportElementError) MarshalJSON ¶
func (s PassportElementError) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PassportElementError) SetFake ¶
func (s *PassportElementError) SetFake()
SetFake set fake values.
func (*PassportElementError) SetPassportElementErrorDataField ¶
func (s *PassportElementError) SetPassportElementErrorDataField(v PassportElementErrorDataField)
SetPassportElementErrorDataField sets PassportElementError to PassportElementErrorDataField.
func (*PassportElementError) SetPassportElementErrorFile ¶
func (s *PassportElementError) SetPassportElementErrorFile(v PassportElementErrorFile)
SetPassportElementErrorFile sets PassportElementError to PassportElementErrorFile.
func (*PassportElementError) SetPassportElementErrorFiles ¶
func (s *PassportElementError) SetPassportElementErrorFiles(v PassportElementErrorFiles)
SetPassportElementErrorFiles sets PassportElementError to PassportElementErrorFiles.
func (*PassportElementError) SetPassportElementErrorFrontSide ¶
func (s *PassportElementError) SetPassportElementErrorFrontSide(v PassportElementErrorFrontSide)
SetPassportElementErrorFrontSide sets PassportElementError to PassportElementErrorFrontSide.
func (*PassportElementError) SetPassportElementErrorReverseSide ¶
func (s *PassportElementError) SetPassportElementErrorReverseSide(v PassportElementErrorReverseSide)
SetPassportElementErrorReverseSide sets PassportElementError to PassportElementErrorReverseSide.
func (*PassportElementError) SetPassportElementErrorSelfie ¶
func (s *PassportElementError) SetPassportElementErrorSelfie(v PassportElementErrorSelfie)
SetPassportElementErrorSelfie sets PassportElementError to PassportElementErrorSelfie.
func (*PassportElementError) SetPassportElementErrorTranslationFile ¶
func (s *PassportElementError) SetPassportElementErrorTranslationFile(v PassportElementErrorTranslationFile)
SetPassportElementErrorTranslationFile sets PassportElementError to PassportElementErrorTranslationFile.
func (*PassportElementError) SetPassportElementErrorTranslationFiles ¶
func (s *PassportElementError) SetPassportElementErrorTranslationFiles(v PassportElementErrorTranslationFiles)
SetPassportElementErrorTranslationFiles sets PassportElementError to PassportElementErrorTranslationFiles.
func (*PassportElementError) SetPassportElementErrorUnspecified ¶
func (s *PassportElementError) SetPassportElementErrorUnspecified(v PassportElementErrorUnspecified)
SetPassportElementErrorUnspecified sets PassportElementError to PassportElementErrorUnspecified.
func (*PassportElementError) UnmarshalJSON ¶
func (s *PassportElementError) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (PassportElementError) Validate ¶
func (s PassportElementError) Validate() error
type PassportElementErrorDataField ¶
type PassportElementErrorDataField struct { // Error source, must be data. Source string `json:"source"` // The section of the user's Telegram Passport which has the error, one of “personal_details”, // “passport”, “driver_license”, “identity_card”, “internal_passport”, “address”. Type PassportElementErrorDataFieldType `json:"type"` // Name of the data field which has the error. FieldName string `json:"field_name"` // Base64-encoded data hash. DataHash string `json:"data_hash"` // Error message. Message string `json:"message"` }
Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field's value changes. Ref: #/components/schemas/PassportElementErrorDataField
func (*PassportElementErrorDataField) Decode ¶
func (s *PassportElementErrorDataField) Decode(d *jx.Decoder) error
Decode decodes PassportElementErrorDataField from json.
func (*PassportElementErrorDataField) Encode ¶
func (s *PassportElementErrorDataField) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PassportElementErrorDataField) GetDataHash ¶
func (s *PassportElementErrorDataField) GetDataHash() string
GetDataHash returns the value of DataHash.
func (*PassportElementErrorDataField) GetFieldName ¶
func (s *PassportElementErrorDataField) GetFieldName() string
GetFieldName returns the value of FieldName.
func (*PassportElementErrorDataField) GetMessage ¶
func (s *PassportElementErrorDataField) GetMessage() string
GetMessage returns the value of Message.
func (*PassportElementErrorDataField) GetSource ¶
func (s *PassportElementErrorDataField) GetSource() string
GetSource returns the value of Source.
func (*PassportElementErrorDataField) GetType ¶
func (s *PassportElementErrorDataField) GetType() PassportElementErrorDataFieldType
GetType returns the value of Type.
func (*PassportElementErrorDataField) MarshalJSON ¶
func (s *PassportElementErrorDataField) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PassportElementErrorDataField) SetDataHash ¶
func (s *PassportElementErrorDataField) SetDataHash(val string)
SetDataHash sets the value of DataHash.
func (*PassportElementErrorDataField) SetFake ¶
func (s *PassportElementErrorDataField) SetFake()
SetFake set fake values.
func (*PassportElementErrorDataField) SetFieldName ¶
func (s *PassportElementErrorDataField) SetFieldName(val string)
SetFieldName sets the value of FieldName.
func (*PassportElementErrorDataField) SetMessage ¶
func (s *PassportElementErrorDataField) SetMessage(val string)
SetMessage sets the value of Message.
func (*PassportElementErrorDataField) SetSource ¶
func (s *PassportElementErrorDataField) SetSource(val string)
SetSource sets the value of Source.
func (*PassportElementErrorDataField) SetType ¶
func (s *PassportElementErrorDataField) SetType(val PassportElementErrorDataFieldType)
SetType sets the value of Type.
func (*PassportElementErrorDataField) UnmarshalJSON ¶
func (s *PassportElementErrorDataField) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PassportElementErrorDataField) Validate ¶
func (s *PassportElementErrorDataField) Validate() error
type PassportElementErrorDataFieldType ¶
type PassportElementErrorDataFieldType string
The section of the user's Telegram Passport which has the error, one of “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport”, “address”.
const ( PassportElementErrorDataFieldTypePersonalDetails PassportElementErrorDataFieldType = "personal_details" PassportElementErrorDataFieldTypePassport PassportElementErrorDataFieldType = "passport" PassportElementErrorDataFieldTypeDriverLicense PassportElementErrorDataFieldType = "driver_license" PassportElementErrorDataFieldTypeIdentityCard PassportElementErrorDataFieldType = "identity_card" PassportElementErrorDataFieldTypeInternalPassport PassportElementErrorDataFieldType = "internal_passport" PassportElementErrorDataFieldTypeAddress PassportElementErrorDataFieldType = "address" )
func (PassportElementErrorDataFieldType) AllValues ¶
func (PassportElementErrorDataFieldType) AllValues() []PassportElementErrorDataFieldType
AllValues returns all PassportElementErrorDataFieldType values.
func (*PassportElementErrorDataFieldType) Decode ¶
func (s *PassportElementErrorDataFieldType) Decode(d *jx.Decoder) error
Decode decodes PassportElementErrorDataFieldType from json.
func (PassportElementErrorDataFieldType) Encode ¶
func (s PassportElementErrorDataFieldType) Encode(e *jx.Encoder)
Encode encodes PassportElementErrorDataFieldType as json.
func (PassportElementErrorDataFieldType) MarshalJSON ¶
func (s PassportElementErrorDataFieldType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (PassportElementErrorDataFieldType) MarshalText ¶
func (s PassportElementErrorDataFieldType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*PassportElementErrorDataFieldType) SetFake ¶
func (s *PassportElementErrorDataFieldType) SetFake()
SetFake set fake values.
func (*PassportElementErrorDataFieldType) UnmarshalJSON ¶
func (s *PassportElementErrorDataFieldType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PassportElementErrorDataFieldType) UnmarshalText ¶
func (s *PassportElementErrorDataFieldType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (PassportElementErrorDataFieldType) Validate ¶
func (s PassportElementErrorDataFieldType) Validate() error
type PassportElementErrorFile ¶
type PassportElementErrorFile struct { // Error source, must be file. Source string `json:"source"` // The section of the user's Telegram Passport which has the issue, one of “utility_bill”, // “bank_statement”, “rental_agreement”, “passport_registration”, // “temporary_registration”. Type PassportElementErrorFileType `json:"type"` // Base64-encoded file hash. FileHash string `json:"file_hash"` // Error message. Message string `json:"message"` }
Represents an issue with a document scan. The error is considered resolved when the file with the document scan changes. Ref: #/components/schemas/PassportElementErrorFile
func (*PassportElementErrorFile) Decode ¶
func (s *PassportElementErrorFile) Decode(d *jx.Decoder) error
Decode decodes PassportElementErrorFile from json.
func (*PassportElementErrorFile) Encode ¶
func (s *PassportElementErrorFile) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PassportElementErrorFile) GetFileHash ¶
func (s *PassportElementErrorFile) GetFileHash() string
GetFileHash returns the value of FileHash.
func (*PassportElementErrorFile) GetMessage ¶
func (s *PassportElementErrorFile) GetMessage() string
GetMessage returns the value of Message.
func (*PassportElementErrorFile) GetSource ¶
func (s *PassportElementErrorFile) GetSource() string
GetSource returns the value of Source.
func (*PassportElementErrorFile) GetType ¶
func (s *PassportElementErrorFile) GetType() PassportElementErrorFileType
GetType returns the value of Type.
func (*PassportElementErrorFile) MarshalJSON ¶
func (s *PassportElementErrorFile) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PassportElementErrorFile) SetFake ¶
func (s *PassportElementErrorFile) SetFake()
SetFake set fake values.
func (*PassportElementErrorFile) SetFileHash ¶
func (s *PassportElementErrorFile) SetFileHash(val string)
SetFileHash sets the value of FileHash.
func (*PassportElementErrorFile) SetMessage ¶
func (s *PassportElementErrorFile) SetMessage(val string)
SetMessage sets the value of Message.
func (*PassportElementErrorFile) SetSource ¶
func (s *PassportElementErrorFile) SetSource(val string)
SetSource sets the value of Source.
func (*PassportElementErrorFile) SetType ¶
func (s *PassportElementErrorFile) SetType(val PassportElementErrorFileType)
SetType sets the value of Type.
func (*PassportElementErrorFile) UnmarshalJSON ¶
func (s *PassportElementErrorFile) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PassportElementErrorFile) Validate ¶
func (s *PassportElementErrorFile) Validate() error
type PassportElementErrorFileType ¶
type PassportElementErrorFileType string
The section of the user's Telegram Passport which has the issue, one of “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”.
const ( PassportElementErrorFileTypeUtilityBill PassportElementErrorFileType = "utility_bill" PassportElementErrorFileTypeBankStatement PassportElementErrorFileType = "bank_statement" PassportElementErrorFileTypeRentalAgreement PassportElementErrorFileType = "rental_agreement" PassportElementErrorFileTypePassportRegistration PassportElementErrorFileType = "passport_registration" PassportElementErrorFileTypeTemporaryRegistration PassportElementErrorFileType = "temporary_registration" )
func (PassportElementErrorFileType) AllValues ¶
func (PassportElementErrorFileType) AllValues() []PassportElementErrorFileType
AllValues returns all PassportElementErrorFileType values.
func (*PassportElementErrorFileType) Decode ¶
func (s *PassportElementErrorFileType) Decode(d *jx.Decoder) error
Decode decodes PassportElementErrorFileType from json.
func (PassportElementErrorFileType) Encode ¶
func (s PassportElementErrorFileType) Encode(e *jx.Encoder)
Encode encodes PassportElementErrorFileType as json.
func (PassportElementErrorFileType) MarshalJSON ¶
func (s PassportElementErrorFileType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (PassportElementErrorFileType) MarshalText ¶
func (s PassportElementErrorFileType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*PassportElementErrorFileType) SetFake ¶
func (s *PassportElementErrorFileType) SetFake()
SetFake set fake values.
func (*PassportElementErrorFileType) UnmarshalJSON ¶
func (s *PassportElementErrorFileType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PassportElementErrorFileType) UnmarshalText ¶
func (s *PassportElementErrorFileType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (PassportElementErrorFileType) Validate ¶
func (s PassportElementErrorFileType) Validate() error
type PassportElementErrorFiles ¶
type PassportElementErrorFiles struct { // Error source, must be files. Source string `json:"source"` // The section of the user's Telegram Passport which has the issue, one of “utility_bill”, // “bank_statement”, “rental_agreement”, “passport_registration”, // “temporary_registration”. Type PassportElementErrorFilesType `json:"type"` // List of base64-encoded file hashes. FileHashes []string `json:"file_hashes"` // Error message. Message string `json:"message"` }
Represents an issue with a list of scans. The error is considered resolved when the list of files containing the scans changes. Ref: #/components/schemas/PassportElementErrorFiles
func (*PassportElementErrorFiles) Decode ¶
func (s *PassportElementErrorFiles) Decode(d *jx.Decoder) error
Decode decodes PassportElementErrorFiles from json.
func (*PassportElementErrorFiles) Encode ¶
func (s *PassportElementErrorFiles) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PassportElementErrorFiles) GetFileHashes ¶
func (s *PassportElementErrorFiles) GetFileHashes() []string
GetFileHashes returns the value of FileHashes.
func (*PassportElementErrorFiles) GetMessage ¶
func (s *PassportElementErrorFiles) GetMessage() string
GetMessage returns the value of Message.
func (*PassportElementErrorFiles) GetSource ¶
func (s *PassportElementErrorFiles) GetSource() string
GetSource returns the value of Source.
func (*PassportElementErrorFiles) GetType ¶
func (s *PassportElementErrorFiles) GetType() PassportElementErrorFilesType
GetType returns the value of Type.
func (*PassportElementErrorFiles) MarshalJSON ¶
func (s *PassportElementErrorFiles) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PassportElementErrorFiles) SetFake ¶
func (s *PassportElementErrorFiles) SetFake()
SetFake set fake values.
func (*PassportElementErrorFiles) SetFileHashes ¶
func (s *PassportElementErrorFiles) SetFileHashes(val []string)
SetFileHashes sets the value of FileHashes.
func (*PassportElementErrorFiles) SetMessage ¶
func (s *PassportElementErrorFiles) SetMessage(val string)
SetMessage sets the value of Message.
func (*PassportElementErrorFiles) SetSource ¶
func (s *PassportElementErrorFiles) SetSource(val string)
SetSource sets the value of Source.
func (*PassportElementErrorFiles) SetType ¶
func (s *PassportElementErrorFiles) SetType(val PassportElementErrorFilesType)
SetType sets the value of Type.
func (*PassportElementErrorFiles) UnmarshalJSON ¶
func (s *PassportElementErrorFiles) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PassportElementErrorFiles) Validate ¶
func (s *PassportElementErrorFiles) Validate() error
type PassportElementErrorFilesType ¶
type PassportElementErrorFilesType string
The section of the user's Telegram Passport which has the issue, one of “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”.
const ( PassportElementErrorFilesTypeUtilityBill PassportElementErrorFilesType = "utility_bill" PassportElementErrorFilesTypeBankStatement PassportElementErrorFilesType = "bank_statement" PassportElementErrorFilesTypeRentalAgreement PassportElementErrorFilesType = "rental_agreement" PassportElementErrorFilesTypePassportRegistration PassportElementErrorFilesType = "passport_registration" PassportElementErrorFilesTypeTemporaryRegistration PassportElementErrorFilesType = "temporary_registration" )
func (PassportElementErrorFilesType) AllValues ¶
func (PassportElementErrorFilesType) AllValues() []PassportElementErrorFilesType
AllValues returns all PassportElementErrorFilesType values.
func (*PassportElementErrorFilesType) Decode ¶
func (s *PassportElementErrorFilesType) Decode(d *jx.Decoder) error
Decode decodes PassportElementErrorFilesType from json.
func (PassportElementErrorFilesType) Encode ¶
func (s PassportElementErrorFilesType) Encode(e *jx.Encoder)
Encode encodes PassportElementErrorFilesType as json.
func (PassportElementErrorFilesType) MarshalJSON ¶
func (s PassportElementErrorFilesType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (PassportElementErrorFilesType) MarshalText ¶
func (s PassportElementErrorFilesType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*PassportElementErrorFilesType) SetFake ¶
func (s *PassportElementErrorFilesType) SetFake()
SetFake set fake values.
func (*PassportElementErrorFilesType) UnmarshalJSON ¶
func (s *PassportElementErrorFilesType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PassportElementErrorFilesType) UnmarshalText ¶
func (s *PassportElementErrorFilesType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (PassportElementErrorFilesType) Validate ¶
func (s PassportElementErrorFilesType) Validate() error
type PassportElementErrorFrontSide ¶
type PassportElementErrorFrontSide struct { // Error source, must be front_side. Source string `json:"source"` // The section of the user's Telegram Passport which has the issue, one of “passport”, // “driver_license”, “identity_card”, “internal_passport”. Type PassportElementErrorFrontSideType `json:"type"` // Base64-encoded hash of the file with the front side of the document. FileHash string `json:"file_hash"` // Error message. Message string `json:"message"` }
Represents an issue with the front side of a document. The error is considered resolved when the file with the front side of the document changes. Ref: #/components/schemas/PassportElementErrorFrontSide
func (*PassportElementErrorFrontSide) Decode ¶
func (s *PassportElementErrorFrontSide) Decode(d *jx.Decoder) error
Decode decodes PassportElementErrorFrontSide from json.
func (*PassportElementErrorFrontSide) Encode ¶
func (s *PassportElementErrorFrontSide) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PassportElementErrorFrontSide) GetFileHash ¶
func (s *PassportElementErrorFrontSide) GetFileHash() string
GetFileHash returns the value of FileHash.
func (*PassportElementErrorFrontSide) GetMessage ¶
func (s *PassportElementErrorFrontSide) GetMessage() string
GetMessage returns the value of Message.
func (*PassportElementErrorFrontSide) GetSource ¶
func (s *PassportElementErrorFrontSide) GetSource() string
GetSource returns the value of Source.
func (*PassportElementErrorFrontSide) GetType ¶
func (s *PassportElementErrorFrontSide) GetType() PassportElementErrorFrontSideType
GetType returns the value of Type.
func (*PassportElementErrorFrontSide) MarshalJSON ¶
func (s *PassportElementErrorFrontSide) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PassportElementErrorFrontSide) SetFake ¶
func (s *PassportElementErrorFrontSide) SetFake()
SetFake set fake values.
func (*PassportElementErrorFrontSide) SetFileHash ¶
func (s *PassportElementErrorFrontSide) SetFileHash(val string)
SetFileHash sets the value of FileHash.
func (*PassportElementErrorFrontSide) SetMessage ¶
func (s *PassportElementErrorFrontSide) SetMessage(val string)
SetMessage sets the value of Message.
func (*PassportElementErrorFrontSide) SetSource ¶
func (s *PassportElementErrorFrontSide) SetSource(val string)
SetSource sets the value of Source.
func (*PassportElementErrorFrontSide) SetType ¶
func (s *PassportElementErrorFrontSide) SetType(val PassportElementErrorFrontSideType)
SetType sets the value of Type.
func (*PassportElementErrorFrontSide) UnmarshalJSON ¶
func (s *PassportElementErrorFrontSide) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PassportElementErrorFrontSide) Validate ¶
func (s *PassportElementErrorFrontSide) Validate() error
type PassportElementErrorFrontSideType ¶
type PassportElementErrorFrontSideType string
The section of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”.
const ( PassportElementErrorFrontSideTypePassport PassportElementErrorFrontSideType = "passport" PassportElementErrorFrontSideTypeDriverLicense PassportElementErrorFrontSideType = "driver_license" PassportElementErrorFrontSideTypeIdentityCard PassportElementErrorFrontSideType = "identity_card" PassportElementErrorFrontSideTypeInternalPassport PassportElementErrorFrontSideType = "internal_passport" )
func (PassportElementErrorFrontSideType) AllValues ¶
func (PassportElementErrorFrontSideType) AllValues() []PassportElementErrorFrontSideType
AllValues returns all PassportElementErrorFrontSideType values.
func (*PassportElementErrorFrontSideType) Decode ¶
func (s *PassportElementErrorFrontSideType) Decode(d *jx.Decoder) error
Decode decodes PassportElementErrorFrontSideType from json.
func (PassportElementErrorFrontSideType) Encode ¶
func (s PassportElementErrorFrontSideType) Encode(e *jx.Encoder)
Encode encodes PassportElementErrorFrontSideType as json.
func (PassportElementErrorFrontSideType) MarshalJSON ¶
func (s PassportElementErrorFrontSideType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (PassportElementErrorFrontSideType) MarshalText ¶
func (s PassportElementErrorFrontSideType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*PassportElementErrorFrontSideType) SetFake ¶
func (s *PassportElementErrorFrontSideType) SetFake()
SetFake set fake values.
func (*PassportElementErrorFrontSideType) UnmarshalJSON ¶
func (s *PassportElementErrorFrontSideType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PassportElementErrorFrontSideType) UnmarshalText ¶
func (s *PassportElementErrorFrontSideType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (PassportElementErrorFrontSideType) Validate ¶
func (s PassportElementErrorFrontSideType) Validate() error
type PassportElementErrorReverseSide ¶
type PassportElementErrorReverseSide struct { // Error source, must be reverse_side. Source string `json:"source"` // The section of the user's Telegram Passport which has the issue, one of “driver_license”, // “identity_card”. Type PassportElementErrorReverseSideType `json:"type"` // Base64-encoded hash of the file with the reverse side of the document. FileHash string `json:"file_hash"` // Error message. Message string `json:"message"` }
Represents an issue with the reverse side of a document. The error is considered resolved when the file with reverse side of the document changes. Ref: #/components/schemas/PassportElementErrorReverseSide
func (*PassportElementErrorReverseSide) Decode ¶
func (s *PassportElementErrorReverseSide) Decode(d *jx.Decoder) error
Decode decodes PassportElementErrorReverseSide from json.
func (*PassportElementErrorReverseSide) Encode ¶
func (s *PassportElementErrorReverseSide) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PassportElementErrorReverseSide) GetFileHash ¶
func (s *PassportElementErrorReverseSide) GetFileHash() string
GetFileHash returns the value of FileHash.
func (*PassportElementErrorReverseSide) GetMessage ¶
func (s *PassportElementErrorReverseSide) GetMessage() string
GetMessage returns the value of Message.
func (*PassportElementErrorReverseSide) GetSource ¶
func (s *PassportElementErrorReverseSide) GetSource() string
GetSource returns the value of Source.
func (*PassportElementErrorReverseSide) GetType ¶
func (s *PassportElementErrorReverseSide) GetType() PassportElementErrorReverseSideType
GetType returns the value of Type.
func (*PassportElementErrorReverseSide) MarshalJSON ¶
func (s *PassportElementErrorReverseSide) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PassportElementErrorReverseSide) SetFake ¶
func (s *PassportElementErrorReverseSide) SetFake()
SetFake set fake values.
func (*PassportElementErrorReverseSide) SetFileHash ¶
func (s *PassportElementErrorReverseSide) SetFileHash(val string)
SetFileHash sets the value of FileHash.
func (*PassportElementErrorReverseSide) SetMessage ¶
func (s *PassportElementErrorReverseSide) SetMessage(val string)
SetMessage sets the value of Message.
func (*PassportElementErrorReverseSide) SetSource ¶
func (s *PassportElementErrorReverseSide) SetSource(val string)
SetSource sets the value of Source.
func (*PassportElementErrorReverseSide) SetType ¶
func (s *PassportElementErrorReverseSide) SetType(val PassportElementErrorReverseSideType)
SetType sets the value of Type.
func (*PassportElementErrorReverseSide) UnmarshalJSON ¶
func (s *PassportElementErrorReverseSide) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PassportElementErrorReverseSide) Validate ¶
func (s *PassportElementErrorReverseSide) Validate() error
type PassportElementErrorReverseSideType ¶
type PassportElementErrorReverseSideType string
The section of the user's Telegram Passport which has the issue, one of “driver_license”, “identity_card”.
const ( PassportElementErrorReverseSideTypeDriverLicense PassportElementErrorReverseSideType = "driver_license" PassportElementErrorReverseSideTypeIdentityCard PassportElementErrorReverseSideType = "identity_card" )
func (PassportElementErrorReverseSideType) AllValues ¶
func (PassportElementErrorReverseSideType) AllValues() []PassportElementErrorReverseSideType
AllValues returns all PassportElementErrorReverseSideType values.
func (*PassportElementErrorReverseSideType) Decode ¶
func (s *PassportElementErrorReverseSideType) Decode(d *jx.Decoder) error
Decode decodes PassportElementErrorReverseSideType from json.
func (PassportElementErrorReverseSideType) Encode ¶
func (s PassportElementErrorReverseSideType) Encode(e *jx.Encoder)
Encode encodes PassportElementErrorReverseSideType as json.
func (PassportElementErrorReverseSideType) MarshalJSON ¶
func (s PassportElementErrorReverseSideType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (PassportElementErrorReverseSideType) MarshalText ¶
func (s PassportElementErrorReverseSideType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*PassportElementErrorReverseSideType) SetFake ¶
func (s *PassportElementErrorReverseSideType) SetFake()
SetFake set fake values.
func (*PassportElementErrorReverseSideType) UnmarshalJSON ¶
func (s *PassportElementErrorReverseSideType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PassportElementErrorReverseSideType) UnmarshalText ¶
func (s *PassportElementErrorReverseSideType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (PassportElementErrorReverseSideType) Validate ¶
func (s PassportElementErrorReverseSideType) Validate() error
type PassportElementErrorSelfie ¶
type PassportElementErrorSelfie struct { // Error source, must be selfie. Source string `json:"source"` // The section of the user's Telegram Passport which has the issue, one of “passport”, // “driver_license”, “identity_card”, “internal_passport”. Type PassportElementErrorSelfieType `json:"type"` // Base64-encoded hash of the file with the selfie. FileHash string `json:"file_hash"` // Error message. Message string `json:"message"` }
Represents an issue with the selfie with a document. The error is considered resolved when the file with the selfie changes. Ref: #/components/schemas/PassportElementErrorSelfie
func (*PassportElementErrorSelfie) Decode ¶
func (s *PassportElementErrorSelfie) Decode(d *jx.Decoder) error
Decode decodes PassportElementErrorSelfie from json.
func (*PassportElementErrorSelfie) Encode ¶
func (s *PassportElementErrorSelfie) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PassportElementErrorSelfie) GetFileHash ¶
func (s *PassportElementErrorSelfie) GetFileHash() string
GetFileHash returns the value of FileHash.
func (*PassportElementErrorSelfie) GetMessage ¶
func (s *PassportElementErrorSelfie) GetMessage() string
GetMessage returns the value of Message.
func (*PassportElementErrorSelfie) GetSource ¶
func (s *PassportElementErrorSelfie) GetSource() string
GetSource returns the value of Source.
func (*PassportElementErrorSelfie) GetType ¶
func (s *PassportElementErrorSelfie) GetType() PassportElementErrorSelfieType
GetType returns the value of Type.
func (*PassportElementErrorSelfie) MarshalJSON ¶
func (s *PassportElementErrorSelfie) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PassportElementErrorSelfie) SetFake ¶
func (s *PassportElementErrorSelfie) SetFake()
SetFake set fake values.
func (*PassportElementErrorSelfie) SetFileHash ¶
func (s *PassportElementErrorSelfie) SetFileHash(val string)
SetFileHash sets the value of FileHash.
func (*PassportElementErrorSelfie) SetMessage ¶
func (s *PassportElementErrorSelfie) SetMessage(val string)
SetMessage sets the value of Message.
func (*PassportElementErrorSelfie) SetSource ¶
func (s *PassportElementErrorSelfie) SetSource(val string)
SetSource sets the value of Source.
func (*PassportElementErrorSelfie) SetType ¶
func (s *PassportElementErrorSelfie) SetType(val PassportElementErrorSelfieType)
SetType sets the value of Type.
func (*PassportElementErrorSelfie) UnmarshalJSON ¶
func (s *PassportElementErrorSelfie) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PassportElementErrorSelfie) Validate ¶
func (s *PassportElementErrorSelfie) Validate() error
type PassportElementErrorSelfieType ¶
type PassportElementErrorSelfieType string
The section of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”.
const ( PassportElementErrorSelfieTypePassport PassportElementErrorSelfieType = "passport" PassportElementErrorSelfieTypeDriverLicense PassportElementErrorSelfieType = "driver_license" PassportElementErrorSelfieTypeIdentityCard PassportElementErrorSelfieType = "identity_card" PassportElementErrorSelfieTypeInternalPassport PassportElementErrorSelfieType = "internal_passport" )
func (PassportElementErrorSelfieType) AllValues ¶
func (PassportElementErrorSelfieType) AllValues() []PassportElementErrorSelfieType
AllValues returns all PassportElementErrorSelfieType values.
func (*PassportElementErrorSelfieType) Decode ¶
func (s *PassportElementErrorSelfieType) Decode(d *jx.Decoder) error
Decode decodes PassportElementErrorSelfieType from json.
func (PassportElementErrorSelfieType) Encode ¶
func (s PassportElementErrorSelfieType) Encode(e *jx.Encoder)
Encode encodes PassportElementErrorSelfieType as json.
func (PassportElementErrorSelfieType) MarshalJSON ¶
func (s PassportElementErrorSelfieType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (PassportElementErrorSelfieType) MarshalText ¶
func (s PassportElementErrorSelfieType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*PassportElementErrorSelfieType) SetFake ¶
func (s *PassportElementErrorSelfieType) SetFake()
SetFake set fake values.
func (*PassportElementErrorSelfieType) UnmarshalJSON ¶
func (s *PassportElementErrorSelfieType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PassportElementErrorSelfieType) UnmarshalText ¶
func (s *PassportElementErrorSelfieType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (PassportElementErrorSelfieType) Validate ¶
func (s PassportElementErrorSelfieType) Validate() error
type PassportElementErrorTranslationFile ¶
type PassportElementErrorTranslationFile struct { // Error source, must be translation_file. Source string `json:"source"` // Type of element of the user's Telegram Passport which has the issue, one of “passport”, // “driver_license”, “identity_card”, “internal_passport”, “utility_bill”, // “bank_statement”, “rental_agreement”, “passport_registration”, // “temporary_registration”. Type PassportElementErrorTranslationFileType `json:"type"` // Base64-encoded file hash. FileHash string `json:"file_hash"` // Error message. Message string `json:"message"` }
Represents an issue with one of the files that constitute the translation of a document. The error is considered resolved when the file changes. Ref: #/components/schemas/PassportElementErrorTranslationFile
func (*PassportElementErrorTranslationFile) Decode ¶
func (s *PassportElementErrorTranslationFile) Decode(d *jx.Decoder) error
Decode decodes PassportElementErrorTranslationFile from json.
func (*PassportElementErrorTranslationFile) Encode ¶
func (s *PassportElementErrorTranslationFile) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PassportElementErrorTranslationFile) GetFileHash ¶
func (s *PassportElementErrorTranslationFile) GetFileHash() string
GetFileHash returns the value of FileHash.
func (*PassportElementErrorTranslationFile) GetMessage ¶
func (s *PassportElementErrorTranslationFile) GetMessage() string
GetMessage returns the value of Message.
func (*PassportElementErrorTranslationFile) GetSource ¶
func (s *PassportElementErrorTranslationFile) GetSource() string
GetSource returns the value of Source.
func (*PassportElementErrorTranslationFile) GetType ¶
func (s *PassportElementErrorTranslationFile) GetType() PassportElementErrorTranslationFileType
GetType returns the value of Type.
func (*PassportElementErrorTranslationFile) MarshalJSON ¶
func (s *PassportElementErrorTranslationFile) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PassportElementErrorTranslationFile) SetFake ¶
func (s *PassportElementErrorTranslationFile) SetFake()
SetFake set fake values.
func (*PassportElementErrorTranslationFile) SetFileHash ¶
func (s *PassportElementErrorTranslationFile) SetFileHash(val string)
SetFileHash sets the value of FileHash.
func (*PassportElementErrorTranslationFile) SetMessage ¶
func (s *PassportElementErrorTranslationFile) SetMessage(val string)
SetMessage sets the value of Message.
func (*PassportElementErrorTranslationFile) SetSource ¶
func (s *PassportElementErrorTranslationFile) SetSource(val string)
SetSource sets the value of Source.
func (*PassportElementErrorTranslationFile) SetType ¶
func (s *PassportElementErrorTranslationFile) SetType(val PassportElementErrorTranslationFileType)
SetType sets the value of Type.
func (*PassportElementErrorTranslationFile) UnmarshalJSON ¶
func (s *PassportElementErrorTranslationFile) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PassportElementErrorTranslationFile) Validate ¶
func (s *PassportElementErrorTranslationFile) Validate() error
type PassportElementErrorTranslationFileType ¶
type PassportElementErrorTranslationFileType string
Type of element of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”.
const ( PassportElementErrorTranslationFileTypePassport PassportElementErrorTranslationFileType = "passport" PassportElementErrorTranslationFileTypeDriverLicense PassportElementErrorTranslationFileType = "driver_license" PassportElementErrorTranslationFileTypeIdentityCard PassportElementErrorTranslationFileType = "identity_card" PassportElementErrorTranslationFileTypeInternalPassport PassportElementErrorTranslationFileType = "internal_passport" PassportElementErrorTranslationFileTypeUtilityBill PassportElementErrorTranslationFileType = "utility_bill" PassportElementErrorTranslationFileTypeBankStatement PassportElementErrorTranslationFileType = "bank_statement" PassportElementErrorTranslationFileTypeRentalAgreement PassportElementErrorTranslationFileType = "rental_agreement" PassportElementErrorTranslationFileTypePassportRegistration PassportElementErrorTranslationFileType = "passport_registration" PassportElementErrorTranslationFileTypeTemporaryRegistration PassportElementErrorTranslationFileType = "temporary_registration" )
func (PassportElementErrorTranslationFileType) AllValues ¶
func (PassportElementErrorTranslationFileType) AllValues() []PassportElementErrorTranslationFileType
AllValues returns all PassportElementErrorTranslationFileType values.
func (*PassportElementErrorTranslationFileType) Decode ¶
func (s *PassportElementErrorTranslationFileType) Decode(d *jx.Decoder) error
Decode decodes PassportElementErrorTranslationFileType from json.
func (PassportElementErrorTranslationFileType) Encode ¶
func (s PassportElementErrorTranslationFileType) Encode(e *jx.Encoder)
Encode encodes PassportElementErrorTranslationFileType as json.
func (PassportElementErrorTranslationFileType) MarshalJSON ¶
func (s PassportElementErrorTranslationFileType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (PassportElementErrorTranslationFileType) MarshalText ¶
func (s PassportElementErrorTranslationFileType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*PassportElementErrorTranslationFileType) SetFake ¶
func (s *PassportElementErrorTranslationFileType) SetFake()
SetFake set fake values.
func (*PassportElementErrorTranslationFileType) UnmarshalJSON ¶
func (s *PassportElementErrorTranslationFileType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PassportElementErrorTranslationFileType) UnmarshalText ¶
func (s *PassportElementErrorTranslationFileType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (PassportElementErrorTranslationFileType) Validate ¶
func (s PassportElementErrorTranslationFileType) Validate() error
type PassportElementErrorTranslationFiles ¶
type PassportElementErrorTranslationFiles struct { // Error source, must be translation_files. Source string `json:"source"` // Type of element of the user's Telegram Passport which has the issue, one of “passport”, // “driver_license”, “identity_card”, “internal_passport”, “utility_bill”, // “bank_statement”, “rental_agreement”, “passport_registration”, // “temporary_registration”. Type PassportElementErrorTranslationFilesType `json:"type"` // List of base64-encoded file hashes. FileHashes []string `json:"file_hashes"` // Error message. Message string `json:"message"` }
Represents an issue with the translated version of a document. The error is considered resolved when a file with the document translation change. Ref: #/components/schemas/PassportElementErrorTranslationFiles
func (*PassportElementErrorTranslationFiles) Decode ¶
func (s *PassportElementErrorTranslationFiles) Decode(d *jx.Decoder) error
Decode decodes PassportElementErrorTranslationFiles from json.
func (*PassportElementErrorTranslationFiles) Encode ¶
func (s *PassportElementErrorTranslationFiles) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PassportElementErrorTranslationFiles) GetFileHashes ¶
func (s *PassportElementErrorTranslationFiles) GetFileHashes() []string
GetFileHashes returns the value of FileHashes.
func (*PassportElementErrorTranslationFiles) GetMessage ¶
func (s *PassportElementErrorTranslationFiles) GetMessage() string
GetMessage returns the value of Message.
func (*PassportElementErrorTranslationFiles) GetSource ¶
func (s *PassportElementErrorTranslationFiles) GetSource() string
GetSource returns the value of Source.
func (*PassportElementErrorTranslationFiles) GetType ¶
func (s *PassportElementErrorTranslationFiles) GetType() PassportElementErrorTranslationFilesType
GetType returns the value of Type.
func (*PassportElementErrorTranslationFiles) MarshalJSON ¶
func (s *PassportElementErrorTranslationFiles) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PassportElementErrorTranslationFiles) SetFake ¶
func (s *PassportElementErrorTranslationFiles) SetFake()
SetFake set fake values.
func (*PassportElementErrorTranslationFiles) SetFileHashes ¶
func (s *PassportElementErrorTranslationFiles) SetFileHashes(val []string)
SetFileHashes sets the value of FileHashes.
func (*PassportElementErrorTranslationFiles) SetMessage ¶
func (s *PassportElementErrorTranslationFiles) SetMessage(val string)
SetMessage sets the value of Message.
func (*PassportElementErrorTranslationFiles) SetSource ¶
func (s *PassportElementErrorTranslationFiles) SetSource(val string)
SetSource sets the value of Source.
func (*PassportElementErrorTranslationFiles) SetType ¶
func (s *PassportElementErrorTranslationFiles) SetType(val PassportElementErrorTranslationFilesType)
SetType sets the value of Type.
func (*PassportElementErrorTranslationFiles) UnmarshalJSON ¶
func (s *PassportElementErrorTranslationFiles) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PassportElementErrorTranslationFiles) Validate ¶
func (s *PassportElementErrorTranslationFiles) Validate() error
type PassportElementErrorTranslationFilesType ¶
type PassportElementErrorTranslationFilesType string
Type of element of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”.
const ( PassportElementErrorTranslationFilesTypePassport PassportElementErrorTranslationFilesType = "passport" PassportElementErrorTranslationFilesTypeDriverLicense PassportElementErrorTranslationFilesType = "driver_license" PassportElementErrorTranslationFilesTypeIdentityCard PassportElementErrorTranslationFilesType = "identity_card" PassportElementErrorTranslationFilesTypeInternalPassport PassportElementErrorTranslationFilesType = "internal_passport" PassportElementErrorTranslationFilesTypeUtilityBill PassportElementErrorTranslationFilesType = "utility_bill" PassportElementErrorTranslationFilesTypeBankStatement PassportElementErrorTranslationFilesType = "bank_statement" PassportElementErrorTranslationFilesTypeRentalAgreement PassportElementErrorTranslationFilesType = "rental_agreement" PassportElementErrorTranslationFilesTypePassportRegistration PassportElementErrorTranslationFilesType = "passport_registration" PassportElementErrorTranslationFilesTypeTemporaryRegistration PassportElementErrorTranslationFilesType = "temporary_registration" )
func (PassportElementErrorTranslationFilesType) AllValues ¶
func (PassportElementErrorTranslationFilesType) AllValues() []PassportElementErrorTranslationFilesType
AllValues returns all PassportElementErrorTranslationFilesType values.
func (*PassportElementErrorTranslationFilesType) Decode ¶
func (s *PassportElementErrorTranslationFilesType) Decode(d *jx.Decoder) error
Decode decodes PassportElementErrorTranslationFilesType from json.
func (PassportElementErrorTranslationFilesType) Encode ¶
func (s PassportElementErrorTranslationFilesType) Encode(e *jx.Encoder)
Encode encodes PassportElementErrorTranslationFilesType as json.
func (PassportElementErrorTranslationFilesType) MarshalJSON ¶
func (s PassportElementErrorTranslationFilesType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (PassportElementErrorTranslationFilesType) MarshalText ¶
func (s PassportElementErrorTranslationFilesType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*PassportElementErrorTranslationFilesType) SetFake ¶
func (s *PassportElementErrorTranslationFilesType) SetFake()
SetFake set fake values.
func (*PassportElementErrorTranslationFilesType) UnmarshalJSON ¶
func (s *PassportElementErrorTranslationFilesType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PassportElementErrorTranslationFilesType) UnmarshalText ¶
func (s *PassportElementErrorTranslationFilesType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (PassportElementErrorTranslationFilesType) Validate ¶
func (s PassportElementErrorTranslationFilesType) Validate() error
type PassportElementErrorType ¶
type PassportElementErrorType string
PassportElementErrorType is oneOf type of PassportElementError.
const ( PassportElementErrorDataFieldPassportElementError PassportElementErrorType = "data" PassportElementErrorFrontSidePassportElementError PassportElementErrorType = "front_side" PassportElementErrorReverseSidePassportElementError PassportElementErrorType = "reverse_side" PassportElementErrorSelfiePassportElementError PassportElementErrorType = "selfie" PassportElementErrorFilePassportElementError PassportElementErrorType = "file" PassportElementErrorFilesPassportElementError PassportElementErrorType = "files" PassportElementErrorTranslationFilePassportElementError PassportElementErrorType = "translation_file" PassportElementErrorTranslationFilesPassportElementError PassportElementErrorType = "translation_files" PassportElementErrorUnspecifiedPassportElementError PassportElementErrorType = "unspecified" )
Possible values for PassportElementErrorType.
type PassportElementErrorUnspecified ¶
type PassportElementErrorUnspecified struct { // Error source, must be unspecified. Source string `json:"source"` // Type of element of the user's Telegram Passport which has the issue. Type string `json:"type"` // Base64-encoded element hash. ElementHash string `json:"element_hash"` // Error message. Message string `json:"message"` }
Represents an issue in an unspecified place. The error is considered resolved when new data is added. Ref: #/components/schemas/PassportElementErrorUnspecified
func (*PassportElementErrorUnspecified) Decode ¶
func (s *PassportElementErrorUnspecified) Decode(d *jx.Decoder) error
Decode decodes PassportElementErrorUnspecified from json.
func (*PassportElementErrorUnspecified) Encode ¶
func (s *PassportElementErrorUnspecified) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PassportElementErrorUnspecified) GetElementHash ¶
func (s *PassportElementErrorUnspecified) GetElementHash() string
GetElementHash returns the value of ElementHash.
func (*PassportElementErrorUnspecified) GetMessage ¶
func (s *PassportElementErrorUnspecified) GetMessage() string
GetMessage returns the value of Message.
func (*PassportElementErrorUnspecified) GetSource ¶
func (s *PassportElementErrorUnspecified) GetSource() string
GetSource returns the value of Source.
func (*PassportElementErrorUnspecified) GetType ¶
func (s *PassportElementErrorUnspecified) GetType() string
GetType returns the value of Type.
func (*PassportElementErrorUnspecified) MarshalJSON ¶
func (s *PassportElementErrorUnspecified) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PassportElementErrorUnspecified) SetElementHash ¶
func (s *PassportElementErrorUnspecified) SetElementHash(val string)
SetElementHash sets the value of ElementHash.
func (*PassportElementErrorUnspecified) SetFake ¶
func (s *PassportElementErrorUnspecified) SetFake()
SetFake set fake values.
func (*PassportElementErrorUnspecified) SetMessage ¶
func (s *PassportElementErrorUnspecified) SetMessage(val string)
SetMessage sets the value of Message.
func (*PassportElementErrorUnspecified) SetSource ¶
func (s *PassportElementErrorUnspecified) SetSource(val string)
SetSource sets the value of Source.
func (*PassportElementErrorUnspecified) SetType ¶
func (s *PassportElementErrorUnspecified) SetType(val string)
SetType sets the value of Type.
func (*PassportElementErrorUnspecified) UnmarshalJSON ¶
func (s *PassportElementErrorUnspecified) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type PassportFile ¶
type PassportFile struct { // Identifier for this file, which can be used to download or reuse the file. FileID string `json:"file_id"` // Unique identifier for this file, which is supposed to be the same over time and for different bots. // Can't be used to download or reuse the file. FileUniqueID string `json:"file_unique_id"` // File size in bytes. FileSize int `json:"file_size"` // Unix time when the file was uploaded. FileDate int `json:"file_date"` }
This object represents a file uploaded to Telegram Passport. Currently all Telegram Passport files are in JPEG format when decrypted and don't exceed 10MB. Ref: #/components/schemas/PassportFile
func (*PassportFile) Decode ¶
func (s *PassportFile) Decode(d *jx.Decoder) error
Decode decodes PassportFile from json.
func (*PassportFile) Encode ¶
func (s *PassportFile) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PassportFile) GetFileDate ¶
func (s *PassportFile) GetFileDate() int
GetFileDate returns the value of FileDate.
func (*PassportFile) GetFileID ¶
func (s *PassportFile) GetFileID() string
GetFileID returns the value of FileID.
func (*PassportFile) GetFileSize ¶
func (s *PassportFile) GetFileSize() int
GetFileSize returns the value of FileSize.
func (*PassportFile) GetFileUniqueID ¶
func (s *PassportFile) GetFileUniqueID() string
GetFileUniqueID returns the value of FileUniqueID.
func (*PassportFile) MarshalJSON ¶
func (s *PassportFile) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PassportFile) SetFileDate ¶
func (s *PassportFile) SetFileDate(val int)
SetFileDate sets the value of FileDate.
func (*PassportFile) SetFileID ¶
func (s *PassportFile) SetFileID(val string)
SetFileID sets the value of FileID.
func (*PassportFile) SetFileSize ¶
func (s *PassportFile) SetFileSize(val int)
SetFileSize sets the value of FileSize.
func (*PassportFile) SetFileUniqueID ¶
func (s *PassportFile) SetFileUniqueID(val string)
SetFileUniqueID sets the value of FileUniqueID.
func (*PassportFile) UnmarshalJSON ¶
func (s *PassportFile) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type PhotoSize ¶
type PhotoSize struct { // Identifier for this file, which can be used to download or reuse the file. FileID string `json:"file_id"` // Unique identifier for this file, which is supposed to be the same over time and for different bots. // Can't be used to download or reuse the file. FileUniqueID string `json:"file_unique_id"` // Photo width. Width int `json:"width"` // Photo height. Height int `json:"height"` // File size in bytes. FileSize OptInt `json:"file_size"` }
This object represents one size of a photo or a file / sticker thumbnail. Ref: #/components/schemas/PhotoSize
func (*PhotoSize) GetFileSize ¶
GetFileSize returns the value of FileSize.
func (*PhotoSize) GetFileUniqueID ¶
GetFileUniqueID returns the value of FileUniqueID.
func (*PhotoSize) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*PhotoSize) SetFileSize ¶
SetFileSize sets the value of FileSize.
func (*PhotoSize) SetFileUniqueID ¶
SetFileUniqueID sets the value of FileUniqueID.
func (*PhotoSize) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type PinChatMessage ¶
type PinChatMessage struct { ChatID ID `json:"chat_id"` // Identifier of a message to pin. MessageID int `json:"message_id"` // Pass True, if it is not necessary to send a notification to all chat members about the new pinned // message. Notifications are always disabled in channels and private chats. DisableNotification OptBool `json:"disable_notification"` }
Input for pinChatMessage. Ref: #/components/schemas/pinChatMessage
func (*PinChatMessage) Decode ¶
func (s *PinChatMessage) Decode(d *jx.Decoder) error
Decode decodes PinChatMessage from json.
func (*PinChatMessage) Encode ¶
func (s *PinChatMessage) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PinChatMessage) GetChatID ¶
func (s *PinChatMessage) GetChatID() ID
GetChatID returns the value of ChatID.
func (*PinChatMessage) GetDisableNotification ¶
func (s *PinChatMessage) GetDisableNotification() OptBool
GetDisableNotification returns the value of DisableNotification.
func (*PinChatMessage) GetMessageID ¶
func (s *PinChatMessage) GetMessageID() int
GetMessageID returns the value of MessageID.
func (*PinChatMessage) MarshalJSON ¶
func (s *PinChatMessage) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PinChatMessage) SetChatID ¶
func (s *PinChatMessage) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*PinChatMessage) SetDisableNotification ¶
func (s *PinChatMessage) SetDisableNotification(val OptBool)
SetDisableNotification sets the value of DisableNotification.
func (*PinChatMessage) SetMessageID ¶
func (s *PinChatMessage) SetMessageID(val int)
SetMessageID sets the value of MessageID.
func (*PinChatMessage) UnmarshalJSON ¶
func (s *PinChatMessage) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Poll ¶
type Poll struct { // Unique poll identifier. ID string `json:"id"` // Poll question, 1-300 characters. Question string `json:"question"` // List of poll options. Options []PollOption `json:"options"` // Total number of users that voted in the poll. TotalVoterCount int `json:"total_voter_count"` // True, if the poll is closed. IsClosed bool `json:"is_closed"` // True, if the poll is anonymous. IsAnonymous bool `json:"is_anonymous"` // Poll type, currently can be “regular” or “quiz”. Type PollType `json:"type"` // True, if the poll allows multiple answers. AllowsMultipleAnswers bool `json:"allows_multiple_answers"` // 0-based identifier of the correct answer option. Available only for polls in the quiz mode, which // are closed, or was sent (not forwarded) by the bot or to the private chat with the bot. CorrectOptionID OptInt `json:"correct_option_id"` // Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a // quiz-style poll, 0-200 characters. Explanation OptString `json:"explanation"` // Special entities like usernames, URLs, bot commands, etc. that appear in the explanation. ExplanationEntities []MessageEntity `json:"explanation_entities"` // Amount of time in seconds the poll will be active after creation. OpenPeriod OptInt `json:"open_period"` // Point in time (Unix timestamp) when the poll will be automatically closed. CloseDate OptInt `json:"close_date"` }
This object contains information about a poll. Ref: #/components/schemas/Poll
func (*Poll) GetAllowsMultipleAnswers ¶
GetAllowsMultipleAnswers returns the value of AllowsMultipleAnswers.
func (*Poll) GetCloseDate ¶
GetCloseDate returns the value of CloseDate.
func (*Poll) GetCorrectOptionID ¶
GetCorrectOptionID returns the value of CorrectOptionID.
func (*Poll) GetExplanation ¶
GetExplanation returns the value of Explanation.
func (*Poll) GetExplanationEntities ¶
func (s *Poll) GetExplanationEntities() []MessageEntity
GetExplanationEntities returns the value of ExplanationEntities.
func (*Poll) GetIsAnonymous ¶
GetIsAnonymous returns the value of IsAnonymous.
func (*Poll) GetIsClosed ¶
GetIsClosed returns the value of IsClosed.
func (*Poll) GetOpenPeriod ¶
GetOpenPeriod returns the value of OpenPeriod.
func (*Poll) GetOptions ¶
func (s *Poll) GetOptions() []PollOption
GetOptions returns the value of Options.
func (*Poll) GetQuestion ¶
GetQuestion returns the value of Question.
func (*Poll) GetTotalVoterCount ¶
GetTotalVoterCount returns the value of TotalVoterCount.
func (*Poll) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Poll) SetAllowsMultipleAnswers ¶
SetAllowsMultipleAnswers sets the value of AllowsMultipleAnswers.
func (*Poll) SetCloseDate ¶
SetCloseDate sets the value of CloseDate.
func (*Poll) SetCorrectOptionID ¶
SetCorrectOptionID sets the value of CorrectOptionID.
func (*Poll) SetExplanation ¶
SetExplanation sets the value of Explanation.
func (*Poll) SetExplanationEntities ¶
func (s *Poll) SetExplanationEntities(val []MessageEntity)
SetExplanationEntities sets the value of ExplanationEntities.
func (*Poll) SetIsAnonymous ¶
SetIsAnonymous sets the value of IsAnonymous.
func (*Poll) SetIsClosed ¶
SetIsClosed sets the value of IsClosed.
func (*Poll) SetOpenPeriod ¶
SetOpenPeriod sets the value of OpenPeriod.
func (*Poll) SetOptions ¶
func (s *Poll) SetOptions(val []PollOption)
SetOptions sets the value of Options.
func (*Poll) SetQuestion ¶
SetQuestion sets the value of Question.
func (*Poll) SetTotalVoterCount ¶
SetTotalVoterCount sets the value of TotalVoterCount.
func (*Poll) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type PollAnswer ¶
type PollAnswer struct { // Unique poll identifier. PollID string `json:"poll_id"` User User `json:"user"` // 0-based identifiers of answer options, chosen by the user. May be empty if the user retracted // their vote. OptionIds []int `json:"option_ids"` }
This object represents an answer of a user in a non-anonymous poll. Ref: #/components/schemas/PollAnswer
func (*PollAnswer) Decode ¶
func (s *PollAnswer) Decode(d *jx.Decoder) error
Decode decodes PollAnswer from json.
func (*PollAnswer) Encode ¶
func (s *PollAnswer) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PollAnswer) GetOptionIds ¶
func (s *PollAnswer) GetOptionIds() []int
GetOptionIds returns the value of OptionIds.
func (*PollAnswer) GetPollID ¶
func (s *PollAnswer) GetPollID() string
GetPollID returns the value of PollID.
func (*PollAnswer) MarshalJSON ¶
func (s *PollAnswer) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PollAnswer) SetOptionIds ¶
func (s *PollAnswer) SetOptionIds(val []int)
SetOptionIds sets the value of OptionIds.
func (*PollAnswer) SetPollID ¶
func (s *PollAnswer) SetPollID(val string)
SetPollID sets the value of PollID.
func (*PollAnswer) UnmarshalJSON ¶
func (s *PollAnswer) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PollAnswer) Validate ¶
func (s *PollAnswer) Validate() error
type PollOption ¶
type PollOption struct { // Option text, 1-100 characters. Text string `json:"text"` // Number of users that voted for this option. VoterCount int `json:"voter_count"` }
This object contains information about one answer option in a poll. Ref: #/components/schemas/PollOption
func (*PollOption) Decode ¶
func (s *PollOption) Decode(d *jx.Decoder) error
Decode decodes PollOption from json.
func (*PollOption) Encode ¶
func (s *PollOption) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PollOption) GetText ¶
func (s *PollOption) GetText() string
GetText returns the value of Text.
func (*PollOption) GetVoterCount ¶
func (s *PollOption) GetVoterCount() int
GetVoterCount returns the value of VoterCount.
func (*PollOption) MarshalJSON ¶
func (s *PollOption) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PollOption) SetText ¶
func (s *PollOption) SetText(val string)
SetText sets the value of Text.
func (*PollOption) SetVoterCount ¶
func (s *PollOption) SetVoterCount(val int)
SetVoterCount sets the value of VoterCount.
func (*PollOption) UnmarshalJSON ¶
func (s *PollOption) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PollOption) Validate ¶
func (s *PollOption) Validate() error
type PollType ¶
type PollType string
Poll type, currently can be “regular” or “quiz”.
func (PollType) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (PollType) MarshalText ¶
MarshalText implements encoding.TextMarshaler.
func (*PollType) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
func (*PollType) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
type PreCheckoutQuery ¶
type PreCheckoutQuery struct { // Unique query identifier. ID string `json:"id"` From User `json:"from"` // Three-letter ISO 4217 currency code. Currency string `json:"currency"` // Total price in the smallest units of the currency (integer, not float/double). For example, for a // price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number // of digits past the decimal point for each currency (2 for the majority of currencies). TotalAmount int `json:"total_amount"` // Bot specified invoice payload. InvoicePayload string `json:"invoice_payload"` // Identifier of the shipping option chosen by the user. ShippingOptionID OptString `json:"shipping_option_id"` OrderInfo OptOrderInfo `json:"order_info"` }
This object contains information about an incoming pre-checkout query. Ref: #/components/schemas/PreCheckoutQuery
func (*PreCheckoutQuery) Decode ¶
func (s *PreCheckoutQuery) Decode(d *jx.Decoder) error
Decode decodes PreCheckoutQuery from json.
func (*PreCheckoutQuery) Encode ¶
func (s *PreCheckoutQuery) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PreCheckoutQuery) GetCurrency ¶
func (s *PreCheckoutQuery) GetCurrency() string
GetCurrency returns the value of Currency.
func (*PreCheckoutQuery) GetFrom ¶
func (s *PreCheckoutQuery) GetFrom() User
GetFrom returns the value of From.
func (*PreCheckoutQuery) GetID ¶
func (s *PreCheckoutQuery) GetID() string
GetID returns the value of ID.
func (*PreCheckoutQuery) GetInvoicePayload ¶
func (s *PreCheckoutQuery) GetInvoicePayload() string
GetInvoicePayload returns the value of InvoicePayload.
func (*PreCheckoutQuery) GetOrderInfo ¶
func (s *PreCheckoutQuery) GetOrderInfo() OptOrderInfo
GetOrderInfo returns the value of OrderInfo.
func (*PreCheckoutQuery) GetShippingOptionID ¶
func (s *PreCheckoutQuery) GetShippingOptionID() OptString
GetShippingOptionID returns the value of ShippingOptionID.
func (*PreCheckoutQuery) GetTotalAmount ¶
func (s *PreCheckoutQuery) GetTotalAmount() int
GetTotalAmount returns the value of TotalAmount.
func (*PreCheckoutQuery) MarshalJSON ¶
func (s *PreCheckoutQuery) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PreCheckoutQuery) SetCurrency ¶
func (s *PreCheckoutQuery) SetCurrency(val string)
SetCurrency sets the value of Currency.
func (*PreCheckoutQuery) SetFrom ¶
func (s *PreCheckoutQuery) SetFrom(val User)
SetFrom sets the value of From.
func (*PreCheckoutQuery) SetID ¶
func (s *PreCheckoutQuery) SetID(val string)
SetID sets the value of ID.
func (*PreCheckoutQuery) SetInvoicePayload ¶
func (s *PreCheckoutQuery) SetInvoicePayload(val string)
SetInvoicePayload sets the value of InvoicePayload.
func (*PreCheckoutQuery) SetOrderInfo ¶
func (s *PreCheckoutQuery) SetOrderInfo(val OptOrderInfo)
SetOrderInfo sets the value of OrderInfo.
func (*PreCheckoutQuery) SetShippingOptionID ¶
func (s *PreCheckoutQuery) SetShippingOptionID(val OptString)
SetShippingOptionID sets the value of ShippingOptionID.
func (*PreCheckoutQuery) SetTotalAmount ¶
func (s *PreCheckoutQuery) SetTotalAmount(val int)
SetTotalAmount sets the value of TotalAmount.
func (*PreCheckoutQuery) UnmarshalJSON ¶
func (s *PreCheckoutQuery) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type PromoteChatMember ¶
type PromoteChatMember struct { ChatID ID `json:"chat_id"` // Unique identifier of the target user. UserID int64 `json:"user_id"` // Pass True, if the administrator's presence in the chat is hidden. IsAnonymous OptBool `json:"is_anonymous"` // Pass True, if the administrator can access the chat event log, chat statistics, message statistics // in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. // Implied by any other administrator privilege. CanManageChat OptBool `json:"can_manage_chat"` // Pass True, if the administrator can create channel posts, channels only. CanPostMessages OptBool `json:"can_post_messages"` // Pass True, if the administrator can edit messages of other users and can pin messages, channels // only. CanEditMessages OptBool `json:"can_edit_messages"` // Pass True, if the administrator can delete messages of other users. CanDeleteMessages OptBool `json:"can_delete_messages"` // Pass True, if the administrator can manage voice chats. CanManageVoiceChats OptBool `json:"can_manage_voice_chats"` // Pass True, if the administrator can restrict, ban or unban chat members. CanRestrictMembers OptBool `json:"can_restrict_members"` // Pass True, if the administrator can add new administrators with a subset of their own privileges // or demote administrators that he has promoted, directly or indirectly (promoted by administrators // that were appointed by him). CanPromoteMembers OptBool `json:"can_promote_members"` // Pass True, if the administrator can change chat title, photo and other settings. CanChangeInfo OptBool `json:"can_change_info"` // Pass True, if the administrator can invite new users to the chat. CanInviteUsers OptBool `json:"can_invite_users"` // Pass True, if the administrator can pin messages, supergroups only. CanPinMessages OptBool `json:"can_pin_messages"` }
Input for promoteChatMember. Ref: #/components/schemas/promoteChatMember
func (*PromoteChatMember) Decode ¶
func (s *PromoteChatMember) Decode(d *jx.Decoder) error
Decode decodes PromoteChatMember from json.
func (*PromoteChatMember) Encode ¶
func (s *PromoteChatMember) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PromoteChatMember) GetCanChangeInfo ¶
func (s *PromoteChatMember) GetCanChangeInfo() OptBool
GetCanChangeInfo returns the value of CanChangeInfo.
func (*PromoteChatMember) GetCanDeleteMessages ¶
func (s *PromoteChatMember) GetCanDeleteMessages() OptBool
GetCanDeleteMessages returns the value of CanDeleteMessages.
func (*PromoteChatMember) GetCanEditMessages ¶
func (s *PromoteChatMember) GetCanEditMessages() OptBool
GetCanEditMessages returns the value of CanEditMessages.
func (*PromoteChatMember) GetCanInviteUsers ¶
func (s *PromoteChatMember) GetCanInviteUsers() OptBool
GetCanInviteUsers returns the value of CanInviteUsers.
func (*PromoteChatMember) GetCanManageChat ¶
func (s *PromoteChatMember) GetCanManageChat() OptBool
GetCanManageChat returns the value of CanManageChat.
func (*PromoteChatMember) GetCanManageVoiceChats ¶
func (s *PromoteChatMember) GetCanManageVoiceChats() OptBool
GetCanManageVoiceChats returns the value of CanManageVoiceChats.
func (*PromoteChatMember) GetCanPinMessages ¶
func (s *PromoteChatMember) GetCanPinMessages() OptBool
GetCanPinMessages returns the value of CanPinMessages.
func (*PromoteChatMember) GetCanPostMessages ¶
func (s *PromoteChatMember) GetCanPostMessages() OptBool
GetCanPostMessages returns the value of CanPostMessages.
func (*PromoteChatMember) GetCanPromoteMembers ¶
func (s *PromoteChatMember) GetCanPromoteMembers() OptBool
GetCanPromoteMembers returns the value of CanPromoteMembers.
func (*PromoteChatMember) GetCanRestrictMembers ¶
func (s *PromoteChatMember) GetCanRestrictMembers() OptBool
GetCanRestrictMembers returns the value of CanRestrictMembers.
func (*PromoteChatMember) GetChatID ¶
func (s *PromoteChatMember) GetChatID() ID
GetChatID returns the value of ChatID.
func (*PromoteChatMember) GetIsAnonymous ¶
func (s *PromoteChatMember) GetIsAnonymous() OptBool
GetIsAnonymous returns the value of IsAnonymous.
func (*PromoteChatMember) GetUserID ¶
func (s *PromoteChatMember) GetUserID() int64
GetUserID returns the value of UserID.
func (*PromoteChatMember) MarshalJSON ¶
func (s *PromoteChatMember) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PromoteChatMember) SetCanChangeInfo ¶
func (s *PromoteChatMember) SetCanChangeInfo(val OptBool)
SetCanChangeInfo sets the value of CanChangeInfo.
func (*PromoteChatMember) SetCanDeleteMessages ¶
func (s *PromoteChatMember) SetCanDeleteMessages(val OptBool)
SetCanDeleteMessages sets the value of CanDeleteMessages.
func (*PromoteChatMember) SetCanEditMessages ¶
func (s *PromoteChatMember) SetCanEditMessages(val OptBool)
SetCanEditMessages sets the value of CanEditMessages.
func (*PromoteChatMember) SetCanInviteUsers ¶
func (s *PromoteChatMember) SetCanInviteUsers(val OptBool)
SetCanInviteUsers sets the value of CanInviteUsers.
func (*PromoteChatMember) SetCanManageChat ¶
func (s *PromoteChatMember) SetCanManageChat(val OptBool)
SetCanManageChat sets the value of CanManageChat.
func (*PromoteChatMember) SetCanManageVoiceChats ¶
func (s *PromoteChatMember) SetCanManageVoiceChats(val OptBool)
SetCanManageVoiceChats sets the value of CanManageVoiceChats.
func (*PromoteChatMember) SetCanPinMessages ¶
func (s *PromoteChatMember) SetCanPinMessages(val OptBool)
SetCanPinMessages sets the value of CanPinMessages.
func (*PromoteChatMember) SetCanPostMessages ¶
func (s *PromoteChatMember) SetCanPostMessages(val OptBool)
SetCanPostMessages sets the value of CanPostMessages.
func (*PromoteChatMember) SetCanPromoteMembers ¶
func (s *PromoteChatMember) SetCanPromoteMembers(val OptBool)
SetCanPromoteMembers sets the value of CanPromoteMembers.
func (*PromoteChatMember) SetCanRestrictMembers ¶
func (s *PromoteChatMember) SetCanRestrictMembers(val OptBool)
SetCanRestrictMembers sets the value of CanRestrictMembers.
func (*PromoteChatMember) SetChatID ¶
func (s *PromoteChatMember) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*PromoteChatMember) SetIsAnonymous ¶
func (s *PromoteChatMember) SetIsAnonymous(val OptBool)
SetIsAnonymous sets the value of IsAnonymous.
func (*PromoteChatMember) SetUserID ¶
func (s *PromoteChatMember) SetUserID(val int64)
SetUserID sets the value of UserID.
func (*PromoteChatMember) UnmarshalJSON ¶
func (s *PromoteChatMember) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ProximityAlertTriggered ¶
type ProximityAlertTriggered struct { Traveler User `json:"traveler"` Watcher User `json:"watcher"` // The distance between the users. Distance int `json:"distance"` }
This object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user. Ref: #/components/schemas/ProximityAlertTriggered
func (*ProximityAlertTriggered) Decode ¶
func (s *ProximityAlertTriggered) Decode(d *jx.Decoder) error
Decode decodes ProximityAlertTriggered from json.
func (*ProximityAlertTriggered) Encode ¶
func (s *ProximityAlertTriggered) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ProximityAlertTriggered) GetDistance ¶
func (s *ProximityAlertTriggered) GetDistance() int
GetDistance returns the value of Distance.
func (*ProximityAlertTriggered) GetTraveler ¶
func (s *ProximityAlertTriggered) GetTraveler() User
GetTraveler returns the value of Traveler.
func (*ProximityAlertTriggered) GetWatcher ¶
func (s *ProximityAlertTriggered) GetWatcher() User
GetWatcher returns the value of Watcher.
func (*ProximityAlertTriggered) MarshalJSON ¶
func (s *ProximityAlertTriggered) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ProximityAlertTriggered) SetDistance ¶
func (s *ProximityAlertTriggered) SetDistance(val int)
SetDistance sets the value of Distance.
func (*ProximityAlertTriggered) SetFake ¶
func (s *ProximityAlertTriggered) SetFake()
SetFake set fake values.
func (*ProximityAlertTriggered) SetTraveler ¶
func (s *ProximityAlertTriggered) SetTraveler(val User)
SetTraveler sets the value of Traveler.
func (*ProximityAlertTriggered) SetWatcher ¶
func (s *ProximityAlertTriggered) SetWatcher(val User)
SetWatcher sets the value of Watcher.
func (*ProximityAlertTriggered) UnmarshalJSON ¶
func (s *ProximityAlertTriggered) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ReplyKeyboardMarkup ¶
type ReplyKeyboardMarkup struct { // Array of button rows, each represented by an Array of KeyboardButton objects. Keyboard [][]KeyboardButton `json:"keyboard"` // Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard // smaller if there are just two rows of buttons). Defaults to false, in which case the custom // keyboard is always of the same height as the app's standard keyboard. ResizeKeyboard OptBool `json:"resize_keyboard"` // Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be // available, but clients will automatically display the usual letter-keyboard in the chat – the // user can press a special button in the input field to see the custom keyboard again. Defaults to // false. OneTimeKeyboard OptBool `json:"one_time_keyboard"` // The placeholder to be shown in the input field when the keyboard is active; 1-64 characters. InputFieldPlaceholder OptString `json:"input_field_placeholder"` // Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that // are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has // reply_to_message_id), sender of the original message.Example: A user requests to change the bot's // language, bot replies to the request with a keyboard to select the new language. Other users in // the group don't see the keyboard. Selective OptBool `json:"selective"` }
This object represents a custom keyboard with reply options (see Introduction to bots for details and examples). Ref: #/components/schemas/ReplyKeyboardMarkup
func (*ReplyKeyboardMarkup) Decode ¶
func (s *ReplyKeyboardMarkup) Decode(d *jx.Decoder) error
Decode decodes ReplyKeyboardMarkup from json.
func (*ReplyKeyboardMarkup) Encode ¶
func (s *ReplyKeyboardMarkup) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ReplyKeyboardMarkup) GetInputFieldPlaceholder ¶
func (s *ReplyKeyboardMarkup) GetInputFieldPlaceholder() OptString
GetInputFieldPlaceholder returns the value of InputFieldPlaceholder.
func (*ReplyKeyboardMarkup) GetKeyboard ¶
func (s *ReplyKeyboardMarkup) GetKeyboard() [][]KeyboardButton
GetKeyboard returns the value of Keyboard.
func (*ReplyKeyboardMarkup) GetOneTimeKeyboard ¶
func (s *ReplyKeyboardMarkup) GetOneTimeKeyboard() OptBool
GetOneTimeKeyboard returns the value of OneTimeKeyboard.
func (*ReplyKeyboardMarkup) GetResizeKeyboard ¶
func (s *ReplyKeyboardMarkup) GetResizeKeyboard() OptBool
GetResizeKeyboard returns the value of ResizeKeyboard.
func (*ReplyKeyboardMarkup) GetSelective ¶
func (s *ReplyKeyboardMarkup) GetSelective() OptBool
GetSelective returns the value of Selective.
func (*ReplyKeyboardMarkup) MarshalJSON ¶
func (s *ReplyKeyboardMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ReplyKeyboardMarkup) SetFake ¶
func (s *ReplyKeyboardMarkup) SetFake()
SetFake set fake values.
func (*ReplyKeyboardMarkup) SetInputFieldPlaceholder ¶
func (s *ReplyKeyboardMarkup) SetInputFieldPlaceholder(val OptString)
SetInputFieldPlaceholder sets the value of InputFieldPlaceholder.
func (*ReplyKeyboardMarkup) SetKeyboard ¶
func (s *ReplyKeyboardMarkup) SetKeyboard(val [][]KeyboardButton)
SetKeyboard sets the value of Keyboard.
func (*ReplyKeyboardMarkup) SetOneTimeKeyboard ¶
func (s *ReplyKeyboardMarkup) SetOneTimeKeyboard(val OptBool)
SetOneTimeKeyboard sets the value of OneTimeKeyboard.
func (*ReplyKeyboardMarkup) SetResizeKeyboard ¶
func (s *ReplyKeyboardMarkup) SetResizeKeyboard(val OptBool)
SetResizeKeyboard sets the value of ResizeKeyboard.
func (*ReplyKeyboardMarkup) SetSelective ¶
func (s *ReplyKeyboardMarkup) SetSelective(val OptBool)
SetSelective sets the value of Selective.
func (*ReplyKeyboardMarkup) UnmarshalJSON ¶
func (s *ReplyKeyboardMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ReplyKeyboardMarkup) Validate ¶
func (s *ReplyKeyboardMarkup) Validate() error
type ReplyKeyboardRemove ¶
type ReplyKeyboardRemove struct { // Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if // you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in // ReplyKeyboardMarkup). RemoveKeyboard bool `json:"remove_keyboard"` // Use this parameter if you want to remove the keyboard for specific users only. Targets: 1) users // that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has // reply_to_message_id), sender of the original message.Example: A user votes in a poll, bot returns // confirmation message in reply to the vote and removes the keyboard for that user, while still // showing the keyboard with poll options to users who haven't voted yet. Selective OptBool `json:"selective"` }
Upon receiving a message with this object, Telegram clients will remove the current custom keyboard and display the default letter-keyboard. By default, custom keyboards are displayed until a new keyboard is sent by a bot. An exception is made for one-time keyboards that are hidden immediately after the user presses a button (see ReplyKeyboardMarkup). Ref: #/components/schemas/ReplyKeyboardRemove
func (*ReplyKeyboardRemove) Decode ¶
func (s *ReplyKeyboardRemove) Decode(d *jx.Decoder) error
Decode decodes ReplyKeyboardRemove from json.
func (*ReplyKeyboardRemove) Encode ¶
func (s *ReplyKeyboardRemove) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ReplyKeyboardRemove) GetRemoveKeyboard ¶
func (s *ReplyKeyboardRemove) GetRemoveKeyboard() bool
GetRemoveKeyboard returns the value of RemoveKeyboard.
func (*ReplyKeyboardRemove) GetSelective ¶
func (s *ReplyKeyboardRemove) GetSelective() OptBool
GetSelective returns the value of Selective.
func (*ReplyKeyboardRemove) MarshalJSON ¶
func (s *ReplyKeyboardRemove) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ReplyKeyboardRemove) SetFake ¶
func (s *ReplyKeyboardRemove) SetFake()
SetFake set fake values.
func (*ReplyKeyboardRemove) SetRemoveKeyboard ¶
func (s *ReplyKeyboardRemove) SetRemoveKeyboard(val bool)
SetRemoveKeyboard sets the value of RemoveKeyboard.
func (*ReplyKeyboardRemove) SetSelective ¶
func (s *ReplyKeyboardRemove) SetSelective(val OptBool)
SetSelective sets the value of Selective.
func (*ReplyKeyboardRemove) UnmarshalJSON ¶
func (s *ReplyKeyboardRemove) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Response ¶
type Response struct { // The group has been migrated to a supergroup with the specified identifier. This number may be // greater than 32 bits and some programming languages may have difficulty/silent defects in // interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision // float type are safe for storing this identifier. MigrateToChatID OptInt64 `json:"migrate_to_chat_id"` // In case of exceeding flood control, the number of seconds left to wait before the request can be // repeated. RetryAfter OptInt `json:"retry_after"` }
Contains information about why a request was unsuccessful. Ref: #/components/schemas/Response
func (*Response) GetMigrateToChatID ¶
GetMigrateToChatID returns the value of MigrateToChatID.
func (*Response) GetRetryAfter ¶
GetRetryAfter returns the value of RetryAfter.
func (*Response) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Response) SetMigrateToChatID ¶
SetMigrateToChatID sets the value of MigrateToChatID.
func (*Response) SetRetryAfter ¶
SetRetryAfter sets the value of RetryAfter.
func (*Response) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type RestrictChatMember ¶
type RestrictChatMember struct { ChatID ID `json:"chat_id"` // Unique identifier of the target user. UserID int64 `json:"user_id"` Permissions ChatPermissions `json:"permissions"` // Date when restrictions will be lifted for the user, unix time. If user is restricted for more than // 366 days or less than 30 seconds from the current time, they are considered to be restricted // forever. UntilDate OptInt `json:"until_date"` }
Input for restrictChatMember. Ref: #/components/schemas/restrictChatMember
func (*RestrictChatMember) Decode ¶
func (s *RestrictChatMember) Decode(d *jx.Decoder) error
Decode decodes RestrictChatMember from json.
func (*RestrictChatMember) Encode ¶
func (s *RestrictChatMember) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*RestrictChatMember) GetChatID ¶
func (s *RestrictChatMember) GetChatID() ID
GetChatID returns the value of ChatID.
func (*RestrictChatMember) GetPermissions ¶
func (s *RestrictChatMember) GetPermissions() ChatPermissions
GetPermissions returns the value of Permissions.
func (*RestrictChatMember) GetUntilDate ¶
func (s *RestrictChatMember) GetUntilDate() OptInt
GetUntilDate returns the value of UntilDate.
func (*RestrictChatMember) GetUserID ¶
func (s *RestrictChatMember) GetUserID() int64
GetUserID returns the value of UserID.
func (*RestrictChatMember) MarshalJSON ¶
func (s *RestrictChatMember) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*RestrictChatMember) SetChatID ¶
func (s *RestrictChatMember) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*RestrictChatMember) SetFake ¶
func (s *RestrictChatMember) SetFake()
SetFake set fake values.
func (*RestrictChatMember) SetPermissions ¶
func (s *RestrictChatMember) SetPermissions(val ChatPermissions)
SetPermissions sets the value of Permissions.
func (*RestrictChatMember) SetUntilDate ¶
func (s *RestrictChatMember) SetUntilDate(val OptInt)
SetUntilDate sets the value of UntilDate.
func (*RestrictChatMember) SetUserID ¶
func (s *RestrictChatMember) SetUserID(val int64)
SetUserID sets the value of UserID.
func (*RestrictChatMember) UnmarshalJSON ¶
func (s *RestrictChatMember) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Result ¶
Ref: #/components/schemas/Result
func (*Result) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Result) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ResultArrayOfBotCommand ¶
type ResultArrayOfBotCommand struct { Result []BotCommand `json:"result"` Ok bool `json:"ok"` }
Ref: #/components/schemas/ResultArrayOfBotCommand
func (*ResultArrayOfBotCommand) Decode ¶
func (s *ResultArrayOfBotCommand) Decode(d *jx.Decoder) error
Decode decodes ResultArrayOfBotCommand from json.
func (*ResultArrayOfBotCommand) Encode ¶
func (s *ResultArrayOfBotCommand) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ResultArrayOfBotCommand) GetOk ¶
func (s *ResultArrayOfBotCommand) GetOk() bool
GetOk returns the value of Ok.
func (*ResultArrayOfBotCommand) GetResult ¶
func (s *ResultArrayOfBotCommand) GetResult() []BotCommand
GetResult returns the value of Result.
func (*ResultArrayOfBotCommand) MarshalJSON ¶
func (s *ResultArrayOfBotCommand) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ResultArrayOfBotCommand) SetFake ¶
func (s *ResultArrayOfBotCommand) SetFake()
SetFake set fake values.
func (*ResultArrayOfBotCommand) SetOk ¶
func (s *ResultArrayOfBotCommand) SetOk(val bool)
SetOk sets the value of Ok.
func (*ResultArrayOfBotCommand) SetResult ¶
func (s *ResultArrayOfBotCommand) SetResult(val []BotCommand)
SetResult sets the value of Result.
func (*ResultArrayOfBotCommand) UnmarshalJSON ¶
func (s *ResultArrayOfBotCommand) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ResultArrayOfBotCommand) Validate ¶
func (s *ResultArrayOfBotCommand) Validate() error
type ResultArrayOfChatMember ¶
type ResultArrayOfChatMember struct { Result []ChatMember `json:"result"` Ok bool `json:"ok"` }
Ref: #/components/schemas/ResultArrayOfChatMember
func (*ResultArrayOfChatMember) Decode ¶
func (s *ResultArrayOfChatMember) Decode(d *jx.Decoder) error
Decode decodes ResultArrayOfChatMember from json.
func (*ResultArrayOfChatMember) Encode ¶
func (s *ResultArrayOfChatMember) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ResultArrayOfChatMember) GetOk ¶
func (s *ResultArrayOfChatMember) GetOk() bool
GetOk returns the value of Ok.
func (*ResultArrayOfChatMember) GetResult ¶
func (s *ResultArrayOfChatMember) GetResult() []ChatMember
GetResult returns the value of Result.
func (*ResultArrayOfChatMember) MarshalJSON ¶
func (s *ResultArrayOfChatMember) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ResultArrayOfChatMember) SetFake ¶
func (s *ResultArrayOfChatMember) SetFake()
SetFake set fake values.
func (*ResultArrayOfChatMember) SetOk ¶
func (s *ResultArrayOfChatMember) SetOk(val bool)
SetOk sets the value of Ok.
func (*ResultArrayOfChatMember) SetResult ¶
func (s *ResultArrayOfChatMember) SetResult(val []ChatMember)
SetResult sets the value of Result.
func (*ResultArrayOfChatMember) UnmarshalJSON ¶
func (s *ResultArrayOfChatMember) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ResultArrayOfGameHighScore ¶
type ResultArrayOfGameHighScore struct { Result []GameHighScore `json:"result"` Ok bool `json:"ok"` }
Ref: #/components/schemas/ResultArrayOfGameHighScore
func (*ResultArrayOfGameHighScore) Decode ¶
func (s *ResultArrayOfGameHighScore) Decode(d *jx.Decoder) error
Decode decodes ResultArrayOfGameHighScore from json.
func (*ResultArrayOfGameHighScore) Encode ¶
func (s *ResultArrayOfGameHighScore) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ResultArrayOfGameHighScore) GetOk ¶
func (s *ResultArrayOfGameHighScore) GetOk() bool
GetOk returns the value of Ok.
func (*ResultArrayOfGameHighScore) GetResult ¶
func (s *ResultArrayOfGameHighScore) GetResult() []GameHighScore
GetResult returns the value of Result.
func (*ResultArrayOfGameHighScore) MarshalJSON ¶
func (s *ResultArrayOfGameHighScore) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ResultArrayOfGameHighScore) SetFake ¶
func (s *ResultArrayOfGameHighScore) SetFake()
SetFake set fake values.
func (*ResultArrayOfGameHighScore) SetOk ¶
func (s *ResultArrayOfGameHighScore) SetOk(val bool)
SetOk sets the value of Ok.
func (*ResultArrayOfGameHighScore) SetResult ¶
func (s *ResultArrayOfGameHighScore) SetResult(val []GameHighScore)
SetResult sets the value of Result.
func (*ResultArrayOfGameHighScore) UnmarshalJSON ¶
func (s *ResultArrayOfGameHighScore) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ResultArrayOfMessage ¶
Ref: #/components/schemas/ResultArrayOfMessage
func (*ResultArrayOfMessage) Decode ¶
func (s *ResultArrayOfMessage) Decode(d *jx.Decoder) error
Decode decodes ResultArrayOfMessage from json.
func (*ResultArrayOfMessage) Encode ¶
func (s *ResultArrayOfMessage) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ResultArrayOfMessage) GetOk ¶
func (s *ResultArrayOfMessage) GetOk() bool
GetOk returns the value of Ok.
func (*ResultArrayOfMessage) GetResult ¶
func (s *ResultArrayOfMessage) GetResult() []Message
GetResult returns the value of Result.
func (*ResultArrayOfMessage) MarshalJSON ¶
func (s *ResultArrayOfMessage) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ResultArrayOfMessage) SetFake ¶
func (s *ResultArrayOfMessage) SetFake()
SetFake set fake values.
func (*ResultArrayOfMessage) SetOk ¶
func (s *ResultArrayOfMessage) SetOk(val bool)
SetOk sets the value of Ok.
func (*ResultArrayOfMessage) SetResult ¶
func (s *ResultArrayOfMessage) SetResult(val []Message)
SetResult sets the value of Result.
func (*ResultArrayOfMessage) UnmarshalJSON ¶
func (s *ResultArrayOfMessage) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ResultArrayOfMessage) Validate ¶
func (s *ResultArrayOfMessage) Validate() error
type ResultArrayOfUpdate ¶
Ref: #/components/schemas/ResultArrayOfUpdate
func (*ResultArrayOfUpdate) Decode ¶
func (s *ResultArrayOfUpdate) Decode(d *jx.Decoder) error
Decode decodes ResultArrayOfUpdate from json.
func (*ResultArrayOfUpdate) Encode ¶
func (s *ResultArrayOfUpdate) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ResultArrayOfUpdate) GetOk ¶
func (s *ResultArrayOfUpdate) GetOk() bool
GetOk returns the value of Ok.
func (*ResultArrayOfUpdate) GetResult ¶
func (s *ResultArrayOfUpdate) GetResult() []Update
GetResult returns the value of Result.
func (*ResultArrayOfUpdate) MarshalJSON ¶
func (s *ResultArrayOfUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ResultArrayOfUpdate) SetFake ¶
func (s *ResultArrayOfUpdate) SetFake()
SetFake set fake values.
func (*ResultArrayOfUpdate) SetOk ¶
func (s *ResultArrayOfUpdate) SetOk(val bool)
SetOk sets the value of Ok.
func (*ResultArrayOfUpdate) SetResult ¶
func (s *ResultArrayOfUpdate) SetResult(val []Update)
SetResult sets the value of Result.
func (*ResultArrayOfUpdate) UnmarshalJSON ¶
func (s *ResultArrayOfUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ResultArrayOfUpdate) Validate ¶
func (s *ResultArrayOfUpdate) Validate() error
type ResultChat ¶
Ref: #/components/schemas/ResultChat
func (*ResultChat) Decode ¶
func (s *ResultChat) Decode(d *jx.Decoder) error
Decode decodes ResultChat from json.
func (*ResultChat) Encode ¶
func (s *ResultChat) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ResultChat) GetResult ¶
func (s *ResultChat) GetResult() OptChat
GetResult returns the value of Result.
func (*ResultChat) MarshalJSON ¶
func (s *ResultChat) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ResultChat) SetResult ¶
func (s *ResultChat) SetResult(val OptChat)
SetResult sets the value of Result.
func (*ResultChat) UnmarshalJSON ¶
func (s *ResultChat) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ResultChat) Validate ¶
func (s *ResultChat) Validate() error
type ResultChatInviteLink ¶
type ResultChatInviteLink struct { Result OptChatInviteLink `json:"result"` Ok bool `json:"ok"` }
Ref: #/components/schemas/ResultChatInviteLink
func (*ResultChatInviteLink) Decode ¶
func (s *ResultChatInviteLink) Decode(d *jx.Decoder) error
Decode decodes ResultChatInviteLink from json.
func (*ResultChatInviteLink) Encode ¶
func (s *ResultChatInviteLink) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ResultChatInviteLink) GetOk ¶
func (s *ResultChatInviteLink) GetOk() bool
GetOk returns the value of Ok.
func (*ResultChatInviteLink) GetResult ¶
func (s *ResultChatInviteLink) GetResult() OptChatInviteLink
GetResult returns the value of Result.
func (*ResultChatInviteLink) MarshalJSON ¶
func (s *ResultChatInviteLink) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ResultChatInviteLink) SetFake ¶
func (s *ResultChatInviteLink) SetFake()
SetFake set fake values.
func (*ResultChatInviteLink) SetOk ¶
func (s *ResultChatInviteLink) SetOk(val bool)
SetOk sets the value of Ok.
func (*ResultChatInviteLink) SetResult ¶
func (s *ResultChatInviteLink) SetResult(val OptChatInviteLink)
SetResult sets the value of Result.
func (*ResultChatInviteLink) UnmarshalJSON ¶
func (s *ResultChatInviteLink) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ResultChatInviteLink) Validate ¶
func (s *ResultChatInviteLink) Validate() error
type ResultChatMember ¶
type ResultChatMember struct { Result OptChatMember `json:"result"` Ok bool `json:"ok"` }
Ref: #/components/schemas/ResultChatMember
func (*ResultChatMember) Decode ¶
func (s *ResultChatMember) Decode(d *jx.Decoder) error
Decode decodes ResultChatMember from json.
func (*ResultChatMember) Encode ¶
func (s *ResultChatMember) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ResultChatMember) GetOk ¶
func (s *ResultChatMember) GetOk() bool
GetOk returns the value of Ok.
func (*ResultChatMember) GetResult ¶
func (s *ResultChatMember) GetResult() OptChatMember
GetResult returns the value of Result.
func (*ResultChatMember) MarshalJSON ¶
func (s *ResultChatMember) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ResultChatMember) SetOk ¶
func (s *ResultChatMember) SetOk(val bool)
SetOk sets the value of Ok.
func (*ResultChatMember) SetResult ¶
func (s *ResultChatMember) SetResult(val OptChatMember)
SetResult sets the value of Result.
func (*ResultChatMember) UnmarshalJSON ¶
func (s *ResultChatMember) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ResultFile ¶
Ref: #/components/schemas/ResultFile
func (*ResultFile) Decode ¶
func (s *ResultFile) Decode(d *jx.Decoder) error
Decode decodes ResultFile from json.
func (*ResultFile) Encode ¶
func (s *ResultFile) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ResultFile) GetResult ¶
func (s *ResultFile) GetResult() OptFile
GetResult returns the value of Result.
func (*ResultFile) MarshalJSON ¶
func (s *ResultFile) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ResultFile) SetResult ¶
func (s *ResultFile) SetResult(val OptFile)
SetResult sets the value of Result.
func (*ResultFile) UnmarshalJSON ¶
func (s *ResultFile) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ResultInt ¶
Ref: #/components/schemas/ResultInt
func (*ResultInt) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*ResultInt) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ResultMessage ¶
type ResultMessage struct { Result OptMessage `json:"result"` Ok bool `json:"ok"` }
Ref: #/components/schemas/ResultMessage
func (*ResultMessage) Decode ¶
func (s *ResultMessage) Decode(d *jx.Decoder) error
Decode decodes ResultMessage from json.
func (*ResultMessage) Encode ¶
func (s *ResultMessage) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ResultMessage) GetResult ¶
func (s *ResultMessage) GetResult() OptMessage
GetResult returns the value of Result.
func (*ResultMessage) MarshalJSON ¶
func (s *ResultMessage) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ResultMessage) SetResult ¶
func (s *ResultMessage) SetResult(val OptMessage)
SetResult sets the value of Result.
func (*ResultMessage) UnmarshalJSON ¶
func (s *ResultMessage) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ResultMessage) Validate ¶
func (s *ResultMessage) Validate() error
type ResultMessageId ¶
type ResultMessageId struct { Result OptMessageId `json:"result"` Ok bool `json:"ok"` }
Ref: #/components/schemas/ResultMessageId
func (*ResultMessageId) Decode ¶
func (s *ResultMessageId) Decode(d *jx.Decoder) error
Decode decodes ResultMessageId from json.
func (*ResultMessageId) Encode ¶
func (s *ResultMessageId) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ResultMessageId) GetOk ¶
func (s *ResultMessageId) GetOk() bool
GetOk returns the value of Ok.
func (*ResultMessageId) GetResult ¶
func (s *ResultMessageId) GetResult() OptMessageId
GetResult returns the value of Result.
func (*ResultMessageId) MarshalJSON ¶
func (s *ResultMessageId) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ResultMessageId) SetOk ¶
func (s *ResultMessageId) SetOk(val bool)
SetOk sets the value of Ok.
func (*ResultMessageId) SetResult ¶
func (s *ResultMessageId) SetResult(val OptMessageId)
SetResult sets the value of Result.
func (*ResultMessageId) UnmarshalJSON ¶
func (s *ResultMessageId) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ResultPoll ¶
Ref: #/components/schemas/ResultPoll
func (*ResultPoll) Decode ¶
func (s *ResultPoll) Decode(d *jx.Decoder) error
Decode decodes ResultPoll from json.
func (*ResultPoll) Encode ¶
func (s *ResultPoll) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ResultPoll) GetResult ¶
func (s *ResultPoll) GetResult() OptPoll
GetResult returns the value of Result.
func (*ResultPoll) MarshalJSON ¶
func (s *ResultPoll) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ResultPoll) SetResult ¶
func (s *ResultPoll) SetResult(val OptPoll)
SetResult sets the value of Result.
func (*ResultPoll) UnmarshalJSON ¶
func (s *ResultPoll) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ResultPoll) Validate ¶
func (s *ResultPoll) Validate() error
type ResultString ¶
Ref: #/components/schemas/ResultString
func (*ResultString) Decode ¶
func (s *ResultString) Decode(d *jx.Decoder) error
Decode decodes ResultString from json.
func (*ResultString) Encode ¶
func (s *ResultString) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ResultString) GetResult ¶
func (s *ResultString) GetResult() OptString
GetResult returns the value of Result.
func (*ResultString) MarshalJSON ¶
func (s *ResultString) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ResultString) SetResult ¶
func (s *ResultString) SetResult(val OptString)
SetResult sets the value of Result.
func (*ResultString) UnmarshalJSON ¶
func (s *ResultString) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ResultUser ¶
Ref: #/components/schemas/ResultUser
func (*ResultUser) Decode ¶
func (s *ResultUser) Decode(d *jx.Decoder) error
Decode decodes ResultUser from json.
func (*ResultUser) Encode ¶
func (s *ResultUser) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ResultUser) GetResult ¶
func (s *ResultUser) GetResult() OptUser
GetResult returns the value of Result.
func (*ResultUser) MarshalJSON ¶
func (s *ResultUser) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ResultUser) SetResult ¶
func (s *ResultUser) SetResult(val OptUser)
SetResult sets the value of Result.
func (*ResultUser) UnmarshalJSON ¶
func (s *ResultUser) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ResultUserProfilePhotos ¶
type ResultUserProfilePhotos struct { Result OptUserProfilePhotos `json:"result"` Ok bool `json:"ok"` }
Ref: #/components/schemas/ResultUserProfilePhotos
func (*ResultUserProfilePhotos) Decode ¶
func (s *ResultUserProfilePhotos) Decode(d *jx.Decoder) error
Decode decodes ResultUserProfilePhotos from json.
func (*ResultUserProfilePhotos) Encode ¶
func (s *ResultUserProfilePhotos) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ResultUserProfilePhotos) GetOk ¶
func (s *ResultUserProfilePhotos) GetOk() bool
GetOk returns the value of Ok.
func (*ResultUserProfilePhotos) GetResult ¶
func (s *ResultUserProfilePhotos) GetResult() OptUserProfilePhotos
GetResult returns the value of Result.
func (*ResultUserProfilePhotos) MarshalJSON ¶
func (s *ResultUserProfilePhotos) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ResultUserProfilePhotos) SetFake ¶
func (s *ResultUserProfilePhotos) SetFake()
SetFake set fake values.
func (*ResultUserProfilePhotos) SetOk ¶
func (s *ResultUserProfilePhotos) SetOk(val bool)
SetOk sets the value of Ok.
func (*ResultUserProfilePhotos) SetResult ¶
func (s *ResultUserProfilePhotos) SetResult(val OptUserProfilePhotos)
SetResult sets the value of Result.
func (*ResultUserProfilePhotos) UnmarshalJSON ¶
func (s *ResultUserProfilePhotos) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ResultUserProfilePhotos) Validate ¶
func (s *ResultUserProfilePhotos) Validate() error
type ResultWebhookInfo ¶
type ResultWebhookInfo struct { Result OptWebhookInfo `json:"result"` Ok bool `json:"ok"` }
Ref: #/components/schemas/ResultWebhookInfo
func (*ResultWebhookInfo) Decode ¶
func (s *ResultWebhookInfo) Decode(d *jx.Decoder) error
Decode decodes ResultWebhookInfo from json.
func (*ResultWebhookInfo) Encode ¶
func (s *ResultWebhookInfo) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ResultWebhookInfo) GetOk ¶
func (s *ResultWebhookInfo) GetOk() bool
GetOk returns the value of Ok.
func (*ResultWebhookInfo) GetResult ¶
func (s *ResultWebhookInfo) GetResult() OptWebhookInfo
GetResult returns the value of Result.
func (*ResultWebhookInfo) MarshalJSON ¶
func (s *ResultWebhookInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ResultWebhookInfo) SetOk ¶
func (s *ResultWebhookInfo) SetOk(val bool)
SetOk sets the value of Ok.
func (*ResultWebhookInfo) SetResult ¶
func (s *ResultWebhookInfo) SetResult(val OptWebhookInfo)
SetResult sets the value of Result.
func (*ResultWebhookInfo) UnmarshalJSON ¶
func (s *ResultWebhookInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type RevokeChatInviteLink ¶
type RevokeChatInviteLink struct { ChatID ID `json:"chat_id"` // The invite link to revoke. InviteLink string `json:"invite_link"` }
Input for revokeChatInviteLink. Ref: #/components/schemas/revokeChatInviteLink
func (*RevokeChatInviteLink) Decode ¶
func (s *RevokeChatInviteLink) Decode(d *jx.Decoder) error
Decode decodes RevokeChatInviteLink from json.
func (*RevokeChatInviteLink) Encode ¶
func (s *RevokeChatInviteLink) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*RevokeChatInviteLink) GetChatID ¶
func (s *RevokeChatInviteLink) GetChatID() ID
GetChatID returns the value of ChatID.
func (*RevokeChatInviteLink) GetInviteLink ¶
func (s *RevokeChatInviteLink) GetInviteLink() string
GetInviteLink returns the value of InviteLink.
func (*RevokeChatInviteLink) MarshalJSON ¶
func (s *RevokeChatInviteLink) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*RevokeChatInviteLink) SetChatID ¶
func (s *RevokeChatInviteLink) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*RevokeChatInviteLink) SetFake ¶
func (s *RevokeChatInviteLink) SetFake()
SetFake set fake values.
func (*RevokeChatInviteLink) SetInviteLink ¶
func (s *RevokeChatInviteLink) SetInviteLink(val string)
SetInviteLink sets the value of InviteLink.
func (*RevokeChatInviteLink) UnmarshalJSON ¶
func (s *RevokeChatInviteLink) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
Route is route object.
func (Route) OperationID ¶
OperationID returns OpenAPI operationId.
type SendAnimation ¶
type SendAnimation struct { ChatID ID `json:"chat_id"` // Animation to send. Pass a file_id as String to send an animation that exists on the Telegram // servers (recommended), pass an HTTP URL as a String for Telegram to get an animation from the // Internet, or upload a new animation using multipart/form-data. More info on Sending Files ». Animation string `json:"animation"` // Duration of sent animation in seconds. Duration OptInt `json:"duration"` // Animation width. Width OptInt `json:"width"` // Animation height. Height OptInt `json:"height"` // Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported // server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's // width and height should not exceed 320. Ignored if the file is not uploaded using // multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can // pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data // under <file_attach_name>. More info on Sending Files ». Thumb OptString `json:"thumb"` // Animation caption (may also be used when resending animation by file_id), 0-1024 characters after // entities parsing. Caption OptString `json:"caption"` // Mode for parsing entities in the animation caption. See formatting options for more details. ParseMode OptString `json:"parse_mode"` // A JSON-serialized list of special entities that appear in the caption, which can be specified // instead of parse_mode. CaptionEntities []MessageEntity `json:"caption_entities"` // Sends the message silently. Users will receive a notification with no sound. DisableNotification OptBool `json:"disable_notification"` // If the message is a reply, ID of the original message. ReplyToMessageID OptInt `json:"reply_to_message_id"` // Pass True, if the message should be sent even if the specified replied-to message is not found. AllowSendingWithoutReply OptBool `json:"allow_sending_without_reply"` // Additional interface options. A JSON-serialized object for an inline keyboard, custom reply // keyboard, instructions to remove reply keyboard or to force a reply from the user. ReplyMarkup OptSendAnimationReplyMarkup `json:"reply_markup"` }
Input for sendAnimation. Ref: #/components/schemas/sendAnimation
func (*SendAnimation) Decode ¶
func (s *SendAnimation) Decode(d *jx.Decoder) error
Decode decodes SendAnimation from json.
func (*SendAnimation) Encode ¶
func (s *SendAnimation) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SendAnimation) GetAllowSendingWithoutReply ¶
func (s *SendAnimation) GetAllowSendingWithoutReply() OptBool
GetAllowSendingWithoutReply returns the value of AllowSendingWithoutReply.
func (*SendAnimation) GetAnimation ¶
func (s *SendAnimation) GetAnimation() string
GetAnimation returns the value of Animation.
func (*SendAnimation) GetCaption ¶
func (s *SendAnimation) GetCaption() OptString
GetCaption returns the value of Caption.
func (*SendAnimation) GetCaptionEntities ¶
func (s *SendAnimation) GetCaptionEntities() []MessageEntity
GetCaptionEntities returns the value of CaptionEntities.
func (*SendAnimation) GetChatID ¶
func (s *SendAnimation) GetChatID() ID
GetChatID returns the value of ChatID.
func (*SendAnimation) GetDisableNotification ¶
func (s *SendAnimation) GetDisableNotification() OptBool
GetDisableNotification returns the value of DisableNotification.
func (*SendAnimation) GetDuration ¶
func (s *SendAnimation) GetDuration() OptInt
GetDuration returns the value of Duration.
func (*SendAnimation) GetHeight ¶
func (s *SendAnimation) GetHeight() OptInt
GetHeight returns the value of Height.
func (*SendAnimation) GetParseMode ¶
func (s *SendAnimation) GetParseMode() OptString
GetParseMode returns the value of ParseMode.
func (*SendAnimation) GetReplyMarkup ¶
func (s *SendAnimation) GetReplyMarkup() OptSendAnimationReplyMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*SendAnimation) GetReplyToMessageID ¶
func (s *SendAnimation) GetReplyToMessageID() OptInt
GetReplyToMessageID returns the value of ReplyToMessageID.
func (*SendAnimation) GetThumb ¶
func (s *SendAnimation) GetThumb() OptString
GetThumb returns the value of Thumb.
func (*SendAnimation) GetWidth ¶
func (s *SendAnimation) GetWidth() OptInt
GetWidth returns the value of Width.
func (*SendAnimation) MarshalJSON ¶
func (s *SendAnimation) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SendAnimation) SetAllowSendingWithoutReply ¶
func (s *SendAnimation) SetAllowSendingWithoutReply(val OptBool)
SetAllowSendingWithoutReply sets the value of AllowSendingWithoutReply.
func (*SendAnimation) SetAnimation ¶
func (s *SendAnimation) SetAnimation(val string)
SetAnimation sets the value of Animation.
func (*SendAnimation) SetCaption ¶
func (s *SendAnimation) SetCaption(val OptString)
SetCaption sets the value of Caption.
func (*SendAnimation) SetCaptionEntities ¶
func (s *SendAnimation) SetCaptionEntities(val []MessageEntity)
SetCaptionEntities sets the value of CaptionEntities.
func (*SendAnimation) SetChatID ¶
func (s *SendAnimation) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*SendAnimation) SetDisableNotification ¶
func (s *SendAnimation) SetDisableNotification(val OptBool)
SetDisableNotification sets the value of DisableNotification.
func (*SendAnimation) SetDuration ¶
func (s *SendAnimation) SetDuration(val OptInt)
SetDuration sets the value of Duration.
func (*SendAnimation) SetHeight ¶
func (s *SendAnimation) SetHeight(val OptInt)
SetHeight sets the value of Height.
func (*SendAnimation) SetParseMode ¶
func (s *SendAnimation) SetParseMode(val OptString)
SetParseMode sets the value of ParseMode.
func (*SendAnimation) SetReplyMarkup ¶
func (s *SendAnimation) SetReplyMarkup(val OptSendAnimationReplyMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*SendAnimation) SetReplyToMessageID ¶
func (s *SendAnimation) SetReplyToMessageID(val OptInt)
SetReplyToMessageID sets the value of ReplyToMessageID.
func (*SendAnimation) SetThumb ¶
func (s *SendAnimation) SetThumb(val OptString)
SetThumb sets the value of Thumb.
func (*SendAnimation) SetWidth ¶
func (s *SendAnimation) SetWidth(val OptInt)
SetWidth sets the value of Width.
func (*SendAnimation) UnmarshalJSON ¶
func (s *SendAnimation) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SendAnimation) Validate ¶
func (s *SendAnimation) Validate() error
type SendAnimationReplyMarkup ¶
type SendAnimationReplyMarkup struct { Type SendAnimationReplyMarkupType // switch on this field InlineKeyboardMarkup InlineKeyboardMarkup ReplyKeyboardMarkup ReplyKeyboardMarkup ReplyKeyboardRemove ReplyKeyboardRemove ForceReply ForceReply }
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. SendAnimationReplyMarkup represents sum type.
func NewForceReplySendAnimationReplyMarkup ¶
func NewForceReplySendAnimationReplyMarkup(v ForceReply) SendAnimationReplyMarkup
NewForceReplySendAnimationReplyMarkup returns new SendAnimationReplyMarkup from ForceReply.
func NewInlineKeyboardMarkupSendAnimationReplyMarkup ¶
func NewInlineKeyboardMarkupSendAnimationReplyMarkup(v InlineKeyboardMarkup) SendAnimationReplyMarkup
NewInlineKeyboardMarkupSendAnimationReplyMarkup returns new SendAnimationReplyMarkup from InlineKeyboardMarkup.
func NewReplyKeyboardMarkupSendAnimationReplyMarkup ¶
func NewReplyKeyboardMarkupSendAnimationReplyMarkup(v ReplyKeyboardMarkup) SendAnimationReplyMarkup
NewReplyKeyboardMarkupSendAnimationReplyMarkup returns new SendAnimationReplyMarkup from ReplyKeyboardMarkup.
func NewReplyKeyboardRemoveSendAnimationReplyMarkup ¶
func NewReplyKeyboardRemoveSendAnimationReplyMarkup(v ReplyKeyboardRemove) SendAnimationReplyMarkup
NewReplyKeyboardRemoveSendAnimationReplyMarkup returns new SendAnimationReplyMarkup from ReplyKeyboardRemove.
func (*SendAnimationReplyMarkup) Decode ¶
func (s *SendAnimationReplyMarkup) Decode(d *jx.Decoder) error
Decode decodes SendAnimationReplyMarkup from json.
func (SendAnimationReplyMarkup) Encode ¶
func (s SendAnimationReplyMarkup) Encode(e *jx.Encoder)
Encode encodes SendAnimationReplyMarkup as json.
func (SendAnimationReplyMarkup) GetForceReply ¶
func (s SendAnimationReplyMarkup) GetForceReply() (v ForceReply, ok bool)
GetForceReply returns ForceReply and true boolean if SendAnimationReplyMarkup is ForceReply.
func (SendAnimationReplyMarkup) GetInlineKeyboardMarkup ¶
func (s SendAnimationReplyMarkup) GetInlineKeyboardMarkup() (v InlineKeyboardMarkup, ok bool)
GetInlineKeyboardMarkup returns InlineKeyboardMarkup and true boolean if SendAnimationReplyMarkup is InlineKeyboardMarkup.
func (SendAnimationReplyMarkup) GetReplyKeyboardMarkup ¶
func (s SendAnimationReplyMarkup) GetReplyKeyboardMarkup() (v ReplyKeyboardMarkup, ok bool)
GetReplyKeyboardMarkup returns ReplyKeyboardMarkup and true boolean if SendAnimationReplyMarkup is ReplyKeyboardMarkup.
func (SendAnimationReplyMarkup) GetReplyKeyboardRemove ¶
func (s SendAnimationReplyMarkup) GetReplyKeyboardRemove() (v ReplyKeyboardRemove, ok bool)
GetReplyKeyboardRemove returns ReplyKeyboardRemove and true boolean if SendAnimationReplyMarkup is ReplyKeyboardRemove.
func (SendAnimationReplyMarkup) IsForceReply ¶
func (s SendAnimationReplyMarkup) IsForceReply() bool
IsForceReply reports whether SendAnimationReplyMarkup is ForceReply.
func (SendAnimationReplyMarkup) IsInlineKeyboardMarkup ¶
func (s SendAnimationReplyMarkup) IsInlineKeyboardMarkup() bool
IsInlineKeyboardMarkup reports whether SendAnimationReplyMarkup is InlineKeyboardMarkup.
func (SendAnimationReplyMarkup) IsReplyKeyboardMarkup ¶
func (s SendAnimationReplyMarkup) IsReplyKeyboardMarkup() bool
IsReplyKeyboardMarkup reports whether SendAnimationReplyMarkup is ReplyKeyboardMarkup.
func (SendAnimationReplyMarkup) IsReplyKeyboardRemove ¶
func (s SendAnimationReplyMarkup) IsReplyKeyboardRemove() bool
IsReplyKeyboardRemove reports whether SendAnimationReplyMarkup is ReplyKeyboardRemove.
func (SendAnimationReplyMarkup) MarshalJSON ¶
func (s SendAnimationReplyMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SendAnimationReplyMarkup) SetFake ¶
func (s *SendAnimationReplyMarkup) SetFake()
SetFake set fake values.
func (*SendAnimationReplyMarkup) SetForceReply ¶
func (s *SendAnimationReplyMarkup) SetForceReply(v ForceReply)
SetForceReply sets SendAnimationReplyMarkup to ForceReply.
func (*SendAnimationReplyMarkup) SetInlineKeyboardMarkup ¶
func (s *SendAnimationReplyMarkup) SetInlineKeyboardMarkup(v InlineKeyboardMarkup)
SetInlineKeyboardMarkup sets SendAnimationReplyMarkup to InlineKeyboardMarkup.
func (*SendAnimationReplyMarkup) SetReplyKeyboardMarkup ¶
func (s *SendAnimationReplyMarkup) SetReplyKeyboardMarkup(v ReplyKeyboardMarkup)
SetReplyKeyboardMarkup sets SendAnimationReplyMarkup to ReplyKeyboardMarkup.
func (*SendAnimationReplyMarkup) SetReplyKeyboardRemove ¶
func (s *SendAnimationReplyMarkup) SetReplyKeyboardRemove(v ReplyKeyboardRemove)
SetReplyKeyboardRemove sets SendAnimationReplyMarkup to ReplyKeyboardRemove.
func (*SendAnimationReplyMarkup) UnmarshalJSON ¶
func (s *SendAnimationReplyMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (SendAnimationReplyMarkup) Validate ¶
func (s SendAnimationReplyMarkup) Validate() error
type SendAnimationReplyMarkupType ¶
type SendAnimationReplyMarkupType string
SendAnimationReplyMarkupType is oneOf type of SendAnimationReplyMarkup.
const ( InlineKeyboardMarkupSendAnimationReplyMarkup SendAnimationReplyMarkupType = "InlineKeyboardMarkup" ReplyKeyboardMarkupSendAnimationReplyMarkup SendAnimationReplyMarkupType = "ReplyKeyboardMarkup" ReplyKeyboardRemoveSendAnimationReplyMarkup SendAnimationReplyMarkupType = "ReplyKeyboardRemove" ForceReplySendAnimationReplyMarkup SendAnimationReplyMarkupType = "ForceReply" )
Possible values for SendAnimationReplyMarkupType.
type SendAudio ¶
type SendAudio struct { ChatID ID `json:"chat_id"` // Audio file to send. Pass a file_id as String to send an audio file that exists on the Telegram // servers (recommended), pass an HTTP URL as a String for Telegram to get an audio file from the // Internet, or upload a new one using multipart/form-data. More info on Sending Files ». Audio string `json:"audio"` // Audio caption, 0-1024 characters after entities parsing. Caption OptString `json:"caption"` // Mode for parsing entities in the audio caption. See formatting options for more details. ParseMode OptString `json:"parse_mode"` // A JSON-serialized list of special entities that appear in the caption, which can be specified // instead of parse_mode. CaptionEntities []MessageEntity `json:"caption_entities"` // Duration of the audio in seconds. Duration OptInt `json:"duration"` // Performer. Performer OptString `json:"performer"` // Track name. Title OptString `json:"title"` // Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported // server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's // width and height should not exceed 320. Ignored if the file is not uploaded using // multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can // pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data // under <file_attach_name>. More info on Sending Files ». Thumb OptString `json:"thumb"` // Sends the message silently. Users will receive a notification with no sound. DisableNotification OptBool `json:"disable_notification"` // If the message is a reply, ID of the original message. ReplyToMessageID OptInt `json:"reply_to_message_id"` // Pass True, if the message should be sent even if the specified replied-to message is not found. AllowSendingWithoutReply OptBool `json:"allow_sending_without_reply"` // Additional interface options. A JSON-serialized object for an inline keyboard, custom reply // keyboard, instructions to remove reply keyboard or to force a reply from the user. ReplyMarkup OptSendAudioReplyMarkup `json:"reply_markup"` }
Input for sendAudio. Ref: #/components/schemas/sendAudio
func (*SendAudio) GetAllowSendingWithoutReply ¶
GetAllowSendingWithoutReply returns the value of AllowSendingWithoutReply.
func (*SendAudio) GetCaption ¶
GetCaption returns the value of Caption.
func (*SendAudio) GetCaptionEntities ¶
func (s *SendAudio) GetCaptionEntities() []MessageEntity
GetCaptionEntities returns the value of CaptionEntities.
func (*SendAudio) GetDisableNotification ¶
GetDisableNotification returns the value of DisableNotification.
func (*SendAudio) GetDuration ¶
GetDuration returns the value of Duration.
func (*SendAudio) GetParseMode ¶
GetParseMode returns the value of ParseMode.
func (*SendAudio) GetPerformer ¶
GetPerformer returns the value of Performer.
func (*SendAudio) GetReplyMarkup ¶
func (s *SendAudio) GetReplyMarkup() OptSendAudioReplyMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*SendAudio) GetReplyToMessageID ¶
GetReplyToMessageID returns the value of ReplyToMessageID.
func (*SendAudio) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*SendAudio) SetAllowSendingWithoutReply ¶
SetAllowSendingWithoutReply sets the value of AllowSendingWithoutReply.
func (*SendAudio) SetCaption ¶
SetCaption sets the value of Caption.
func (*SendAudio) SetCaptionEntities ¶
func (s *SendAudio) SetCaptionEntities(val []MessageEntity)
SetCaptionEntities sets the value of CaptionEntities.
func (*SendAudio) SetDisableNotification ¶
SetDisableNotification sets the value of DisableNotification.
func (*SendAudio) SetDuration ¶
SetDuration sets the value of Duration.
func (*SendAudio) SetParseMode ¶
SetParseMode sets the value of ParseMode.
func (*SendAudio) SetPerformer ¶
SetPerformer sets the value of Performer.
func (*SendAudio) SetReplyMarkup ¶
func (s *SendAudio) SetReplyMarkup(val OptSendAudioReplyMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*SendAudio) SetReplyToMessageID ¶
SetReplyToMessageID sets the value of ReplyToMessageID.
func (*SendAudio) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type SendAudioReplyMarkup ¶
type SendAudioReplyMarkup struct { Type SendAudioReplyMarkupType // switch on this field InlineKeyboardMarkup InlineKeyboardMarkup ReplyKeyboardMarkup ReplyKeyboardMarkup ReplyKeyboardRemove ReplyKeyboardRemove ForceReply ForceReply }
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. SendAudioReplyMarkup represents sum type.
func NewForceReplySendAudioReplyMarkup ¶
func NewForceReplySendAudioReplyMarkup(v ForceReply) SendAudioReplyMarkup
NewForceReplySendAudioReplyMarkup returns new SendAudioReplyMarkup from ForceReply.
func NewInlineKeyboardMarkupSendAudioReplyMarkup ¶
func NewInlineKeyboardMarkupSendAudioReplyMarkup(v InlineKeyboardMarkup) SendAudioReplyMarkup
NewInlineKeyboardMarkupSendAudioReplyMarkup returns new SendAudioReplyMarkup from InlineKeyboardMarkup.
func NewReplyKeyboardMarkupSendAudioReplyMarkup ¶
func NewReplyKeyboardMarkupSendAudioReplyMarkup(v ReplyKeyboardMarkup) SendAudioReplyMarkup
NewReplyKeyboardMarkupSendAudioReplyMarkup returns new SendAudioReplyMarkup from ReplyKeyboardMarkup.
func NewReplyKeyboardRemoveSendAudioReplyMarkup ¶
func NewReplyKeyboardRemoveSendAudioReplyMarkup(v ReplyKeyboardRemove) SendAudioReplyMarkup
NewReplyKeyboardRemoveSendAudioReplyMarkup returns new SendAudioReplyMarkup from ReplyKeyboardRemove.
func (*SendAudioReplyMarkup) Decode ¶
func (s *SendAudioReplyMarkup) Decode(d *jx.Decoder) error
Decode decodes SendAudioReplyMarkup from json.
func (SendAudioReplyMarkup) Encode ¶
func (s SendAudioReplyMarkup) Encode(e *jx.Encoder)
Encode encodes SendAudioReplyMarkup as json.
func (SendAudioReplyMarkup) GetForceReply ¶
func (s SendAudioReplyMarkup) GetForceReply() (v ForceReply, ok bool)
GetForceReply returns ForceReply and true boolean if SendAudioReplyMarkup is ForceReply.
func (SendAudioReplyMarkup) GetInlineKeyboardMarkup ¶
func (s SendAudioReplyMarkup) GetInlineKeyboardMarkup() (v InlineKeyboardMarkup, ok bool)
GetInlineKeyboardMarkup returns InlineKeyboardMarkup and true boolean if SendAudioReplyMarkup is InlineKeyboardMarkup.
func (SendAudioReplyMarkup) GetReplyKeyboardMarkup ¶
func (s SendAudioReplyMarkup) GetReplyKeyboardMarkup() (v ReplyKeyboardMarkup, ok bool)
GetReplyKeyboardMarkup returns ReplyKeyboardMarkup and true boolean if SendAudioReplyMarkup is ReplyKeyboardMarkup.
func (SendAudioReplyMarkup) GetReplyKeyboardRemove ¶
func (s SendAudioReplyMarkup) GetReplyKeyboardRemove() (v ReplyKeyboardRemove, ok bool)
GetReplyKeyboardRemove returns ReplyKeyboardRemove and true boolean if SendAudioReplyMarkup is ReplyKeyboardRemove.
func (SendAudioReplyMarkup) IsForceReply ¶
func (s SendAudioReplyMarkup) IsForceReply() bool
IsForceReply reports whether SendAudioReplyMarkup is ForceReply.
func (SendAudioReplyMarkup) IsInlineKeyboardMarkup ¶
func (s SendAudioReplyMarkup) IsInlineKeyboardMarkup() bool
IsInlineKeyboardMarkup reports whether SendAudioReplyMarkup is InlineKeyboardMarkup.
func (SendAudioReplyMarkup) IsReplyKeyboardMarkup ¶
func (s SendAudioReplyMarkup) IsReplyKeyboardMarkup() bool
IsReplyKeyboardMarkup reports whether SendAudioReplyMarkup is ReplyKeyboardMarkup.
func (SendAudioReplyMarkup) IsReplyKeyboardRemove ¶
func (s SendAudioReplyMarkup) IsReplyKeyboardRemove() bool
IsReplyKeyboardRemove reports whether SendAudioReplyMarkup is ReplyKeyboardRemove.
func (SendAudioReplyMarkup) MarshalJSON ¶
func (s SendAudioReplyMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SendAudioReplyMarkup) SetFake ¶
func (s *SendAudioReplyMarkup) SetFake()
SetFake set fake values.
func (*SendAudioReplyMarkup) SetForceReply ¶
func (s *SendAudioReplyMarkup) SetForceReply(v ForceReply)
SetForceReply sets SendAudioReplyMarkup to ForceReply.
func (*SendAudioReplyMarkup) SetInlineKeyboardMarkup ¶
func (s *SendAudioReplyMarkup) SetInlineKeyboardMarkup(v InlineKeyboardMarkup)
SetInlineKeyboardMarkup sets SendAudioReplyMarkup to InlineKeyboardMarkup.
func (*SendAudioReplyMarkup) SetReplyKeyboardMarkup ¶
func (s *SendAudioReplyMarkup) SetReplyKeyboardMarkup(v ReplyKeyboardMarkup)
SetReplyKeyboardMarkup sets SendAudioReplyMarkup to ReplyKeyboardMarkup.
func (*SendAudioReplyMarkup) SetReplyKeyboardRemove ¶
func (s *SendAudioReplyMarkup) SetReplyKeyboardRemove(v ReplyKeyboardRemove)
SetReplyKeyboardRemove sets SendAudioReplyMarkup to ReplyKeyboardRemove.
func (*SendAudioReplyMarkup) UnmarshalJSON ¶
func (s *SendAudioReplyMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (SendAudioReplyMarkup) Validate ¶
func (s SendAudioReplyMarkup) Validate() error
type SendAudioReplyMarkupType ¶
type SendAudioReplyMarkupType string
SendAudioReplyMarkupType is oneOf type of SendAudioReplyMarkup.
const ( InlineKeyboardMarkupSendAudioReplyMarkup SendAudioReplyMarkupType = "InlineKeyboardMarkup" ReplyKeyboardMarkupSendAudioReplyMarkup SendAudioReplyMarkupType = "ReplyKeyboardMarkup" ReplyKeyboardRemoveSendAudioReplyMarkup SendAudioReplyMarkupType = "ReplyKeyboardRemove" ForceReplySendAudioReplyMarkup SendAudioReplyMarkupType = "ForceReply" )
Possible values for SendAudioReplyMarkupType.
type SendChatAction ¶
type SendChatAction struct { ChatID ID `json:"chat_id"` // Type of action to broadcast. Choose one, depending on what the user is about to receive: typing // for text messages, upload_photo for photos, record_video or upload_video for videos, record_voice // or upload_voice for voice notes, upload_document for general files, choose_sticker for stickers, // find_location for location data, record_video_note or upload_video_note for video notes. Action string `json:"action"` }
Input for sendChatAction. Ref: #/components/schemas/sendChatAction
func (*SendChatAction) Decode ¶
func (s *SendChatAction) Decode(d *jx.Decoder) error
Decode decodes SendChatAction from json.
func (*SendChatAction) Encode ¶
func (s *SendChatAction) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SendChatAction) GetAction ¶
func (s *SendChatAction) GetAction() string
GetAction returns the value of Action.
func (*SendChatAction) GetChatID ¶
func (s *SendChatAction) GetChatID() ID
GetChatID returns the value of ChatID.
func (*SendChatAction) MarshalJSON ¶
func (s *SendChatAction) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SendChatAction) SetAction ¶
func (s *SendChatAction) SetAction(val string)
SetAction sets the value of Action.
func (*SendChatAction) SetChatID ¶
func (s *SendChatAction) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*SendChatAction) UnmarshalJSON ¶
func (s *SendChatAction) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SendContact ¶
type SendContact struct { ChatID ID `json:"chat_id"` // Contact's phone number. PhoneNumber string `json:"phone_number"` // Contact's first name. FirstName string `json:"first_name"` // Contact's last name. LastName OptString `json:"last_name"` // Additional data about the contact in the form of a vCard, 0-2048 bytes. Vcard OptString `json:"vcard"` // Sends the message silently. Users will receive a notification with no sound. DisableNotification OptBool `json:"disable_notification"` // If the message is a reply, ID of the original message. ReplyToMessageID OptInt `json:"reply_to_message_id"` // Pass True, if the message should be sent even if the specified replied-to message is not found. AllowSendingWithoutReply OptBool `json:"allow_sending_without_reply"` // Additional interface options. A JSON-serialized object for an inline keyboard, custom reply // keyboard, instructions to remove keyboard or to force a reply from the user. ReplyMarkup OptSendContactReplyMarkup `json:"reply_markup"` }
Input for sendContact. Ref: #/components/schemas/sendContact
func (*SendContact) Decode ¶
func (s *SendContact) Decode(d *jx.Decoder) error
Decode decodes SendContact from json.
func (*SendContact) Encode ¶
func (s *SendContact) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SendContact) GetAllowSendingWithoutReply ¶
func (s *SendContact) GetAllowSendingWithoutReply() OptBool
GetAllowSendingWithoutReply returns the value of AllowSendingWithoutReply.
func (*SendContact) GetChatID ¶
func (s *SendContact) GetChatID() ID
GetChatID returns the value of ChatID.
func (*SendContact) GetDisableNotification ¶
func (s *SendContact) GetDisableNotification() OptBool
GetDisableNotification returns the value of DisableNotification.
func (*SendContact) GetFirstName ¶
func (s *SendContact) GetFirstName() string
GetFirstName returns the value of FirstName.
func (*SendContact) GetLastName ¶
func (s *SendContact) GetLastName() OptString
GetLastName returns the value of LastName.
func (*SendContact) GetPhoneNumber ¶
func (s *SendContact) GetPhoneNumber() string
GetPhoneNumber returns the value of PhoneNumber.
func (*SendContact) GetReplyMarkup ¶
func (s *SendContact) GetReplyMarkup() OptSendContactReplyMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*SendContact) GetReplyToMessageID ¶
func (s *SendContact) GetReplyToMessageID() OptInt
GetReplyToMessageID returns the value of ReplyToMessageID.
func (*SendContact) GetVcard ¶
func (s *SendContact) GetVcard() OptString
GetVcard returns the value of Vcard.
func (*SendContact) MarshalJSON ¶
func (s *SendContact) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SendContact) SetAllowSendingWithoutReply ¶
func (s *SendContact) SetAllowSendingWithoutReply(val OptBool)
SetAllowSendingWithoutReply sets the value of AllowSendingWithoutReply.
func (*SendContact) SetChatID ¶
func (s *SendContact) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*SendContact) SetDisableNotification ¶
func (s *SendContact) SetDisableNotification(val OptBool)
SetDisableNotification sets the value of DisableNotification.
func (*SendContact) SetFirstName ¶
func (s *SendContact) SetFirstName(val string)
SetFirstName sets the value of FirstName.
func (*SendContact) SetLastName ¶
func (s *SendContact) SetLastName(val OptString)
SetLastName sets the value of LastName.
func (*SendContact) SetPhoneNumber ¶
func (s *SendContact) SetPhoneNumber(val string)
SetPhoneNumber sets the value of PhoneNumber.
func (*SendContact) SetReplyMarkup ¶
func (s *SendContact) SetReplyMarkup(val OptSendContactReplyMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*SendContact) SetReplyToMessageID ¶
func (s *SendContact) SetReplyToMessageID(val OptInt)
SetReplyToMessageID sets the value of ReplyToMessageID.
func (*SendContact) SetVcard ¶
func (s *SendContact) SetVcard(val OptString)
SetVcard sets the value of Vcard.
func (*SendContact) UnmarshalJSON ¶
func (s *SendContact) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SendContact) Validate ¶
func (s *SendContact) Validate() error
type SendContactReplyMarkup ¶
type SendContactReplyMarkup struct { Type SendContactReplyMarkupType // switch on this field InlineKeyboardMarkup InlineKeyboardMarkup ReplyKeyboardMarkup ReplyKeyboardMarkup ReplyKeyboardRemove ReplyKeyboardRemove ForceReply ForceReply }
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove keyboard or to force a reply from the user. SendContactReplyMarkup represents sum type.
func NewForceReplySendContactReplyMarkup ¶
func NewForceReplySendContactReplyMarkup(v ForceReply) SendContactReplyMarkup
NewForceReplySendContactReplyMarkup returns new SendContactReplyMarkup from ForceReply.
func NewInlineKeyboardMarkupSendContactReplyMarkup ¶
func NewInlineKeyboardMarkupSendContactReplyMarkup(v InlineKeyboardMarkup) SendContactReplyMarkup
NewInlineKeyboardMarkupSendContactReplyMarkup returns new SendContactReplyMarkup from InlineKeyboardMarkup.
func NewReplyKeyboardMarkupSendContactReplyMarkup ¶
func NewReplyKeyboardMarkupSendContactReplyMarkup(v ReplyKeyboardMarkup) SendContactReplyMarkup
NewReplyKeyboardMarkupSendContactReplyMarkup returns new SendContactReplyMarkup from ReplyKeyboardMarkup.
func NewReplyKeyboardRemoveSendContactReplyMarkup ¶
func NewReplyKeyboardRemoveSendContactReplyMarkup(v ReplyKeyboardRemove) SendContactReplyMarkup
NewReplyKeyboardRemoveSendContactReplyMarkup returns new SendContactReplyMarkup from ReplyKeyboardRemove.
func (*SendContactReplyMarkup) Decode ¶
func (s *SendContactReplyMarkup) Decode(d *jx.Decoder) error
Decode decodes SendContactReplyMarkup from json.
func (SendContactReplyMarkup) Encode ¶
func (s SendContactReplyMarkup) Encode(e *jx.Encoder)
Encode encodes SendContactReplyMarkup as json.
func (SendContactReplyMarkup) GetForceReply ¶
func (s SendContactReplyMarkup) GetForceReply() (v ForceReply, ok bool)
GetForceReply returns ForceReply and true boolean if SendContactReplyMarkup is ForceReply.
func (SendContactReplyMarkup) GetInlineKeyboardMarkup ¶
func (s SendContactReplyMarkup) GetInlineKeyboardMarkup() (v InlineKeyboardMarkup, ok bool)
GetInlineKeyboardMarkup returns InlineKeyboardMarkup and true boolean if SendContactReplyMarkup is InlineKeyboardMarkup.
func (SendContactReplyMarkup) GetReplyKeyboardMarkup ¶
func (s SendContactReplyMarkup) GetReplyKeyboardMarkup() (v ReplyKeyboardMarkup, ok bool)
GetReplyKeyboardMarkup returns ReplyKeyboardMarkup and true boolean if SendContactReplyMarkup is ReplyKeyboardMarkup.
func (SendContactReplyMarkup) GetReplyKeyboardRemove ¶
func (s SendContactReplyMarkup) GetReplyKeyboardRemove() (v ReplyKeyboardRemove, ok bool)
GetReplyKeyboardRemove returns ReplyKeyboardRemove and true boolean if SendContactReplyMarkup is ReplyKeyboardRemove.
func (SendContactReplyMarkup) IsForceReply ¶
func (s SendContactReplyMarkup) IsForceReply() bool
IsForceReply reports whether SendContactReplyMarkup is ForceReply.
func (SendContactReplyMarkup) IsInlineKeyboardMarkup ¶
func (s SendContactReplyMarkup) IsInlineKeyboardMarkup() bool
IsInlineKeyboardMarkup reports whether SendContactReplyMarkup is InlineKeyboardMarkup.
func (SendContactReplyMarkup) IsReplyKeyboardMarkup ¶
func (s SendContactReplyMarkup) IsReplyKeyboardMarkup() bool
IsReplyKeyboardMarkup reports whether SendContactReplyMarkup is ReplyKeyboardMarkup.
func (SendContactReplyMarkup) IsReplyKeyboardRemove ¶
func (s SendContactReplyMarkup) IsReplyKeyboardRemove() bool
IsReplyKeyboardRemove reports whether SendContactReplyMarkup is ReplyKeyboardRemove.
func (SendContactReplyMarkup) MarshalJSON ¶
func (s SendContactReplyMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SendContactReplyMarkup) SetFake ¶
func (s *SendContactReplyMarkup) SetFake()
SetFake set fake values.
func (*SendContactReplyMarkup) SetForceReply ¶
func (s *SendContactReplyMarkup) SetForceReply(v ForceReply)
SetForceReply sets SendContactReplyMarkup to ForceReply.
func (*SendContactReplyMarkup) SetInlineKeyboardMarkup ¶
func (s *SendContactReplyMarkup) SetInlineKeyboardMarkup(v InlineKeyboardMarkup)
SetInlineKeyboardMarkup sets SendContactReplyMarkup to InlineKeyboardMarkup.
func (*SendContactReplyMarkup) SetReplyKeyboardMarkup ¶
func (s *SendContactReplyMarkup) SetReplyKeyboardMarkup(v ReplyKeyboardMarkup)
SetReplyKeyboardMarkup sets SendContactReplyMarkup to ReplyKeyboardMarkup.
func (*SendContactReplyMarkup) SetReplyKeyboardRemove ¶
func (s *SendContactReplyMarkup) SetReplyKeyboardRemove(v ReplyKeyboardRemove)
SetReplyKeyboardRemove sets SendContactReplyMarkup to ReplyKeyboardRemove.
func (*SendContactReplyMarkup) UnmarshalJSON ¶
func (s *SendContactReplyMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (SendContactReplyMarkup) Validate ¶
func (s SendContactReplyMarkup) Validate() error
type SendContactReplyMarkupType ¶
type SendContactReplyMarkupType string
SendContactReplyMarkupType is oneOf type of SendContactReplyMarkup.
const ( InlineKeyboardMarkupSendContactReplyMarkup SendContactReplyMarkupType = "InlineKeyboardMarkup" ReplyKeyboardMarkupSendContactReplyMarkup SendContactReplyMarkupType = "ReplyKeyboardMarkup" ReplyKeyboardRemoveSendContactReplyMarkup SendContactReplyMarkupType = "ReplyKeyboardRemove" ForceReplySendContactReplyMarkup SendContactReplyMarkupType = "ForceReply" )
Possible values for SendContactReplyMarkupType.
type SendDice ¶
type SendDice struct { ChatID ID `json:"chat_id"` // Emoji on which the dice throw animation is based. Currently, must be one of “”, “”, “”, // “”, “”, or “”. Dice can have values 1-6 for “”, “” and “”, values 1-5 for // “” and “”, and values 1-64 for “”. Defaults to “”. Emoji OptString `json:"emoji"` // Sends the message silently. Users will receive a notification with no sound. DisableNotification OptBool `json:"disable_notification"` // If the message is a reply, ID of the original message. ReplyToMessageID OptInt `json:"reply_to_message_id"` // Pass True, if the message should be sent even if the specified replied-to message is not found. AllowSendingWithoutReply OptBool `json:"allow_sending_without_reply"` // Additional interface options. A JSON-serialized object for an inline keyboard, custom reply // keyboard, instructions to remove reply keyboard or to force a reply from the user. ReplyMarkup OptSendDiceReplyMarkup `json:"reply_markup"` }
Input for sendDice. Ref: #/components/schemas/sendDice
func (*SendDice) GetAllowSendingWithoutReply ¶
GetAllowSendingWithoutReply returns the value of AllowSendingWithoutReply.
func (*SendDice) GetDisableNotification ¶
GetDisableNotification returns the value of DisableNotification.
func (*SendDice) GetReplyMarkup ¶
func (s *SendDice) GetReplyMarkup() OptSendDiceReplyMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*SendDice) GetReplyToMessageID ¶
GetReplyToMessageID returns the value of ReplyToMessageID.
func (*SendDice) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*SendDice) SetAllowSendingWithoutReply ¶
SetAllowSendingWithoutReply sets the value of AllowSendingWithoutReply.
func (*SendDice) SetDisableNotification ¶
SetDisableNotification sets the value of DisableNotification.
func (*SendDice) SetReplyMarkup ¶
func (s *SendDice) SetReplyMarkup(val OptSendDiceReplyMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*SendDice) SetReplyToMessageID ¶
SetReplyToMessageID sets the value of ReplyToMessageID.
func (*SendDice) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type SendDiceReplyMarkup ¶
type SendDiceReplyMarkup struct { Type SendDiceReplyMarkupType // switch on this field InlineKeyboardMarkup InlineKeyboardMarkup ReplyKeyboardMarkup ReplyKeyboardMarkup ReplyKeyboardRemove ReplyKeyboardRemove ForceReply ForceReply }
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. SendDiceReplyMarkup represents sum type.
func NewForceReplySendDiceReplyMarkup ¶
func NewForceReplySendDiceReplyMarkup(v ForceReply) SendDiceReplyMarkup
NewForceReplySendDiceReplyMarkup returns new SendDiceReplyMarkup from ForceReply.
func NewInlineKeyboardMarkupSendDiceReplyMarkup ¶
func NewInlineKeyboardMarkupSendDiceReplyMarkup(v InlineKeyboardMarkup) SendDiceReplyMarkup
NewInlineKeyboardMarkupSendDiceReplyMarkup returns new SendDiceReplyMarkup from InlineKeyboardMarkup.
func NewReplyKeyboardMarkupSendDiceReplyMarkup ¶
func NewReplyKeyboardMarkupSendDiceReplyMarkup(v ReplyKeyboardMarkup) SendDiceReplyMarkup
NewReplyKeyboardMarkupSendDiceReplyMarkup returns new SendDiceReplyMarkup from ReplyKeyboardMarkup.
func NewReplyKeyboardRemoveSendDiceReplyMarkup ¶
func NewReplyKeyboardRemoveSendDiceReplyMarkup(v ReplyKeyboardRemove) SendDiceReplyMarkup
NewReplyKeyboardRemoveSendDiceReplyMarkup returns new SendDiceReplyMarkup from ReplyKeyboardRemove.
func (*SendDiceReplyMarkup) Decode ¶
func (s *SendDiceReplyMarkup) Decode(d *jx.Decoder) error
Decode decodes SendDiceReplyMarkup from json.
func (SendDiceReplyMarkup) Encode ¶
func (s SendDiceReplyMarkup) Encode(e *jx.Encoder)
Encode encodes SendDiceReplyMarkup as json.
func (SendDiceReplyMarkup) GetForceReply ¶
func (s SendDiceReplyMarkup) GetForceReply() (v ForceReply, ok bool)
GetForceReply returns ForceReply and true boolean if SendDiceReplyMarkup is ForceReply.
func (SendDiceReplyMarkup) GetInlineKeyboardMarkup ¶
func (s SendDiceReplyMarkup) GetInlineKeyboardMarkup() (v InlineKeyboardMarkup, ok bool)
GetInlineKeyboardMarkup returns InlineKeyboardMarkup and true boolean if SendDiceReplyMarkup is InlineKeyboardMarkup.
func (SendDiceReplyMarkup) GetReplyKeyboardMarkup ¶
func (s SendDiceReplyMarkup) GetReplyKeyboardMarkup() (v ReplyKeyboardMarkup, ok bool)
GetReplyKeyboardMarkup returns ReplyKeyboardMarkup and true boolean if SendDiceReplyMarkup is ReplyKeyboardMarkup.
func (SendDiceReplyMarkup) GetReplyKeyboardRemove ¶
func (s SendDiceReplyMarkup) GetReplyKeyboardRemove() (v ReplyKeyboardRemove, ok bool)
GetReplyKeyboardRemove returns ReplyKeyboardRemove and true boolean if SendDiceReplyMarkup is ReplyKeyboardRemove.
func (SendDiceReplyMarkup) IsForceReply ¶
func (s SendDiceReplyMarkup) IsForceReply() bool
IsForceReply reports whether SendDiceReplyMarkup is ForceReply.
func (SendDiceReplyMarkup) IsInlineKeyboardMarkup ¶
func (s SendDiceReplyMarkup) IsInlineKeyboardMarkup() bool
IsInlineKeyboardMarkup reports whether SendDiceReplyMarkup is InlineKeyboardMarkup.
func (SendDiceReplyMarkup) IsReplyKeyboardMarkup ¶
func (s SendDiceReplyMarkup) IsReplyKeyboardMarkup() bool
IsReplyKeyboardMarkup reports whether SendDiceReplyMarkup is ReplyKeyboardMarkup.
func (SendDiceReplyMarkup) IsReplyKeyboardRemove ¶
func (s SendDiceReplyMarkup) IsReplyKeyboardRemove() bool
IsReplyKeyboardRemove reports whether SendDiceReplyMarkup is ReplyKeyboardRemove.
func (SendDiceReplyMarkup) MarshalJSON ¶
func (s SendDiceReplyMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SendDiceReplyMarkup) SetFake ¶
func (s *SendDiceReplyMarkup) SetFake()
SetFake set fake values.
func (*SendDiceReplyMarkup) SetForceReply ¶
func (s *SendDiceReplyMarkup) SetForceReply(v ForceReply)
SetForceReply sets SendDiceReplyMarkup to ForceReply.
func (*SendDiceReplyMarkup) SetInlineKeyboardMarkup ¶
func (s *SendDiceReplyMarkup) SetInlineKeyboardMarkup(v InlineKeyboardMarkup)
SetInlineKeyboardMarkup sets SendDiceReplyMarkup to InlineKeyboardMarkup.
func (*SendDiceReplyMarkup) SetReplyKeyboardMarkup ¶
func (s *SendDiceReplyMarkup) SetReplyKeyboardMarkup(v ReplyKeyboardMarkup)
SetReplyKeyboardMarkup sets SendDiceReplyMarkup to ReplyKeyboardMarkup.
func (*SendDiceReplyMarkup) SetReplyKeyboardRemove ¶
func (s *SendDiceReplyMarkup) SetReplyKeyboardRemove(v ReplyKeyboardRemove)
SetReplyKeyboardRemove sets SendDiceReplyMarkup to ReplyKeyboardRemove.
func (*SendDiceReplyMarkup) UnmarshalJSON ¶
func (s *SendDiceReplyMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (SendDiceReplyMarkup) Validate ¶
func (s SendDiceReplyMarkup) Validate() error
type SendDiceReplyMarkupType ¶
type SendDiceReplyMarkupType string
SendDiceReplyMarkupType is oneOf type of SendDiceReplyMarkup.
const ( InlineKeyboardMarkupSendDiceReplyMarkup SendDiceReplyMarkupType = "InlineKeyboardMarkup" ReplyKeyboardMarkupSendDiceReplyMarkup SendDiceReplyMarkupType = "ReplyKeyboardMarkup" ReplyKeyboardRemoveSendDiceReplyMarkup SendDiceReplyMarkupType = "ReplyKeyboardRemove" ForceReplySendDiceReplyMarkup SendDiceReplyMarkupType = "ForceReply" )
Possible values for SendDiceReplyMarkupType.
type SendDocument ¶
type SendDocument struct { ChatID ID `json:"chat_id"` // File to send. Pass a file_id as String to send a file that exists on the Telegram servers // (recommended), pass an HTTP URL as a String for Telegram to get a file from the Internet, or // upload a new one using multipart/form-data. More info on Sending Files ». Document string `json:"document"` // Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported // server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's // width and height should not exceed 320. Ignored if the file is not uploaded using // multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can // pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data // under <file_attach_name>. More info on Sending Files ». Thumb OptString `json:"thumb"` // Document caption (may also be used when resending documents by file_id), 0-1024 characters after // entities parsing. Caption OptString `json:"caption"` // Mode for parsing entities in the document caption. See formatting options for more details. ParseMode OptString `json:"parse_mode"` // A JSON-serialized list of special entities that appear in the caption, which can be specified // instead of parse_mode. CaptionEntities []MessageEntity `json:"caption_entities"` // Disables automatic server-side content type detection for files uploaded using multipart/form-data. DisableContentTypeDetection OptBool `json:"disable_content_type_detection"` // Sends the message silently. Users will receive a notification with no sound. DisableNotification OptBool `json:"disable_notification"` // If the message is a reply, ID of the original message. ReplyToMessageID OptInt `json:"reply_to_message_id"` // Pass True, if the message should be sent even if the specified replied-to message is not found. AllowSendingWithoutReply OptBool `json:"allow_sending_without_reply"` // Additional interface options. A JSON-serialized object for an inline keyboard, custom reply // keyboard, instructions to remove reply keyboard or to force a reply from the user. ReplyMarkup OptSendDocumentReplyMarkup `json:"reply_markup"` }
Input for sendDocument. Ref: #/components/schemas/sendDocument
func (*SendDocument) Decode ¶
func (s *SendDocument) Decode(d *jx.Decoder) error
Decode decodes SendDocument from json.
func (*SendDocument) Encode ¶
func (s *SendDocument) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SendDocument) GetAllowSendingWithoutReply ¶
func (s *SendDocument) GetAllowSendingWithoutReply() OptBool
GetAllowSendingWithoutReply returns the value of AllowSendingWithoutReply.
func (*SendDocument) GetCaption ¶
func (s *SendDocument) GetCaption() OptString
GetCaption returns the value of Caption.
func (*SendDocument) GetCaptionEntities ¶
func (s *SendDocument) GetCaptionEntities() []MessageEntity
GetCaptionEntities returns the value of CaptionEntities.
func (*SendDocument) GetChatID ¶
func (s *SendDocument) GetChatID() ID
GetChatID returns the value of ChatID.
func (*SendDocument) GetDisableContentTypeDetection ¶
func (s *SendDocument) GetDisableContentTypeDetection() OptBool
GetDisableContentTypeDetection returns the value of DisableContentTypeDetection.
func (*SendDocument) GetDisableNotification ¶
func (s *SendDocument) GetDisableNotification() OptBool
GetDisableNotification returns the value of DisableNotification.
func (*SendDocument) GetDocument ¶
func (s *SendDocument) GetDocument() string
GetDocument returns the value of Document.
func (*SendDocument) GetParseMode ¶
func (s *SendDocument) GetParseMode() OptString
GetParseMode returns the value of ParseMode.
func (*SendDocument) GetReplyMarkup ¶
func (s *SendDocument) GetReplyMarkup() OptSendDocumentReplyMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*SendDocument) GetReplyToMessageID ¶
func (s *SendDocument) GetReplyToMessageID() OptInt
GetReplyToMessageID returns the value of ReplyToMessageID.
func (*SendDocument) GetThumb ¶
func (s *SendDocument) GetThumb() OptString
GetThumb returns the value of Thumb.
func (*SendDocument) MarshalJSON ¶
func (s *SendDocument) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SendDocument) SetAllowSendingWithoutReply ¶
func (s *SendDocument) SetAllowSendingWithoutReply(val OptBool)
SetAllowSendingWithoutReply sets the value of AllowSendingWithoutReply.
func (*SendDocument) SetCaption ¶
func (s *SendDocument) SetCaption(val OptString)
SetCaption sets the value of Caption.
func (*SendDocument) SetCaptionEntities ¶
func (s *SendDocument) SetCaptionEntities(val []MessageEntity)
SetCaptionEntities sets the value of CaptionEntities.
func (*SendDocument) SetChatID ¶
func (s *SendDocument) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*SendDocument) SetDisableContentTypeDetection ¶
func (s *SendDocument) SetDisableContentTypeDetection(val OptBool)
SetDisableContentTypeDetection sets the value of DisableContentTypeDetection.
func (*SendDocument) SetDisableNotification ¶
func (s *SendDocument) SetDisableNotification(val OptBool)
SetDisableNotification sets the value of DisableNotification.
func (*SendDocument) SetDocument ¶
func (s *SendDocument) SetDocument(val string)
SetDocument sets the value of Document.
func (*SendDocument) SetParseMode ¶
func (s *SendDocument) SetParseMode(val OptString)
SetParseMode sets the value of ParseMode.
func (*SendDocument) SetReplyMarkup ¶
func (s *SendDocument) SetReplyMarkup(val OptSendDocumentReplyMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*SendDocument) SetReplyToMessageID ¶
func (s *SendDocument) SetReplyToMessageID(val OptInt)
SetReplyToMessageID sets the value of ReplyToMessageID.
func (*SendDocument) SetThumb ¶
func (s *SendDocument) SetThumb(val OptString)
SetThumb sets the value of Thumb.
func (*SendDocument) UnmarshalJSON ¶
func (s *SendDocument) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SendDocument) Validate ¶
func (s *SendDocument) Validate() error
type SendDocumentReplyMarkup ¶
type SendDocumentReplyMarkup struct { Type SendDocumentReplyMarkupType // switch on this field InlineKeyboardMarkup InlineKeyboardMarkup ReplyKeyboardMarkup ReplyKeyboardMarkup ReplyKeyboardRemove ReplyKeyboardRemove ForceReply ForceReply }
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. SendDocumentReplyMarkup represents sum type.
func NewForceReplySendDocumentReplyMarkup ¶
func NewForceReplySendDocumentReplyMarkup(v ForceReply) SendDocumentReplyMarkup
NewForceReplySendDocumentReplyMarkup returns new SendDocumentReplyMarkup from ForceReply.
func NewInlineKeyboardMarkupSendDocumentReplyMarkup ¶
func NewInlineKeyboardMarkupSendDocumentReplyMarkup(v InlineKeyboardMarkup) SendDocumentReplyMarkup
NewInlineKeyboardMarkupSendDocumentReplyMarkup returns new SendDocumentReplyMarkup from InlineKeyboardMarkup.
func NewReplyKeyboardMarkupSendDocumentReplyMarkup ¶
func NewReplyKeyboardMarkupSendDocumentReplyMarkup(v ReplyKeyboardMarkup) SendDocumentReplyMarkup
NewReplyKeyboardMarkupSendDocumentReplyMarkup returns new SendDocumentReplyMarkup from ReplyKeyboardMarkup.
func NewReplyKeyboardRemoveSendDocumentReplyMarkup ¶
func NewReplyKeyboardRemoveSendDocumentReplyMarkup(v ReplyKeyboardRemove) SendDocumentReplyMarkup
NewReplyKeyboardRemoveSendDocumentReplyMarkup returns new SendDocumentReplyMarkup from ReplyKeyboardRemove.
func (*SendDocumentReplyMarkup) Decode ¶
func (s *SendDocumentReplyMarkup) Decode(d *jx.Decoder) error
Decode decodes SendDocumentReplyMarkup from json.
func (SendDocumentReplyMarkup) Encode ¶
func (s SendDocumentReplyMarkup) Encode(e *jx.Encoder)
Encode encodes SendDocumentReplyMarkup as json.
func (SendDocumentReplyMarkup) GetForceReply ¶
func (s SendDocumentReplyMarkup) GetForceReply() (v ForceReply, ok bool)
GetForceReply returns ForceReply and true boolean if SendDocumentReplyMarkup is ForceReply.
func (SendDocumentReplyMarkup) GetInlineKeyboardMarkup ¶
func (s SendDocumentReplyMarkup) GetInlineKeyboardMarkup() (v InlineKeyboardMarkup, ok bool)
GetInlineKeyboardMarkup returns InlineKeyboardMarkup and true boolean if SendDocumentReplyMarkup is InlineKeyboardMarkup.
func (SendDocumentReplyMarkup) GetReplyKeyboardMarkup ¶
func (s SendDocumentReplyMarkup) GetReplyKeyboardMarkup() (v ReplyKeyboardMarkup, ok bool)
GetReplyKeyboardMarkup returns ReplyKeyboardMarkup and true boolean if SendDocumentReplyMarkup is ReplyKeyboardMarkup.
func (SendDocumentReplyMarkup) GetReplyKeyboardRemove ¶
func (s SendDocumentReplyMarkup) GetReplyKeyboardRemove() (v ReplyKeyboardRemove, ok bool)
GetReplyKeyboardRemove returns ReplyKeyboardRemove and true boolean if SendDocumentReplyMarkup is ReplyKeyboardRemove.
func (SendDocumentReplyMarkup) IsForceReply ¶
func (s SendDocumentReplyMarkup) IsForceReply() bool
IsForceReply reports whether SendDocumentReplyMarkup is ForceReply.
func (SendDocumentReplyMarkup) IsInlineKeyboardMarkup ¶
func (s SendDocumentReplyMarkup) IsInlineKeyboardMarkup() bool
IsInlineKeyboardMarkup reports whether SendDocumentReplyMarkup is InlineKeyboardMarkup.
func (SendDocumentReplyMarkup) IsReplyKeyboardMarkup ¶
func (s SendDocumentReplyMarkup) IsReplyKeyboardMarkup() bool
IsReplyKeyboardMarkup reports whether SendDocumentReplyMarkup is ReplyKeyboardMarkup.
func (SendDocumentReplyMarkup) IsReplyKeyboardRemove ¶
func (s SendDocumentReplyMarkup) IsReplyKeyboardRemove() bool
IsReplyKeyboardRemove reports whether SendDocumentReplyMarkup is ReplyKeyboardRemove.
func (SendDocumentReplyMarkup) MarshalJSON ¶
func (s SendDocumentReplyMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SendDocumentReplyMarkup) SetFake ¶
func (s *SendDocumentReplyMarkup) SetFake()
SetFake set fake values.
func (*SendDocumentReplyMarkup) SetForceReply ¶
func (s *SendDocumentReplyMarkup) SetForceReply(v ForceReply)
SetForceReply sets SendDocumentReplyMarkup to ForceReply.
func (*SendDocumentReplyMarkup) SetInlineKeyboardMarkup ¶
func (s *SendDocumentReplyMarkup) SetInlineKeyboardMarkup(v InlineKeyboardMarkup)
SetInlineKeyboardMarkup sets SendDocumentReplyMarkup to InlineKeyboardMarkup.
func (*SendDocumentReplyMarkup) SetReplyKeyboardMarkup ¶
func (s *SendDocumentReplyMarkup) SetReplyKeyboardMarkup(v ReplyKeyboardMarkup)
SetReplyKeyboardMarkup sets SendDocumentReplyMarkup to ReplyKeyboardMarkup.
func (*SendDocumentReplyMarkup) SetReplyKeyboardRemove ¶
func (s *SendDocumentReplyMarkup) SetReplyKeyboardRemove(v ReplyKeyboardRemove)
SetReplyKeyboardRemove sets SendDocumentReplyMarkup to ReplyKeyboardRemove.
func (*SendDocumentReplyMarkup) UnmarshalJSON ¶
func (s *SendDocumentReplyMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (SendDocumentReplyMarkup) Validate ¶
func (s SendDocumentReplyMarkup) Validate() error
type SendDocumentReplyMarkupType ¶
type SendDocumentReplyMarkupType string
SendDocumentReplyMarkupType is oneOf type of SendDocumentReplyMarkup.
const ( InlineKeyboardMarkupSendDocumentReplyMarkup SendDocumentReplyMarkupType = "InlineKeyboardMarkup" ReplyKeyboardMarkupSendDocumentReplyMarkup SendDocumentReplyMarkupType = "ReplyKeyboardMarkup" ReplyKeyboardRemoveSendDocumentReplyMarkup SendDocumentReplyMarkupType = "ReplyKeyboardRemove" ForceReplySendDocumentReplyMarkup SendDocumentReplyMarkupType = "ForceReply" )
Possible values for SendDocumentReplyMarkupType.
type SendGame ¶
type SendGame struct { // Unique identifier for the target chat. ChatID int64 `json:"chat_id"` // Short name of the game, serves as the unique identifier for the game. Set up your games via // Botfather. GameShortName string `json:"game_short_name"` // Sends the message silently. Users will receive a notification with no sound. DisableNotification OptBool `json:"disable_notification"` // If the message is a reply, ID of the original message. ReplyToMessageID OptInt `json:"reply_to_message_id"` // Pass True, if the message should be sent even if the specified replied-to message is not found. AllowSendingWithoutReply OptBool `json:"allow_sending_without_reply"` ReplyMarkup OptInlineKeyboardMarkup `json:"reply_markup"` }
Input for sendGame. Ref: #/components/schemas/sendGame
func (*SendGame) GetAllowSendingWithoutReply ¶
GetAllowSendingWithoutReply returns the value of AllowSendingWithoutReply.
func (*SendGame) GetDisableNotification ¶
GetDisableNotification returns the value of DisableNotification.
func (*SendGame) GetGameShortName ¶
GetGameShortName returns the value of GameShortName.
func (*SendGame) GetReplyMarkup ¶
func (s *SendGame) GetReplyMarkup() OptInlineKeyboardMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*SendGame) GetReplyToMessageID ¶
GetReplyToMessageID returns the value of ReplyToMessageID.
func (*SendGame) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*SendGame) SetAllowSendingWithoutReply ¶
SetAllowSendingWithoutReply sets the value of AllowSendingWithoutReply.
func (*SendGame) SetDisableNotification ¶
SetDisableNotification sets the value of DisableNotification.
func (*SendGame) SetGameShortName ¶
SetGameShortName sets the value of GameShortName.
func (*SendGame) SetReplyMarkup ¶
func (s *SendGame) SetReplyMarkup(val OptInlineKeyboardMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*SendGame) SetReplyToMessageID ¶
SetReplyToMessageID sets the value of ReplyToMessageID.
func (*SendGame) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type SendInvoice ¶
type SendInvoice struct { ChatID ID `json:"chat_id"` // Product name, 1-32 characters. Title string `json:"title"` // Product description, 1-255 characters. Description string `json:"description"` // Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your // internal processes. Payload string `json:"payload"` // Payments provider token, obtained via Botfather. ProviderToken string `json:"provider_token"` // Three-letter ISO 4217 currency code, see more on currencies. Currency string `json:"currency"` // Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery // cost, delivery tax, bonus, etc.). Prices []LabeledPrice `json:"prices"` // The maximum accepted amount for tips in the smallest units of the currency (integer, not // float/double). For example, for a maximum tip of US$ 1.45 pass max_tip_amount = 145. See the exp // parameter in currencies.json, it shows the number of digits past the decimal point for each // currency (2 for the majority of currencies). Defaults to 0. MaxTipAmount OptInt `json:"max_tip_amount"` // A JSON-serialized array of suggested amounts of tips in the smallest units of the currency // (integer, not float/double). At most 4 suggested tip amounts can be specified. The suggested tip // amounts must be positive, passed in a strictly increased order and must not exceed max_tip_amount. SuggestedTipAmounts []int `json:"suggested_tip_amounts"` // Unique deep-linking parameter. If left empty, forwarded copies of the sent message will have a Pay // button, allowing multiple users to pay directly from the forwarded message, using the same invoice. // If non-empty, forwarded copies of the sent message will have a URL button with a deep link to the // bot (instead of a Pay button), with the value used as the start parameter. StartParameter OptString `json:"start_parameter"` // A JSON-serialized data about the invoice, which will be shared with the payment provider. A // detailed description of required fields should be provided by the payment provider. ProviderData OptString `json:"provider_data"` // URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a // service. People like it better when they see what they are paying for. PhotoURL OptURI `json:"photo_url"` // Photo size. PhotoSize OptInt `json:"photo_size"` // Photo width. PhotoWidth OptInt `json:"photo_width"` // Photo height. PhotoHeight OptInt `json:"photo_height"` // Pass True, if you require the user's full name to complete the order. NeedName OptBool `json:"need_name"` // Pass True, if you require the user's phone number to complete the order. NeedPhoneNumber OptBool `json:"need_phone_number"` // Pass True, if you require the user's email address to complete the order. NeedEmail OptBool `json:"need_email"` // Pass True, if you require the user's shipping address to complete the order. NeedShippingAddress OptBool `json:"need_shipping_address"` // Pass True, if user's phone number should be sent to provider. SendPhoneNumberToProvider OptBool `json:"send_phone_number_to_provider"` // Pass True, if user's email address should be sent to provider. SendEmailToProvider OptBool `json:"send_email_to_provider"` // Pass True, if the final price depends on the shipping method. IsFlexible OptBool `json:"is_flexible"` // Sends the message silently. Users will receive a notification with no sound. DisableNotification OptBool `json:"disable_notification"` // If the message is a reply, ID of the original message. ReplyToMessageID OptInt `json:"reply_to_message_id"` // Pass True, if the message should be sent even if the specified replied-to message is not found. AllowSendingWithoutReply OptBool `json:"allow_sending_without_reply"` ReplyMarkup OptInlineKeyboardMarkup `json:"reply_markup"` }
Input for sendInvoice. Ref: #/components/schemas/sendInvoice
func (*SendInvoice) Decode ¶
func (s *SendInvoice) Decode(d *jx.Decoder) error
Decode decodes SendInvoice from json.
func (*SendInvoice) Encode ¶
func (s *SendInvoice) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SendInvoice) GetAllowSendingWithoutReply ¶
func (s *SendInvoice) GetAllowSendingWithoutReply() OptBool
GetAllowSendingWithoutReply returns the value of AllowSendingWithoutReply.
func (*SendInvoice) GetChatID ¶
func (s *SendInvoice) GetChatID() ID
GetChatID returns the value of ChatID.
func (*SendInvoice) GetCurrency ¶
func (s *SendInvoice) GetCurrency() string
GetCurrency returns the value of Currency.
func (*SendInvoice) GetDescription ¶
func (s *SendInvoice) GetDescription() string
GetDescription returns the value of Description.
func (*SendInvoice) GetDisableNotification ¶
func (s *SendInvoice) GetDisableNotification() OptBool
GetDisableNotification returns the value of DisableNotification.
func (*SendInvoice) GetIsFlexible ¶
func (s *SendInvoice) GetIsFlexible() OptBool
GetIsFlexible returns the value of IsFlexible.
func (*SendInvoice) GetMaxTipAmount ¶
func (s *SendInvoice) GetMaxTipAmount() OptInt
GetMaxTipAmount returns the value of MaxTipAmount.
func (*SendInvoice) GetNeedEmail ¶
func (s *SendInvoice) GetNeedEmail() OptBool
GetNeedEmail returns the value of NeedEmail.
func (*SendInvoice) GetNeedName ¶
func (s *SendInvoice) GetNeedName() OptBool
GetNeedName returns the value of NeedName.
func (*SendInvoice) GetNeedPhoneNumber ¶
func (s *SendInvoice) GetNeedPhoneNumber() OptBool
GetNeedPhoneNumber returns the value of NeedPhoneNumber.
func (*SendInvoice) GetNeedShippingAddress ¶
func (s *SendInvoice) GetNeedShippingAddress() OptBool
GetNeedShippingAddress returns the value of NeedShippingAddress.
func (*SendInvoice) GetPayload ¶
func (s *SendInvoice) GetPayload() string
GetPayload returns the value of Payload.
func (*SendInvoice) GetPhotoHeight ¶
func (s *SendInvoice) GetPhotoHeight() OptInt
GetPhotoHeight returns the value of PhotoHeight.
func (*SendInvoice) GetPhotoSize ¶
func (s *SendInvoice) GetPhotoSize() OptInt
GetPhotoSize returns the value of PhotoSize.
func (*SendInvoice) GetPhotoURL ¶
func (s *SendInvoice) GetPhotoURL() OptURI
GetPhotoURL returns the value of PhotoURL.
func (*SendInvoice) GetPhotoWidth ¶
func (s *SendInvoice) GetPhotoWidth() OptInt
GetPhotoWidth returns the value of PhotoWidth.
func (*SendInvoice) GetPrices ¶
func (s *SendInvoice) GetPrices() []LabeledPrice
GetPrices returns the value of Prices.
func (*SendInvoice) GetProviderData ¶
func (s *SendInvoice) GetProviderData() OptString
GetProviderData returns the value of ProviderData.
func (*SendInvoice) GetProviderToken ¶
func (s *SendInvoice) GetProviderToken() string
GetProviderToken returns the value of ProviderToken.
func (*SendInvoice) GetReplyMarkup ¶
func (s *SendInvoice) GetReplyMarkup() OptInlineKeyboardMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*SendInvoice) GetReplyToMessageID ¶
func (s *SendInvoice) GetReplyToMessageID() OptInt
GetReplyToMessageID returns the value of ReplyToMessageID.
func (*SendInvoice) GetSendEmailToProvider ¶
func (s *SendInvoice) GetSendEmailToProvider() OptBool
GetSendEmailToProvider returns the value of SendEmailToProvider.
func (*SendInvoice) GetSendPhoneNumberToProvider ¶
func (s *SendInvoice) GetSendPhoneNumberToProvider() OptBool
GetSendPhoneNumberToProvider returns the value of SendPhoneNumberToProvider.
func (*SendInvoice) GetStartParameter ¶
func (s *SendInvoice) GetStartParameter() OptString
GetStartParameter returns the value of StartParameter.
func (*SendInvoice) GetSuggestedTipAmounts ¶
func (s *SendInvoice) GetSuggestedTipAmounts() []int
GetSuggestedTipAmounts returns the value of SuggestedTipAmounts.
func (*SendInvoice) GetTitle ¶
func (s *SendInvoice) GetTitle() string
GetTitle returns the value of Title.
func (*SendInvoice) MarshalJSON ¶
func (s *SendInvoice) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SendInvoice) SetAllowSendingWithoutReply ¶
func (s *SendInvoice) SetAllowSendingWithoutReply(val OptBool)
SetAllowSendingWithoutReply sets the value of AllowSendingWithoutReply.
func (*SendInvoice) SetChatID ¶
func (s *SendInvoice) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*SendInvoice) SetCurrency ¶
func (s *SendInvoice) SetCurrency(val string)
SetCurrency sets the value of Currency.
func (*SendInvoice) SetDescription ¶
func (s *SendInvoice) SetDescription(val string)
SetDescription sets the value of Description.
func (*SendInvoice) SetDisableNotification ¶
func (s *SendInvoice) SetDisableNotification(val OptBool)
SetDisableNotification sets the value of DisableNotification.
func (*SendInvoice) SetIsFlexible ¶
func (s *SendInvoice) SetIsFlexible(val OptBool)
SetIsFlexible sets the value of IsFlexible.
func (*SendInvoice) SetMaxTipAmount ¶
func (s *SendInvoice) SetMaxTipAmount(val OptInt)
SetMaxTipAmount sets the value of MaxTipAmount.
func (*SendInvoice) SetNeedEmail ¶
func (s *SendInvoice) SetNeedEmail(val OptBool)
SetNeedEmail sets the value of NeedEmail.
func (*SendInvoice) SetNeedName ¶
func (s *SendInvoice) SetNeedName(val OptBool)
SetNeedName sets the value of NeedName.
func (*SendInvoice) SetNeedPhoneNumber ¶
func (s *SendInvoice) SetNeedPhoneNumber(val OptBool)
SetNeedPhoneNumber sets the value of NeedPhoneNumber.
func (*SendInvoice) SetNeedShippingAddress ¶
func (s *SendInvoice) SetNeedShippingAddress(val OptBool)
SetNeedShippingAddress sets the value of NeedShippingAddress.
func (*SendInvoice) SetPayload ¶
func (s *SendInvoice) SetPayload(val string)
SetPayload sets the value of Payload.
func (*SendInvoice) SetPhotoHeight ¶
func (s *SendInvoice) SetPhotoHeight(val OptInt)
SetPhotoHeight sets the value of PhotoHeight.
func (*SendInvoice) SetPhotoSize ¶
func (s *SendInvoice) SetPhotoSize(val OptInt)
SetPhotoSize sets the value of PhotoSize.
func (*SendInvoice) SetPhotoURL ¶
func (s *SendInvoice) SetPhotoURL(val OptURI)
SetPhotoURL sets the value of PhotoURL.
func (*SendInvoice) SetPhotoWidth ¶
func (s *SendInvoice) SetPhotoWidth(val OptInt)
SetPhotoWidth sets the value of PhotoWidth.
func (*SendInvoice) SetPrices ¶
func (s *SendInvoice) SetPrices(val []LabeledPrice)
SetPrices sets the value of Prices.
func (*SendInvoice) SetProviderData ¶
func (s *SendInvoice) SetProviderData(val OptString)
SetProviderData sets the value of ProviderData.
func (*SendInvoice) SetProviderToken ¶
func (s *SendInvoice) SetProviderToken(val string)
SetProviderToken sets the value of ProviderToken.
func (*SendInvoice) SetReplyMarkup ¶
func (s *SendInvoice) SetReplyMarkup(val OptInlineKeyboardMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*SendInvoice) SetReplyToMessageID ¶
func (s *SendInvoice) SetReplyToMessageID(val OptInt)
SetReplyToMessageID sets the value of ReplyToMessageID.
func (*SendInvoice) SetSendEmailToProvider ¶
func (s *SendInvoice) SetSendEmailToProvider(val OptBool)
SetSendEmailToProvider sets the value of SendEmailToProvider.
func (*SendInvoice) SetSendPhoneNumberToProvider ¶
func (s *SendInvoice) SetSendPhoneNumberToProvider(val OptBool)
SetSendPhoneNumberToProvider sets the value of SendPhoneNumberToProvider.
func (*SendInvoice) SetStartParameter ¶
func (s *SendInvoice) SetStartParameter(val OptString)
SetStartParameter sets the value of StartParameter.
func (*SendInvoice) SetSuggestedTipAmounts ¶
func (s *SendInvoice) SetSuggestedTipAmounts(val []int)
SetSuggestedTipAmounts sets the value of SuggestedTipAmounts.
func (*SendInvoice) SetTitle ¶
func (s *SendInvoice) SetTitle(val string)
SetTitle sets the value of Title.
func (*SendInvoice) UnmarshalJSON ¶
func (s *SendInvoice) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SendInvoice) Validate ¶
func (s *SendInvoice) Validate() error
type SendLocation ¶
type SendLocation struct { ChatID ID `json:"chat_id"` // Latitude of the location. Latitude float64 `json:"latitude"` // Longitude of the location. Longitude float64 `json:"longitude"` // The radius of uncertainty for the location, measured in meters; 0-1500. HorizontalAccuracy OptFloat64 `json:"horizontal_accuracy"` // Period in seconds for which the location will be updated (see Live Locations, should be between 60 // and 86400. LivePeriod OptInt `json:"live_period"` // For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 // if specified. Heading OptInt `json:"heading"` // For live locations, a maximum distance for proximity alerts about approaching another chat member, // in meters. Must be between 1 and 100000 if specified. ProximityAlertRadius OptInt `json:"proximity_alert_radius"` // Sends the message silently. Users will receive a notification with no sound. DisableNotification OptBool `json:"disable_notification"` // If the message is a reply, ID of the original message. ReplyToMessageID OptInt `json:"reply_to_message_id"` // Pass True, if the message should be sent even if the specified replied-to message is not found. AllowSendingWithoutReply OptBool `json:"allow_sending_without_reply"` // Additional interface options. A JSON-serialized object for an inline keyboard, custom reply // keyboard, instructions to remove reply keyboard or to force a reply from the user. ReplyMarkup OptSendLocationReplyMarkup `json:"reply_markup"` }
Input for sendLocation. Ref: #/components/schemas/sendLocation
func (*SendLocation) Decode ¶
func (s *SendLocation) Decode(d *jx.Decoder) error
Decode decodes SendLocation from json.
func (*SendLocation) Encode ¶
func (s *SendLocation) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SendLocation) GetAllowSendingWithoutReply ¶
func (s *SendLocation) GetAllowSendingWithoutReply() OptBool
GetAllowSendingWithoutReply returns the value of AllowSendingWithoutReply.
func (*SendLocation) GetChatID ¶
func (s *SendLocation) GetChatID() ID
GetChatID returns the value of ChatID.
func (*SendLocation) GetDisableNotification ¶
func (s *SendLocation) GetDisableNotification() OptBool
GetDisableNotification returns the value of DisableNotification.
func (*SendLocation) GetHeading ¶
func (s *SendLocation) GetHeading() OptInt
GetHeading returns the value of Heading.
func (*SendLocation) GetHorizontalAccuracy ¶
func (s *SendLocation) GetHorizontalAccuracy() OptFloat64
GetHorizontalAccuracy returns the value of HorizontalAccuracy.
func (*SendLocation) GetLatitude ¶
func (s *SendLocation) GetLatitude() float64
GetLatitude returns the value of Latitude.
func (*SendLocation) GetLivePeriod ¶
func (s *SendLocation) GetLivePeriod() OptInt
GetLivePeriod returns the value of LivePeriod.
func (*SendLocation) GetLongitude ¶
func (s *SendLocation) GetLongitude() float64
GetLongitude returns the value of Longitude.
func (*SendLocation) GetProximityAlertRadius ¶
func (s *SendLocation) GetProximityAlertRadius() OptInt
GetProximityAlertRadius returns the value of ProximityAlertRadius.
func (*SendLocation) GetReplyMarkup ¶
func (s *SendLocation) GetReplyMarkup() OptSendLocationReplyMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*SendLocation) GetReplyToMessageID ¶
func (s *SendLocation) GetReplyToMessageID() OptInt
GetReplyToMessageID returns the value of ReplyToMessageID.
func (*SendLocation) MarshalJSON ¶
func (s *SendLocation) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SendLocation) SetAllowSendingWithoutReply ¶
func (s *SendLocation) SetAllowSendingWithoutReply(val OptBool)
SetAllowSendingWithoutReply sets the value of AllowSendingWithoutReply.
func (*SendLocation) SetChatID ¶
func (s *SendLocation) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*SendLocation) SetDisableNotification ¶
func (s *SendLocation) SetDisableNotification(val OptBool)
SetDisableNotification sets the value of DisableNotification.
func (*SendLocation) SetHeading ¶
func (s *SendLocation) SetHeading(val OptInt)
SetHeading sets the value of Heading.
func (*SendLocation) SetHorizontalAccuracy ¶
func (s *SendLocation) SetHorizontalAccuracy(val OptFloat64)
SetHorizontalAccuracy sets the value of HorizontalAccuracy.
func (*SendLocation) SetLatitude ¶
func (s *SendLocation) SetLatitude(val float64)
SetLatitude sets the value of Latitude.
func (*SendLocation) SetLivePeriod ¶
func (s *SendLocation) SetLivePeriod(val OptInt)
SetLivePeriod sets the value of LivePeriod.
func (*SendLocation) SetLongitude ¶
func (s *SendLocation) SetLongitude(val float64)
SetLongitude sets the value of Longitude.
func (*SendLocation) SetProximityAlertRadius ¶
func (s *SendLocation) SetProximityAlertRadius(val OptInt)
SetProximityAlertRadius sets the value of ProximityAlertRadius.
func (*SendLocation) SetReplyMarkup ¶
func (s *SendLocation) SetReplyMarkup(val OptSendLocationReplyMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*SendLocation) SetReplyToMessageID ¶
func (s *SendLocation) SetReplyToMessageID(val OptInt)
SetReplyToMessageID sets the value of ReplyToMessageID.
func (*SendLocation) UnmarshalJSON ¶
func (s *SendLocation) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SendLocation) Validate ¶
func (s *SendLocation) Validate() error
type SendLocationReplyMarkup ¶
type SendLocationReplyMarkup struct { Type SendLocationReplyMarkupType // switch on this field InlineKeyboardMarkup InlineKeyboardMarkup ReplyKeyboardMarkup ReplyKeyboardMarkup ReplyKeyboardRemove ReplyKeyboardRemove ForceReply ForceReply }
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. SendLocationReplyMarkup represents sum type.
func NewForceReplySendLocationReplyMarkup ¶
func NewForceReplySendLocationReplyMarkup(v ForceReply) SendLocationReplyMarkup
NewForceReplySendLocationReplyMarkup returns new SendLocationReplyMarkup from ForceReply.
func NewInlineKeyboardMarkupSendLocationReplyMarkup ¶
func NewInlineKeyboardMarkupSendLocationReplyMarkup(v InlineKeyboardMarkup) SendLocationReplyMarkup
NewInlineKeyboardMarkupSendLocationReplyMarkup returns new SendLocationReplyMarkup from InlineKeyboardMarkup.
func NewReplyKeyboardMarkupSendLocationReplyMarkup ¶
func NewReplyKeyboardMarkupSendLocationReplyMarkup(v ReplyKeyboardMarkup) SendLocationReplyMarkup
NewReplyKeyboardMarkupSendLocationReplyMarkup returns new SendLocationReplyMarkup from ReplyKeyboardMarkup.
func NewReplyKeyboardRemoveSendLocationReplyMarkup ¶
func NewReplyKeyboardRemoveSendLocationReplyMarkup(v ReplyKeyboardRemove) SendLocationReplyMarkup
NewReplyKeyboardRemoveSendLocationReplyMarkup returns new SendLocationReplyMarkup from ReplyKeyboardRemove.
func (*SendLocationReplyMarkup) Decode ¶
func (s *SendLocationReplyMarkup) Decode(d *jx.Decoder) error
Decode decodes SendLocationReplyMarkup from json.
func (SendLocationReplyMarkup) Encode ¶
func (s SendLocationReplyMarkup) Encode(e *jx.Encoder)
Encode encodes SendLocationReplyMarkup as json.
func (SendLocationReplyMarkup) GetForceReply ¶
func (s SendLocationReplyMarkup) GetForceReply() (v ForceReply, ok bool)
GetForceReply returns ForceReply and true boolean if SendLocationReplyMarkup is ForceReply.
func (SendLocationReplyMarkup) GetInlineKeyboardMarkup ¶
func (s SendLocationReplyMarkup) GetInlineKeyboardMarkup() (v InlineKeyboardMarkup, ok bool)
GetInlineKeyboardMarkup returns InlineKeyboardMarkup and true boolean if SendLocationReplyMarkup is InlineKeyboardMarkup.
func (SendLocationReplyMarkup) GetReplyKeyboardMarkup ¶
func (s SendLocationReplyMarkup) GetReplyKeyboardMarkup() (v ReplyKeyboardMarkup, ok bool)
GetReplyKeyboardMarkup returns ReplyKeyboardMarkup and true boolean if SendLocationReplyMarkup is ReplyKeyboardMarkup.
func (SendLocationReplyMarkup) GetReplyKeyboardRemove ¶
func (s SendLocationReplyMarkup) GetReplyKeyboardRemove() (v ReplyKeyboardRemove, ok bool)
GetReplyKeyboardRemove returns ReplyKeyboardRemove and true boolean if SendLocationReplyMarkup is ReplyKeyboardRemove.
func (SendLocationReplyMarkup) IsForceReply ¶
func (s SendLocationReplyMarkup) IsForceReply() bool
IsForceReply reports whether SendLocationReplyMarkup is ForceReply.
func (SendLocationReplyMarkup) IsInlineKeyboardMarkup ¶
func (s SendLocationReplyMarkup) IsInlineKeyboardMarkup() bool
IsInlineKeyboardMarkup reports whether SendLocationReplyMarkup is InlineKeyboardMarkup.
func (SendLocationReplyMarkup) IsReplyKeyboardMarkup ¶
func (s SendLocationReplyMarkup) IsReplyKeyboardMarkup() bool
IsReplyKeyboardMarkup reports whether SendLocationReplyMarkup is ReplyKeyboardMarkup.
func (SendLocationReplyMarkup) IsReplyKeyboardRemove ¶
func (s SendLocationReplyMarkup) IsReplyKeyboardRemove() bool
IsReplyKeyboardRemove reports whether SendLocationReplyMarkup is ReplyKeyboardRemove.
func (SendLocationReplyMarkup) MarshalJSON ¶
func (s SendLocationReplyMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SendLocationReplyMarkup) SetFake ¶
func (s *SendLocationReplyMarkup) SetFake()
SetFake set fake values.
func (*SendLocationReplyMarkup) SetForceReply ¶
func (s *SendLocationReplyMarkup) SetForceReply(v ForceReply)
SetForceReply sets SendLocationReplyMarkup to ForceReply.
func (*SendLocationReplyMarkup) SetInlineKeyboardMarkup ¶
func (s *SendLocationReplyMarkup) SetInlineKeyboardMarkup(v InlineKeyboardMarkup)
SetInlineKeyboardMarkup sets SendLocationReplyMarkup to InlineKeyboardMarkup.
func (*SendLocationReplyMarkup) SetReplyKeyboardMarkup ¶
func (s *SendLocationReplyMarkup) SetReplyKeyboardMarkup(v ReplyKeyboardMarkup)
SetReplyKeyboardMarkup sets SendLocationReplyMarkup to ReplyKeyboardMarkup.
func (*SendLocationReplyMarkup) SetReplyKeyboardRemove ¶
func (s *SendLocationReplyMarkup) SetReplyKeyboardRemove(v ReplyKeyboardRemove)
SetReplyKeyboardRemove sets SendLocationReplyMarkup to ReplyKeyboardRemove.
func (*SendLocationReplyMarkup) UnmarshalJSON ¶
func (s *SendLocationReplyMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (SendLocationReplyMarkup) Validate ¶
func (s SendLocationReplyMarkup) Validate() error
type SendLocationReplyMarkupType ¶
type SendLocationReplyMarkupType string
SendLocationReplyMarkupType is oneOf type of SendLocationReplyMarkup.
const ( InlineKeyboardMarkupSendLocationReplyMarkup SendLocationReplyMarkupType = "InlineKeyboardMarkup" ReplyKeyboardMarkupSendLocationReplyMarkup SendLocationReplyMarkupType = "ReplyKeyboardMarkup" ReplyKeyboardRemoveSendLocationReplyMarkup SendLocationReplyMarkupType = "ReplyKeyboardRemove" ForceReplySendLocationReplyMarkup SendLocationReplyMarkupType = "ForceReply" )
Possible values for SendLocationReplyMarkupType.
type SendMediaGroup ¶
type SendMediaGroup struct { ChatID ID `json:"chat_id"` // A JSON-serialized array describing messages to be sent, must include 2-10 items. Media []SendMediaGroupMediaItem `json:"media"` // Sends messages silently. Users will receive a notification with no sound. DisableNotification OptBool `json:"disable_notification"` // If the messages are a reply, ID of the original message. ReplyToMessageID OptInt `json:"reply_to_message_id"` // Pass True, if the message should be sent even if the specified replied-to message is not found. AllowSendingWithoutReply OptBool `json:"allow_sending_without_reply"` }
Input for sendMediaGroup. Ref: #/components/schemas/sendMediaGroup
func (*SendMediaGroup) Decode ¶
func (s *SendMediaGroup) Decode(d *jx.Decoder) error
Decode decodes SendMediaGroup from json.
func (*SendMediaGroup) Encode ¶
func (s *SendMediaGroup) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SendMediaGroup) GetAllowSendingWithoutReply ¶
func (s *SendMediaGroup) GetAllowSendingWithoutReply() OptBool
GetAllowSendingWithoutReply returns the value of AllowSendingWithoutReply.
func (*SendMediaGroup) GetChatID ¶
func (s *SendMediaGroup) GetChatID() ID
GetChatID returns the value of ChatID.
func (*SendMediaGroup) GetDisableNotification ¶
func (s *SendMediaGroup) GetDisableNotification() OptBool
GetDisableNotification returns the value of DisableNotification.
func (*SendMediaGroup) GetMedia ¶
func (s *SendMediaGroup) GetMedia() []SendMediaGroupMediaItem
GetMedia returns the value of Media.
func (*SendMediaGroup) GetReplyToMessageID ¶
func (s *SendMediaGroup) GetReplyToMessageID() OptInt
GetReplyToMessageID returns the value of ReplyToMessageID.
func (*SendMediaGroup) MarshalJSON ¶
func (s *SendMediaGroup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SendMediaGroup) SetAllowSendingWithoutReply ¶
func (s *SendMediaGroup) SetAllowSendingWithoutReply(val OptBool)
SetAllowSendingWithoutReply sets the value of AllowSendingWithoutReply.
func (*SendMediaGroup) SetChatID ¶
func (s *SendMediaGroup) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*SendMediaGroup) SetDisableNotification ¶
func (s *SendMediaGroup) SetDisableNotification(val OptBool)
SetDisableNotification sets the value of DisableNotification.
func (*SendMediaGroup) SetMedia ¶
func (s *SendMediaGroup) SetMedia(val []SendMediaGroupMediaItem)
SetMedia sets the value of Media.
func (*SendMediaGroup) SetReplyToMessageID ¶
func (s *SendMediaGroup) SetReplyToMessageID(val OptInt)
SetReplyToMessageID sets the value of ReplyToMessageID.
func (*SendMediaGroup) UnmarshalJSON ¶
func (s *SendMediaGroup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SendMediaGroup) Validate ¶
func (s *SendMediaGroup) Validate() error
type SendMediaGroupMediaItem ¶
type SendMediaGroupMediaItem struct { Type SendMediaGroupMediaItemType // switch on this field InputMediaAudio InputMediaAudio InputMediaDocument InputMediaDocument InputMediaPhoto InputMediaPhoto InputMediaVideo InputMediaVideo }
SendMediaGroupMediaItem represents sum type.
func NewInputMediaAudioSendMediaGroupMediaItem ¶
func NewInputMediaAudioSendMediaGroupMediaItem(v InputMediaAudio) SendMediaGroupMediaItem
NewInputMediaAudioSendMediaGroupMediaItem returns new SendMediaGroupMediaItem from InputMediaAudio.
func NewInputMediaDocumentSendMediaGroupMediaItem ¶
func NewInputMediaDocumentSendMediaGroupMediaItem(v InputMediaDocument) SendMediaGroupMediaItem
NewInputMediaDocumentSendMediaGroupMediaItem returns new SendMediaGroupMediaItem from InputMediaDocument.
func NewInputMediaPhotoSendMediaGroupMediaItem ¶
func NewInputMediaPhotoSendMediaGroupMediaItem(v InputMediaPhoto) SendMediaGroupMediaItem
NewInputMediaPhotoSendMediaGroupMediaItem returns new SendMediaGroupMediaItem from InputMediaPhoto.
func NewInputMediaVideoSendMediaGroupMediaItem ¶
func NewInputMediaVideoSendMediaGroupMediaItem(v InputMediaVideo) SendMediaGroupMediaItem
NewInputMediaVideoSendMediaGroupMediaItem returns new SendMediaGroupMediaItem from InputMediaVideo.
func (*SendMediaGroupMediaItem) Decode ¶
func (s *SendMediaGroupMediaItem) Decode(d *jx.Decoder) error
Decode decodes SendMediaGroupMediaItem from json.
func (SendMediaGroupMediaItem) Encode ¶
func (s SendMediaGroupMediaItem) Encode(e *jx.Encoder)
Encode encodes SendMediaGroupMediaItem as json.
func (SendMediaGroupMediaItem) GetInputMediaAudio ¶
func (s SendMediaGroupMediaItem) GetInputMediaAudio() (v InputMediaAudio, ok bool)
GetInputMediaAudio returns InputMediaAudio and true boolean if SendMediaGroupMediaItem is InputMediaAudio.
func (SendMediaGroupMediaItem) GetInputMediaDocument ¶
func (s SendMediaGroupMediaItem) GetInputMediaDocument() (v InputMediaDocument, ok bool)
GetInputMediaDocument returns InputMediaDocument and true boolean if SendMediaGroupMediaItem is InputMediaDocument.
func (SendMediaGroupMediaItem) GetInputMediaPhoto ¶
func (s SendMediaGroupMediaItem) GetInputMediaPhoto() (v InputMediaPhoto, ok bool)
GetInputMediaPhoto returns InputMediaPhoto and true boolean if SendMediaGroupMediaItem is InputMediaPhoto.
func (SendMediaGroupMediaItem) GetInputMediaVideo ¶
func (s SendMediaGroupMediaItem) GetInputMediaVideo() (v InputMediaVideo, ok bool)
GetInputMediaVideo returns InputMediaVideo and true boolean if SendMediaGroupMediaItem is InputMediaVideo.
func (SendMediaGroupMediaItem) IsInputMediaAudio ¶
func (s SendMediaGroupMediaItem) IsInputMediaAudio() bool
IsInputMediaAudio reports whether SendMediaGroupMediaItem is InputMediaAudio.
func (SendMediaGroupMediaItem) IsInputMediaDocument ¶
func (s SendMediaGroupMediaItem) IsInputMediaDocument() bool
IsInputMediaDocument reports whether SendMediaGroupMediaItem is InputMediaDocument.
func (SendMediaGroupMediaItem) IsInputMediaPhoto ¶
func (s SendMediaGroupMediaItem) IsInputMediaPhoto() bool
IsInputMediaPhoto reports whether SendMediaGroupMediaItem is InputMediaPhoto.
func (SendMediaGroupMediaItem) IsInputMediaVideo ¶
func (s SendMediaGroupMediaItem) IsInputMediaVideo() bool
IsInputMediaVideo reports whether SendMediaGroupMediaItem is InputMediaVideo.
func (SendMediaGroupMediaItem) MarshalJSON ¶
func (s SendMediaGroupMediaItem) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SendMediaGroupMediaItem) SetFake ¶
func (s *SendMediaGroupMediaItem) SetFake()
SetFake set fake values.
func (*SendMediaGroupMediaItem) SetInputMediaAudio ¶
func (s *SendMediaGroupMediaItem) SetInputMediaAudio(v InputMediaAudio)
SetInputMediaAudio sets SendMediaGroupMediaItem to InputMediaAudio.
func (*SendMediaGroupMediaItem) SetInputMediaDocument ¶
func (s *SendMediaGroupMediaItem) SetInputMediaDocument(v InputMediaDocument)
SetInputMediaDocument sets SendMediaGroupMediaItem to InputMediaDocument.
func (*SendMediaGroupMediaItem) SetInputMediaPhoto ¶
func (s *SendMediaGroupMediaItem) SetInputMediaPhoto(v InputMediaPhoto)
SetInputMediaPhoto sets SendMediaGroupMediaItem to InputMediaPhoto.
func (*SendMediaGroupMediaItem) SetInputMediaVideo ¶
func (s *SendMediaGroupMediaItem) SetInputMediaVideo(v InputMediaVideo)
SetInputMediaVideo sets SendMediaGroupMediaItem to InputMediaVideo.
func (*SendMediaGroupMediaItem) UnmarshalJSON ¶
func (s *SendMediaGroupMediaItem) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (SendMediaGroupMediaItem) Validate ¶
func (s SendMediaGroupMediaItem) Validate() error
type SendMediaGroupMediaItemType ¶
type SendMediaGroupMediaItemType string
SendMediaGroupMediaItemType is oneOf type of SendMediaGroupMediaItem.
const ( InputMediaAudioSendMediaGroupMediaItem SendMediaGroupMediaItemType = "audio" InputMediaDocumentSendMediaGroupMediaItem SendMediaGroupMediaItemType = "document" InputMediaPhotoSendMediaGroupMediaItem SendMediaGroupMediaItemType = "photo" InputMediaVideoSendMediaGroupMediaItem SendMediaGroupMediaItemType = "video" )
Possible values for SendMediaGroupMediaItemType.
type SendMessage ¶
type SendMessage struct { ChatID ID `json:"chat_id"` // Text of the message to be sent, 1-4096 characters after entities parsing. Text string `json:"text"` // Mode for parsing entities in the message text. See formatting options for more details. ParseMode OptString `json:"parse_mode"` // A JSON-serialized list of special entities that appear in message text, which can be specified // instead of parse_mode. Entities []MessageEntity `json:"entities"` // Disables link previews for links in this message. DisableWebPagePreview OptBool `json:"disable_web_page_preview"` // Sends the message silently. Users will receive a notification with no sound. DisableNotification OptBool `json:"disable_notification"` // If the message is a reply, ID of the original message. ReplyToMessageID OptInt `json:"reply_to_message_id"` // Pass True, if the message should be sent even if the specified replied-to message is not found. AllowSendingWithoutReply OptBool `json:"allow_sending_without_reply"` // Additional interface options. A JSON-serialized object for an inline keyboard, custom reply // keyboard, instructions to remove reply keyboard or to force a reply from the user. ReplyMarkup OptSendMessageReplyMarkup `json:"reply_markup"` }
Input for sendMessage. Ref: #/components/schemas/sendMessage
func (*SendMessage) Decode ¶
func (s *SendMessage) Decode(d *jx.Decoder) error
Decode decodes SendMessage from json.
func (*SendMessage) Encode ¶
func (s *SendMessage) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SendMessage) GetAllowSendingWithoutReply ¶
func (s *SendMessage) GetAllowSendingWithoutReply() OptBool
GetAllowSendingWithoutReply returns the value of AllowSendingWithoutReply.
func (*SendMessage) GetChatID ¶
func (s *SendMessage) GetChatID() ID
GetChatID returns the value of ChatID.
func (*SendMessage) GetDisableNotification ¶
func (s *SendMessage) GetDisableNotification() OptBool
GetDisableNotification returns the value of DisableNotification.
func (*SendMessage) GetDisableWebPagePreview ¶
func (s *SendMessage) GetDisableWebPagePreview() OptBool
GetDisableWebPagePreview returns the value of DisableWebPagePreview.
func (*SendMessage) GetEntities ¶
func (s *SendMessage) GetEntities() []MessageEntity
GetEntities returns the value of Entities.
func (*SendMessage) GetParseMode ¶
func (s *SendMessage) GetParseMode() OptString
GetParseMode returns the value of ParseMode.
func (*SendMessage) GetReplyMarkup ¶
func (s *SendMessage) GetReplyMarkup() OptSendMessageReplyMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*SendMessage) GetReplyToMessageID ¶
func (s *SendMessage) GetReplyToMessageID() OptInt
GetReplyToMessageID returns the value of ReplyToMessageID.
func (*SendMessage) GetText ¶
func (s *SendMessage) GetText() string
GetText returns the value of Text.
func (*SendMessage) MarshalJSON ¶
func (s *SendMessage) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SendMessage) SetAllowSendingWithoutReply ¶
func (s *SendMessage) SetAllowSendingWithoutReply(val OptBool)
SetAllowSendingWithoutReply sets the value of AllowSendingWithoutReply.
func (*SendMessage) SetChatID ¶
func (s *SendMessage) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*SendMessage) SetDisableNotification ¶
func (s *SendMessage) SetDisableNotification(val OptBool)
SetDisableNotification sets the value of DisableNotification.
func (*SendMessage) SetDisableWebPagePreview ¶
func (s *SendMessage) SetDisableWebPagePreview(val OptBool)
SetDisableWebPagePreview sets the value of DisableWebPagePreview.
func (*SendMessage) SetEntities ¶
func (s *SendMessage) SetEntities(val []MessageEntity)
SetEntities sets the value of Entities.
func (*SendMessage) SetParseMode ¶
func (s *SendMessage) SetParseMode(val OptString)
SetParseMode sets the value of ParseMode.
func (*SendMessage) SetReplyMarkup ¶
func (s *SendMessage) SetReplyMarkup(val OptSendMessageReplyMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*SendMessage) SetReplyToMessageID ¶
func (s *SendMessage) SetReplyToMessageID(val OptInt)
SetReplyToMessageID sets the value of ReplyToMessageID.
func (*SendMessage) SetText ¶
func (s *SendMessage) SetText(val string)
SetText sets the value of Text.
func (*SendMessage) UnmarshalJSON ¶
func (s *SendMessage) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SendMessage) Validate ¶
func (s *SendMessage) Validate() error
type SendMessageReplyMarkup ¶
type SendMessageReplyMarkup struct { Type SendMessageReplyMarkupType // switch on this field InlineKeyboardMarkup InlineKeyboardMarkup ReplyKeyboardMarkup ReplyKeyboardMarkup ReplyKeyboardRemove ReplyKeyboardRemove ForceReply ForceReply }
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. SendMessageReplyMarkup represents sum type.
func NewForceReplySendMessageReplyMarkup ¶
func NewForceReplySendMessageReplyMarkup(v ForceReply) SendMessageReplyMarkup
NewForceReplySendMessageReplyMarkup returns new SendMessageReplyMarkup from ForceReply.
func NewInlineKeyboardMarkupSendMessageReplyMarkup ¶
func NewInlineKeyboardMarkupSendMessageReplyMarkup(v InlineKeyboardMarkup) SendMessageReplyMarkup
NewInlineKeyboardMarkupSendMessageReplyMarkup returns new SendMessageReplyMarkup from InlineKeyboardMarkup.
func NewReplyKeyboardMarkupSendMessageReplyMarkup ¶
func NewReplyKeyboardMarkupSendMessageReplyMarkup(v ReplyKeyboardMarkup) SendMessageReplyMarkup
NewReplyKeyboardMarkupSendMessageReplyMarkup returns new SendMessageReplyMarkup from ReplyKeyboardMarkup.
func NewReplyKeyboardRemoveSendMessageReplyMarkup ¶
func NewReplyKeyboardRemoveSendMessageReplyMarkup(v ReplyKeyboardRemove) SendMessageReplyMarkup
NewReplyKeyboardRemoveSendMessageReplyMarkup returns new SendMessageReplyMarkup from ReplyKeyboardRemove.
func (*SendMessageReplyMarkup) Decode ¶
func (s *SendMessageReplyMarkup) Decode(d *jx.Decoder) error
Decode decodes SendMessageReplyMarkup from json.
func (SendMessageReplyMarkup) Encode ¶
func (s SendMessageReplyMarkup) Encode(e *jx.Encoder)
Encode encodes SendMessageReplyMarkup as json.
func (SendMessageReplyMarkup) GetForceReply ¶
func (s SendMessageReplyMarkup) GetForceReply() (v ForceReply, ok bool)
GetForceReply returns ForceReply and true boolean if SendMessageReplyMarkup is ForceReply.
func (SendMessageReplyMarkup) GetInlineKeyboardMarkup ¶
func (s SendMessageReplyMarkup) GetInlineKeyboardMarkup() (v InlineKeyboardMarkup, ok bool)
GetInlineKeyboardMarkup returns InlineKeyboardMarkup and true boolean if SendMessageReplyMarkup is InlineKeyboardMarkup.
func (SendMessageReplyMarkup) GetReplyKeyboardMarkup ¶
func (s SendMessageReplyMarkup) GetReplyKeyboardMarkup() (v ReplyKeyboardMarkup, ok bool)
GetReplyKeyboardMarkup returns ReplyKeyboardMarkup and true boolean if SendMessageReplyMarkup is ReplyKeyboardMarkup.
func (SendMessageReplyMarkup) GetReplyKeyboardRemove ¶
func (s SendMessageReplyMarkup) GetReplyKeyboardRemove() (v ReplyKeyboardRemove, ok bool)
GetReplyKeyboardRemove returns ReplyKeyboardRemove and true boolean if SendMessageReplyMarkup is ReplyKeyboardRemove.
func (SendMessageReplyMarkup) IsForceReply ¶
func (s SendMessageReplyMarkup) IsForceReply() bool
IsForceReply reports whether SendMessageReplyMarkup is ForceReply.
func (SendMessageReplyMarkup) IsInlineKeyboardMarkup ¶
func (s SendMessageReplyMarkup) IsInlineKeyboardMarkup() bool
IsInlineKeyboardMarkup reports whether SendMessageReplyMarkup is InlineKeyboardMarkup.
func (SendMessageReplyMarkup) IsReplyKeyboardMarkup ¶
func (s SendMessageReplyMarkup) IsReplyKeyboardMarkup() bool
IsReplyKeyboardMarkup reports whether SendMessageReplyMarkup is ReplyKeyboardMarkup.
func (SendMessageReplyMarkup) IsReplyKeyboardRemove ¶
func (s SendMessageReplyMarkup) IsReplyKeyboardRemove() bool
IsReplyKeyboardRemove reports whether SendMessageReplyMarkup is ReplyKeyboardRemove.
func (SendMessageReplyMarkup) MarshalJSON ¶
func (s SendMessageReplyMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SendMessageReplyMarkup) SetFake ¶
func (s *SendMessageReplyMarkup) SetFake()
SetFake set fake values.
func (*SendMessageReplyMarkup) SetForceReply ¶
func (s *SendMessageReplyMarkup) SetForceReply(v ForceReply)
SetForceReply sets SendMessageReplyMarkup to ForceReply.
func (*SendMessageReplyMarkup) SetInlineKeyboardMarkup ¶
func (s *SendMessageReplyMarkup) SetInlineKeyboardMarkup(v InlineKeyboardMarkup)
SetInlineKeyboardMarkup sets SendMessageReplyMarkup to InlineKeyboardMarkup.
func (*SendMessageReplyMarkup) SetReplyKeyboardMarkup ¶
func (s *SendMessageReplyMarkup) SetReplyKeyboardMarkup(v ReplyKeyboardMarkup)
SetReplyKeyboardMarkup sets SendMessageReplyMarkup to ReplyKeyboardMarkup.
func (*SendMessageReplyMarkup) SetReplyKeyboardRemove ¶
func (s *SendMessageReplyMarkup) SetReplyKeyboardRemove(v ReplyKeyboardRemove)
SetReplyKeyboardRemove sets SendMessageReplyMarkup to ReplyKeyboardRemove.
func (*SendMessageReplyMarkup) UnmarshalJSON ¶
func (s *SendMessageReplyMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (SendMessageReplyMarkup) Validate ¶
func (s SendMessageReplyMarkup) Validate() error
type SendMessageReplyMarkupType ¶
type SendMessageReplyMarkupType string
SendMessageReplyMarkupType is oneOf type of SendMessageReplyMarkup.
const ( InlineKeyboardMarkupSendMessageReplyMarkup SendMessageReplyMarkupType = "InlineKeyboardMarkup" ReplyKeyboardMarkupSendMessageReplyMarkup SendMessageReplyMarkupType = "ReplyKeyboardMarkup" ReplyKeyboardRemoveSendMessageReplyMarkup SendMessageReplyMarkupType = "ReplyKeyboardRemove" ForceReplySendMessageReplyMarkup SendMessageReplyMarkupType = "ForceReply" )
Possible values for SendMessageReplyMarkupType.
type SendPhoto ¶
type SendPhoto struct { ChatID ID `json:"chat_id"` // Photo to send. Pass a file_id as String to send a photo that exists on the Telegram servers // (recommended), pass an HTTP URL as a String for Telegram to get a photo from the Internet, or // upload a new photo using multipart/form-data. The photo must be at most 10 MB in size. The photo's // width and height must not exceed 10000 in total. Width and height ratio must be at most 20. More // info on Sending Files ». Photo string `json:"photo"` // Photo caption (may also be used when resending photos by file_id), 0-1024 characters after // entities parsing. Caption OptString `json:"caption"` // Mode for parsing entities in the photo caption. See formatting options for more details. ParseMode OptString `json:"parse_mode"` // A JSON-serialized list of special entities that appear in the caption, which can be specified // instead of parse_mode. CaptionEntities []MessageEntity `json:"caption_entities"` // Sends the message silently. Users will receive a notification with no sound. DisableNotification OptBool `json:"disable_notification"` // If the message is a reply, ID of the original message. ReplyToMessageID OptInt `json:"reply_to_message_id"` // Pass True, if the message should be sent even if the specified replied-to message is not found. AllowSendingWithoutReply OptBool `json:"allow_sending_without_reply"` // Additional interface options. A JSON-serialized object for an inline keyboard, custom reply // keyboard, instructions to remove reply keyboard or to force a reply from the user. ReplyMarkup OptSendPhotoReplyMarkup `json:"reply_markup"` }
Input for sendPhoto. Ref: #/components/schemas/sendPhoto
func (*SendPhoto) GetAllowSendingWithoutReply ¶
GetAllowSendingWithoutReply returns the value of AllowSendingWithoutReply.
func (*SendPhoto) GetCaption ¶
GetCaption returns the value of Caption.
func (*SendPhoto) GetCaptionEntities ¶
func (s *SendPhoto) GetCaptionEntities() []MessageEntity
GetCaptionEntities returns the value of CaptionEntities.
func (*SendPhoto) GetDisableNotification ¶
GetDisableNotification returns the value of DisableNotification.
func (*SendPhoto) GetParseMode ¶
GetParseMode returns the value of ParseMode.
func (*SendPhoto) GetReplyMarkup ¶
func (s *SendPhoto) GetReplyMarkup() OptSendPhotoReplyMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*SendPhoto) GetReplyToMessageID ¶
GetReplyToMessageID returns the value of ReplyToMessageID.
func (*SendPhoto) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*SendPhoto) SetAllowSendingWithoutReply ¶
SetAllowSendingWithoutReply sets the value of AllowSendingWithoutReply.
func (*SendPhoto) SetCaption ¶
SetCaption sets the value of Caption.
func (*SendPhoto) SetCaptionEntities ¶
func (s *SendPhoto) SetCaptionEntities(val []MessageEntity)
SetCaptionEntities sets the value of CaptionEntities.
func (*SendPhoto) SetDisableNotification ¶
SetDisableNotification sets the value of DisableNotification.
func (*SendPhoto) SetParseMode ¶
SetParseMode sets the value of ParseMode.
func (*SendPhoto) SetReplyMarkup ¶
func (s *SendPhoto) SetReplyMarkup(val OptSendPhotoReplyMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*SendPhoto) SetReplyToMessageID ¶
SetReplyToMessageID sets the value of ReplyToMessageID.
func (*SendPhoto) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type SendPhotoReplyMarkup ¶
type SendPhotoReplyMarkup struct { Type SendPhotoReplyMarkupType // switch on this field InlineKeyboardMarkup InlineKeyboardMarkup ReplyKeyboardMarkup ReplyKeyboardMarkup ReplyKeyboardRemove ReplyKeyboardRemove ForceReply ForceReply }
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. SendPhotoReplyMarkup represents sum type.
func NewForceReplySendPhotoReplyMarkup ¶
func NewForceReplySendPhotoReplyMarkup(v ForceReply) SendPhotoReplyMarkup
NewForceReplySendPhotoReplyMarkup returns new SendPhotoReplyMarkup from ForceReply.
func NewInlineKeyboardMarkupSendPhotoReplyMarkup ¶
func NewInlineKeyboardMarkupSendPhotoReplyMarkup(v InlineKeyboardMarkup) SendPhotoReplyMarkup
NewInlineKeyboardMarkupSendPhotoReplyMarkup returns new SendPhotoReplyMarkup from InlineKeyboardMarkup.
func NewReplyKeyboardMarkupSendPhotoReplyMarkup ¶
func NewReplyKeyboardMarkupSendPhotoReplyMarkup(v ReplyKeyboardMarkup) SendPhotoReplyMarkup
NewReplyKeyboardMarkupSendPhotoReplyMarkup returns new SendPhotoReplyMarkup from ReplyKeyboardMarkup.
func NewReplyKeyboardRemoveSendPhotoReplyMarkup ¶
func NewReplyKeyboardRemoveSendPhotoReplyMarkup(v ReplyKeyboardRemove) SendPhotoReplyMarkup
NewReplyKeyboardRemoveSendPhotoReplyMarkup returns new SendPhotoReplyMarkup from ReplyKeyboardRemove.
func (*SendPhotoReplyMarkup) Decode ¶
func (s *SendPhotoReplyMarkup) Decode(d *jx.Decoder) error
Decode decodes SendPhotoReplyMarkup from json.
func (SendPhotoReplyMarkup) Encode ¶
func (s SendPhotoReplyMarkup) Encode(e *jx.Encoder)
Encode encodes SendPhotoReplyMarkup as json.
func (SendPhotoReplyMarkup) GetForceReply ¶
func (s SendPhotoReplyMarkup) GetForceReply() (v ForceReply, ok bool)
GetForceReply returns ForceReply and true boolean if SendPhotoReplyMarkup is ForceReply.
func (SendPhotoReplyMarkup) GetInlineKeyboardMarkup ¶
func (s SendPhotoReplyMarkup) GetInlineKeyboardMarkup() (v InlineKeyboardMarkup, ok bool)
GetInlineKeyboardMarkup returns InlineKeyboardMarkup and true boolean if SendPhotoReplyMarkup is InlineKeyboardMarkup.
func (SendPhotoReplyMarkup) GetReplyKeyboardMarkup ¶
func (s SendPhotoReplyMarkup) GetReplyKeyboardMarkup() (v ReplyKeyboardMarkup, ok bool)
GetReplyKeyboardMarkup returns ReplyKeyboardMarkup and true boolean if SendPhotoReplyMarkup is ReplyKeyboardMarkup.
func (SendPhotoReplyMarkup) GetReplyKeyboardRemove ¶
func (s SendPhotoReplyMarkup) GetReplyKeyboardRemove() (v ReplyKeyboardRemove, ok bool)
GetReplyKeyboardRemove returns ReplyKeyboardRemove and true boolean if SendPhotoReplyMarkup is ReplyKeyboardRemove.
func (SendPhotoReplyMarkup) IsForceReply ¶
func (s SendPhotoReplyMarkup) IsForceReply() bool
IsForceReply reports whether SendPhotoReplyMarkup is ForceReply.
func (SendPhotoReplyMarkup) IsInlineKeyboardMarkup ¶
func (s SendPhotoReplyMarkup) IsInlineKeyboardMarkup() bool
IsInlineKeyboardMarkup reports whether SendPhotoReplyMarkup is InlineKeyboardMarkup.
func (SendPhotoReplyMarkup) IsReplyKeyboardMarkup ¶
func (s SendPhotoReplyMarkup) IsReplyKeyboardMarkup() bool
IsReplyKeyboardMarkup reports whether SendPhotoReplyMarkup is ReplyKeyboardMarkup.
func (SendPhotoReplyMarkup) IsReplyKeyboardRemove ¶
func (s SendPhotoReplyMarkup) IsReplyKeyboardRemove() bool
IsReplyKeyboardRemove reports whether SendPhotoReplyMarkup is ReplyKeyboardRemove.
func (SendPhotoReplyMarkup) MarshalJSON ¶
func (s SendPhotoReplyMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SendPhotoReplyMarkup) SetFake ¶
func (s *SendPhotoReplyMarkup) SetFake()
SetFake set fake values.
func (*SendPhotoReplyMarkup) SetForceReply ¶
func (s *SendPhotoReplyMarkup) SetForceReply(v ForceReply)
SetForceReply sets SendPhotoReplyMarkup to ForceReply.
func (*SendPhotoReplyMarkup) SetInlineKeyboardMarkup ¶
func (s *SendPhotoReplyMarkup) SetInlineKeyboardMarkup(v InlineKeyboardMarkup)
SetInlineKeyboardMarkup sets SendPhotoReplyMarkup to InlineKeyboardMarkup.
func (*SendPhotoReplyMarkup) SetReplyKeyboardMarkup ¶
func (s *SendPhotoReplyMarkup) SetReplyKeyboardMarkup(v ReplyKeyboardMarkup)
SetReplyKeyboardMarkup sets SendPhotoReplyMarkup to ReplyKeyboardMarkup.
func (*SendPhotoReplyMarkup) SetReplyKeyboardRemove ¶
func (s *SendPhotoReplyMarkup) SetReplyKeyboardRemove(v ReplyKeyboardRemove)
SetReplyKeyboardRemove sets SendPhotoReplyMarkup to ReplyKeyboardRemove.
func (*SendPhotoReplyMarkup) UnmarshalJSON ¶
func (s *SendPhotoReplyMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (SendPhotoReplyMarkup) Validate ¶
func (s SendPhotoReplyMarkup) Validate() error
type SendPhotoReplyMarkupType ¶
type SendPhotoReplyMarkupType string
SendPhotoReplyMarkupType is oneOf type of SendPhotoReplyMarkup.
const ( InlineKeyboardMarkupSendPhotoReplyMarkup SendPhotoReplyMarkupType = "InlineKeyboardMarkup" ReplyKeyboardMarkupSendPhotoReplyMarkup SendPhotoReplyMarkupType = "ReplyKeyboardMarkup" ReplyKeyboardRemoveSendPhotoReplyMarkup SendPhotoReplyMarkupType = "ReplyKeyboardRemove" ForceReplySendPhotoReplyMarkup SendPhotoReplyMarkupType = "ForceReply" )
Possible values for SendPhotoReplyMarkupType.
type SendPoll ¶
type SendPoll struct { ChatID ID `json:"chat_id"` // Poll question, 1-300 characters. Question string `json:"question"` // A JSON-serialized list of answer options, 2-10 strings 1-100 characters each. Options []string `json:"options"` // True, if the poll needs to be anonymous, defaults to True. IsAnonymous OptBool `json:"is_anonymous"` // Poll type, “quiz” or “regular”, defaults to “regular”. Type OptString `json:"type"` // True, if the poll allows multiple answers, ignored for polls in quiz mode, defaults to False. AllowsMultipleAnswers OptBool `json:"allows_multiple_answers"` // 0-based identifier of the correct answer option, required for polls in quiz mode. CorrectOptionID OptInt `json:"correct_option_id"` // Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a // quiz-style poll, 0-200 characters with at most 2 line feeds after entities parsing. Explanation OptString `json:"explanation"` // Mode for parsing entities in the explanation. See formatting options for more details. ExplanationParseMode OptString `json:"explanation_parse_mode"` // A JSON-serialized list of special entities that appear in the poll explanation, which can be // specified instead of parse_mode. ExplanationEntities []MessageEntity `json:"explanation_entities"` // Amount of time in seconds the poll will be active after creation, 5-600. Can't be used together // with close_date. OpenPeriod OptInt `json:"open_period"` // Point in time (Unix timestamp) when the poll will be automatically closed. Must be at least 5 and // no more than 600 seconds in the future. Can't be used together with open_period. CloseDate OptInt `json:"close_date"` // Pass True, if the poll needs to be immediately closed. This can be useful for poll preview. IsClosed OptBool `json:"is_closed"` // Sends the message silently. Users will receive a notification with no sound. DisableNotification OptBool `json:"disable_notification"` // If the message is a reply, ID of the original message. ReplyToMessageID OptInt `json:"reply_to_message_id"` // Pass True, if the message should be sent even if the specified replied-to message is not found. AllowSendingWithoutReply OptBool `json:"allow_sending_without_reply"` // Additional interface options. A JSON-serialized object for an inline keyboard, custom reply // keyboard, instructions to remove reply keyboard or to force a reply from the user. ReplyMarkup OptSendPollReplyMarkup `json:"reply_markup"` }
Input for sendPoll. Ref: #/components/schemas/sendPoll
func (*SendPoll) GetAllowSendingWithoutReply ¶
GetAllowSendingWithoutReply returns the value of AllowSendingWithoutReply.
func (*SendPoll) GetAllowsMultipleAnswers ¶
GetAllowsMultipleAnswers returns the value of AllowsMultipleAnswers.
func (*SendPoll) GetCloseDate ¶
GetCloseDate returns the value of CloseDate.
func (*SendPoll) GetCorrectOptionID ¶
GetCorrectOptionID returns the value of CorrectOptionID.
func (*SendPoll) GetDisableNotification ¶
GetDisableNotification returns the value of DisableNotification.
func (*SendPoll) GetExplanation ¶
GetExplanation returns the value of Explanation.
func (*SendPoll) GetExplanationEntities ¶
func (s *SendPoll) GetExplanationEntities() []MessageEntity
GetExplanationEntities returns the value of ExplanationEntities.
func (*SendPoll) GetExplanationParseMode ¶
GetExplanationParseMode returns the value of ExplanationParseMode.
func (*SendPoll) GetIsAnonymous ¶
GetIsAnonymous returns the value of IsAnonymous.
func (*SendPoll) GetIsClosed ¶
GetIsClosed returns the value of IsClosed.
func (*SendPoll) GetOpenPeriod ¶
GetOpenPeriod returns the value of OpenPeriod.
func (*SendPoll) GetOptions ¶
GetOptions returns the value of Options.
func (*SendPoll) GetQuestion ¶
GetQuestion returns the value of Question.
func (*SendPoll) GetReplyMarkup ¶
func (s *SendPoll) GetReplyMarkup() OptSendPollReplyMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*SendPoll) GetReplyToMessageID ¶
GetReplyToMessageID returns the value of ReplyToMessageID.
func (*SendPoll) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*SendPoll) SetAllowSendingWithoutReply ¶
SetAllowSendingWithoutReply sets the value of AllowSendingWithoutReply.
func (*SendPoll) SetAllowsMultipleAnswers ¶
SetAllowsMultipleAnswers sets the value of AllowsMultipleAnswers.
func (*SendPoll) SetCloseDate ¶
SetCloseDate sets the value of CloseDate.
func (*SendPoll) SetCorrectOptionID ¶
SetCorrectOptionID sets the value of CorrectOptionID.
func (*SendPoll) SetDisableNotification ¶
SetDisableNotification sets the value of DisableNotification.
func (*SendPoll) SetExplanation ¶
SetExplanation sets the value of Explanation.
func (*SendPoll) SetExplanationEntities ¶
func (s *SendPoll) SetExplanationEntities(val []MessageEntity)
SetExplanationEntities sets the value of ExplanationEntities.
func (*SendPoll) SetExplanationParseMode ¶
SetExplanationParseMode sets the value of ExplanationParseMode.
func (*SendPoll) SetIsAnonymous ¶
SetIsAnonymous sets the value of IsAnonymous.
func (*SendPoll) SetIsClosed ¶
SetIsClosed sets the value of IsClosed.
func (*SendPoll) SetOpenPeriod ¶
SetOpenPeriod sets the value of OpenPeriod.
func (*SendPoll) SetOptions ¶
SetOptions sets the value of Options.
func (*SendPoll) SetQuestion ¶
SetQuestion sets the value of Question.
func (*SendPoll) SetReplyMarkup ¶
func (s *SendPoll) SetReplyMarkup(val OptSendPollReplyMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*SendPoll) SetReplyToMessageID ¶
SetReplyToMessageID sets the value of ReplyToMessageID.
func (*SendPoll) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type SendPollReplyMarkup ¶
type SendPollReplyMarkup struct { Type SendPollReplyMarkupType // switch on this field InlineKeyboardMarkup InlineKeyboardMarkup ReplyKeyboardMarkup ReplyKeyboardMarkup ReplyKeyboardRemove ReplyKeyboardRemove ForceReply ForceReply }
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. SendPollReplyMarkup represents sum type.
func NewForceReplySendPollReplyMarkup ¶
func NewForceReplySendPollReplyMarkup(v ForceReply) SendPollReplyMarkup
NewForceReplySendPollReplyMarkup returns new SendPollReplyMarkup from ForceReply.
func NewInlineKeyboardMarkupSendPollReplyMarkup ¶
func NewInlineKeyboardMarkupSendPollReplyMarkup(v InlineKeyboardMarkup) SendPollReplyMarkup
NewInlineKeyboardMarkupSendPollReplyMarkup returns new SendPollReplyMarkup from InlineKeyboardMarkup.
func NewReplyKeyboardMarkupSendPollReplyMarkup ¶
func NewReplyKeyboardMarkupSendPollReplyMarkup(v ReplyKeyboardMarkup) SendPollReplyMarkup
NewReplyKeyboardMarkupSendPollReplyMarkup returns new SendPollReplyMarkup from ReplyKeyboardMarkup.
func NewReplyKeyboardRemoveSendPollReplyMarkup ¶
func NewReplyKeyboardRemoveSendPollReplyMarkup(v ReplyKeyboardRemove) SendPollReplyMarkup
NewReplyKeyboardRemoveSendPollReplyMarkup returns new SendPollReplyMarkup from ReplyKeyboardRemove.
func (*SendPollReplyMarkup) Decode ¶
func (s *SendPollReplyMarkup) Decode(d *jx.Decoder) error
Decode decodes SendPollReplyMarkup from json.
func (SendPollReplyMarkup) Encode ¶
func (s SendPollReplyMarkup) Encode(e *jx.Encoder)
Encode encodes SendPollReplyMarkup as json.
func (SendPollReplyMarkup) GetForceReply ¶
func (s SendPollReplyMarkup) GetForceReply() (v ForceReply, ok bool)
GetForceReply returns ForceReply and true boolean if SendPollReplyMarkup is ForceReply.
func (SendPollReplyMarkup) GetInlineKeyboardMarkup ¶
func (s SendPollReplyMarkup) GetInlineKeyboardMarkup() (v InlineKeyboardMarkup, ok bool)
GetInlineKeyboardMarkup returns InlineKeyboardMarkup and true boolean if SendPollReplyMarkup is InlineKeyboardMarkup.
func (SendPollReplyMarkup) GetReplyKeyboardMarkup ¶
func (s SendPollReplyMarkup) GetReplyKeyboardMarkup() (v ReplyKeyboardMarkup, ok bool)
GetReplyKeyboardMarkup returns ReplyKeyboardMarkup and true boolean if SendPollReplyMarkup is ReplyKeyboardMarkup.
func (SendPollReplyMarkup) GetReplyKeyboardRemove ¶
func (s SendPollReplyMarkup) GetReplyKeyboardRemove() (v ReplyKeyboardRemove, ok bool)
GetReplyKeyboardRemove returns ReplyKeyboardRemove and true boolean if SendPollReplyMarkup is ReplyKeyboardRemove.
func (SendPollReplyMarkup) IsForceReply ¶
func (s SendPollReplyMarkup) IsForceReply() bool
IsForceReply reports whether SendPollReplyMarkup is ForceReply.
func (SendPollReplyMarkup) IsInlineKeyboardMarkup ¶
func (s SendPollReplyMarkup) IsInlineKeyboardMarkup() bool
IsInlineKeyboardMarkup reports whether SendPollReplyMarkup is InlineKeyboardMarkup.
func (SendPollReplyMarkup) IsReplyKeyboardMarkup ¶
func (s SendPollReplyMarkup) IsReplyKeyboardMarkup() bool
IsReplyKeyboardMarkup reports whether SendPollReplyMarkup is ReplyKeyboardMarkup.
func (SendPollReplyMarkup) IsReplyKeyboardRemove ¶
func (s SendPollReplyMarkup) IsReplyKeyboardRemove() bool
IsReplyKeyboardRemove reports whether SendPollReplyMarkup is ReplyKeyboardRemove.
func (SendPollReplyMarkup) MarshalJSON ¶
func (s SendPollReplyMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SendPollReplyMarkup) SetFake ¶
func (s *SendPollReplyMarkup) SetFake()
SetFake set fake values.
func (*SendPollReplyMarkup) SetForceReply ¶
func (s *SendPollReplyMarkup) SetForceReply(v ForceReply)
SetForceReply sets SendPollReplyMarkup to ForceReply.
func (*SendPollReplyMarkup) SetInlineKeyboardMarkup ¶
func (s *SendPollReplyMarkup) SetInlineKeyboardMarkup(v InlineKeyboardMarkup)
SetInlineKeyboardMarkup sets SendPollReplyMarkup to InlineKeyboardMarkup.
func (*SendPollReplyMarkup) SetReplyKeyboardMarkup ¶
func (s *SendPollReplyMarkup) SetReplyKeyboardMarkup(v ReplyKeyboardMarkup)
SetReplyKeyboardMarkup sets SendPollReplyMarkup to ReplyKeyboardMarkup.
func (*SendPollReplyMarkup) SetReplyKeyboardRemove ¶
func (s *SendPollReplyMarkup) SetReplyKeyboardRemove(v ReplyKeyboardRemove)
SetReplyKeyboardRemove sets SendPollReplyMarkup to ReplyKeyboardRemove.
func (*SendPollReplyMarkup) UnmarshalJSON ¶
func (s *SendPollReplyMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (SendPollReplyMarkup) Validate ¶
func (s SendPollReplyMarkup) Validate() error
type SendPollReplyMarkupType ¶
type SendPollReplyMarkupType string
SendPollReplyMarkupType is oneOf type of SendPollReplyMarkup.
const ( InlineKeyboardMarkupSendPollReplyMarkup SendPollReplyMarkupType = "InlineKeyboardMarkup" ReplyKeyboardMarkupSendPollReplyMarkup SendPollReplyMarkupType = "ReplyKeyboardMarkup" ReplyKeyboardRemoveSendPollReplyMarkup SendPollReplyMarkupType = "ReplyKeyboardRemove" ForceReplySendPollReplyMarkup SendPollReplyMarkupType = "ForceReply" )
Possible values for SendPollReplyMarkupType.
type SendSticker ¶
type SendSticker struct { ChatID ID `json:"chat_id"` // Sticker to send. Pass a file_id as String to send a file that exists on the Telegram servers // (recommended), pass an HTTP URL as a String for Telegram to get a .WEBP file from the Internet, or // upload a new one using multipart/form-data. More info on Sending Files ». Sticker string `json:"sticker"` // Sends the message silently. Users will receive a notification with no sound. DisableNotification OptBool `json:"disable_notification"` // If the message is a reply, ID of the original message. ReplyToMessageID OptInt `json:"reply_to_message_id"` // Pass True, if the message should be sent even if the specified replied-to message is not found. AllowSendingWithoutReply OptBool `json:"allow_sending_without_reply"` // Additional interface options. A JSON-serialized object for an inline keyboard, custom reply // keyboard, instructions to remove reply keyboard or to force a reply from the user. ReplyMarkup OptSendStickerReplyMarkup `json:"reply_markup"` }
Input for sendSticker. Ref: #/components/schemas/sendSticker
func (*SendSticker) Decode ¶
func (s *SendSticker) Decode(d *jx.Decoder) error
Decode decodes SendSticker from json.
func (*SendSticker) Encode ¶
func (s *SendSticker) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SendSticker) GetAllowSendingWithoutReply ¶
func (s *SendSticker) GetAllowSendingWithoutReply() OptBool
GetAllowSendingWithoutReply returns the value of AllowSendingWithoutReply.
func (*SendSticker) GetChatID ¶
func (s *SendSticker) GetChatID() ID
GetChatID returns the value of ChatID.
func (*SendSticker) GetDisableNotification ¶
func (s *SendSticker) GetDisableNotification() OptBool
GetDisableNotification returns the value of DisableNotification.
func (*SendSticker) GetReplyMarkup ¶
func (s *SendSticker) GetReplyMarkup() OptSendStickerReplyMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*SendSticker) GetReplyToMessageID ¶
func (s *SendSticker) GetReplyToMessageID() OptInt
GetReplyToMessageID returns the value of ReplyToMessageID.
func (*SendSticker) GetSticker ¶
func (s *SendSticker) GetSticker() string
GetSticker returns the value of Sticker.
func (*SendSticker) MarshalJSON ¶
func (s *SendSticker) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SendSticker) SetAllowSendingWithoutReply ¶
func (s *SendSticker) SetAllowSendingWithoutReply(val OptBool)
SetAllowSendingWithoutReply sets the value of AllowSendingWithoutReply.
func (*SendSticker) SetChatID ¶
func (s *SendSticker) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*SendSticker) SetDisableNotification ¶
func (s *SendSticker) SetDisableNotification(val OptBool)
SetDisableNotification sets the value of DisableNotification.
func (*SendSticker) SetReplyMarkup ¶
func (s *SendSticker) SetReplyMarkup(val OptSendStickerReplyMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*SendSticker) SetReplyToMessageID ¶
func (s *SendSticker) SetReplyToMessageID(val OptInt)
SetReplyToMessageID sets the value of ReplyToMessageID.
func (*SendSticker) SetSticker ¶
func (s *SendSticker) SetSticker(val string)
SetSticker sets the value of Sticker.
func (*SendSticker) UnmarshalJSON ¶
func (s *SendSticker) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SendSticker) Validate ¶
func (s *SendSticker) Validate() error
type SendStickerReplyMarkup ¶
type SendStickerReplyMarkup struct { Type SendStickerReplyMarkupType // switch on this field InlineKeyboardMarkup InlineKeyboardMarkup ReplyKeyboardMarkup ReplyKeyboardMarkup ReplyKeyboardRemove ReplyKeyboardRemove ForceReply ForceReply }
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. SendStickerReplyMarkup represents sum type.
func NewForceReplySendStickerReplyMarkup ¶
func NewForceReplySendStickerReplyMarkup(v ForceReply) SendStickerReplyMarkup
NewForceReplySendStickerReplyMarkup returns new SendStickerReplyMarkup from ForceReply.
func NewInlineKeyboardMarkupSendStickerReplyMarkup ¶
func NewInlineKeyboardMarkupSendStickerReplyMarkup(v InlineKeyboardMarkup) SendStickerReplyMarkup
NewInlineKeyboardMarkupSendStickerReplyMarkup returns new SendStickerReplyMarkup from InlineKeyboardMarkup.
func NewReplyKeyboardMarkupSendStickerReplyMarkup ¶
func NewReplyKeyboardMarkupSendStickerReplyMarkup(v ReplyKeyboardMarkup) SendStickerReplyMarkup
NewReplyKeyboardMarkupSendStickerReplyMarkup returns new SendStickerReplyMarkup from ReplyKeyboardMarkup.
func NewReplyKeyboardRemoveSendStickerReplyMarkup ¶
func NewReplyKeyboardRemoveSendStickerReplyMarkup(v ReplyKeyboardRemove) SendStickerReplyMarkup
NewReplyKeyboardRemoveSendStickerReplyMarkup returns new SendStickerReplyMarkup from ReplyKeyboardRemove.
func (*SendStickerReplyMarkup) Decode ¶
func (s *SendStickerReplyMarkup) Decode(d *jx.Decoder) error
Decode decodes SendStickerReplyMarkup from json.
func (SendStickerReplyMarkup) Encode ¶
func (s SendStickerReplyMarkup) Encode(e *jx.Encoder)
Encode encodes SendStickerReplyMarkup as json.
func (SendStickerReplyMarkup) GetForceReply ¶
func (s SendStickerReplyMarkup) GetForceReply() (v ForceReply, ok bool)
GetForceReply returns ForceReply and true boolean if SendStickerReplyMarkup is ForceReply.
func (SendStickerReplyMarkup) GetInlineKeyboardMarkup ¶
func (s SendStickerReplyMarkup) GetInlineKeyboardMarkup() (v InlineKeyboardMarkup, ok bool)
GetInlineKeyboardMarkup returns InlineKeyboardMarkup and true boolean if SendStickerReplyMarkup is InlineKeyboardMarkup.
func (SendStickerReplyMarkup) GetReplyKeyboardMarkup ¶
func (s SendStickerReplyMarkup) GetReplyKeyboardMarkup() (v ReplyKeyboardMarkup, ok bool)
GetReplyKeyboardMarkup returns ReplyKeyboardMarkup and true boolean if SendStickerReplyMarkup is ReplyKeyboardMarkup.
func (SendStickerReplyMarkup) GetReplyKeyboardRemove ¶
func (s SendStickerReplyMarkup) GetReplyKeyboardRemove() (v ReplyKeyboardRemove, ok bool)
GetReplyKeyboardRemove returns ReplyKeyboardRemove and true boolean if SendStickerReplyMarkup is ReplyKeyboardRemove.
func (SendStickerReplyMarkup) IsForceReply ¶
func (s SendStickerReplyMarkup) IsForceReply() bool
IsForceReply reports whether SendStickerReplyMarkup is ForceReply.
func (SendStickerReplyMarkup) IsInlineKeyboardMarkup ¶
func (s SendStickerReplyMarkup) IsInlineKeyboardMarkup() bool
IsInlineKeyboardMarkup reports whether SendStickerReplyMarkup is InlineKeyboardMarkup.
func (SendStickerReplyMarkup) IsReplyKeyboardMarkup ¶
func (s SendStickerReplyMarkup) IsReplyKeyboardMarkup() bool
IsReplyKeyboardMarkup reports whether SendStickerReplyMarkup is ReplyKeyboardMarkup.
func (SendStickerReplyMarkup) IsReplyKeyboardRemove ¶
func (s SendStickerReplyMarkup) IsReplyKeyboardRemove() bool
IsReplyKeyboardRemove reports whether SendStickerReplyMarkup is ReplyKeyboardRemove.
func (SendStickerReplyMarkup) MarshalJSON ¶
func (s SendStickerReplyMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SendStickerReplyMarkup) SetFake ¶
func (s *SendStickerReplyMarkup) SetFake()
SetFake set fake values.
func (*SendStickerReplyMarkup) SetForceReply ¶
func (s *SendStickerReplyMarkup) SetForceReply(v ForceReply)
SetForceReply sets SendStickerReplyMarkup to ForceReply.
func (*SendStickerReplyMarkup) SetInlineKeyboardMarkup ¶
func (s *SendStickerReplyMarkup) SetInlineKeyboardMarkup(v InlineKeyboardMarkup)
SetInlineKeyboardMarkup sets SendStickerReplyMarkup to InlineKeyboardMarkup.
func (*SendStickerReplyMarkup) SetReplyKeyboardMarkup ¶
func (s *SendStickerReplyMarkup) SetReplyKeyboardMarkup(v ReplyKeyboardMarkup)
SetReplyKeyboardMarkup sets SendStickerReplyMarkup to ReplyKeyboardMarkup.
func (*SendStickerReplyMarkup) SetReplyKeyboardRemove ¶
func (s *SendStickerReplyMarkup) SetReplyKeyboardRemove(v ReplyKeyboardRemove)
SetReplyKeyboardRemove sets SendStickerReplyMarkup to ReplyKeyboardRemove.
func (*SendStickerReplyMarkup) UnmarshalJSON ¶
func (s *SendStickerReplyMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (SendStickerReplyMarkup) Validate ¶
func (s SendStickerReplyMarkup) Validate() error
type SendStickerReplyMarkupType ¶
type SendStickerReplyMarkupType string
SendStickerReplyMarkupType is oneOf type of SendStickerReplyMarkup.
const ( InlineKeyboardMarkupSendStickerReplyMarkup SendStickerReplyMarkupType = "InlineKeyboardMarkup" ReplyKeyboardMarkupSendStickerReplyMarkup SendStickerReplyMarkupType = "ReplyKeyboardMarkup" ReplyKeyboardRemoveSendStickerReplyMarkup SendStickerReplyMarkupType = "ReplyKeyboardRemove" ForceReplySendStickerReplyMarkup SendStickerReplyMarkupType = "ForceReply" )
Possible values for SendStickerReplyMarkupType.
type SendVenue ¶
type SendVenue struct { ChatID ID `json:"chat_id"` // Latitude of the venue. Latitude float64 `json:"latitude"` // Longitude of the venue. Longitude float64 `json:"longitude"` // Name of the venue. Title string `json:"title"` // Address of the venue. Address string `json:"address"` // Foursquare identifier of the venue. FoursquareID OptString `json:"foursquare_id"` // Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, // “arts_entertainment/aquarium” or “food/icecream”.). FoursquareType OptString `json:"foursquare_type"` // Google Places identifier of the venue. GooglePlaceID OptString `json:"google_place_id"` // Google Places type of the venue. (See supported types.). GooglePlaceType OptString `json:"google_place_type"` // Sends the message silently. Users will receive a notification with no sound. DisableNotification OptBool `json:"disable_notification"` // If the message is a reply, ID of the original message. ReplyToMessageID OptInt `json:"reply_to_message_id"` // Pass True, if the message should be sent even if the specified replied-to message is not found. AllowSendingWithoutReply OptBool `json:"allow_sending_without_reply"` // Additional interface options. A JSON-serialized object for an inline keyboard, custom reply // keyboard, instructions to remove reply keyboard or to force a reply from the user. ReplyMarkup OptSendVenueReplyMarkup `json:"reply_markup"` }
Input for sendVenue. Ref: #/components/schemas/sendVenue
func (*SendVenue) GetAddress ¶
GetAddress returns the value of Address.
func (*SendVenue) GetAllowSendingWithoutReply ¶
GetAllowSendingWithoutReply returns the value of AllowSendingWithoutReply.
func (*SendVenue) GetDisableNotification ¶
GetDisableNotification returns the value of DisableNotification.
func (*SendVenue) GetFoursquareID ¶
GetFoursquareID returns the value of FoursquareID.
func (*SendVenue) GetFoursquareType ¶
GetFoursquareType returns the value of FoursquareType.
func (*SendVenue) GetGooglePlaceID ¶
GetGooglePlaceID returns the value of GooglePlaceID.
func (*SendVenue) GetGooglePlaceType ¶
GetGooglePlaceType returns the value of GooglePlaceType.
func (*SendVenue) GetLatitude ¶
GetLatitude returns the value of Latitude.
func (*SendVenue) GetLongitude ¶
GetLongitude returns the value of Longitude.
func (*SendVenue) GetReplyMarkup ¶
func (s *SendVenue) GetReplyMarkup() OptSendVenueReplyMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*SendVenue) GetReplyToMessageID ¶
GetReplyToMessageID returns the value of ReplyToMessageID.
func (*SendVenue) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*SendVenue) SetAddress ¶
SetAddress sets the value of Address.
func (*SendVenue) SetAllowSendingWithoutReply ¶
SetAllowSendingWithoutReply sets the value of AllowSendingWithoutReply.
func (*SendVenue) SetDisableNotification ¶
SetDisableNotification sets the value of DisableNotification.
func (*SendVenue) SetFoursquareID ¶
SetFoursquareID sets the value of FoursquareID.
func (*SendVenue) SetFoursquareType ¶
SetFoursquareType sets the value of FoursquareType.
func (*SendVenue) SetGooglePlaceID ¶
SetGooglePlaceID sets the value of GooglePlaceID.
func (*SendVenue) SetGooglePlaceType ¶
SetGooglePlaceType sets the value of GooglePlaceType.
func (*SendVenue) SetLatitude ¶
SetLatitude sets the value of Latitude.
func (*SendVenue) SetLongitude ¶
SetLongitude sets the value of Longitude.
func (*SendVenue) SetReplyMarkup ¶
func (s *SendVenue) SetReplyMarkup(val OptSendVenueReplyMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*SendVenue) SetReplyToMessageID ¶
SetReplyToMessageID sets the value of ReplyToMessageID.
func (*SendVenue) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type SendVenueReplyMarkup ¶
type SendVenueReplyMarkup struct { Type SendVenueReplyMarkupType // switch on this field InlineKeyboardMarkup InlineKeyboardMarkup ReplyKeyboardMarkup ReplyKeyboardMarkup ReplyKeyboardRemove ReplyKeyboardRemove ForceReply ForceReply }
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. SendVenueReplyMarkup represents sum type.
func NewForceReplySendVenueReplyMarkup ¶
func NewForceReplySendVenueReplyMarkup(v ForceReply) SendVenueReplyMarkup
NewForceReplySendVenueReplyMarkup returns new SendVenueReplyMarkup from ForceReply.
func NewInlineKeyboardMarkupSendVenueReplyMarkup ¶
func NewInlineKeyboardMarkupSendVenueReplyMarkup(v InlineKeyboardMarkup) SendVenueReplyMarkup
NewInlineKeyboardMarkupSendVenueReplyMarkup returns new SendVenueReplyMarkup from InlineKeyboardMarkup.
func NewReplyKeyboardMarkupSendVenueReplyMarkup ¶
func NewReplyKeyboardMarkupSendVenueReplyMarkup(v ReplyKeyboardMarkup) SendVenueReplyMarkup
NewReplyKeyboardMarkupSendVenueReplyMarkup returns new SendVenueReplyMarkup from ReplyKeyboardMarkup.
func NewReplyKeyboardRemoveSendVenueReplyMarkup ¶
func NewReplyKeyboardRemoveSendVenueReplyMarkup(v ReplyKeyboardRemove) SendVenueReplyMarkup
NewReplyKeyboardRemoveSendVenueReplyMarkup returns new SendVenueReplyMarkup from ReplyKeyboardRemove.
func (*SendVenueReplyMarkup) Decode ¶
func (s *SendVenueReplyMarkup) Decode(d *jx.Decoder) error
Decode decodes SendVenueReplyMarkup from json.
func (SendVenueReplyMarkup) Encode ¶
func (s SendVenueReplyMarkup) Encode(e *jx.Encoder)
Encode encodes SendVenueReplyMarkup as json.
func (SendVenueReplyMarkup) GetForceReply ¶
func (s SendVenueReplyMarkup) GetForceReply() (v ForceReply, ok bool)
GetForceReply returns ForceReply and true boolean if SendVenueReplyMarkup is ForceReply.
func (SendVenueReplyMarkup) GetInlineKeyboardMarkup ¶
func (s SendVenueReplyMarkup) GetInlineKeyboardMarkup() (v InlineKeyboardMarkup, ok bool)
GetInlineKeyboardMarkup returns InlineKeyboardMarkup and true boolean if SendVenueReplyMarkup is InlineKeyboardMarkup.
func (SendVenueReplyMarkup) GetReplyKeyboardMarkup ¶
func (s SendVenueReplyMarkup) GetReplyKeyboardMarkup() (v ReplyKeyboardMarkup, ok bool)
GetReplyKeyboardMarkup returns ReplyKeyboardMarkup and true boolean if SendVenueReplyMarkup is ReplyKeyboardMarkup.
func (SendVenueReplyMarkup) GetReplyKeyboardRemove ¶
func (s SendVenueReplyMarkup) GetReplyKeyboardRemove() (v ReplyKeyboardRemove, ok bool)
GetReplyKeyboardRemove returns ReplyKeyboardRemove and true boolean if SendVenueReplyMarkup is ReplyKeyboardRemove.
func (SendVenueReplyMarkup) IsForceReply ¶
func (s SendVenueReplyMarkup) IsForceReply() bool
IsForceReply reports whether SendVenueReplyMarkup is ForceReply.
func (SendVenueReplyMarkup) IsInlineKeyboardMarkup ¶
func (s SendVenueReplyMarkup) IsInlineKeyboardMarkup() bool
IsInlineKeyboardMarkup reports whether SendVenueReplyMarkup is InlineKeyboardMarkup.
func (SendVenueReplyMarkup) IsReplyKeyboardMarkup ¶
func (s SendVenueReplyMarkup) IsReplyKeyboardMarkup() bool
IsReplyKeyboardMarkup reports whether SendVenueReplyMarkup is ReplyKeyboardMarkup.
func (SendVenueReplyMarkup) IsReplyKeyboardRemove ¶
func (s SendVenueReplyMarkup) IsReplyKeyboardRemove() bool
IsReplyKeyboardRemove reports whether SendVenueReplyMarkup is ReplyKeyboardRemove.
func (SendVenueReplyMarkup) MarshalJSON ¶
func (s SendVenueReplyMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SendVenueReplyMarkup) SetFake ¶
func (s *SendVenueReplyMarkup) SetFake()
SetFake set fake values.
func (*SendVenueReplyMarkup) SetForceReply ¶
func (s *SendVenueReplyMarkup) SetForceReply(v ForceReply)
SetForceReply sets SendVenueReplyMarkup to ForceReply.
func (*SendVenueReplyMarkup) SetInlineKeyboardMarkup ¶
func (s *SendVenueReplyMarkup) SetInlineKeyboardMarkup(v InlineKeyboardMarkup)
SetInlineKeyboardMarkup sets SendVenueReplyMarkup to InlineKeyboardMarkup.
func (*SendVenueReplyMarkup) SetReplyKeyboardMarkup ¶
func (s *SendVenueReplyMarkup) SetReplyKeyboardMarkup(v ReplyKeyboardMarkup)
SetReplyKeyboardMarkup sets SendVenueReplyMarkup to ReplyKeyboardMarkup.
func (*SendVenueReplyMarkup) SetReplyKeyboardRemove ¶
func (s *SendVenueReplyMarkup) SetReplyKeyboardRemove(v ReplyKeyboardRemove)
SetReplyKeyboardRemove sets SendVenueReplyMarkup to ReplyKeyboardRemove.
func (*SendVenueReplyMarkup) UnmarshalJSON ¶
func (s *SendVenueReplyMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (SendVenueReplyMarkup) Validate ¶
func (s SendVenueReplyMarkup) Validate() error
type SendVenueReplyMarkupType ¶
type SendVenueReplyMarkupType string
SendVenueReplyMarkupType is oneOf type of SendVenueReplyMarkup.
const ( InlineKeyboardMarkupSendVenueReplyMarkup SendVenueReplyMarkupType = "InlineKeyboardMarkup" ReplyKeyboardMarkupSendVenueReplyMarkup SendVenueReplyMarkupType = "ReplyKeyboardMarkup" ReplyKeyboardRemoveSendVenueReplyMarkup SendVenueReplyMarkupType = "ReplyKeyboardRemove" ForceReplySendVenueReplyMarkup SendVenueReplyMarkupType = "ForceReply" )
Possible values for SendVenueReplyMarkupType.
type SendVideo ¶
type SendVideo struct { ChatID ID `json:"chat_id"` // Video to send. Pass a file_id as String to send a video that exists on the Telegram servers // (recommended), pass an HTTP URL as a String for Telegram to get a video from the Internet, or // upload a new video using multipart/form-data. More info on Sending Files ». Video string `json:"video"` // Duration of sent video in seconds. Duration OptInt `json:"duration"` // Video width. Width OptInt `json:"width"` // Video height. Height OptInt `json:"height"` // Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported // server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's // width and height should not exceed 320. Ignored if the file is not uploaded using // multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can // pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data // under <file_attach_name>. More info on Sending Files ». Thumb OptString `json:"thumb"` // Video caption (may also be used when resending videos by file_id), 0-1024 characters after // entities parsing. Caption OptString `json:"caption"` // Mode for parsing entities in the video caption. See formatting options for more details. ParseMode OptString `json:"parse_mode"` // A JSON-serialized list of special entities that appear in the caption, which can be specified // instead of parse_mode. CaptionEntities []MessageEntity `json:"caption_entities"` // Pass True, if the uploaded video is suitable for streaming. SupportsStreaming OptBool `json:"supports_streaming"` // Sends the message silently. Users will receive a notification with no sound. DisableNotification OptBool `json:"disable_notification"` // If the message is a reply, ID of the original message. ReplyToMessageID OptInt `json:"reply_to_message_id"` // Pass True, if the message should be sent even if the specified replied-to message is not found. AllowSendingWithoutReply OptBool `json:"allow_sending_without_reply"` // Additional interface options. A JSON-serialized object for an inline keyboard, custom reply // keyboard, instructions to remove reply keyboard or to force a reply from the user. ReplyMarkup OptSendVideoReplyMarkup `json:"reply_markup"` }
Input for sendVideo. Ref: #/components/schemas/sendVideo
func (*SendVideo) GetAllowSendingWithoutReply ¶
GetAllowSendingWithoutReply returns the value of AllowSendingWithoutReply.
func (*SendVideo) GetCaption ¶
GetCaption returns the value of Caption.
func (*SendVideo) GetCaptionEntities ¶
func (s *SendVideo) GetCaptionEntities() []MessageEntity
GetCaptionEntities returns the value of CaptionEntities.
func (*SendVideo) GetDisableNotification ¶
GetDisableNotification returns the value of DisableNotification.
func (*SendVideo) GetDuration ¶
GetDuration returns the value of Duration.
func (*SendVideo) GetParseMode ¶
GetParseMode returns the value of ParseMode.
func (*SendVideo) GetReplyMarkup ¶
func (s *SendVideo) GetReplyMarkup() OptSendVideoReplyMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*SendVideo) GetReplyToMessageID ¶
GetReplyToMessageID returns the value of ReplyToMessageID.
func (*SendVideo) GetSupportsStreaming ¶
GetSupportsStreaming returns the value of SupportsStreaming.
func (*SendVideo) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*SendVideo) SetAllowSendingWithoutReply ¶
SetAllowSendingWithoutReply sets the value of AllowSendingWithoutReply.
func (*SendVideo) SetCaption ¶
SetCaption sets the value of Caption.
func (*SendVideo) SetCaptionEntities ¶
func (s *SendVideo) SetCaptionEntities(val []MessageEntity)
SetCaptionEntities sets the value of CaptionEntities.
func (*SendVideo) SetDisableNotification ¶
SetDisableNotification sets the value of DisableNotification.
func (*SendVideo) SetDuration ¶
SetDuration sets the value of Duration.
func (*SendVideo) SetParseMode ¶
SetParseMode sets the value of ParseMode.
func (*SendVideo) SetReplyMarkup ¶
func (s *SendVideo) SetReplyMarkup(val OptSendVideoReplyMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*SendVideo) SetReplyToMessageID ¶
SetReplyToMessageID sets the value of ReplyToMessageID.
func (*SendVideo) SetSupportsStreaming ¶
SetSupportsStreaming sets the value of SupportsStreaming.
func (*SendVideo) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type SendVideoNote ¶
type SendVideoNote struct { ChatID ID `json:"chat_id"` // Video note to send. Pass a file_id as String to send a video note that exists on the Telegram // servers (recommended) or upload a new video using multipart/form-data. More info on Sending Files // ». Sending video notes by a URL is currently unsupported. VideoNote string `json:"video_note"` // Duration of sent video in seconds. Duration OptInt `json:"duration"` // Video width and height, i.e. diameter of the video message. Length OptInt `json:"length"` // Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported // server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's // width and height should not exceed 320. Ignored if the file is not uploaded using // multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can // pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data // under <file_attach_name>. More info on Sending Files ». Thumb OptString `json:"thumb"` // Sends the message silently. Users will receive a notification with no sound. DisableNotification OptBool `json:"disable_notification"` // If the message is a reply, ID of the original message. ReplyToMessageID OptInt `json:"reply_to_message_id"` // Pass True, if the message should be sent even if the specified replied-to message is not found. AllowSendingWithoutReply OptBool `json:"allow_sending_without_reply"` // Additional interface options. A JSON-serialized object for an inline keyboard, custom reply // keyboard, instructions to remove reply keyboard or to force a reply from the user. ReplyMarkup OptSendVideoNoteReplyMarkup `json:"reply_markup"` }
Input for sendVideoNote. Ref: #/components/schemas/sendVideoNote
func (*SendVideoNote) Decode ¶
func (s *SendVideoNote) Decode(d *jx.Decoder) error
Decode decodes SendVideoNote from json.
func (*SendVideoNote) Encode ¶
func (s *SendVideoNote) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SendVideoNote) GetAllowSendingWithoutReply ¶
func (s *SendVideoNote) GetAllowSendingWithoutReply() OptBool
GetAllowSendingWithoutReply returns the value of AllowSendingWithoutReply.
func (*SendVideoNote) GetChatID ¶
func (s *SendVideoNote) GetChatID() ID
GetChatID returns the value of ChatID.
func (*SendVideoNote) GetDisableNotification ¶
func (s *SendVideoNote) GetDisableNotification() OptBool
GetDisableNotification returns the value of DisableNotification.
func (*SendVideoNote) GetDuration ¶
func (s *SendVideoNote) GetDuration() OptInt
GetDuration returns the value of Duration.
func (*SendVideoNote) GetLength ¶
func (s *SendVideoNote) GetLength() OptInt
GetLength returns the value of Length.
func (*SendVideoNote) GetReplyMarkup ¶
func (s *SendVideoNote) GetReplyMarkup() OptSendVideoNoteReplyMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*SendVideoNote) GetReplyToMessageID ¶
func (s *SendVideoNote) GetReplyToMessageID() OptInt
GetReplyToMessageID returns the value of ReplyToMessageID.
func (*SendVideoNote) GetThumb ¶
func (s *SendVideoNote) GetThumb() OptString
GetThumb returns the value of Thumb.
func (*SendVideoNote) GetVideoNote ¶
func (s *SendVideoNote) GetVideoNote() string
GetVideoNote returns the value of VideoNote.
func (*SendVideoNote) MarshalJSON ¶
func (s *SendVideoNote) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SendVideoNote) SetAllowSendingWithoutReply ¶
func (s *SendVideoNote) SetAllowSendingWithoutReply(val OptBool)
SetAllowSendingWithoutReply sets the value of AllowSendingWithoutReply.
func (*SendVideoNote) SetChatID ¶
func (s *SendVideoNote) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*SendVideoNote) SetDisableNotification ¶
func (s *SendVideoNote) SetDisableNotification(val OptBool)
SetDisableNotification sets the value of DisableNotification.
func (*SendVideoNote) SetDuration ¶
func (s *SendVideoNote) SetDuration(val OptInt)
SetDuration sets the value of Duration.
func (*SendVideoNote) SetLength ¶
func (s *SendVideoNote) SetLength(val OptInt)
SetLength sets the value of Length.
func (*SendVideoNote) SetReplyMarkup ¶
func (s *SendVideoNote) SetReplyMarkup(val OptSendVideoNoteReplyMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*SendVideoNote) SetReplyToMessageID ¶
func (s *SendVideoNote) SetReplyToMessageID(val OptInt)
SetReplyToMessageID sets the value of ReplyToMessageID.
func (*SendVideoNote) SetThumb ¶
func (s *SendVideoNote) SetThumb(val OptString)
SetThumb sets the value of Thumb.
func (*SendVideoNote) SetVideoNote ¶
func (s *SendVideoNote) SetVideoNote(val string)
SetVideoNote sets the value of VideoNote.
func (*SendVideoNote) UnmarshalJSON ¶
func (s *SendVideoNote) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SendVideoNote) Validate ¶
func (s *SendVideoNote) Validate() error
type SendVideoNoteReplyMarkup ¶
type SendVideoNoteReplyMarkup struct { Type SendVideoNoteReplyMarkupType // switch on this field InlineKeyboardMarkup InlineKeyboardMarkup ReplyKeyboardMarkup ReplyKeyboardMarkup ReplyKeyboardRemove ReplyKeyboardRemove ForceReply ForceReply }
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. SendVideoNoteReplyMarkup represents sum type.
func NewForceReplySendVideoNoteReplyMarkup ¶
func NewForceReplySendVideoNoteReplyMarkup(v ForceReply) SendVideoNoteReplyMarkup
NewForceReplySendVideoNoteReplyMarkup returns new SendVideoNoteReplyMarkup from ForceReply.
func NewInlineKeyboardMarkupSendVideoNoteReplyMarkup ¶
func NewInlineKeyboardMarkupSendVideoNoteReplyMarkup(v InlineKeyboardMarkup) SendVideoNoteReplyMarkup
NewInlineKeyboardMarkupSendVideoNoteReplyMarkup returns new SendVideoNoteReplyMarkup from InlineKeyboardMarkup.
func NewReplyKeyboardMarkupSendVideoNoteReplyMarkup ¶
func NewReplyKeyboardMarkupSendVideoNoteReplyMarkup(v ReplyKeyboardMarkup) SendVideoNoteReplyMarkup
NewReplyKeyboardMarkupSendVideoNoteReplyMarkup returns new SendVideoNoteReplyMarkup from ReplyKeyboardMarkup.
func NewReplyKeyboardRemoveSendVideoNoteReplyMarkup ¶
func NewReplyKeyboardRemoveSendVideoNoteReplyMarkup(v ReplyKeyboardRemove) SendVideoNoteReplyMarkup
NewReplyKeyboardRemoveSendVideoNoteReplyMarkup returns new SendVideoNoteReplyMarkup from ReplyKeyboardRemove.
func (*SendVideoNoteReplyMarkup) Decode ¶
func (s *SendVideoNoteReplyMarkup) Decode(d *jx.Decoder) error
Decode decodes SendVideoNoteReplyMarkup from json.
func (SendVideoNoteReplyMarkup) Encode ¶
func (s SendVideoNoteReplyMarkup) Encode(e *jx.Encoder)
Encode encodes SendVideoNoteReplyMarkup as json.
func (SendVideoNoteReplyMarkup) GetForceReply ¶
func (s SendVideoNoteReplyMarkup) GetForceReply() (v ForceReply, ok bool)
GetForceReply returns ForceReply and true boolean if SendVideoNoteReplyMarkup is ForceReply.
func (SendVideoNoteReplyMarkup) GetInlineKeyboardMarkup ¶
func (s SendVideoNoteReplyMarkup) GetInlineKeyboardMarkup() (v InlineKeyboardMarkup, ok bool)
GetInlineKeyboardMarkup returns InlineKeyboardMarkup and true boolean if SendVideoNoteReplyMarkup is InlineKeyboardMarkup.
func (SendVideoNoteReplyMarkup) GetReplyKeyboardMarkup ¶
func (s SendVideoNoteReplyMarkup) GetReplyKeyboardMarkup() (v ReplyKeyboardMarkup, ok bool)
GetReplyKeyboardMarkup returns ReplyKeyboardMarkup and true boolean if SendVideoNoteReplyMarkup is ReplyKeyboardMarkup.
func (SendVideoNoteReplyMarkup) GetReplyKeyboardRemove ¶
func (s SendVideoNoteReplyMarkup) GetReplyKeyboardRemove() (v ReplyKeyboardRemove, ok bool)
GetReplyKeyboardRemove returns ReplyKeyboardRemove and true boolean if SendVideoNoteReplyMarkup is ReplyKeyboardRemove.
func (SendVideoNoteReplyMarkup) IsForceReply ¶
func (s SendVideoNoteReplyMarkup) IsForceReply() bool
IsForceReply reports whether SendVideoNoteReplyMarkup is ForceReply.
func (SendVideoNoteReplyMarkup) IsInlineKeyboardMarkup ¶
func (s SendVideoNoteReplyMarkup) IsInlineKeyboardMarkup() bool
IsInlineKeyboardMarkup reports whether SendVideoNoteReplyMarkup is InlineKeyboardMarkup.
func (SendVideoNoteReplyMarkup) IsReplyKeyboardMarkup ¶
func (s SendVideoNoteReplyMarkup) IsReplyKeyboardMarkup() bool
IsReplyKeyboardMarkup reports whether SendVideoNoteReplyMarkup is ReplyKeyboardMarkup.
func (SendVideoNoteReplyMarkup) IsReplyKeyboardRemove ¶
func (s SendVideoNoteReplyMarkup) IsReplyKeyboardRemove() bool
IsReplyKeyboardRemove reports whether SendVideoNoteReplyMarkup is ReplyKeyboardRemove.
func (SendVideoNoteReplyMarkup) MarshalJSON ¶
func (s SendVideoNoteReplyMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SendVideoNoteReplyMarkup) SetFake ¶
func (s *SendVideoNoteReplyMarkup) SetFake()
SetFake set fake values.
func (*SendVideoNoteReplyMarkup) SetForceReply ¶
func (s *SendVideoNoteReplyMarkup) SetForceReply(v ForceReply)
SetForceReply sets SendVideoNoteReplyMarkup to ForceReply.
func (*SendVideoNoteReplyMarkup) SetInlineKeyboardMarkup ¶
func (s *SendVideoNoteReplyMarkup) SetInlineKeyboardMarkup(v InlineKeyboardMarkup)
SetInlineKeyboardMarkup sets SendVideoNoteReplyMarkup to InlineKeyboardMarkup.
func (*SendVideoNoteReplyMarkup) SetReplyKeyboardMarkup ¶
func (s *SendVideoNoteReplyMarkup) SetReplyKeyboardMarkup(v ReplyKeyboardMarkup)
SetReplyKeyboardMarkup sets SendVideoNoteReplyMarkup to ReplyKeyboardMarkup.
func (*SendVideoNoteReplyMarkup) SetReplyKeyboardRemove ¶
func (s *SendVideoNoteReplyMarkup) SetReplyKeyboardRemove(v ReplyKeyboardRemove)
SetReplyKeyboardRemove sets SendVideoNoteReplyMarkup to ReplyKeyboardRemove.
func (*SendVideoNoteReplyMarkup) UnmarshalJSON ¶
func (s *SendVideoNoteReplyMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (SendVideoNoteReplyMarkup) Validate ¶
func (s SendVideoNoteReplyMarkup) Validate() error
type SendVideoNoteReplyMarkupType ¶
type SendVideoNoteReplyMarkupType string
SendVideoNoteReplyMarkupType is oneOf type of SendVideoNoteReplyMarkup.
const ( InlineKeyboardMarkupSendVideoNoteReplyMarkup SendVideoNoteReplyMarkupType = "InlineKeyboardMarkup" ReplyKeyboardMarkupSendVideoNoteReplyMarkup SendVideoNoteReplyMarkupType = "ReplyKeyboardMarkup" ReplyKeyboardRemoveSendVideoNoteReplyMarkup SendVideoNoteReplyMarkupType = "ReplyKeyboardRemove" ForceReplySendVideoNoteReplyMarkup SendVideoNoteReplyMarkupType = "ForceReply" )
Possible values for SendVideoNoteReplyMarkupType.
type SendVideoReplyMarkup ¶
type SendVideoReplyMarkup struct { Type SendVideoReplyMarkupType // switch on this field InlineKeyboardMarkup InlineKeyboardMarkup ReplyKeyboardMarkup ReplyKeyboardMarkup ReplyKeyboardRemove ReplyKeyboardRemove ForceReply ForceReply }
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. SendVideoReplyMarkup represents sum type.
func NewForceReplySendVideoReplyMarkup ¶
func NewForceReplySendVideoReplyMarkup(v ForceReply) SendVideoReplyMarkup
NewForceReplySendVideoReplyMarkup returns new SendVideoReplyMarkup from ForceReply.
func NewInlineKeyboardMarkupSendVideoReplyMarkup ¶
func NewInlineKeyboardMarkupSendVideoReplyMarkup(v InlineKeyboardMarkup) SendVideoReplyMarkup
NewInlineKeyboardMarkupSendVideoReplyMarkup returns new SendVideoReplyMarkup from InlineKeyboardMarkup.
func NewReplyKeyboardMarkupSendVideoReplyMarkup ¶
func NewReplyKeyboardMarkupSendVideoReplyMarkup(v ReplyKeyboardMarkup) SendVideoReplyMarkup
NewReplyKeyboardMarkupSendVideoReplyMarkup returns new SendVideoReplyMarkup from ReplyKeyboardMarkup.
func NewReplyKeyboardRemoveSendVideoReplyMarkup ¶
func NewReplyKeyboardRemoveSendVideoReplyMarkup(v ReplyKeyboardRemove) SendVideoReplyMarkup
NewReplyKeyboardRemoveSendVideoReplyMarkup returns new SendVideoReplyMarkup from ReplyKeyboardRemove.
func (*SendVideoReplyMarkup) Decode ¶
func (s *SendVideoReplyMarkup) Decode(d *jx.Decoder) error
Decode decodes SendVideoReplyMarkup from json.
func (SendVideoReplyMarkup) Encode ¶
func (s SendVideoReplyMarkup) Encode(e *jx.Encoder)
Encode encodes SendVideoReplyMarkup as json.
func (SendVideoReplyMarkup) GetForceReply ¶
func (s SendVideoReplyMarkup) GetForceReply() (v ForceReply, ok bool)
GetForceReply returns ForceReply and true boolean if SendVideoReplyMarkup is ForceReply.
func (SendVideoReplyMarkup) GetInlineKeyboardMarkup ¶
func (s SendVideoReplyMarkup) GetInlineKeyboardMarkup() (v InlineKeyboardMarkup, ok bool)
GetInlineKeyboardMarkup returns InlineKeyboardMarkup and true boolean if SendVideoReplyMarkup is InlineKeyboardMarkup.
func (SendVideoReplyMarkup) GetReplyKeyboardMarkup ¶
func (s SendVideoReplyMarkup) GetReplyKeyboardMarkup() (v ReplyKeyboardMarkup, ok bool)
GetReplyKeyboardMarkup returns ReplyKeyboardMarkup and true boolean if SendVideoReplyMarkup is ReplyKeyboardMarkup.
func (SendVideoReplyMarkup) GetReplyKeyboardRemove ¶
func (s SendVideoReplyMarkup) GetReplyKeyboardRemove() (v ReplyKeyboardRemove, ok bool)
GetReplyKeyboardRemove returns ReplyKeyboardRemove and true boolean if SendVideoReplyMarkup is ReplyKeyboardRemove.
func (SendVideoReplyMarkup) IsForceReply ¶
func (s SendVideoReplyMarkup) IsForceReply() bool
IsForceReply reports whether SendVideoReplyMarkup is ForceReply.
func (SendVideoReplyMarkup) IsInlineKeyboardMarkup ¶
func (s SendVideoReplyMarkup) IsInlineKeyboardMarkup() bool
IsInlineKeyboardMarkup reports whether SendVideoReplyMarkup is InlineKeyboardMarkup.
func (SendVideoReplyMarkup) IsReplyKeyboardMarkup ¶
func (s SendVideoReplyMarkup) IsReplyKeyboardMarkup() bool
IsReplyKeyboardMarkup reports whether SendVideoReplyMarkup is ReplyKeyboardMarkup.
func (SendVideoReplyMarkup) IsReplyKeyboardRemove ¶
func (s SendVideoReplyMarkup) IsReplyKeyboardRemove() bool
IsReplyKeyboardRemove reports whether SendVideoReplyMarkup is ReplyKeyboardRemove.
func (SendVideoReplyMarkup) MarshalJSON ¶
func (s SendVideoReplyMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SendVideoReplyMarkup) SetFake ¶
func (s *SendVideoReplyMarkup) SetFake()
SetFake set fake values.
func (*SendVideoReplyMarkup) SetForceReply ¶
func (s *SendVideoReplyMarkup) SetForceReply(v ForceReply)
SetForceReply sets SendVideoReplyMarkup to ForceReply.
func (*SendVideoReplyMarkup) SetInlineKeyboardMarkup ¶
func (s *SendVideoReplyMarkup) SetInlineKeyboardMarkup(v InlineKeyboardMarkup)
SetInlineKeyboardMarkup sets SendVideoReplyMarkup to InlineKeyboardMarkup.
func (*SendVideoReplyMarkup) SetReplyKeyboardMarkup ¶
func (s *SendVideoReplyMarkup) SetReplyKeyboardMarkup(v ReplyKeyboardMarkup)
SetReplyKeyboardMarkup sets SendVideoReplyMarkup to ReplyKeyboardMarkup.
func (*SendVideoReplyMarkup) SetReplyKeyboardRemove ¶
func (s *SendVideoReplyMarkup) SetReplyKeyboardRemove(v ReplyKeyboardRemove)
SetReplyKeyboardRemove sets SendVideoReplyMarkup to ReplyKeyboardRemove.
func (*SendVideoReplyMarkup) UnmarshalJSON ¶
func (s *SendVideoReplyMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (SendVideoReplyMarkup) Validate ¶
func (s SendVideoReplyMarkup) Validate() error
type SendVideoReplyMarkupType ¶
type SendVideoReplyMarkupType string
SendVideoReplyMarkupType is oneOf type of SendVideoReplyMarkup.
const ( InlineKeyboardMarkupSendVideoReplyMarkup SendVideoReplyMarkupType = "InlineKeyboardMarkup" ReplyKeyboardMarkupSendVideoReplyMarkup SendVideoReplyMarkupType = "ReplyKeyboardMarkup" ReplyKeyboardRemoveSendVideoReplyMarkup SendVideoReplyMarkupType = "ReplyKeyboardRemove" ForceReplySendVideoReplyMarkup SendVideoReplyMarkupType = "ForceReply" )
Possible values for SendVideoReplyMarkupType.
type SendVoice ¶
type SendVoice struct { ChatID ID `json:"chat_id"` // Audio file to send. Pass a file_id as String to send a file that exists on the Telegram servers // (recommended), pass an HTTP URL as a String for Telegram to get a file from the Internet, or // upload a new one using multipart/form-data. More info on Sending Files ». Voice string `json:"voice"` // Voice message caption, 0-1024 characters after entities parsing. Caption OptString `json:"caption"` // Mode for parsing entities in the voice message caption. See formatting options for more details. ParseMode OptString `json:"parse_mode"` // A JSON-serialized list of special entities that appear in the caption, which can be specified // instead of parse_mode. CaptionEntities []MessageEntity `json:"caption_entities"` // Duration of the voice message in seconds. Duration OptInt `json:"duration"` // Sends the message silently. Users will receive a notification with no sound. DisableNotification OptBool `json:"disable_notification"` // If the message is a reply, ID of the original message. ReplyToMessageID OptInt `json:"reply_to_message_id"` // Pass True, if the message should be sent even if the specified replied-to message is not found. AllowSendingWithoutReply OptBool `json:"allow_sending_without_reply"` // Additional interface options. A JSON-serialized object for an inline keyboard, custom reply // keyboard, instructions to remove reply keyboard or to force a reply from the user. ReplyMarkup OptSendVoiceReplyMarkup `json:"reply_markup"` }
Input for sendVoice. Ref: #/components/schemas/sendVoice
func (*SendVoice) GetAllowSendingWithoutReply ¶
GetAllowSendingWithoutReply returns the value of AllowSendingWithoutReply.
func (*SendVoice) GetCaption ¶
GetCaption returns the value of Caption.
func (*SendVoice) GetCaptionEntities ¶
func (s *SendVoice) GetCaptionEntities() []MessageEntity
GetCaptionEntities returns the value of CaptionEntities.
func (*SendVoice) GetDisableNotification ¶
GetDisableNotification returns the value of DisableNotification.
func (*SendVoice) GetDuration ¶
GetDuration returns the value of Duration.
func (*SendVoice) GetParseMode ¶
GetParseMode returns the value of ParseMode.
func (*SendVoice) GetReplyMarkup ¶
func (s *SendVoice) GetReplyMarkup() OptSendVoiceReplyMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*SendVoice) GetReplyToMessageID ¶
GetReplyToMessageID returns the value of ReplyToMessageID.
func (*SendVoice) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*SendVoice) SetAllowSendingWithoutReply ¶
SetAllowSendingWithoutReply sets the value of AllowSendingWithoutReply.
func (*SendVoice) SetCaption ¶
SetCaption sets the value of Caption.
func (*SendVoice) SetCaptionEntities ¶
func (s *SendVoice) SetCaptionEntities(val []MessageEntity)
SetCaptionEntities sets the value of CaptionEntities.
func (*SendVoice) SetDisableNotification ¶
SetDisableNotification sets the value of DisableNotification.
func (*SendVoice) SetDuration ¶
SetDuration sets the value of Duration.
func (*SendVoice) SetParseMode ¶
SetParseMode sets the value of ParseMode.
func (*SendVoice) SetReplyMarkup ¶
func (s *SendVoice) SetReplyMarkup(val OptSendVoiceReplyMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*SendVoice) SetReplyToMessageID ¶
SetReplyToMessageID sets the value of ReplyToMessageID.
func (*SendVoice) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type SendVoiceReplyMarkup ¶
type SendVoiceReplyMarkup struct { Type SendVoiceReplyMarkupType // switch on this field InlineKeyboardMarkup InlineKeyboardMarkup ReplyKeyboardMarkup ReplyKeyboardMarkup ReplyKeyboardRemove ReplyKeyboardRemove ForceReply ForceReply }
Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. SendVoiceReplyMarkup represents sum type.
func NewForceReplySendVoiceReplyMarkup ¶
func NewForceReplySendVoiceReplyMarkup(v ForceReply) SendVoiceReplyMarkup
NewForceReplySendVoiceReplyMarkup returns new SendVoiceReplyMarkup from ForceReply.
func NewInlineKeyboardMarkupSendVoiceReplyMarkup ¶
func NewInlineKeyboardMarkupSendVoiceReplyMarkup(v InlineKeyboardMarkup) SendVoiceReplyMarkup
NewInlineKeyboardMarkupSendVoiceReplyMarkup returns new SendVoiceReplyMarkup from InlineKeyboardMarkup.
func NewReplyKeyboardMarkupSendVoiceReplyMarkup ¶
func NewReplyKeyboardMarkupSendVoiceReplyMarkup(v ReplyKeyboardMarkup) SendVoiceReplyMarkup
NewReplyKeyboardMarkupSendVoiceReplyMarkup returns new SendVoiceReplyMarkup from ReplyKeyboardMarkup.
func NewReplyKeyboardRemoveSendVoiceReplyMarkup ¶
func NewReplyKeyboardRemoveSendVoiceReplyMarkup(v ReplyKeyboardRemove) SendVoiceReplyMarkup
NewReplyKeyboardRemoveSendVoiceReplyMarkup returns new SendVoiceReplyMarkup from ReplyKeyboardRemove.
func (*SendVoiceReplyMarkup) Decode ¶
func (s *SendVoiceReplyMarkup) Decode(d *jx.Decoder) error
Decode decodes SendVoiceReplyMarkup from json.
func (SendVoiceReplyMarkup) Encode ¶
func (s SendVoiceReplyMarkup) Encode(e *jx.Encoder)
Encode encodes SendVoiceReplyMarkup as json.
func (SendVoiceReplyMarkup) GetForceReply ¶
func (s SendVoiceReplyMarkup) GetForceReply() (v ForceReply, ok bool)
GetForceReply returns ForceReply and true boolean if SendVoiceReplyMarkup is ForceReply.
func (SendVoiceReplyMarkup) GetInlineKeyboardMarkup ¶
func (s SendVoiceReplyMarkup) GetInlineKeyboardMarkup() (v InlineKeyboardMarkup, ok bool)
GetInlineKeyboardMarkup returns InlineKeyboardMarkup and true boolean if SendVoiceReplyMarkup is InlineKeyboardMarkup.
func (SendVoiceReplyMarkup) GetReplyKeyboardMarkup ¶
func (s SendVoiceReplyMarkup) GetReplyKeyboardMarkup() (v ReplyKeyboardMarkup, ok bool)
GetReplyKeyboardMarkup returns ReplyKeyboardMarkup and true boolean if SendVoiceReplyMarkup is ReplyKeyboardMarkup.
func (SendVoiceReplyMarkup) GetReplyKeyboardRemove ¶
func (s SendVoiceReplyMarkup) GetReplyKeyboardRemove() (v ReplyKeyboardRemove, ok bool)
GetReplyKeyboardRemove returns ReplyKeyboardRemove and true boolean if SendVoiceReplyMarkup is ReplyKeyboardRemove.
func (SendVoiceReplyMarkup) IsForceReply ¶
func (s SendVoiceReplyMarkup) IsForceReply() bool
IsForceReply reports whether SendVoiceReplyMarkup is ForceReply.
func (SendVoiceReplyMarkup) IsInlineKeyboardMarkup ¶
func (s SendVoiceReplyMarkup) IsInlineKeyboardMarkup() bool
IsInlineKeyboardMarkup reports whether SendVoiceReplyMarkup is InlineKeyboardMarkup.
func (SendVoiceReplyMarkup) IsReplyKeyboardMarkup ¶
func (s SendVoiceReplyMarkup) IsReplyKeyboardMarkup() bool
IsReplyKeyboardMarkup reports whether SendVoiceReplyMarkup is ReplyKeyboardMarkup.
func (SendVoiceReplyMarkup) IsReplyKeyboardRemove ¶
func (s SendVoiceReplyMarkup) IsReplyKeyboardRemove() bool
IsReplyKeyboardRemove reports whether SendVoiceReplyMarkup is ReplyKeyboardRemove.
func (SendVoiceReplyMarkup) MarshalJSON ¶
func (s SendVoiceReplyMarkup) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SendVoiceReplyMarkup) SetFake ¶
func (s *SendVoiceReplyMarkup) SetFake()
SetFake set fake values.
func (*SendVoiceReplyMarkup) SetForceReply ¶
func (s *SendVoiceReplyMarkup) SetForceReply(v ForceReply)
SetForceReply sets SendVoiceReplyMarkup to ForceReply.
func (*SendVoiceReplyMarkup) SetInlineKeyboardMarkup ¶
func (s *SendVoiceReplyMarkup) SetInlineKeyboardMarkup(v InlineKeyboardMarkup)
SetInlineKeyboardMarkup sets SendVoiceReplyMarkup to InlineKeyboardMarkup.
func (*SendVoiceReplyMarkup) SetReplyKeyboardMarkup ¶
func (s *SendVoiceReplyMarkup) SetReplyKeyboardMarkup(v ReplyKeyboardMarkup)
SetReplyKeyboardMarkup sets SendVoiceReplyMarkup to ReplyKeyboardMarkup.
func (*SendVoiceReplyMarkup) SetReplyKeyboardRemove ¶
func (s *SendVoiceReplyMarkup) SetReplyKeyboardRemove(v ReplyKeyboardRemove)
SetReplyKeyboardRemove sets SendVoiceReplyMarkup to ReplyKeyboardRemove.
func (*SendVoiceReplyMarkup) UnmarshalJSON ¶
func (s *SendVoiceReplyMarkup) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (SendVoiceReplyMarkup) Validate ¶
func (s SendVoiceReplyMarkup) Validate() error
type SendVoiceReplyMarkupType ¶
type SendVoiceReplyMarkupType string
SendVoiceReplyMarkupType is oneOf type of SendVoiceReplyMarkup.
const ( InlineKeyboardMarkupSendVoiceReplyMarkup SendVoiceReplyMarkupType = "InlineKeyboardMarkup" ReplyKeyboardMarkupSendVoiceReplyMarkup SendVoiceReplyMarkupType = "ReplyKeyboardMarkup" ReplyKeyboardRemoveSendVoiceReplyMarkup SendVoiceReplyMarkupType = "ReplyKeyboardRemove" ForceReplySendVoiceReplyMarkup SendVoiceReplyMarkupType = "ForceReply" )
Possible values for SendVoiceReplyMarkupType.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements http server based on OpenAPI v3 specification and calls Handler to handle requests.
func NewServer ¶
func NewServer(h Handler, opts ...ServerOption) (*Server, error)
NewServer creates new Server.
type ServerOption ¶
type ServerOption interface {
// contains filtered or unexported methods
}
ServerOption is server config option.
func WithErrorHandler ¶
func WithErrorHandler(h ErrorHandler) ServerOption
WithErrorHandler specifies error handler to use.
func WithMaxMultipartMemory ¶
func WithMaxMultipartMemory(max int64) ServerOption
WithMaxMultipartMemory specifies limit of memory for storing file parts. File parts which can't be stored in memory will be stored on disk in temporary files.
func WithMethodNotAllowed ¶
func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption
WithMethodNotAllowed specifies Method Not Allowed handler to use.
func WithMiddleware ¶
func WithMiddleware(m ...Middleware) ServerOption
WithMiddleware specifies middlewares to use.
func WithNotFound ¶
func WithNotFound(notFound http.HandlerFunc) ServerOption
WithNotFound specifies Not Found handler to use.
func WithPathPrefix ¶
func WithPathPrefix(prefix string) ServerOption
WithPathPrefix specifies server path prefix.
type SetChatAdministratorCustomTitle ¶
type SetChatAdministratorCustomTitle struct { ChatID ID `json:"chat_id"` // Unique identifier of the target user. UserID int64 `json:"user_id"` // New custom title for the administrator; 0-16 characters, emoji are not allowed. CustomTitle string `json:"custom_title"` }
Input for setChatAdministratorCustomTitle. Ref: #/components/schemas/setChatAdministratorCustomTitle
func (*SetChatAdministratorCustomTitle) Decode ¶
func (s *SetChatAdministratorCustomTitle) Decode(d *jx.Decoder) error
Decode decodes SetChatAdministratorCustomTitle from json.
func (*SetChatAdministratorCustomTitle) Encode ¶
func (s *SetChatAdministratorCustomTitle) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SetChatAdministratorCustomTitle) GetChatID ¶
func (s *SetChatAdministratorCustomTitle) GetChatID() ID
GetChatID returns the value of ChatID.
func (*SetChatAdministratorCustomTitle) GetCustomTitle ¶
func (s *SetChatAdministratorCustomTitle) GetCustomTitle() string
GetCustomTitle returns the value of CustomTitle.
func (*SetChatAdministratorCustomTitle) GetUserID ¶
func (s *SetChatAdministratorCustomTitle) GetUserID() int64
GetUserID returns the value of UserID.
func (*SetChatAdministratorCustomTitle) MarshalJSON ¶
func (s *SetChatAdministratorCustomTitle) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SetChatAdministratorCustomTitle) SetChatID ¶
func (s *SetChatAdministratorCustomTitle) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*SetChatAdministratorCustomTitle) SetCustomTitle ¶
func (s *SetChatAdministratorCustomTitle) SetCustomTitle(val string)
SetCustomTitle sets the value of CustomTitle.
func (*SetChatAdministratorCustomTitle) SetFake ¶
func (s *SetChatAdministratorCustomTitle) SetFake()
SetFake set fake values.
func (*SetChatAdministratorCustomTitle) SetUserID ¶
func (s *SetChatAdministratorCustomTitle) SetUserID(val int64)
SetUserID sets the value of UserID.
func (*SetChatAdministratorCustomTitle) UnmarshalJSON ¶
func (s *SetChatAdministratorCustomTitle) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SetChatAdministratorCustomTitle) Validate ¶
func (s *SetChatAdministratorCustomTitle) Validate() error
type SetChatDescription ¶
type SetChatDescription struct { ChatID ID `json:"chat_id"` // New chat description, 0-255 characters. Description OptString `json:"description"` }
Input for setChatDescription. Ref: #/components/schemas/setChatDescription
func (*SetChatDescription) Decode ¶
func (s *SetChatDescription) Decode(d *jx.Decoder) error
Decode decodes SetChatDescription from json.
func (*SetChatDescription) Encode ¶
func (s *SetChatDescription) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SetChatDescription) GetChatID ¶
func (s *SetChatDescription) GetChatID() ID
GetChatID returns the value of ChatID.
func (*SetChatDescription) GetDescription ¶
func (s *SetChatDescription) GetDescription() OptString
GetDescription returns the value of Description.
func (*SetChatDescription) MarshalJSON ¶
func (s *SetChatDescription) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SetChatDescription) SetChatID ¶
func (s *SetChatDescription) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*SetChatDescription) SetDescription ¶
func (s *SetChatDescription) SetDescription(val OptString)
SetDescription sets the value of Description.
func (*SetChatDescription) SetFake ¶
func (s *SetChatDescription) SetFake()
SetFake set fake values.
func (*SetChatDescription) UnmarshalJSON ¶
func (s *SetChatDescription) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SetChatDescription) Validate ¶
func (s *SetChatDescription) Validate() error
type SetChatPermissions ¶
type SetChatPermissions struct { ChatID ID `json:"chat_id"` Permissions ChatPermissions `json:"permissions"` }
Input for setChatPermissions. Ref: #/components/schemas/setChatPermissions
func (*SetChatPermissions) Decode ¶
func (s *SetChatPermissions) Decode(d *jx.Decoder) error
Decode decodes SetChatPermissions from json.
func (*SetChatPermissions) Encode ¶
func (s *SetChatPermissions) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SetChatPermissions) GetChatID ¶
func (s *SetChatPermissions) GetChatID() ID
GetChatID returns the value of ChatID.
func (*SetChatPermissions) GetPermissions ¶
func (s *SetChatPermissions) GetPermissions() ChatPermissions
GetPermissions returns the value of Permissions.
func (*SetChatPermissions) MarshalJSON ¶
func (s *SetChatPermissions) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SetChatPermissions) SetChatID ¶
func (s *SetChatPermissions) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*SetChatPermissions) SetFake ¶
func (s *SetChatPermissions) SetFake()
SetFake set fake values.
func (*SetChatPermissions) SetPermissions ¶
func (s *SetChatPermissions) SetPermissions(val ChatPermissions)
SetPermissions sets the value of Permissions.
func (*SetChatPermissions) UnmarshalJSON ¶
func (s *SetChatPermissions) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SetChatPhoto ¶
type SetChatPhoto struct { ChatID ID `json:"chat_id"` // New chat photo, uploaded using multipart/form-data. Photo string `json:"photo"` }
Input for setChatPhoto. Ref: #/components/schemas/setChatPhoto
func (*SetChatPhoto) Decode ¶
func (s *SetChatPhoto) Decode(d *jx.Decoder) error
Decode decodes SetChatPhoto from json.
func (*SetChatPhoto) Encode ¶
func (s *SetChatPhoto) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SetChatPhoto) GetChatID ¶
func (s *SetChatPhoto) GetChatID() ID
GetChatID returns the value of ChatID.
func (*SetChatPhoto) GetPhoto ¶
func (s *SetChatPhoto) GetPhoto() string
GetPhoto returns the value of Photo.
func (*SetChatPhoto) MarshalJSON ¶
func (s *SetChatPhoto) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SetChatPhoto) SetChatID ¶
func (s *SetChatPhoto) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*SetChatPhoto) SetPhoto ¶
func (s *SetChatPhoto) SetPhoto(val string)
SetPhoto sets the value of Photo.
func (*SetChatPhoto) UnmarshalJSON ¶
func (s *SetChatPhoto) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SetChatStickerSet ¶
type SetChatStickerSet struct { ChatID ID `json:"chat_id"` // Name of the sticker set to be set as the group sticker set. StickerSetName string `json:"sticker_set_name"` }
Input for setChatStickerSet. Ref: #/components/schemas/setChatStickerSet
func (*SetChatStickerSet) Decode ¶
func (s *SetChatStickerSet) Decode(d *jx.Decoder) error
Decode decodes SetChatStickerSet from json.
func (*SetChatStickerSet) Encode ¶
func (s *SetChatStickerSet) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SetChatStickerSet) GetChatID ¶
func (s *SetChatStickerSet) GetChatID() ID
GetChatID returns the value of ChatID.
func (*SetChatStickerSet) GetStickerSetName ¶
func (s *SetChatStickerSet) GetStickerSetName() string
GetStickerSetName returns the value of StickerSetName.
func (*SetChatStickerSet) MarshalJSON ¶
func (s *SetChatStickerSet) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SetChatStickerSet) SetChatID ¶
func (s *SetChatStickerSet) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*SetChatStickerSet) SetStickerSetName ¶
func (s *SetChatStickerSet) SetStickerSetName(val string)
SetStickerSetName sets the value of StickerSetName.
func (*SetChatStickerSet) UnmarshalJSON ¶
func (s *SetChatStickerSet) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SetChatTitle ¶
type SetChatTitle struct { ChatID ID `json:"chat_id"` // New chat title, 1-255 characters. Title string `json:"title"` }
Input for setChatTitle. Ref: #/components/schemas/setChatTitle
func (*SetChatTitle) Decode ¶
func (s *SetChatTitle) Decode(d *jx.Decoder) error
Decode decodes SetChatTitle from json.
func (*SetChatTitle) Encode ¶
func (s *SetChatTitle) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SetChatTitle) GetChatID ¶
func (s *SetChatTitle) GetChatID() ID
GetChatID returns the value of ChatID.
func (*SetChatTitle) GetTitle ¶
func (s *SetChatTitle) GetTitle() string
GetTitle returns the value of Title.
func (*SetChatTitle) MarshalJSON ¶
func (s *SetChatTitle) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SetChatTitle) SetChatID ¶
func (s *SetChatTitle) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*SetChatTitle) SetTitle ¶
func (s *SetChatTitle) SetTitle(val string)
SetTitle sets the value of Title.
func (*SetChatTitle) UnmarshalJSON ¶
func (s *SetChatTitle) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SetChatTitle) Validate ¶
func (s *SetChatTitle) Validate() error
type SetGameScore ¶
type SetGameScore struct { // User identifier. UserID int64 `json:"user_id"` // New score, must be non-negative. Score int `json:"score"` // Pass True, if the high score is allowed to decrease. This can be useful when fixing mistakes or // banning cheaters. Force OptBool `json:"force"` // Pass True, if the game message should not be automatically edited to include the current scoreboard. DisableEditMessage OptBool `json:"disable_edit_message"` // Required if inline_message_id is not specified. Unique identifier for the target chat. ChatID OptInt64 `json:"chat_id"` // Required if inline_message_id is not specified. Identifier of the sent message. MessageID OptInt `json:"message_id"` // Required if chat_id and message_id are not specified. Identifier of the inline message. InlineMessageID OptString `json:"inline_message_id"` }
Input for setGameScore. Ref: #/components/schemas/setGameScore
func (*SetGameScore) Decode ¶
func (s *SetGameScore) Decode(d *jx.Decoder) error
Decode decodes SetGameScore from json.
func (*SetGameScore) Encode ¶
func (s *SetGameScore) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SetGameScore) GetChatID ¶
func (s *SetGameScore) GetChatID() OptInt64
GetChatID returns the value of ChatID.
func (*SetGameScore) GetDisableEditMessage ¶
func (s *SetGameScore) GetDisableEditMessage() OptBool
GetDisableEditMessage returns the value of DisableEditMessage.
func (*SetGameScore) GetForce ¶
func (s *SetGameScore) GetForce() OptBool
GetForce returns the value of Force.
func (*SetGameScore) GetInlineMessageID ¶
func (s *SetGameScore) GetInlineMessageID() OptString
GetInlineMessageID returns the value of InlineMessageID.
func (*SetGameScore) GetMessageID ¶
func (s *SetGameScore) GetMessageID() OptInt
GetMessageID returns the value of MessageID.
func (*SetGameScore) GetScore ¶
func (s *SetGameScore) GetScore() int
GetScore returns the value of Score.
func (*SetGameScore) GetUserID ¶
func (s *SetGameScore) GetUserID() int64
GetUserID returns the value of UserID.
func (*SetGameScore) MarshalJSON ¶
func (s *SetGameScore) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SetGameScore) SetChatID ¶
func (s *SetGameScore) SetChatID(val OptInt64)
SetChatID sets the value of ChatID.
func (*SetGameScore) SetDisableEditMessage ¶
func (s *SetGameScore) SetDisableEditMessage(val OptBool)
SetDisableEditMessage sets the value of DisableEditMessage.
func (*SetGameScore) SetForce ¶
func (s *SetGameScore) SetForce(val OptBool)
SetForce sets the value of Force.
func (*SetGameScore) SetInlineMessageID ¶
func (s *SetGameScore) SetInlineMessageID(val OptString)
SetInlineMessageID sets the value of InlineMessageID.
func (*SetGameScore) SetMessageID ¶
func (s *SetGameScore) SetMessageID(val OptInt)
SetMessageID sets the value of MessageID.
func (*SetGameScore) SetScore ¶
func (s *SetGameScore) SetScore(val int)
SetScore sets the value of Score.
func (*SetGameScore) SetUserID ¶
func (s *SetGameScore) SetUserID(val int64)
SetUserID sets the value of UserID.
func (*SetGameScore) UnmarshalJSON ¶
func (s *SetGameScore) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SetMyCommands ¶
type SetMyCommands struct { // A JSON-serialized list of bot commands to be set as the list of the bot's commands. At most 100 // commands can be specified. Commands []BotCommand `json:"commands"` Scope OptBotCommandScope `json:"scope"` // A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the // given scope, for whose language there are no dedicated commands. LanguageCode OptString `json:"language_code"` }
Input for setMyCommands. Ref: #/components/schemas/setMyCommands
func (*SetMyCommands) Decode ¶
func (s *SetMyCommands) Decode(d *jx.Decoder) error
Decode decodes SetMyCommands from json.
func (*SetMyCommands) Encode ¶
func (s *SetMyCommands) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SetMyCommands) GetCommands ¶
func (s *SetMyCommands) GetCommands() []BotCommand
GetCommands returns the value of Commands.
func (*SetMyCommands) GetLanguageCode ¶
func (s *SetMyCommands) GetLanguageCode() OptString
GetLanguageCode returns the value of LanguageCode.
func (*SetMyCommands) GetScope ¶
func (s *SetMyCommands) GetScope() OptBotCommandScope
GetScope returns the value of Scope.
func (*SetMyCommands) MarshalJSON ¶
func (s *SetMyCommands) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SetMyCommands) SetCommands ¶
func (s *SetMyCommands) SetCommands(val []BotCommand)
SetCommands sets the value of Commands.
func (*SetMyCommands) SetLanguageCode ¶
func (s *SetMyCommands) SetLanguageCode(val OptString)
SetLanguageCode sets the value of LanguageCode.
func (*SetMyCommands) SetScope ¶
func (s *SetMyCommands) SetScope(val OptBotCommandScope)
SetScope sets the value of Scope.
func (*SetMyCommands) UnmarshalJSON ¶
func (s *SetMyCommands) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SetMyCommands) Validate ¶
func (s *SetMyCommands) Validate() error
type SetPassportDataErrors ¶
type SetPassportDataErrors struct { // User identifier. UserID int64 `json:"user_id"` // A JSON-serialized array describing the errors. Errors []PassportElementError `json:"errors"` }
Input for setPassportDataErrors. Ref: #/components/schemas/setPassportDataErrors
func (*SetPassportDataErrors) Decode ¶
func (s *SetPassportDataErrors) Decode(d *jx.Decoder) error
Decode decodes SetPassportDataErrors from json.
func (*SetPassportDataErrors) Encode ¶
func (s *SetPassportDataErrors) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SetPassportDataErrors) GetErrors ¶
func (s *SetPassportDataErrors) GetErrors() []PassportElementError
GetErrors returns the value of Errors.
func (*SetPassportDataErrors) GetUserID ¶
func (s *SetPassportDataErrors) GetUserID() int64
GetUserID returns the value of UserID.
func (*SetPassportDataErrors) MarshalJSON ¶
func (s *SetPassportDataErrors) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SetPassportDataErrors) SetErrors ¶
func (s *SetPassportDataErrors) SetErrors(val []PassportElementError)
SetErrors sets the value of Errors.
func (*SetPassportDataErrors) SetFake ¶
func (s *SetPassportDataErrors) SetFake()
SetFake set fake values.
func (*SetPassportDataErrors) SetUserID ¶
func (s *SetPassportDataErrors) SetUserID(val int64)
SetUserID sets the value of UserID.
func (*SetPassportDataErrors) UnmarshalJSON ¶
func (s *SetPassportDataErrors) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SetPassportDataErrors) Validate ¶
func (s *SetPassportDataErrors) Validate() error
type SetStickerPositionInSet ¶
type SetStickerPositionInSet struct { // File identifier of the sticker. Sticker string `json:"sticker"` // New sticker position in the set, zero-based. Position int `json:"position"` }
Input for setStickerPositionInSet. Ref: #/components/schemas/setStickerPositionInSet
func (*SetStickerPositionInSet) Decode ¶
func (s *SetStickerPositionInSet) Decode(d *jx.Decoder) error
Decode decodes SetStickerPositionInSet from json.
func (*SetStickerPositionInSet) Encode ¶
func (s *SetStickerPositionInSet) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SetStickerPositionInSet) GetPosition ¶
func (s *SetStickerPositionInSet) GetPosition() int
GetPosition returns the value of Position.
func (*SetStickerPositionInSet) GetSticker ¶
func (s *SetStickerPositionInSet) GetSticker() string
GetSticker returns the value of Sticker.
func (*SetStickerPositionInSet) MarshalJSON ¶
func (s *SetStickerPositionInSet) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SetStickerPositionInSet) SetFake ¶
func (s *SetStickerPositionInSet) SetFake()
SetFake set fake values.
func (*SetStickerPositionInSet) SetPosition ¶
func (s *SetStickerPositionInSet) SetPosition(val int)
SetPosition sets the value of Position.
func (*SetStickerPositionInSet) SetSticker ¶
func (s *SetStickerPositionInSet) SetSticker(val string)
SetSticker sets the value of Sticker.
func (*SetStickerPositionInSet) UnmarshalJSON ¶
func (s *SetStickerPositionInSet) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SetStickerSetThumb ¶
type SetStickerSetThumb struct { // Sticker set name. Name string `json:"name"` // User identifier of the sticker set owner. UserID int64 `json:"user_id"` // A PNG image with the thumbnail, must be up to 128 kilobytes in size and have width and height // exactly 100px, or a TGS animation with the thumbnail up to 32 kilobytes in size; see https://core. // telegram.org/animated_stickers#technical-requirements for animated sticker technical requirements. // Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an // HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using // multipart/form-data. More info on Sending Files ». Animated sticker set thumbnail can't be // uploaded via HTTP URL. Thumb OptString `json:"thumb"` }
Input for setStickerSetThumb. Ref: #/components/schemas/setStickerSetThumb
func (*SetStickerSetThumb) Decode ¶
func (s *SetStickerSetThumb) Decode(d *jx.Decoder) error
Decode decodes SetStickerSetThumb from json.
func (*SetStickerSetThumb) Encode ¶
func (s *SetStickerSetThumb) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SetStickerSetThumb) GetName ¶
func (s *SetStickerSetThumb) GetName() string
GetName returns the value of Name.
func (*SetStickerSetThumb) GetThumb ¶
func (s *SetStickerSetThumb) GetThumb() OptString
GetThumb returns the value of Thumb.
func (*SetStickerSetThumb) GetUserID ¶
func (s *SetStickerSetThumb) GetUserID() int64
GetUserID returns the value of UserID.
func (*SetStickerSetThumb) MarshalJSON ¶
func (s *SetStickerSetThumb) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SetStickerSetThumb) SetFake ¶
func (s *SetStickerSetThumb) SetFake()
SetFake set fake values.
func (*SetStickerSetThumb) SetName ¶
func (s *SetStickerSetThumb) SetName(val string)
SetName sets the value of Name.
func (*SetStickerSetThumb) SetThumb ¶
func (s *SetStickerSetThumb) SetThumb(val OptString)
SetThumb sets the value of Thumb.
func (*SetStickerSetThumb) SetUserID ¶
func (s *SetStickerSetThumb) SetUserID(val int64)
SetUserID sets the value of UserID.
func (*SetStickerSetThumb) UnmarshalJSON ¶
func (s *SetStickerSetThumb) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SetWebhook ¶
type SetWebhook struct { // HTTPS url to send updates to. Use an empty string to remove webhook integration. URL url.URL `json:"url"` // Upload your public key certificate so that the root certificate in use can be checked. See our // self-signed guide for details. Certificate OptString `json:"certificate"` // The fixed IP address which will be used to send webhook requests instead of the IP address // resolved through DNS. IPAddress OptString `json:"ip_address"` // Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery, 1-100. // Defaults to 40. Use lower values to limit the load on your bot's server, and higher values to // increase your bot's throughput. MaxConnections OptInt `json:"max_connections"` // A JSON-serialized list of the update types you want your bot to receive. For example, specify // [“message”, “edited_channel_post”, “callback_query”] to only receive updates of these // types. See Update for a complete list of available update types. Specify an empty list to receive // all update types except chat_member (default). If not specified, the previous setting will be used. // Please note that this parameter doesn't affect updates created before the call to the setWebhook, // so unwanted updates may be received for a short period of time. AllowedUpdates []string `json:"allowed_updates"` // Pass True to drop all pending updates. DropPendingUpdates OptBool `json:"drop_pending_updates"` }
Input for setWebhook. Ref: #/components/schemas/setWebhook
func (*SetWebhook) Decode ¶
func (s *SetWebhook) Decode(d *jx.Decoder) error
Decode decodes SetWebhook from json.
func (*SetWebhook) Encode ¶
func (s *SetWebhook) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SetWebhook) GetAllowedUpdates ¶
func (s *SetWebhook) GetAllowedUpdates() []string
GetAllowedUpdates returns the value of AllowedUpdates.
func (*SetWebhook) GetCertificate ¶
func (s *SetWebhook) GetCertificate() OptString
GetCertificate returns the value of Certificate.
func (*SetWebhook) GetDropPendingUpdates ¶
func (s *SetWebhook) GetDropPendingUpdates() OptBool
GetDropPendingUpdates returns the value of DropPendingUpdates.
func (*SetWebhook) GetIPAddress ¶
func (s *SetWebhook) GetIPAddress() OptString
GetIPAddress returns the value of IPAddress.
func (*SetWebhook) GetMaxConnections ¶
func (s *SetWebhook) GetMaxConnections() OptInt
GetMaxConnections returns the value of MaxConnections.
func (*SetWebhook) MarshalJSON ¶
func (s *SetWebhook) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SetWebhook) SetAllowedUpdates ¶
func (s *SetWebhook) SetAllowedUpdates(val []string)
SetAllowedUpdates sets the value of AllowedUpdates.
func (*SetWebhook) SetCertificate ¶
func (s *SetWebhook) SetCertificate(val OptString)
SetCertificate sets the value of Certificate.
func (*SetWebhook) SetDropPendingUpdates ¶
func (s *SetWebhook) SetDropPendingUpdates(val OptBool)
SetDropPendingUpdates sets the value of DropPendingUpdates.
func (*SetWebhook) SetIPAddress ¶
func (s *SetWebhook) SetIPAddress(val OptString)
SetIPAddress sets the value of IPAddress.
func (*SetWebhook) SetMaxConnections ¶
func (s *SetWebhook) SetMaxConnections(val OptInt)
SetMaxConnections sets the value of MaxConnections.
func (*SetWebhook) UnmarshalJSON ¶
func (s *SetWebhook) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ShippingAddress ¶
type ShippingAddress struct { // ISO 3166-1 alpha-2 country code. CountryCode string `json:"country_code"` // State, if applicable. State string `json:"state"` // City. City string `json:"city"` // First line for the address. StreetLine1 string `json:"street_line1"` // Second line for the address. StreetLine2 string `json:"street_line2"` // Address post code. PostCode string `json:"post_code"` }
This object represents a shipping address. Ref: #/components/schemas/ShippingAddress
func (*ShippingAddress) Decode ¶
func (s *ShippingAddress) Decode(d *jx.Decoder) error
Decode decodes ShippingAddress from json.
func (*ShippingAddress) Encode ¶
func (s *ShippingAddress) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ShippingAddress) GetCity ¶
func (s *ShippingAddress) GetCity() string
GetCity returns the value of City.
func (*ShippingAddress) GetCountryCode ¶
func (s *ShippingAddress) GetCountryCode() string
GetCountryCode returns the value of CountryCode.
func (*ShippingAddress) GetPostCode ¶
func (s *ShippingAddress) GetPostCode() string
GetPostCode returns the value of PostCode.
func (*ShippingAddress) GetState ¶
func (s *ShippingAddress) GetState() string
GetState returns the value of State.
func (*ShippingAddress) GetStreetLine1 ¶
func (s *ShippingAddress) GetStreetLine1() string
GetStreetLine1 returns the value of StreetLine1.
func (*ShippingAddress) GetStreetLine2 ¶
func (s *ShippingAddress) GetStreetLine2() string
GetStreetLine2 returns the value of StreetLine2.
func (*ShippingAddress) MarshalJSON ¶
func (s *ShippingAddress) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ShippingAddress) SetCity ¶
func (s *ShippingAddress) SetCity(val string)
SetCity sets the value of City.
func (*ShippingAddress) SetCountryCode ¶
func (s *ShippingAddress) SetCountryCode(val string)
SetCountryCode sets the value of CountryCode.
func (*ShippingAddress) SetPostCode ¶
func (s *ShippingAddress) SetPostCode(val string)
SetPostCode sets the value of PostCode.
func (*ShippingAddress) SetState ¶
func (s *ShippingAddress) SetState(val string)
SetState sets the value of State.
func (*ShippingAddress) SetStreetLine1 ¶
func (s *ShippingAddress) SetStreetLine1(val string)
SetStreetLine1 sets the value of StreetLine1.
func (*ShippingAddress) SetStreetLine2 ¶
func (s *ShippingAddress) SetStreetLine2(val string)
SetStreetLine2 sets the value of StreetLine2.
func (*ShippingAddress) UnmarshalJSON ¶
func (s *ShippingAddress) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ShippingOption ¶
type ShippingOption struct { // Shipping option identifier. ID string `json:"id"` // Option title. Title string `json:"title"` // List of price portions. Prices []LabeledPrice `json:"prices"` }
This object represents one shipping option. Ref: #/components/schemas/ShippingOption
func (*ShippingOption) Decode ¶
func (s *ShippingOption) Decode(d *jx.Decoder) error
Decode decodes ShippingOption from json.
func (*ShippingOption) Encode ¶
func (s *ShippingOption) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ShippingOption) GetID ¶
func (s *ShippingOption) GetID() string
GetID returns the value of ID.
func (*ShippingOption) GetPrices ¶
func (s *ShippingOption) GetPrices() []LabeledPrice
GetPrices returns the value of Prices.
func (*ShippingOption) GetTitle ¶
func (s *ShippingOption) GetTitle() string
GetTitle returns the value of Title.
func (*ShippingOption) MarshalJSON ¶
func (s *ShippingOption) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ShippingOption) SetID ¶
func (s *ShippingOption) SetID(val string)
SetID sets the value of ID.
func (*ShippingOption) SetPrices ¶
func (s *ShippingOption) SetPrices(val []LabeledPrice)
SetPrices sets the value of Prices.
func (*ShippingOption) SetTitle ¶
func (s *ShippingOption) SetTitle(val string)
SetTitle sets the value of Title.
func (*ShippingOption) UnmarshalJSON ¶
func (s *ShippingOption) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ShippingOption) Validate ¶
func (s *ShippingOption) Validate() error
type ShippingQuery ¶
type ShippingQuery struct { // Unique query identifier. ID string `json:"id"` From User `json:"from"` // Bot specified invoice payload. InvoicePayload string `json:"invoice_payload"` ShippingAddress ShippingAddress `json:"shipping_address"` }
This object contains information about an incoming shipping query. Ref: #/components/schemas/ShippingQuery
func (*ShippingQuery) Decode ¶
func (s *ShippingQuery) Decode(d *jx.Decoder) error
Decode decodes ShippingQuery from json.
func (*ShippingQuery) Encode ¶
func (s *ShippingQuery) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ShippingQuery) GetFrom ¶
func (s *ShippingQuery) GetFrom() User
GetFrom returns the value of From.
func (*ShippingQuery) GetInvoicePayload ¶
func (s *ShippingQuery) GetInvoicePayload() string
GetInvoicePayload returns the value of InvoicePayload.
func (*ShippingQuery) GetShippingAddress ¶
func (s *ShippingQuery) GetShippingAddress() ShippingAddress
GetShippingAddress returns the value of ShippingAddress.
func (*ShippingQuery) MarshalJSON ¶
func (s *ShippingQuery) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ShippingQuery) SetFrom ¶
func (s *ShippingQuery) SetFrom(val User)
SetFrom sets the value of From.
func (*ShippingQuery) SetInvoicePayload ¶
func (s *ShippingQuery) SetInvoicePayload(val string)
SetInvoicePayload sets the value of InvoicePayload.
func (*ShippingQuery) SetShippingAddress ¶
func (s *ShippingQuery) SetShippingAddress(val ShippingAddress)
SetShippingAddress sets the value of ShippingAddress.
func (*ShippingQuery) UnmarshalJSON ¶
func (s *ShippingQuery) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Sticker ¶
type Sticker struct { // Identifier for this file, which can be used to download or reuse the file. FileID string `json:"file_id"` // Unique identifier for this file, which is supposed to be the same over time and for different bots. // Can't be used to download or reuse the file. FileUniqueID string `json:"file_unique_id"` // Sticker width. Width int `json:"width"` // Sticker height. Height int `json:"height"` // True, if the sticker is animated. IsAnimated bool `json:"is_animated"` Thumb OptPhotoSize `json:"thumb"` // Emoji associated with the sticker. Emoji OptString `json:"emoji"` // Name of the sticker set to which the sticker belongs. SetName OptString `json:"set_name"` MaskPosition OptMaskPosition `json:"mask_position"` // File size in bytes. FileSize OptInt `json:"file_size"` }
This object represents a sticker. Ref: #/components/schemas/Sticker
func (*Sticker) GetFileSize ¶
GetFileSize returns the value of FileSize.
func (*Sticker) GetFileUniqueID ¶
GetFileUniqueID returns the value of FileUniqueID.
func (*Sticker) GetIsAnimated ¶
GetIsAnimated returns the value of IsAnimated.
func (*Sticker) GetMaskPosition ¶
func (s *Sticker) GetMaskPosition() OptMaskPosition
GetMaskPosition returns the value of MaskPosition.
func (*Sticker) GetSetName ¶
GetSetName returns the value of SetName.
func (*Sticker) GetThumb ¶
func (s *Sticker) GetThumb() OptPhotoSize
GetThumb returns the value of Thumb.
func (*Sticker) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Sticker) SetFileSize ¶
SetFileSize sets the value of FileSize.
func (*Sticker) SetFileUniqueID ¶
SetFileUniqueID sets the value of FileUniqueID.
func (*Sticker) SetIsAnimated ¶
SetIsAnimated sets the value of IsAnimated.
func (*Sticker) SetMaskPosition ¶
func (s *Sticker) SetMaskPosition(val OptMaskPosition)
SetMaskPosition sets the value of MaskPosition.
func (*Sticker) SetSetName ¶
SetSetName sets the value of SetName.
func (*Sticker) SetThumb ¶
func (s *Sticker) SetThumb(val OptPhotoSize)
SetThumb sets the value of Thumb.
func (*Sticker) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type StopMessageLiveLocation ¶
type StopMessageLiveLocation struct { ChatID OptID `json:"chat_id"` // Required if inline_message_id is not specified. Identifier of the message with live location to // stop. MessageID OptInt `json:"message_id"` // Required if chat_id and message_id are not specified. Identifier of the inline message. InlineMessageID OptString `json:"inline_message_id"` ReplyMarkup OptInlineKeyboardMarkup `json:"reply_markup"` }
Input for stopMessageLiveLocation. Ref: #/components/schemas/stopMessageLiveLocation
func (*StopMessageLiveLocation) Decode ¶
func (s *StopMessageLiveLocation) Decode(d *jx.Decoder) error
Decode decodes StopMessageLiveLocation from json.
func (*StopMessageLiveLocation) Encode ¶
func (s *StopMessageLiveLocation) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*StopMessageLiveLocation) GetChatID ¶
func (s *StopMessageLiveLocation) GetChatID() OptID
GetChatID returns the value of ChatID.
func (*StopMessageLiveLocation) GetInlineMessageID ¶
func (s *StopMessageLiveLocation) GetInlineMessageID() OptString
GetInlineMessageID returns the value of InlineMessageID.
func (*StopMessageLiveLocation) GetMessageID ¶
func (s *StopMessageLiveLocation) GetMessageID() OptInt
GetMessageID returns the value of MessageID.
func (*StopMessageLiveLocation) GetReplyMarkup ¶
func (s *StopMessageLiveLocation) GetReplyMarkup() OptInlineKeyboardMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*StopMessageLiveLocation) MarshalJSON ¶
func (s *StopMessageLiveLocation) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*StopMessageLiveLocation) SetChatID ¶
func (s *StopMessageLiveLocation) SetChatID(val OptID)
SetChatID sets the value of ChatID.
func (*StopMessageLiveLocation) SetFake ¶
func (s *StopMessageLiveLocation) SetFake()
SetFake set fake values.
func (*StopMessageLiveLocation) SetInlineMessageID ¶
func (s *StopMessageLiveLocation) SetInlineMessageID(val OptString)
SetInlineMessageID sets the value of InlineMessageID.
func (*StopMessageLiveLocation) SetMessageID ¶
func (s *StopMessageLiveLocation) SetMessageID(val OptInt)
SetMessageID sets the value of MessageID.
func (*StopMessageLiveLocation) SetReplyMarkup ¶
func (s *StopMessageLiveLocation) SetReplyMarkup(val OptInlineKeyboardMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*StopMessageLiveLocation) UnmarshalJSON ¶
func (s *StopMessageLiveLocation) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*StopMessageLiveLocation) Validate ¶
func (s *StopMessageLiveLocation) Validate() error
type StopPoll ¶
type StopPoll struct { ChatID ID `json:"chat_id"` // Identifier of the original message with the poll. MessageID int `json:"message_id"` ReplyMarkup OptInlineKeyboardMarkup `json:"reply_markup"` }
Input for stopPoll. Ref: #/components/schemas/stopPoll
func (*StopPoll) GetMessageID ¶
GetMessageID returns the value of MessageID.
func (*StopPoll) GetReplyMarkup ¶
func (s *StopPoll) GetReplyMarkup() OptInlineKeyboardMarkup
GetReplyMarkup returns the value of ReplyMarkup.
func (*StopPoll) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*StopPoll) SetMessageID ¶
SetMessageID sets the value of MessageID.
func (*StopPoll) SetReplyMarkup ¶
func (s *StopPoll) SetReplyMarkup(val OptInlineKeyboardMarkup)
SetReplyMarkup sets the value of ReplyMarkup.
func (*StopPoll) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type SuccessfulPayment ¶
type SuccessfulPayment struct { // Three-letter ISO 4217 currency code. Currency string `json:"currency"` // Total price in the smallest units of the currency (integer, not float/double). For example, for a // price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number // of digits past the decimal point for each currency (2 for the majority of currencies). TotalAmount int `json:"total_amount"` // Bot specified invoice payload. InvoicePayload string `json:"invoice_payload"` // Identifier of the shipping option chosen by the user. ShippingOptionID OptString `json:"shipping_option_id"` OrderInfo OptOrderInfo `json:"order_info"` // Telegram payment identifier. TelegramPaymentChargeID string `json:"telegram_payment_charge_id"` // Provider payment identifier. ProviderPaymentChargeID string `json:"provider_payment_charge_id"` }
This object contains basic information about a successful payment. Ref: #/components/schemas/SuccessfulPayment
func (*SuccessfulPayment) Decode ¶
func (s *SuccessfulPayment) Decode(d *jx.Decoder) error
Decode decodes SuccessfulPayment from json.
func (*SuccessfulPayment) Encode ¶
func (s *SuccessfulPayment) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SuccessfulPayment) GetCurrency ¶
func (s *SuccessfulPayment) GetCurrency() string
GetCurrency returns the value of Currency.
func (*SuccessfulPayment) GetInvoicePayload ¶
func (s *SuccessfulPayment) GetInvoicePayload() string
GetInvoicePayload returns the value of InvoicePayload.
func (*SuccessfulPayment) GetOrderInfo ¶
func (s *SuccessfulPayment) GetOrderInfo() OptOrderInfo
GetOrderInfo returns the value of OrderInfo.
func (*SuccessfulPayment) GetProviderPaymentChargeID ¶
func (s *SuccessfulPayment) GetProviderPaymentChargeID() string
GetProviderPaymentChargeID returns the value of ProviderPaymentChargeID.
func (*SuccessfulPayment) GetShippingOptionID ¶
func (s *SuccessfulPayment) GetShippingOptionID() OptString
GetShippingOptionID returns the value of ShippingOptionID.
func (*SuccessfulPayment) GetTelegramPaymentChargeID ¶
func (s *SuccessfulPayment) GetTelegramPaymentChargeID() string
GetTelegramPaymentChargeID returns the value of TelegramPaymentChargeID.
func (*SuccessfulPayment) GetTotalAmount ¶
func (s *SuccessfulPayment) GetTotalAmount() int
GetTotalAmount returns the value of TotalAmount.
func (*SuccessfulPayment) MarshalJSON ¶
func (s *SuccessfulPayment) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SuccessfulPayment) SetCurrency ¶
func (s *SuccessfulPayment) SetCurrency(val string)
SetCurrency sets the value of Currency.
func (*SuccessfulPayment) SetInvoicePayload ¶
func (s *SuccessfulPayment) SetInvoicePayload(val string)
SetInvoicePayload sets the value of InvoicePayload.
func (*SuccessfulPayment) SetOrderInfo ¶
func (s *SuccessfulPayment) SetOrderInfo(val OptOrderInfo)
SetOrderInfo sets the value of OrderInfo.
func (*SuccessfulPayment) SetProviderPaymentChargeID ¶
func (s *SuccessfulPayment) SetProviderPaymentChargeID(val string)
SetProviderPaymentChargeID sets the value of ProviderPaymentChargeID.
func (*SuccessfulPayment) SetShippingOptionID ¶
func (s *SuccessfulPayment) SetShippingOptionID(val OptString)
SetShippingOptionID sets the value of ShippingOptionID.
func (*SuccessfulPayment) SetTelegramPaymentChargeID ¶
func (s *SuccessfulPayment) SetTelegramPaymentChargeID(val string)
SetTelegramPaymentChargeID sets the value of TelegramPaymentChargeID.
func (*SuccessfulPayment) SetTotalAmount ¶
func (s *SuccessfulPayment) SetTotalAmount(val int)
SetTotalAmount sets the value of TotalAmount.
func (*SuccessfulPayment) UnmarshalJSON ¶
func (s *SuccessfulPayment) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type UnbanChatMember ¶
type UnbanChatMember struct { ChatID ID `json:"chat_id"` // Unique identifier of the target user. UserID int64 `json:"user_id"` // Do nothing if the user is not banned. OnlyIfBanned OptBool `json:"only_if_banned"` }
Input for unbanChatMember. Ref: #/components/schemas/unbanChatMember
func (*UnbanChatMember) Decode ¶
func (s *UnbanChatMember) Decode(d *jx.Decoder) error
Decode decodes UnbanChatMember from json.
func (*UnbanChatMember) Encode ¶
func (s *UnbanChatMember) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*UnbanChatMember) GetChatID ¶
func (s *UnbanChatMember) GetChatID() ID
GetChatID returns the value of ChatID.
func (*UnbanChatMember) GetOnlyIfBanned ¶
func (s *UnbanChatMember) GetOnlyIfBanned() OptBool
GetOnlyIfBanned returns the value of OnlyIfBanned.
func (*UnbanChatMember) GetUserID ¶
func (s *UnbanChatMember) GetUserID() int64
GetUserID returns the value of UserID.
func (*UnbanChatMember) MarshalJSON ¶
func (s *UnbanChatMember) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UnbanChatMember) SetChatID ¶
func (s *UnbanChatMember) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*UnbanChatMember) SetOnlyIfBanned ¶
func (s *UnbanChatMember) SetOnlyIfBanned(val OptBool)
SetOnlyIfBanned sets the value of OnlyIfBanned.
func (*UnbanChatMember) SetUserID ¶
func (s *UnbanChatMember) SetUserID(val int64)
SetUserID sets the value of UserID.
func (*UnbanChatMember) UnmarshalJSON ¶
func (s *UnbanChatMember) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type UnbanChatSenderChat ¶
type UnbanChatSenderChat struct { ChatID ID `json:"chat_id"` // Unique identifier of the target sender chat. SenderChatID int64 `json:"sender_chat_id"` }
Input for unbanChatSenderChat. Ref: #/components/schemas/unbanChatSenderChat
func (*UnbanChatSenderChat) Decode ¶
func (s *UnbanChatSenderChat) Decode(d *jx.Decoder) error
Decode decodes UnbanChatSenderChat from json.
func (*UnbanChatSenderChat) Encode ¶
func (s *UnbanChatSenderChat) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*UnbanChatSenderChat) GetChatID ¶
func (s *UnbanChatSenderChat) GetChatID() ID
GetChatID returns the value of ChatID.
func (*UnbanChatSenderChat) GetSenderChatID ¶
func (s *UnbanChatSenderChat) GetSenderChatID() int64
GetSenderChatID returns the value of SenderChatID.
func (*UnbanChatSenderChat) MarshalJSON ¶
func (s *UnbanChatSenderChat) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UnbanChatSenderChat) SetChatID ¶
func (s *UnbanChatSenderChat) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*UnbanChatSenderChat) SetFake ¶
func (s *UnbanChatSenderChat) SetFake()
SetFake set fake values.
func (*UnbanChatSenderChat) SetSenderChatID ¶
func (s *UnbanChatSenderChat) SetSenderChatID(val int64)
SetSenderChatID sets the value of SenderChatID.
func (*UnbanChatSenderChat) UnmarshalJSON ¶
func (s *UnbanChatSenderChat) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type UnimplementedHandler ¶
type UnimplementedHandler struct{}
UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.
func (UnimplementedHandler) AddStickerToSet ¶
func (UnimplementedHandler) AddStickerToSet(ctx context.Context, req *AddStickerToSet) (r *Result, _ error)
AddStickerToSet implements addStickerToSet operation.
POST /addStickerToSet
func (UnimplementedHandler) AnswerCallbackQuery ¶
func (UnimplementedHandler) AnswerCallbackQuery(ctx context.Context, req *AnswerCallbackQuery) (r *Result, _ error)
AnswerCallbackQuery implements answerCallbackQuery operation.
POST /answerCallbackQuery
func (UnimplementedHandler) AnswerInlineQuery ¶
func (UnimplementedHandler) AnswerInlineQuery(ctx context.Context, req *AnswerInlineQuery) (r *Result, _ error)
AnswerInlineQuery implements answerInlineQuery operation.
POST /answerInlineQuery
func (UnimplementedHandler) AnswerPreCheckoutQuery ¶
func (UnimplementedHandler) AnswerPreCheckoutQuery(ctx context.Context, req *AnswerPreCheckoutQuery) (r *Result, _ error)
AnswerPreCheckoutQuery implements answerPreCheckoutQuery operation.
POST /answerPreCheckoutQuery
func (UnimplementedHandler) AnswerShippingQuery ¶
func (UnimplementedHandler) AnswerShippingQuery(ctx context.Context, req *AnswerShippingQuery) (r *Result, _ error)
AnswerShippingQuery implements answerShippingQuery operation.
POST /answerShippingQuery
func (UnimplementedHandler) ApproveChatJoinRequest ¶
func (UnimplementedHandler) ApproveChatJoinRequest(ctx context.Context, req *ApproveChatJoinRequest) (r *Result, _ error)
ApproveChatJoinRequest implements approveChatJoinRequest operation.
POST /approveChatJoinRequest
func (UnimplementedHandler) BanChatMember ¶
func (UnimplementedHandler) BanChatMember(ctx context.Context, req *BanChatMember) (r *Result, _ error)
BanChatMember implements banChatMember operation.
POST /banChatMember
func (UnimplementedHandler) BanChatSenderChat ¶
func (UnimplementedHandler) BanChatSenderChat(ctx context.Context, req *BanChatSenderChat) (r *Result, _ error)
BanChatSenderChat implements banChatSenderChat operation.
POST /banChatSenderChat
func (UnimplementedHandler) Close ¶
func (UnimplementedHandler) Close(ctx context.Context) (r *Result, _ error)
Close implements close operation.
POST /close
func (UnimplementedHandler) CopyMessage ¶
func (UnimplementedHandler) CopyMessage(ctx context.Context, req *CopyMessage) (r *ResultMessageId, _ error)
CopyMessage implements copyMessage operation.
POST /copyMessage
func (UnimplementedHandler) CreateChatInviteLink ¶
func (UnimplementedHandler) CreateChatInviteLink(ctx context.Context, req *CreateChatInviteLink) (r *ResultChatInviteLink, _ error)
CreateChatInviteLink implements createChatInviteLink operation.
POST /createChatInviteLink
func (UnimplementedHandler) CreateNewStickerSet ¶
func (UnimplementedHandler) CreateNewStickerSet(ctx context.Context, req *CreateNewStickerSet) (r *Result, _ error)
CreateNewStickerSet implements createNewStickerSet operation.
POST /createNewStickerSet
func (UnimplementedHandler) DeclineChatJoinRequest ¶
func (UnimplementedHandler) DeclineChatJoinRequest(ctx context.Context, req *DeclineChatJoinRequest) (r *Result, _ error)
DeclineChatJoinRequest implements declineChatJoinRequest operation.
POST /declineChatJoinRequest
func (UnimplementedHandler) DeleteChatPhoto ¶
func (UnimplementedHandler) DeleteChatPhoto(ctx context.Context, req *DeleteChatPhoto) (r *Result, _ error)
DeleteChatPhoto implements deleteChatPhoto operation.
POST /deleteChatPhoto
func (UnimplementedHandler) DeleteChatStickerSet ¶
func (UnimplementedHandler) DeleteChatStickerSet(ctx context.Context, req *DeleteChatStickerSet) (r *Result, _ error)
DeleteChatStickerSet implements deleteChatStickerSet operation.
POST /deleteChatStickerSet
func (UnimplementedHandler) DeleteMessage ¶
func (UnimplementedHandler) DeleteMessage(ctx context.Context, req *DeleteMessage) (r *Result, _ error)
DeleteMessage implements deleteMessage operation.
POST /deleteMessage
func (UnimplementedHandler) DeleteMyCommands ¶
func (UnimplementedHandler) DeleteMyCommands(ctx context.Context, req OptDeleteMyCommands) (r *Result, _ error)
DeleteMyCommands implements deleteMyCommands operation.
POST /deleteMyCommands
func (UnimplementedHandler) DeleteStickerFromSet ¶
func (UnimplementedHandler) DeleteStickerFromSet(ctx context.Context, req *DeleteStickerFromSet) (r *Result, _ error)
DeleteStickerFromSet implements deleteStickerFromSet operation.
POST /deleteStickerFromSet
func (UnimplementedHandler) DeleteWebhook ¶
func (UnimplementedHandler) DeleteWebhook(ctx context.Context, req OptDeleteWebhook) (r *Result, _ error)
DeleteWebhook implements deleteWebhook operation.
POST /deleteWebhook
func (UnimplementedHandler) EditChatInviteLink ¶
func (UnimplementedHandler) EditChatInviteLink(ctx context.Context, req *EditChatInviteLink) (r *ResultChatInviteLink, _ error)
EditChatInviteLink implements editChatInviteLink operation.
POST /editChatInviteLink
func (UnimplementedHandler) EditMessageCaption ¶
func (UnimplementedHandler) EditMessageCaption(ctx context.Context, req *EditMessageCaption) (r *Result, _ error)
EditMessageCaption implements editMessageCaption operation.
POST /editMessageCaption
func (UnimplementedHandler) EditMessageLiveLocation ¶
func (UnimplementedHandler) EditMessageLiveLocation(ctx context.Context, req *EditMessageLiveLocation) (r *Result, _ error)
EditMessageLiveLocation implements editMessageLiveLocation operation.
POST /editMessageLiveLocation
func (UnimplementedHandler) EditMessageMedia ¶
func (UnimplementedHandler) EditMessageMedia(ctx context.Context, req *EditMessageMedia) (r *Result, _ error)
EditMessageMedia implements editMessageMedia operation.
POST /editMessageMedia
func (UnimplementedHandler) EditMessageReplyMarkup ¶
func (UnimplementedHandler) EditMessageReplyMarkup(ctx context.Context, req *EditMessageReplyMarkup) (r *Result, _ error)
EditMessageReplyMarkup implements editMessageReplyMarkup operation.
POST /editMessageReplyMarkup
func (UnimplementedHandler) EditMessageText ¶
func (UnimplementedHandler) EditMessageText(ctx context.Context, req *EditMessageText) (r *Result, _ error)
EditMessageText implements editMessageText operation.
POST /editMessageText
func (UnimplementedHandler) ExportChatInviteLink ¶
func (UnimplementedHandler) ExportChatInviteLink(ctx context.Context, req *ExportChatInviteLink) (r *ResultString, _ error)
ExportChatInviteLink implements exportChatInviteLink operation.
POST /exportChatInviteLink
func (UnimplementedHandler) ForwardMessage ¶
func (UnimplementedHandler) ForwardMessage(ctx context.Context, req *ForwardMessage) (r *ResultMessage, _ error)
ForwardMessage implements forwardMessage operation.
POST /forwardMessage
func (UnimplementedHandler) GetChat ¶
func (UnimplementedHandler) GetChat(ctx context.Context, req *GetChat) (r *ResultChat, _ error)
GetChat implements getChat operation.
POST /getChat
func (UnimplementedHandler) GetChatAdministrators ¶
func (UnimplementedHandler) GetChatAdministrators(ctx context.Context, req *GetChatAdministrators) (r *ResultArrayOfChatMember, _ error)
GetChatAdministrators implements getChatAdministrators operation.
POST /getChatAdministrators
func (UnimplementedHandler) GetChatMember ¶
func (UnimplementedHandler) GetChatMember(ctx context.Context, req *GetChatMember) (r *ResultChatMember, _ error)
GetChatMember implements getChatMember operation.
POST /getChatMember
func (UnimplementedHandler) GetChatMemberCount ¶
func (UnimplementedHandler) GetChatMemberCount(ctx context.Context, req *GetChatMemberCount) (r *ResultInt, _ error)
GetChatMemberCount implements getChatMemberCount operation.
POST /getChatMemberCount
func (UnimplementedHandler) GetGameHighScores ¶
func (UnimplementedHandler) GetGameHighScores(ctx context.Context, req *GetGameHighScores) (r *ResultArrayOfGameHighScore, _ error)
GetGameHighScores implements getGameHighScores operation.
POST /getGameHighScores
func (UnimplementedHandler) GetMe ¶
func (UnimplementedHandler) GetMe(ctx context.Context) (r *ResultUser, _ error)
GetMe implements getMe operation.
POST /getMe
func (UnimplementedHandler) GetMyCommands ¶
func (UnimplementedHandler) GetMyCommands(ctx context.Context, req OptGetMyCommands) (r *ResultArrayOfBotCommand, _ error)
GetMyCommands implements getMyCommands operation.
POST /getMyCommands
func (UnimplementedHandler) GetStickerSet ¶
func (UnimplementedHandler) GetStickerSet(ctx context.Context, req *GetStickerSet) (r *Result, _ error)
GetStickerSet implements getStickerSet operation.
POST /getStickerSet
func (UnimplementedHandler) GetUpdates ¶
func (UnimplementedHandler) GetUpdates(ctx context.Context, req OptGetUpdates) (r *ResultArrayOfUpdate, _ error)
GetUpdates implements getUpdates operation.
POST /getUpdates
func (UnimplementedHandler) GetUserProfilePhotos ¶
func (UnimplementedHandler) GetUserProfilePhotos(ctx context.Context, req *GetUserProfilePhotos) (r *ResultUserProfilePhotos, _ error)
GetUserProfilePhotos implements getUserProfilePhotos operation.
POST /getUserProfilePhotos
func (UnimplementedHandler) GetWebhookInfo ¶
func (UnimplementedHandler) GetWebhookInfo(ctx context.Context) (r *ResultWebhookInfo, _ error)
GetWebhookInfo implements getWebhookInfo operation.
POST /getWebhookInfo
func (UnimplementedHandler) LogOut ¶
func (UnimplementedHandler) LogOut(ctx context.Context) (r *Result, _ error)
LogOut implements logOut operation.
POST /logOut
func (UnimplementedHandler) NewError ¶
func (UnimplementedHandler) NewError(ctx context.Context, err error) (r *ErrorStatusCode)
NewError creates *ErrorStatusCode from error returned by handler.
Used for common default response.
func (UnimplementedHandler) PinChatMessage ¶
func (UnimplementedHandler) PinChatMessage(ctx context.Context, req *PinChatMessage) (r *Result, _ error)
PinChatMessage implements pinChatMessage operation.
POST /pinChatMessage
func (UnimplementedHandler) PromoteChatMember ¶
func (UnimplementedHandler) PromoteChatMember(ctx context.Context, req *PromoteChatMember) (r *Result, _ error)
PromoteChatMember implements promoteChatMember operation.
POST /promoteChatMember
func (UnimplementedHandler) RestrictChatMember ¶
func (UnimplementedHandler) RestrictChatMember(ctx context.Context, req *RestrictChatMember) (r *Result, _ error)
RestrictChatMember implements restrictChatMember operation.
POST /restrictChatMember
func (UnimplementedHandler) RevokeChatInviteLink ¶
func (UnimplementedHandler) RevokeChatInviteLink(ctx context.Context, req *RevokeChatInviteLink) (r *ResultChatInviteLink, _ error)
RevokeChatInviteLink implements revokeChatInviteLink operation.
POST /revokeChatInviteLink
func (UnimplementedHandler) SendAnimation ¶
func (UnimplementedHandler) SendAnimation(ctx context.Context, req *SendAnimation) (r *ResultMessage, _ error)
SendAnimation implements sendAnimation operation.
POST /sendAnimation
func (UnimplementedHandler) SendAudio ¶
func (UnimplementedHandler) SendAudio(ctx context.Context, req *SendAudio) (r *ResultMessage, _ error)
SendAudio implements sendAudio operation.
POST /sendAudio
func (UnimplementedHandler) SendChatAction ¶
func (UnimplementedHandler) SendChatAction(ctx context.Context, req *SendChatAction) (r *Result, _ error)
SendChatAction implements sendChatAction operation.
POST /sendChatAction
func (UnimplementedHandler) SendContact ¶
func (UnimplementedHandler) SendContact(ctx context.Context, req *SendContact) (r *ResultMessage, _ error)
SendContact implements sendContact operation.
POST /sendContact
func (UnimplementedHandler) SendDice ¶
func (UnimplementedHandler) SendDice(ctx context.Context, req *SendDice) (r *ResultMessage, _ error)
SendDice implements sendDice operation.
POST /sendDice
func (UnimplementedHandler) SendDocument ¶
func (UnimplementedHandler) SendDocument(ctx context.Context, req *SendDocument) (r *ResultMessage, _ error)
SendDocument implements sendDocument operation.
POST /sendDocument
func (UnimplementedHandler) SendGame ¶
func (UnimplementedHandler) SendGame(ctx context.Context, req *SendGame) (r *ResultMessage, _ error)
SendGame implements sendGame operation.
POST /sendGame
func (UnimplementedHandler) SendInvoice ¶
func (UnimplementedHandler) SendInvoice(ctx context.Context, req *SendInvoice) (r *ResultMessage, _ error)
SendInvoice implements sendInvoice operation.
POST /sendInvoice
func (UnimplementedHandler) SendLocation ¶
func (UnimplementedHandler) SendLocation(ctx context.Context, req *SendLocation) (r *ResultMessage, _ error)
SendLocation implements sendLocation operation.
POST /sendLocation
func (UnimplementedHandler) SendMediaGroup ¶
func (UnimplementedHandler) SendMediaGroup(ctx context.Context, req *SendMediaGroup) (r *ResultArrayOfMessage, _ error)
SendMediaGroup implements sendMediaGroup operation.
POST /sendMediaGroup
func (UnimplementedHandler) SendMessage ¶
func (UnimplementedHandler) SendMessage(ctx context.Context, req *SendMessage) (r *ResultMessage, _ error)
SendMessage implements sendMessage operation.
POST /sendMessage
func (UnimplementedHandler) SendPhoto ¶
func (UnimplementedHandler) SendPhoto(ctx context.Context, req *SendPhoto) (r *ResultMessage, _ error)
SendPhoto implements sendPhoto operation.
POST /sendPhoto
func (UnimplementedHandler) SendPoll ¶
func (UnimplementedHandler) SendPoll(ctx context.Context, req *SendPoll) (r *ResultMessage, _ error)
SendPoll implements sendPoll operation.
POST /sendPoll
func (UnimplementedHandler) SendSticker ¶
func (UnimplementedHandler) SendSticker(ctx context.Context, req *SendSticker) (r *ResultMessage, _ error)
SendSticker implements sendSticker operation.
POST /sendSticker
func (UnimplementedHandler) SendVenue ¶
func (UnimplementedHandler) SendVenue(ctx context.Context, req *SendVenue) (r *ResultMessage, _ error)
SendVenue implements sendVenue operation.
POST /sendVenue
func (UnimplementedHandler) SendVideo ¶
func (UnimplementedHandler) SendVideo(ctx context.Context, req *SendVideo) (r *ResultMessage, _ error)
SendVideo implements sendVideo operation.
POST /sendVideo
func (UnimplementedHandler) SendVideoNote ¶
func (UnimplementedHandler) SendVideoNote(ctx context.Context, req *SendVideoNote) (r *ResultMessage, _ error)
SendVideoNote implements sendVideoNote operation.
POST /sendVideoNote
func (UnimplementedHandler) SendVoice ¶
func (UnimplementedHandler) SendVoice(ctx context.Context, req *SendVoice) (r *ResultMessage, _ error)
SendVoice implements sendVoice operation.
POST /sendVoice
func (UnimplementedHandler) SetChatAdministratorCustomTitle ¶
func (UnimplementedHandler) SetChatAdministratorCustomTitle(ctx context.Context, req *SetChatAdministratorCustomTitle) (r *Result, _ error)
SetChatAdministratorCustomTitle implements setChatAdministratorCustomTitle operation.
POST /setChatAdministratorCustomTitle
func (UnimplementedHandler) SetChatDescription ¶
func (UnimplementedHandler) SetChatDescription(ctx context.Context, req *SetChatDescription) (r *Result, _ error)
SetChatDescription implements setChatDescription operation.
POST /setChatDescription
func (UnimplementedHandler) SetChatPermissions ¶
func (UnimplementedHandler) SetChatPermissions(ctx context.Context, req *SetChatPermissions) (r *Result, _ error)
SetChatPermissions implements setChatPermissions operation.
POST /setChatPermissions
func (UnimplementedHandler) SetChatPhoto ¶
func (UnimplementedHandler) SetChatPhoto(ctx context.Context, req *SetChatPhoto) (r *Result, _ error)
SetChatPhoto implements setChatPhoto operation.
POST /setChatPhoto
func (UnimplementedHandler) SetChatStickerSet ¶
func (UnimplementedHandler) SetChatStickerSet(ctx context.Context, req *SetChatStickerSet) (r *Result, _ error)
SetChatStickerSet implements setChatStickerSet operation.
POST /setChatStickerSet
func (UnimplementedHandler) SetChatTitle ¶
func (UnimplementedHandler) SetChatTitle(ctx context.Context, req *SetChatTitle) (r *Result, _ error)
SetChatTitle implements setChatTitle operation.
POST /setChatTitle
func (UnimplementedHandler) SetGameScore ¶
func (UnimplementedHandler) SetGameScore(ctx context.Context, req *SetGameScore) (r *Result, _ error)
SetGameScore implements setGameScore operation.
POST /setGameScore
func (UnimplementedHandler) SetMyCommands ¶
func (UnimplementedHandler) SetMyCommands(ctx context.Context, req *SetMyCommands) (r *Result, _ error)
SetMyCommands implements setMyCommands operation.
POST /setMyCommands
func (UnimplementedHandler) SetPassportDataErrors ¶
func (UnimplementedHandler) SetPassportDataErrors(ctx context.Context, req *SetPassportDataErrors) (r *Result, _ error)
SetPassportDataErrors implements setPassportDataErrors operation.
POST /setPassportDataErrors
func (UnimplementedHandler) SetStickerPositionInSet ¶
func (UnimplementedHandler) SetStickerPositionInSet(ctx context.Context, req *SetStickerPositionInSet) (r *Result, _ error)
SetStickerPositionInSet implements setStickerPositionInSet operation.
POST /setStickerPositionInSet
func (UnimplementedHandler) SetStickerSetThumb ¶
func (UnimplementedHandler) SetStickerSetThumb(ctx context.Context, req *SetStickerSetThumb) (r *Result, _ error)
SetStickerSetThumb implements setStickerSetThumb operation.
POST /setStickerSetThumb
func (UnimplementedHandler) SetWebhook ¶
func (UnimplementedHandler) SetWebhook(ctx context.Context, req *SetWebhook) (r *Result, _ error)
SetWebhook implements setWebhook operation.
POST /setWebhook
func (UnimplementedHandler) StopMessageLiveLocation ¶
func (UnimplementedHandler) StopMessageLiveLocation(ctx context.Context, req *StopMessageLiveLocation) (r *Result, _ error)
StopMessageLiveLocation implements stopMessageLiveLocation operation.
POST /stopMessageLiveLocation
func (UnimplementedHandler) StopPoll ¶
func (UnimplementedHandler) StopPoll(ctx context.Context, req *StopPoll) (r *ResultPoll, _ error)
StopPoll implements stopPoll operation.
POST /stopPoll
func (UnimplementedHandler) UnbanChatMember ¶
func (UnimplementedHandler) UnbanChatMember(ctx context.Context, req *UnbanChatMember) (r *Result, _ error)
UnbanChatMember implements unbanChatMember operation.
POST /unbanChatMember
func (UnimplementedHandler) UnbanChatSenderChat ¶
func (UnimplementedHandler) UnbanChatSenderChat(ctx context.Context, req *UnbanChatSenderChat) (r *Result, _ error)
UnbanChatSenderChat implements unbanChatSenderChat operation.
POST /unbanChatSenderChat
func (UnimplementedHandler) UnpinAllChatMessages ¶
func (UnimplementedHandler) UnpinAllChatMessages(ctx context.Context, req *UnpinAllChatMessages) (r *Result, _ error)
UnpinAllChatMessages implements unpinAllChatMessages operation.
POST /unpinAllChatMessages
func (UnimplementedHandler) UnpinChatMessage ¶
func (UnimplementedHandler) UnpinChatMessage(ctx context.Context, req *UnpinChatMessage) (r *Result, _ error)
UnpinChatMessage implements unpinChatMessage operation.
POST /unpinChatMessage
func (UnimplementedHandler) UploadStickerFile ¶
func (UnimplementedHandler) UploadStickerFile(ctx context.Context, req *UploadStickerFile) (r *ResultFile, _ error)
UploadStickerFile implements uploadStickerFile operation.
POST /uploadStickerFile
type UnpinAllChatMessages ¶
type UnpinAllChatMessages struct {
ChatID ID `json:"chat_id"`
}
Input for unpinAllChatMessages. Ref: #/components/schemas/unpinAllChatMessages
func (*UnpinAllChatMessages) Decode ¶
func (s *UnpinAllChatMessages) Decode(d *jx.Decoder) error
Decode decodes UnpinAllChatMessages from json.
func (*UnpinAllChatMessages) Encode ¶
func (s *UnpinAllChatMessages) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*UnpinAllChatMessages) GetChatID ¶
func (s *UnpinAllChatMessages) GetChatID() ID
GetChatID returns the value of ChatID.
func (*UnpinAllChatMessages) MarshalJSON ¶
func (s *UnpinAllChatMessages) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UnpinAllChatMessages) SetChatID ¶
func (s *UnpinAllChatMessages) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*UnpinAllChatMessages) SetFake ¶
func (s *UnpinAllChatMessages) SetFake()
SetFake set fake values.
func (*UnpinAllChatMessages) UnmarshalJSON ¶
func (s *UnpinAllChatMessages) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type UnpinChatMessage ¶
type UnpinChatMessage struct { ChatID ID `json:"chat_id"` // Identifier of a message to unpin. If not specified, the most recent pinned message (by sending // date) will be unpinned. MessageID OptInt `json:"message_id"` }
Input for unpinChatMessage. Ref: #/components/schemas/unpinChatMessage
func (*UnpinChatMessage) Decode ¶
func (s *UnpinChatMessage) Decode(d *jx.Decoder) error
Decode decodes UnpinChatMessage from json.
func (*UnpinChatMessage) Encode ¶
func (s *UnpinChatMessage) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*UnpinChatMessage) GetChatID ¶
func (s *UnpinChatMessage) GetChatID() ID
GetChatID returns the value of ChatID.
func (*UnpinChatMessage) GetMessageID ¶
func (s *UnpinChatMessage) GetMessageID() OptInt
GetMessageID returns the value of MessageID.
func (*UnpinChatMessage) MarshalJSON ¶
func (s *UnpinChatMessage) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UnpinChatMessage) SetChatID ¶
func (s *UnpinChatMessage) SetChatID(val ID)
SetChatID sets the value of ChatID.
func (*UnpinChatMessage) SetMessageID ¶
func (s *UnpinChatMessage) SetMessageID(val OptInt)
SetMessageID sets the value of MessageID.
func (*UnpinChatMessage) UnmarshalJSON ¶
func (s *UnpinChatMessage) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Update ¶
type Update struct { // The update's unique identifier. Update identifiers start from a certain positive number and // increase sequentially. This ID becomes especially handy if you're using Webhooks, since it allows // you to ignore repeated updates or to restore the correct update sequence, should they get out of // order. If there are no new updates for at least a week, then identifier of the next update will be // chosen randomly instead of sequentially. UpdateID int `json:"update_id"` Message OptMessage `json:"message"` EditedMessage OptMessage `json:"edited_message"` ChannelPost OptMessage `json:"channel_post"` EditedChannelPost OptMessage `json:"edited_channel_post"` InlineQuery OptInlineQuery `json:"inline_query"` ChosenInlineResult OptChosenInlineResult `json:"chosen_inline_result"` CallbackQuery OptCallbackQuery `json:"callback_query"` ShippingQuery OptShippingQuery `json:"shipping_query"` PreCheckoutQuery OptPreCheckoutQuery `json:"pre_checkout_query"` Poll OptPoll `json:"poll"` PollAnswer OptPollAnswer `json:"poll_answer"` MyChatMember OptChatMemberUpdated `json:"my_chat_member"` ChatMember OptChatMemberUpdated `json:"chat_member"` ChatJoinRequest OptChatJoinRequest `json:"chat_join_request"` }
This object represents an incoming update.At most one of the optional parameters can be present in any given update. Ref: #/components/schemas/Update
func (*Update) GetCallbackQuery ¶
func (s *Update) GetCallbackQuery() OptCallbackQuery
GetCallbackQuery returns the value of CallbackQuery.
func (*Update) GetChannelPost ¶
func (s *Update) GetChannelPost() OptMessage
GetChannelPost returns the value of ChannelPost.
func (*Update) GetChatJoinRequest ¶
func (s *Update) GetChatJoinRequest() OptChatJoinRequest
GetChatJoinRequest returns the value of ChatJoinRequest.
func (*Update) GetChatMember ¶
func (s *Update) GetChatMember() OptChatMemberUpdated
GetChatMember returns the value of ChatMember.
func (*Update) GetChosenInlineResult ¶
func (s *Update) GetChosenInlineResult() OptChosenInlineResult
GetChosenInlineResult returns the value of ChosenInlineResult.
func (*Update) GetEditedChannelPost ¶
func (s *Update) GetEditedChannelPost() OptMessage
GetEditedChannelPost returns the value of EditedChannelPost.
func (*Update) GetEditedMessage ¶
func (s *Update) GetEditedMessage() OptMessage
GetEditedMessage returns the value of EditedMessage.
func (*Update) GetInlineQuery ¶
func (s *Update) GetInlineQuery() OptInlineQuery
GetInlineQuery returns the value of InlineQuery.
func (*Update) GetMessage ¶
func (s *Update) GetMessage() OptMessage
GetMessage returns the value of Message.
func (*Update) GetMyChatMember ¶
func (s *Update) GetMyChatMember() OptChatMemberUpdated
GetMyChatMember returns the value of MyChatMember.
func (*Update) GetPollAnswer ¶
func (s *Update) GetPollAnswer() OptPollAnswer
GetPollAnswer returns the value of PollAnswer.
func (*Update) GetPreCheckoutQuery ¶
func (s *Update) GetPreCheckoutQuery() OptPreCheckoutQuery
GetPreCheckoutQuery returns the value of PreCheckoutQuery.
func (*Update) GetShippingQuery ¶
func (s *Update) GetShippingQuery() OptShippingQuery
GetShippingQuery returns the value of ShippingQuery.
func (*Update) GetUpdateID ¶
GetUpdateID returns the value of UpdateID.
func (*Update) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Update) SetCallbackQuery ¶
func (s *Update) SetCallbackQuery(val OptCallbackQuery)
SetCallbackQuery sets the value of CallbackQuery.
func (*Update) SetChannelPost ¶
func (s *Update) SetChannelPost(val OptMessage)
SetChannelPost sets the value of ChannelPost.
func (*Update) SetChatJoinRequest ¶
func (s *Update) SetChatJoinRequest(val OptChatJoinRequest)
SetChatJoinRequest sets the value of ChatJoinRequest.
func (*Update) SetChatMember ¶
func (s *Update) SetChatMember(val OptChatMemberUpdated)
SetChatMember sets the value of ChatMember.
func (*Update) SetChosenInlineResult ¶
func (s *Update) SetChosenInlineResult(val OptChosenInlineResult)
SetChosenInlineResult sets the value of ChosenInlineResult.
func (*Update) SetEditedChannelPost ¶
func (s *Update) SetEditedChannelPost(val OptMessage)
SetEditedChannelPost sets the value of EditedChannelPost.
func (*Update) SetEditedMessage ¶
func (s *Update) SetEditedMessage(val OptMessage)
SetEditedMessage sets the value of EditedMessage.
func (*Update) SetInlineQuery ¶
func (s *Update) SetInlineQuery(val OptInlineQuery)
SetInlineQuery sets the value of InlineQuery.
func (*Update) SetMessage ¶
func (s *Update) SetMessage(val OptMessage)
SetMessage sets the value of Message.
func (*Update) SetMyChatMember ¶
func (s *Update) SetMyChatMember(val OptChatMemberUpdated)
SetMyChatMember sets the value of MyChatMember.
func (*Update) SetPollAnswer ¶
func (s *Update) SetPollAnswer(val OptPollAnswer)
SetPollAnswer sets the value of PollAnswer.
func (*Update) SetPreCheckoutQuery ¶
func (s *Update) SetPreCheckoutQuery(val OptPreCheckoutQuery)
SetPreCheckoutQuery sets the value of PreCheckoutQuery.
func (*Update) SetShippingQuery ¶
func (s *Update) SetShippingQuery(val OptShippingQuery)
SetShippingQuery sets the value of ShippingQuery.
func (*Update) SetUpdateID ¶
SetUpdateID sets the value of UpdateID.
func (*Update) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type UploadStickerFile ¶
type UploadStickerFile struct { // User identifier of sticker file owner. UserID int64 `json:"user_id"` // PNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, // and either width or height must be exactly 512px. More info on Sending Files ». PNGSticker string `json:"png_sticker"` }
Input for uploadStickerFile. Ref: #/components/schemas/uploadStickerFile
func (*UploadStickerFile) Decode ¶
func (s *UploadStickerFile) Decode(d *jx.Decoder) error
Decode decodes UploadStickerFile from json.
func (*UploadStickerFile) Encode ¶
func (s *UploadStickerFile) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*UploadStickerFile) GetPNGSticker ¶
func (s *UploadStickerFile) GetPNGSticker() string
GetPNGSticker returns the value of PNGSticker.
func (*UploadStickerFile) GetUserID ¶
func (s *UploadStickerFile) GetUserID() int64
GetUserID returns the value of UserID.
func (*UploadStickerFile) MarshalJSON ¶
func (s *UploadStickerFile) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UploadStickerFile) SetPNGSticker ¶
func (s *UploadStickerFile) SetPNGSticker(val string)
SetPNGSticker sets the value of PNGSticker.
func (*UploadStickerFile) SetUserID ¶
func (s *UploadStickerFile) SetUserID(val int64)
SetUserID sets the value of UserID.
func (*UploadStickerFile) UnmarshalJSON ¶
func (s *UploadStickerFile) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type User ¶
type User struct { // Unique identifier for this user or bot. This number may have more than 32 significant bits and // some programming languages may have difficulty/silent defects in interpreting it. But it has at // most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing // this identifier. ID int64 `json:"id"` // True, if this user is a bot. IsBot bool `json:"is_bot"` // User's or bot's first name. FirstName string `json:"first_name"` // User's or bot's last name. LastName OptString `json:"last_name"` // User's or bot's username. Username OptString `json:"username"` // IETF language tag of the user's language. LanguageCode OptString `json:"language_code"` // True, if the bot can be invited to groups. Returned only in getMe. CanJoinGroups OptBool `json:"can_join_groups"` // True, if privacy mode is disabled for the bot. Returned only in getMe. CanReadAllGroupMessages OptBool `json:"can_read_all_group_messages"` // True, if the bot supports inline queries. Returned only in getMe. SupportsInlineQueries OptBool `json:"supports_inline_queries"` }
This object represents a Telegram user or bot. Ref: #/components/schemas/User
func (*User) GetCanJoinGroups ¶
GetCanJoinGroups returns the value of CanJoinGroups.
func (*User) GetCanReadAllGroupMessages ¶
GetCanReadAllGroupMessages returns the value of CanReadAllGroupMessages.
func (*User) GetFirstName ¶
GetFirstName returns the value of FirstName.
func (*User) GetLanguageCode ¶
GetLanguageCode returns the value of LanguageCode.
func (*User) GetLastName ¶
GetLastName returns the value of LastName.
func (*User) GetSupportsInlineQueries ¶
GetSupportsInlineQueries returns the value of SupportsInlineQueries.
func (*User) GetUsername ¶
GetUsername returns the value of Username.
func (*User) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*User) SetCanJoinGroups ¶
SetCanJoinGroups sets the value of CanJoinGroups.
func (*User) SetCanReadAllGroupMessages ¶
SetCanReadAllGroupMessages sets the value of CanReadAllGroupMessages.
func (*User) SetFirstName ¶
SetFirstName sets the value of FirstName.
func (*User) SetLanguageCode ¶
SetLanguageCode sets the value of LanguageCode.
func (*User) SetLastName ¶
SetLastName sets the value of LastName.
func (*User) SetSupportsInlineQueries ¶
SetSupportsInlineQueries sets the value of SupportsInlineQueries.
func (*User) SetUsername ¶
SetUsername sets the value of Username.
func (*User) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type UserProfilePhotos ¶
type UserProfilePhotos struct { // Total number of profile pictures the target user has. TotalCount int `json:"total_count"` // Requested profile pictures (in up to 4 sizes each). Photos [][]PhotoSize `json:"photos"` }
This object represent a user's profile pictures. Ref: #/components/schemas/UserProfilePhotos
func (*UserProfilePhotos) Decode ¶
func (s *UserProfilePhotos) Decode(d *jx.Decoder) error
Decode decodes UserProfilePhotos from json.
func (*UserProfilePhotos) Encode ¶
func (s *UserProfilePhotos) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*UserProfilePhotos) GetPhotos ¶
func (s *UserProfilePhotos) GetPhotos() [][]PhotoSize
GetPhotos returns the value of Photos.
func (*UserProfilePhotos) GetTotalCount ¶
func (s *UserProfilePhotos) GetTotalCount() int
GetTotalCount returns the value of TotalCount.
func (*UserProfilePhotos) MarshalJSON ¶
func (s *UserProfilePhotos) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserProfilePhotos) SetPhotos ¶
func (s *UserProfilePhotos) SetPhotos(val [][]PhotoSize)
SetPhotos sets the value of Photos.
func (*UserProfilePhotos) SetTotalCount ¶
func (s *UserProfilePhotos) SetTotalCount(val int)
SetTotalCount sets the value of TotalCount.
func (*UserProfilePhotos) UnmarshalJSON ¶
func (s *UserProfilePhotos) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UserProfilePhotos) Validate ¶
func (s *UserProfilePhotos) Validate() error
type Venue ¶
type Venue struct { Location Location `json:"location"` // Name of the venue. Title string `json:"title"` // Address of the venue. Address string `json:"address"` // Foursquare identifier of the venue. FoursquareID OptString `json:"foursquare_id"` // Foursquare type of the venue. (For example, “arts_entertainment/default”, // “arts_entertainment/aquarium” or “food/icecream”.). FoursquareType OptString `json:"foursquare_type"` // Google Places identifier of the venue. GooglePlaceID OptString `json:"google_place_id"` // Google Places type of the venue. (See supported types.). GooglePlaceType OptString `json:"google_place_type"` }
This object represents a venue. Ref: #/components/schemas/Venue
func (*Venue) GetAddress ¶
GetAddress returns the value of Address.
func (*Venue) GetFoursquareID ¶
GetFoursquareID returns the value of FoursquareID.
func (*Venue) GetFoursquareType ¶
GetFoursquareType returns the value of FoursquareType.
func (*Venue) GetGooglePlaceID ¶
GetGooglePlaceID returns the value of GooglePlaceID.
func (*Venue) GetGooglePlaceType ¶
GetGooglePlaceType returns the value of GooglePlaceType.
func (*Venue) GetLocation ¶
GetLocation returns the value of Location.
func (*Venue) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Venue) SetAddress ¶
SetAddress sets the value of Address.
func (*Venue) SetFoursquareID ¶
SetFoursquareID sets the value of FoursquareID.
func (*Venue) SetFoursquareType ¶
SetFoursquareType sets the value of FoursquareType.
func (*Venue) SetGooglePlaceID ¶
SetGooglePlaceID sets the value of GooglePlaceID.
func (*Venue) SetGooglePlaceType ¶
SetGooglePlaceType sets the value of GooglePlaceType.
func (*Venue) SetLocation ¶
SetLocation sets the value of Location.
func (*Venue) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type Video ¶
type Video struct { // Identifier for this file, which can be used to download or reuse the file. FileID string `json:"file_id"` // Unique identifier for this file, which is supposed to be the same over time and for different bots. // Can't be used to download or reuse the file. FileUniqueID string `json:"file_unique_id"` // Video width as defined by sender. Width int `json:"width"` // Video height as defined by sender. Height int `json:"height"` // Duration of the video in seconds as defined by sender. Duration int `json:"duration"` Thumb OptPhotoSize `json:"thumb"` // Original filename as defined by sender. FileName OptString `json:"file_name"` // Mime type of a file as defined by sender. MimeType OptString `json:"mime_type"` // File size in bytes. FileSize OptInt `json:"file_size"` }
This object represents a video file. Ref: #/components/schemas/Video
func (*Video) GetDuration ¶
GetDuration returns the value of Duration.
func (*Video) GetFileName ¶
GetFileName returns the value of FileName.
func (*Video) GetFileSize ¶
GetFileSize returns the value of FileSize.
func (*Video) GetFileUniqueID ¶
GetFileUniqueID returns the value of FileUniqueID.
func (*Video) GetMimeType ¶
GetMimeType returns the value of MimeType.
func (*Video) GetThumb ¶
func (s *Video) GetThumb() OptPhotoSize
GetThumb returns the value of Thumb.
func (*Video) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Video) SetDuration ¶
SetDuration sets the value of Duration.
func (*Video) SetFileName ¶
SetFileName sets the value of FileName.
func (*Video) SetFileSize ¶
SetFileSize sets the value of FileSize.
func (*Video) SetFileUniqueID ¶
SetFileUniqueID sets the value of FileUniqueID.
func (*Video) SetMimeType ¶
SetMimeType sets the value of MimeType.
func (*Video) SetThumb ¶
func (s *Video) SetThumb(val OptPhotoSize)
SetThumb sets the value of Thumb.
func (*Video) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type VideoNote ¶
type VideoNote struct { // Identifier for this file, which can be used to download or reuse the file. FileID string `json:"file_id"` // Unique identifier for this file, which is supposed to be the same over time and for different bots. // Can't be used to download or reuse the file. FileUniqueID string `json:"file_unique_id"` // Video width and height (diameter of the video message) as defined by sender. Length int `json:"length"` // Duration of the video in seconds as defined by sender. Duration int `json:"duration"` Thumb OptPhotoSize `json:"thumb"` // File size in bytes. FileSize OptInt `json:"file_size"` }
This object represents a video message (available in Telegram apps as of v.4.0). Ref: #/components/schemas/VideoNote
func (*VideoNote) GetDuration ¶
GetDuration returns the value of Duration.
func (*VideoNote) GetFileSize ¶
GetFileSize returns the value of FileSize.
func (*VideoNote) GetFileUniqueID ¶
GetFileUniqueID returns the value of FileUniqueID.
func (*VideoNote) GetThumb ¶
func (s *VideoNote) GetThumb() OptPhotoSize
GetThumb returns the value of Thumb.
func (*VideoNote) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*VideoNote) SetDuration ¶
SetDuration sets the value of Duration.
func (*VideoNote) SetFileSize ¶
SetFileSize sets the value of FileSize.
func (*VideoNote) SetFileUniqueID ¶
SetFileUniqueID sets the value of FileUniqueID.
func (*VideoNote) SetThumb ¶
func (s *VideoNote) SetThumb(val OptPhotoSize)
SetThumb sets the value of Thumb.
func (*VideoNote) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type Voice ¶
type Voice struct { // Identifier for this file, which can be used to download or reuse the file. FileID string `json:"file_id"` // Unique identifier for this file, which is supposed to be the same over time and for different bots. // Can't be used to download or reuse the file. FileUniqueID string `json:"file_unique_id"` // Duration of the audio in seconds as defined by sender. Duration int `json:"duration"` // MIME type of the file as defined by sender. MimeType OptString `json:"mime_type"` // File size in bytes. FileSize OptInt `json:"file_size"` }
This object represents a voice note. Ref: #/components/schemas/Voice
func (*Voice) GetDuration ¶
GetDuration returns the value of Duration.
func (*Voice) GetFileSize ¶
GetFileSize returns the value of FileSize.
func (*Voice) GetFileUniqueID ¶
GetFileUniqueID returns the value of FileUniqueID.
func (*Voice) GetMimeType ¶
GetMimeType returns the value of MimeType.
func (*Voice) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Voice) SetDuration ¶
SetDuration sets the value of Duration.
func (*Voice) SetFileSize ¶
SetFileSize sets the value of FileSize.
func (*Voice) SetFileUniqueID ¶
SetFileUniqueID sets the value of FileUniqueID.
func (*Voice) SetMimeType ¶
SetMimeType sets the value of MimeType.
func (*Voice) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type VoiceChatEnded ¶
type VoiceChatEnded struct { // Voice chat duration in seconds. Duration int `json:"duration"` }
This object represents a service message about a voice chat ended in the chat. Ref: #/components/schemas/VoiceChatEnded
func (*VoiceChatEnded) Decode ¶
func (s *VoiceChatEnded) Decode(d *jx.Decoder) error
Decode decodes VoiceChatEnded from json.
func (*VoiceChatEnded) Encode ¶
func (s *VoiceChatEnded) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*VoiceChatEnded) GetDuration ¶
func (s *VoiceChatEnded) GetDuration() int
GetDuration returns the value of Duration.
func (*VoiceChatEnded) MarshalJSON ¶
func (s *VoiceChatEnded) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*VoiceChatEnded) SetDuration ¶
func (s *VoiceChatEnded) SetDuration(val int)
SetDuration sets the value of Duration.
func (*VoiceChatEnded) UnmarshalJSON ¶
func (s *VoiceChatEnded) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*VoiceChatEnded) Validate ¶
func (s *VoiceChatEnded) Validate() error
type VoiceChatParticipantsInvited ¶
type VoiceChatParticipantsInvited struct { // New members that were invited to the voice chat. Users []User `json:"users"` }
This object represents a service message about new members invited to a voice chat. Ref: #/components/schemas/VoiceChatParticipantsInvited
func (*VoiceChatParticipantsInvited) Decode ¶
func (s *VoiceChatParticipantsInvited) Decode(d *jx.Decoder) error
Decode decodes VoiceChatParticipantsInvited from json.
func (*VoiceChatParticipantsInvited) Encode ¶
func (s *VoiceChatParticipantsInvited) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*VoiceChatParticipantsInvited) GetUsers ¶
func (s *VoiceChatParticipantsInvited) GetUsers() []User
GetUsers returns the value of Users.
func (*VoiceChatParticipantsInvited) MarshalJSON ¶
func (s *VoiceChatParticipantsInvited) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*VoiceChatParticipantsInvited) SetFake ¶
func (s *VoiceChatParticipantsInvited) SetFake()
SetFake set fake values.
func (*VoiceChatParticipantsInvited) SetUsers ¶
func (s *VoiceChatParticipantsInvited) SetUsers(val []User)
SetUsers sets the value of Users.
func (*VoiceChatParticipantsInvited) UnmarshalJSON ¶
func (s *VoiceChatParticipantsInvited) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type VoiceChatScheduled ¶
type VoiceChatScheduled struct { // Point in time (Unix timestamp) when the voice chat is supposed to be started by a chat // administrator. StartDate int `json:"start_date"` }
This object represents a service message about a voice chat scheduled in the chat. Ref: #/components/schemas/VoiceChatScheduled
func (*VoiceChatScheduled) Decode ¶
func (s *VoiceChatScheduled) Decode(d *jx.Decoder) error
Decode decodes VoiceChatScheduled from json.
func (*VoiceChatScheduled) Encode ¶
func (s *VoiceChatScheduled) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*VoiceChatScheduled) GetStartDate ¶
func (s *VoiceChatScheduled) GetStartDate() int
GetStartDate returns the value of StartDate.
func (*VoiceChatScheduled) MarshalJSON ¶
func (s *VoiceChatScheduled) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*VoiceChatScheduled) SetFake ¶
func (s *VoiceChatScheduled) SetFake()
SetFake set fake values.
func (*VoiceChatScheduled) SetStartDate ¶
func (s *VoiceChatScheduled) SetStartDate(val int)
SetStartDate sets the value of StartDate.
func (*VoiceChatScheduled) UnmarshalJSON ¶
func (s *VoiceChatScheduled) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type VoiceChatStarted ¶
type VoiceChatStarted struct{}
This object represents a service message about a voice chat started in the chat. Currently holds no information. Ref: #/components/schemas/VoiceChatStarted
func (*VoiceChatStarted) Decode ¶
func (s *VoiceChatStarted) Decode(d *jx.Decoder) error
Decode decodes VoiceChatStarted from json.
func (*VoiceChatStarted) Encode ¶
func (s *VoiceChatStarted) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*VoiceChatStarted) MarshalJSON ¶
func (s *VoiceChatStarted) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*VoiceChatStarted) UnmarshalJSON ¶
func (s *VoiceChatStarted) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type WebhookInfo ¶
type WebhookInfo struct { // Webhook URL, may be empty if webhook is not set up. URL url.URL `json:"url"` // True, if a custom certificate was provided for webhook certificate checks. HasCustomCertificate bool `json:"has_custom_certificate"` // Number of updates awaiting delivery. PendingUpdateCount int `json:"pending_update_count"` // Currently used webhook IP address. IPAddress OptString `json:"ip_address"` // Unix time for the most recent error that happened when trying to deliver an update via webhook. LastErrorDate OptInt `json:"last_error_date"` // Error message in human-readable format for the most recent error that happened when trying to // deliver an update via webhook. LastErrorMessage OptString `json:"last_error_message"` // Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery. MaxConnections OptInt `json:"max_connections"` // A list of update types the bot is subscribed to. Defaults to all update types except chat_member. AllowedUpdates []string `json:"allowed_updates"` }
Contains information about the current status of a webhook. Ref: #/components/schemas/WebhookInfo
func (*WebhookInfo) Decode ¶
func (s *WebhookInfo) Decode(d *jx.Decoder) error
Decode decodes WebhookInfo from json.
func (*WebhookInfo) Encode ¶
func (s *WebhookInfo) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*WebhookInfo) GetAllowedUpdates ¶
func (s *WebhookInfo) GetAllowedUpdates() []string
GetAllowedUpdates returns the value of AllowedUpdates.
func (*WebhookInfo) GetHasCustomCertificate ¶
func (s *WebhookInfo) GetHasCustomCertificate() bool
GetHasCustomCertificate returns the value of HasCustomCertificate.
func (*WebhookInfo) GetIPAddress ¶
func (s *WebhookInfo) GetIPAddress() OptString
GetIPAddress returns the value of IPAddress.
func (*WebhookInfo) GetLastErrorDate ¶
func (s *WebhookInfo) GetLastErrorDate() OptInt
GetLastErrorDate returns the value of LastErrorDate.
func (*WebhookInfo) GetLastErrorMessage ¶
func (s *WebhookInfo) GetLastErrorMessage() OptString
GetLastErrorMessage returns the value of LastErrorMessage.
func (*WebhookInfo) GetMaxConnections ¶
func (s *WebhookInfo) GetMaxConnections() OptInt
GetMaxConnections returns the value of MaxConnections.
func (*WebhookInfo) GetPendingUpdateCount ¶
func (s *WebhookInfo) GetPendingUpdateCount() int
GetPendingUpdateCount returns the value of PendingUpdateCount.
func (*WebhookInfo) GetURL ¶
func (s *WebhookInfo) GetURL() url.URL
GetURL returns the value of URL.
func (*WebhookInfo) MarshalJSON ¶
func (s *WebhookInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*WebhookInfo) SetAllowedUpdates ¶
func (s *WebhookInfo) SetAllowedUpdates(val []string)
SetAllowedUpdates sets the value of AllowedUpdates.
func (*WebhookInfo) SetHasCustomCertificate ¶
func (s *WebhookInfo) SetHasCustomCertificate(val bool)
SetHasCustomCertificate sets the value of HasCustomCertificate.
func (*WebhookInfo) SetIPAddress ¶
func (s *WebhookInfo) SetIPAddress(val OptString)
SetIPAddress sets the value of IPAddress.
func (*WebhookInfo) SetLastErrorDate ¶
func (s *WebhookInfo) SetLastErrorDate(val OptInt)
SetLastErrorDate sets the value of LastErrorDate.
func (*WebhookInfo) SetLastErrorMessage ¶
func (s *WebhookInfo) SetLastErrorMessage(val OptString)
SetLastErrorMessage sets the value of LastErrorMessage.
func (*WebhookInfo) SetMaxConnections ¶
func (s *WebhookInfo) SetMaxConnections(val OptInt)
SetMaxConnections sets the value of MaxConnections.
func (*WebhookInfo) SetPendingUpdateCount ¶
func (s *WebhookInfo) SetPendingUpdateCount(val int)
SetPendingUpdateCount sets the value of PendingUpdateCount.
func (*WebhookInfo) SetURL ¶
func (s *WebhookInfo) SetURL(val url.URL)
SetURL sets the value of URL.
func (*WebhookInfo) UnmarshalJSON ¶
func (s *WebhookInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
Source Files ¶
- oas_cfg_gen.go
- oas_client_gen.go
- oas_defaults_gen.go
- oas_faker_gen.go
- oas_handlers_gen.go
- oas_json_gen.go
- oas_labeler_gen.go
- oas_middleware_gen.go
- oas_request_decoders_gen.go
- oas_request_encoders_gen.go
- oas_response_decoders_gen.go
- oas_response_encoders_gen.go
- oas_router_gen.go
- oas_schemas_gen.go
- oas_server_gen.go
- oas_unimplemented_gen.go
- oas_validators_gen.go