api

package
v0.0.0-...-4182357 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithServerURL

func WithServerURL(ctx context.Context, u *url.URL) context.Context

WithServerURL sets context key to override server URL.

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

func (s *AddStickerToSet) SetFake()

SetFake set fake values.

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

func (s *Animation) Decode(d *jx.Decoder) error

Decode decodes Animation from json.

func (*Animation) Encode

func (s *Animation) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Animation) GetDuration

func (s *Animation) GetDuration() int

GetDuration returns the value of Duration.

func (*Animation) GetFileID

func (s *Animation) GetFileID() string

GetFileID returns the value of FileID.

func (*Animation) GetFileName

func (s *Animation) GetFileName() OptString

GetFileName returns the value of FileName.

func (*Animation) GetFileSize

func (s *Animation) GetFileSize() OptInt

GetFileSize returns the value of FileSize.

func (*Animation) GetFileUniqueID

func (s *Animation) GetFileUniqueID() string

GetFileUniqueID returns the value of FileUniqueID.

func (*Animation) GetHeight

func (s *Animation) GetHeight() int

GetHeight returns the value of Height.

func (*Animation) GetMimeType

func (s *Animation) GetMimeType() OptString

GetMimeType returns the value of MimeType.

func (*Animation) GetThumb

func (s *Animation) GetThumb() OptPhotoSize

GetThumb returns the value of Thumb.

func (*Animation) GetWidth

func (s *Animation) GetWidth() int

GetWidth returns the value of Width.

func (*Animation) MarshalJSON

func (s *Animation) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Animation) SetDuration

func (s *Animation) SetDuration(val int)

SetDuration sets the value of Duration.

func (*Animation) SetFake

func (s *Animation) SetFake()

SetFake set fake values.

func (*Animation) SetFileID

func (s *Animation) SetFileID(val string)

SetFileID sets the value of FileID.

func (*Animation) SetFileName

func (s *Animation) SetFileName(val OptString)

SetFileName sets the value of FileName.

func (*Animation) SetFileSize

func (s *Animation) SetFileSize(val OptInt)

SetFileSize sets the value of FileSize.

func (*Animation) SetFileUniqueID

func (s *Animation) SetFileUniqueID(val string)

SetFileUniqueID sets the value of FileUniqueID.

func (*Animation) SetHeight

func (s *Animation) SetHeight(val int)

SetHeight sets the value of Height.

func (*Animation) SetMimeType

func (s *Animation) SetMimeType(val OptString)

SetMimeType sets the value of MimeType.

func (*Animation) SetThumb

func (s *Animation) SetThumb(val OptPhotoSize)

SetThumb sets the value of Thumb.

func (*Animation) SetWidth

func (s *Animation) SetWidth(val int)

SetWidth sets the value of Width.

func (*Animation) UnmarshalJSON

func (s *Animation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Animation) Validate

func (s *Animation) Validate() error

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

func (s *AnswerInlineQuery) SetFake()

SetFake set fake values.

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

func (s *Audio) Decode(d *jx.Decoder) error

Decode decodes Audio from json.

func (*Audio) Encode

func (s *Audio) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Audio) GetDuration

func (s *Audio) GetDuration() int

GetDuration returns the value of Duration.

func (*Audio) GetFileID

func (s *Audio) GetFileID() string

GetFileID returns the value of FileID.

func (*Audio) GetFileName

func (s *Audio) GetFileName() OptString

GetFileName returns the value of FileName.

func (*Audio) GetFileSize

func (s *Audio) GetFileSize() OptInt

GetFileSize returns the value of FileSize.

func (*Audio) GetFileUniqueID

func (s *Audio) GetFileUniqueID() string

GetFileUniqueID returns the value of FileUniqueID.

func (*Audio) GetMimeType

func (s *Audio) GetMimeType() OptString

GetMimeType returns the value of MimeType.

func (*Audio) GetPerformer

func (s *Audio) GetPerformer() OptString

GetPerformer returns the value of Performer.

func (*Audio) GetThumb

func (s *Audio) GetThumb() OptPhotoSize

GetThumb returns the value of Thumb.

func (*Audio) GetTitle

func (s *Audio) GetTitle() OptString

GetTitle returns the value of Title.

func (*Audio) MarshalJSON

func (s *Audio) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Audio) SetDuration

func (s *Audio) SetDuration(val int)

SetDuration sets the value of Duration.

func (*Audio) SetFake

func (s *Audio) SetFake()

SetFake set fake values.

func (*Audio) SetFileID

func (s *Audio) SetFileID(val string)

SetFileID sets the value of FileID.

func (*Audio) SetFileName

func (s *Audio) SetFileName(val OptString)

SetFileName sets the value of FileName.

func (*Audio) SetFileSize

func (s *Audio) SetFileSize(val OptInt)

SetFileSize sets the value of FileSize.

func (*Audio) SetFileUniqueID

func (s *Audio) SetFileUniqueID(val string)

SetFileUniqueID sets the value of FileUniqueID.

func (*Audio) SetMimeType

func (s *Audio) SetMimeType(val OptString)

SetMimeType sets the value of MimeType.

func (*Audio) SetPerformer

func (s *Audio) SetPerformer(val OptString)

SetPerformer sets the value of Performer.

func (*Audio) SetThumb

func (s *Audio) SetThumb(val OptPhotoSize)

SetThumb sets the value of Thumb.

func (*Audio) SetTitle

func (s *Audio) SetTitle(val OptString)

SetTitle sets the value of Title.

func (*Audio) UnmarshalJSON

func (s *Audio) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Audio) Validate

func (s *Audio) Validate() error

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

func (s *BanChatMember) SetFake()

SetFake set fake values.

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

func (s *BanChatSenderChat) SetFake()

SetFake set fake values.

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

func (s *BotCommand) SetFake()

SetFake set fake values.

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

func (s *BotCommandScope) SetFake()

SetFake set fake values.

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

Decode decodes BotCommandScopeAllChatAdministrators from json.

func (*BotCommandScopeAllChatAdministrators) Encode

Encode implements json.Marshaler.

func (*BotCommandScopeAllChatAdministrators) GetType

GetType returns the value of Type.

func (*BotCommandScopeAllChatAdministrators) MarshalJSON

func (s *BotCommandScopeAllChatAdministrators) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BotCommandScopeAllChatAdministrators) SetFake

SetFake set fake values.

func (*BotCommandScopeAllChatAdministrators) SetType

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

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

Decode decodes BotCommandScopeAllPrivateChats from json.

func (*BotCommandScopeAllPrivateChats) Encode

Encode implements json.Marshaler.

func (*BotCommandScopeAllPrivateChats) GetType

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

Decode decodes BotCommandScopeChatAdministrators from json.

func (*BotCommandScopeChatAdministrators) Encode

Encode implements json.Marshaler.

func (*BotCommandScopeChatAdministrators) GetChatID

func (s *BotCommandScopeChatAdministrators) GetChatID() ID

GetChatID returns the value of ChatID.

func (*BotCommandScopeChatAdministrators) GetType

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

func (s *CallbackGame) SetFake()

SetFake set fake values.

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

func (s *CallbackQuery) GetID() string

GetID returns the value of ID.

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

func (s *CallbackQuery) SetFake()

SetFake set fake values.

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

func (s *CallbackQuery) SetID(val string)

SetID sets the value of ID.

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

func (s *Chat) Decode(d *jx.Decoder) error

Decode decodes Chat from json.

func (*Chat) Encode

func (s *Chat) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Chat) GetBio

func (s *Chat) GetBio() OptString

GetBio returns the value of Bio.

func (*Chat) GetCanSetStickerSet

func (s *Chat) GetCanSetStickerSet() OptBool

GetCanSetStickerSet returns the value of CanSetStickerSet.

func (*Chat) GetDescription

func (s *Chat) GetDescription() OptString

GetDescription returns the value of Description.

func (*Chat) GetFirstName

func (s *Chat) GetFirstName() OptString

GetFirstName returns the value of FirstName.

func (*Chat) GetHasPrivateForwards

func (s *Chat) GetHasPrivateForwards() OptBool

GetHasPrivateForwards returns the value of HasPrivateForwards.

func (*Chat) GetHasProtectedContent

func (s *Chat) GetHasProtectedContent() OptBool

GetHasProtectedContent returns the value of HasProtectedContent.

func (*Chat) GetID

func (s *Chat) GetID() int64

GetID returns the value of ID.

func (s *Chat) GetInviteLink() OptString

GetInviteLink returns the value of InviteLink.

func (*Chat) GetLastName

func (s *Chat) GetLastName() OptString

GetLastName returns the value of LastName.

func (*Chat) GetLinkedChatID

func (s *Chat) GetLinkedChatID() OptInt64

GetLinkedChatID returns the value of LinkedChatID.

func (*Chat) GetLocation

func (s *Chat) GetLocation() OptChatLocation

GetLocation returns the value of Location.

func (*Chat) GetMessageAutoDeleteTime

func (s *Chat) GetMessageAutoDeleteTime() OptInt

GetMessageAutoDeleteTime returns the value of MessageAutoDeleteTime.

func (*Chat) GetPermissions

func (s *Chat) GetPermissions() OptChatPermissions

GetPermissions returns the value of Permissions.

func (*Chat) GetPhoto

func (s *Chat) GetPhoto() OptChatPhoto

GetPhoto returns the value of Photo.

func (*Chat) GetPinnedMessage

func (s *Chat) GetPinnedMessage() *Message

GetPinnedMessage returns the value of PinnedMessage.

func (*Chat) GetSlowModeDelay

func (s *Chat) GetSlowModeDelay() OptInt

GetSlowModeDelay returns the value of SlowModeDelay.

func (*Chat) GetStickerSetName

func (s *Chat) GetStickerSetName() OptString

GetStickerSetName returns the value of StickerSetName.

func (*Chat) GetTitle

func (s *Chat) GetTitle() OptString

GetTitle returns the value of Title.

func (*Chat) GetType

func (s *Chat) GetType() ChatType

GetType returns the value of Type.

func (*Chat) GetUsername

func (s *Chat) GetUsername() OptString

GetUsername returns the value of Username.

func (*Chat) MarshalJSON

func (s *Chat) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Chat) SetBio

func (s *Chat) SetBio(val OptString)

SetBio sets the value of Bio.

func (*Chat) SetCanSetStickerSet

func (s *Chat) SetCanSetStickerSet(val OptBool)

SetCanSetStickerSet sets the value of CanSetStickerSet.

func (*Chat) SetDescription

func (s *Chat) SetDescription(val OptString)

SetDescription sets the value of Description.

func (*Chat) SetFake

func (s *Chat) SetFake()

SetFake set fake values.

func (*Chat) SetFirstName

func (s *Chat) SetFirstName(val OptString)

SetFirstName sets the value of FirstName.

func (*Chat) SetHasPrivateForwards

func (s *Chat) SetHasPrivateForwards(val OptBool)

SetHasPrivateForwards sets the value of HasPrivateForwards.

func (*Chat) SetHasProtectedContent

func (s *Chat) SetHasProtectedContent(val OptBool)

SetHasProtectedContent sets the value of HasProtectedContent.

func (*Chat) SetID

func (s *Chat) SetID(val int64)

SetID sets the value of ID.

func (s *Chat) SetInviteLink(val OptString)

SetInviteLink sets the value of InviteLink.

func (*Chat) SetLastName

func (s *Chat) SetLastName(val OptString)

SetLastName sets the value of LastName.

func (*Chat) SetLinkedChatID

func (s *Chat) SetLinkedChatID(val OptInt64)

SetLinkedChatID sets the value of LinkedChatID.

func (*Chat) SetLocation

func (s *Chat) SetLocation(val OptChatLocation)

SetLocation sets the value of Location.

func (*Chat) SetMessageAutoDeleteTime

func (s *Chat) SetMessageAutoDeleteTime(val OptInt)

SetMessageAutoDeleteTime sets the value of MessageAutoDeleteTime.

func (*Chat) SetPermissions

func (s *Chat) SetPermissions(val OptChatPermissions)

SetPermissions sets the value of Permissions.

func (*Chat) SetPhoto

func (s *Chat) SetPhoto(val OptChatPhoto)

SetPhoto sets the value of Photo.

func (*Chat) SetPinnedMessage

func (s *Chat) SetPinnedMessage(val *Message)

SetPinnedMessage sets the value of PinnedMessage.

func (*Chat) SetSlowModeDelay

func (s *Chat) SetSlowModeDelay(val OptInt)

SetSlowModeDelay sets the value of SlowModeDelay.

func (*Chat) SetStickerSetName

func (s *Chat) SetStickerSetName(val OptString)

SetStickerSetName sets the value of StickerSetName.

func (*Chat) SetTitle

func (s *Chat) SetTitle(val OptString)

SetTitle sets the value of Title.

func (*Chat) SetType

func (s *Chat) SetType(val ChatType)

SetType sets the value of Type.

func (*Chat) SetUsername

func (s *Chat) SetUsername(val OptString)

SetUsername sets the value of Username.

func (*Chat) UnmarshalJSON

func (s *Chat) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Chat) Validate

func (s *Chat) Validate() error
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 (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) SetFake

func (s *ChatInviteLink) SetFake()

SetFake set fake values.

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 (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) SetFake

func (s *ChatJoinRequest) SetFake()

SetFake set fake values.

func (*ChatJoinRequest) SetFrom

func (s *ChatJoinRequest) SetFrom(val User)

SetFrom sets the value of From.

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

func (s *ChatLocation) SetFake()

SetFake set fake values.

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

func (s *ChatMember) SetFake()

SetFake set fake values.

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

func (s *ChatMemberBanned) SetFake()

SetFake set fake values.

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

func (s *ChatMemberLeft) SetFake()

SetFake set fake values.

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

func (s *ChatMemberMember) SetFake()

SetFake set fake values.

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

func (s *ChatMemberOwner) SetFake()

SetFake set fake values.

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 (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) SetFake

func (s *ChatMemberUpdated) SetFake()

SetFake set fake values.

func (*ChatMemberUpdated) SetFrom

func (s *ChatMemberUpdated) SetFrom(val User)

SetFrom sets the value of From.

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

func (s *ChatPermissions) SetFake()

SetFake set fake values.

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

func (s *ChatPhoto) Decode(d *jx.Decoder) error

Decode decodes ChatPhoto from json.

func (*ChatPhoto) Encode

func (s *ChatPhoto) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ChatPhoto) GetBigFileID

func (s *ChatPhoto) GetBigFileID() string

GetBigFileID returns the value of BigFileID.

func (*ChatPhoto) GetBigFileUniqueID

func (s *ChatPhoto) GetBigFileUniqueID() string

GetBigFileUniqueID returns the value of BigFileUniqueID.

func (*ChatPhoto) GetSmallFileID

func (s *ChatPhoto) GetSmallFileID() string

GetSmallFileID returns the value of SmallFileID.

func (*ChatPhoto) GetSmallFileUniqueID

func (s *ChatPhoto) GetSmallFileUniqueID() string

GetSmallFileUniqueID returns the value of SmallFileUniqueID.

func (*ChatPhoto) MarshalJSON

func (s *ChatPhoto) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ChatPhoto) SetBigFileID

func (s *ChatPhoto) SetBigFileID(val string)

SetBigFileID sets the value of BigFileID.

func (*ChatPhoto) SetBigFileUniqueID

func (s *ChatPhoto) SetBigFileUniqueID(val string)

SetBigFileUniqueID sets the value of BigFileUniqueID.

func (*ChatPhoto) SetFake

func (s *ChatPhoto) SetFake()

SetFake set fake values.

func (*ChatPhoto) SetSmallFileID

func (s *ChatPhoto) SetSmallFileID(val string)

SetSmallFileID sets the value of SmallFileID.

func (*ChatPhoto) SetSmallFileUniqueID

func (s *ChatPhoto) SetSmallFileUniqueID(val string)

SetSmallFileUniqueID sets the value of SmallFileUniqueID.

func (*ChatPhoto) UnmarshalJSON

func (s *ChatPhoto) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ChatType

type ChatType string

Type of chat, can be either “private”, “group”, “supergroup” or “channel”.

const (
	ChatTypePrivate    ChatType = "private"
	ChatTypeGroup      ChatType = "group"
	ChatTypeSupergroup ChatType = "supergroup"
	ChatTypeChannel    ChatType = "channel"
)

func (ChatType) AllValues

func (ChatType) AllValues() []ChatType

AllValues returns all ChatType values.

func (*ChatType) Decode

func (s *ChatType) Decode(d *jx.Decoder) error

Decode decodes ChatType from json.

func (ChatType) Encode

func (s ChatType) Encode(e *jx.Encoder)

Encode encodes ChatType as json.

func (ChatType) MarshalJSON

func (s ChatType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ChatType) MarshalText

func (s ChatType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ChatType) SetFake

func (s *ChatType) SetFake()

SetFake set fake values.

func (*ChatType) UnmarshalJSON

func (s *ChatType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ChatType) UnmarshalText

func (s *ChatType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ChatType) Validate

func (s ChatType) Validate() error

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

func (c *Client) AddStickerToSet(ctx context.Context, request *AddStickerToSet) (*Result, error)

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

func (c *Client) BanChatMember(ctx context.Context, request *BanChatMember) (*Result, error)

BanChatMember invokes banChatMember operation.

POST /banChatMember

func (*Client) BanChatSenderChat

func (c *Client) BanChatSenderChat(ctx context.Context, request *BanChatSenderChat) (*Result, error)

BanChatSenderChat invokes banChatSenderChat operation.

POST /banChatSenderChat

func (*Client) Close

func (c *Client) Close(ctx context.Context) (*Result, error)

Close invokes close operation.

POST /close

func (*Client) CopyMessage

func (c *Client) CopyMessage(ctx context.Context, request *CopyMessage) (*ResultMessageId, error)

CopyMessage invokes copyMessage operation.

POST /copyMessage

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

func (c *Client) DeleteChatPhoto(ctx context.Context, request *DeleteChatPhoto) (*Result, error)

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

func (c *Client) DeleteMessage(ctx context.Context, request *DeleteMessage) (*Result, error)

DeleteMessage invokes deleteMessage operation.

POST /deleteMessage

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

func (c *Client) DeleteWebhook(ctx context.Context, request OptDeleteWebhook) (*Result, error)

DeleteWebhook invokes deleteWebhook operation.

POST /deleteWebhook

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

func (c *Client) EditMessageMedia(ctx context.Context, request *EditMessageMedia) (*Result, error)

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

func (c *Client) EditMessageText(ctx context.Context, request *EditMessageText) (*Result, error)

EditMessageText invokes editMessageText operation.

POST /editMessageText

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

func (c *Client) GetChat(ctx context.Context, request *GetChat) (*ResultChat, error)

GetChat invokes getChat operation.

POST /getChat

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

func (c *Client) GetFile(ctx context.Context, request *GetFile) (*Result, error)

GetFile invokes getFile operation.

POST /getFile

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

func (c *Client) GetStickerSet(ctx context.Context, request *GetStickerSet) (*Result, error)

GetStickerSet invokes getStickerSet operation.

POST /getStickerSet

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

func (c *Client) LeaveChat(ctx context.Context, request *LeaveChat) (*Result, error)

LeaveChat invokes leaveChat operation.

POST /leaveChat

func (*Client) LogOut

func (c *Client) LogOut(ctx context.Context) (*Result, error)

LogOut invokes logOut operation.

POST /logOut

func (*Client) PinChatMessage

func (c *Client) PinChatMessage(ctx context.Context, request *PinChatMessage) (*Result, error)

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 (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) SendAudio

func (c *Client) SendAudio(ctx context.Context, request *SendAudio) (*ResultMessage, error)

SendAudio invokes sendAudio operation.

POST /sendAudio

func (*Client) SendChatAction

func (c *Client) SendChatAction(ctx context.Context, request *SendChatAction) (*Result, error)

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

func (c *Client) SendDice(ctx context.Context, request *SendDice) (*ResultMessage, error)

SendDice invokes sendDice operation.

POST /sendDice

func (*Client) SendDocument

func (c *Client) SendDocument(ctx context.Context, request *SendDocument) (*ResultMessage, error)

SendDocument invokes sendDocument operation.

POST /sendDocument

func (*Client) SendGame

func (c *Client) SendGame(ctx context.Context, request *SendGame) (*ResultMessage, error)

SendGame invokes sendGame operation.

POST /sendGame

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

func (c *Client) SendPhoto(ctx context.Context, request *SendPhoto) (*ResultMessage, error)

SendPhoto invokes sendPhoto operation.

POST /sendPhoto

func (*Client) SendPoll

func (c *Client) SendPoll(ctx context.Context, request *SendPoll) (*ResultMessage, error)

SendPoll invokes sendPoll operation.

POST /sendPoll

func (*Client) SendSticker

func (c *Client) SendSticker(ctx context.Context, request *SendSticker) (*ResultMessage, error)

SendSticker invokes sendSticker operation.

POST /sendSticker

func (*Client) SendVenue

func (c *Client) SendVenue(ctx context.Context, request *SendVenue) (*ResultMessage, error)

SendVenue invokes sendVenue operation.

POST /sendVenue

func (*Client) SendVideo

func (c *Client) SendVideo(ctx context.Context, request *SendVideo) (*ResultMessage, error)

SendVideo invokes sendVideo operation.

POST /sendVideo

func (*Client) SendVideoNote

func (c *Client) SendVideoNote(ctx context.Context, request *SendVideoNote) (*ResultMessage, error)

SendVideoNote invokes sendVideoNote operation.

POST /sendVideoNote

func (*Client) SendVoice

func (c *Client) SendVoice(ctx context.Context, request *SendVoice) (*ResultMessage, error)

SendVoice invokes sendVoice operation.

POST /sendVoice

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

func (c *Client) SetChatPhoto(ctx context.Context, request *SetChatPhoto) (*Result, error)

SetChatPhoto invokes setChatPhoto operation.

POST /setChatPhoto

func (*Client) SetChatStickerSet

func (c *Client) SetChatStickerSet(ctx context.Context, request *SetChatStickerSet) (*Result, error)

SetChatStickerSet invokes setChatStickerSet operation.

POST /setChatStickerSet

func (*Client) SetChatTitle

func (c *Client) SetChatTitle(ctx context.Context, request *SetChatTitle) (*Result, error)

SetChatTitle invokes setChatTitle operation.

POST /setChatTitle

func (*Client) SetGameScore

func (c *Client) SetGameScore(ctx context.Context, request *SetGameScore) (*Result, error)

SetGameScore invokes setGameScore operation.

POST /setGameScore

func (*Client) SetMyCommands

func (c *Client) SetMyCommands(ctx context.Context, request *SetMyCommands) (*Result, error)

SetMyCommands invokes setMyCommands operation.

POST /setMyCommands

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

func (c *Client) SetWebhook(ctx context.Context, request *SetWebhook) (*Result, error)

SetWebhook invokes setWebhook operation.

POST /setWebhook

func (*Client) StopMessageLiveLocation

func (c *Client) StopMessageLiveLocation(ctx context.Context, request *StopMessageLiveLocation) (*Result, error)

StopMessageLiveLocation invokes stopMessageLiveLocation operation.

POST /stopMessageLiveLocation

func (*Client) StopPoll

func (c *Client) StopPoll(ctx context.Context, request *StopPoll) (*ResultPoll, error)

StopPoll invokes stopPoll operation.

POST /stopPoll

func (*Client) UnbanChatMember

func (c *Client) UnbanChatMember(ctx context.Context, request *UnbanChatMember) (*Result, error)

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

func (c *Client) UnpinChatMessage(ctx context.Context, request *UnpinChatMessage) (*Result, error)

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

func (s *Contact) Decode(d *jx.Decoder) error

Decode decodes Contact from json.

func (*Contact) Encode

func (s *Contact) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Contact) GetFirstName

func (s *Contact) GetFirstName() string

GetFirstName returns the value of FirstName.

func (*Contact) GetLastName

func (s *Contact) GetLastName() OptString

GetLastName returns the value of LastName.

func (*Contact) GetPhoneNumber

func (s *Contact) GetPhoneNumber() string

GetPhoneNumber returns the value of PhoneNumber.

func (*Contact) GetUserID

func (s *Contact) GetUserID() OptInt64

GetUserID returns the value of UserID.

func (*Contact) GetVcard

func (s *Contact) GetVcard() OptString

GetVcard returns the value of Vcard.

func (*Contact) MarshalJSON

func (s *Contact) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Contact) SetFake

func (s *Contact) SetFake()

SetFake set fake values.

func (*Contact) SetFirstName

func (s *Contact) SetFirstName(val string)

SetFirstName sets the value of FirstName.

func (*Contact) SetLastName

func (s *Contact) SetLastName(val OptString)

SetLastName sets the value of LastName.

func (*Contact) SetPhoneNumber

func (s *Contact) SetPhoneNumber(val string)

SetPhoneNumber sets the value of PhoneNumber.

func (*Contact) SetUserID

func (s *Contact) SetUserID(val OptInt64)

SetUserID sets the value of UserID.

func (*Contact) SetVcard

func (s *Contact) SetVcard(val OptString)

SetVcard sets the value of Vcard.

func (*Contact) UnmarshalJSON

func (s *Contact) UnmarshalJSON(data []byte) error

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

func (s *CopyMessage) SetFake()

SetFake set fake values.

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

func (s *DeleteChatPhoto) SetFake()

SetFake set fake values.

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

func (s *DeleteMessage) SetFake()

SetFake set fake values.

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

func (s *DeleteMyCommands) SetFake()

SetFake set fake values.

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

func (s *DeleteWebhook) SetFake()

SetFake set fake values.

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

func (s *Dice) Decode(d *jx.Decoder) error

Decode decodes Dice from json.

func (*Dice) Encode

func (s *Dice) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Dice) GetEmoji

func (s *Dice) GetEmoji() string

GetEmoji returns the value of Emoji.

func (*Dice) GetValue

func (s *Dice) GetValue() int

GetValue returns the value of Value.

func (*Dice) MarshalJSON

func (s *Dice) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Dice) SetEmoji

func (s *Dice) SetEmoji(val string)

SetEmoji sets the value of Emoji.

func (*Dice) SetFake

func (s *Dice) SetFake()

SetFake set fake values.

func (*Dice) SetValue

func (s *Dice) SetValue(val int)

SetValue sets the value of Value.

func (*Dice) UnmarshalJSON

func (s *Dice) UnmarshalJSON(data []byte) error

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

func (s *Document) Decode(d *jx.Decoder) error

Decode decodes Document from json.

func (*Document) Encode

func (s *Document) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Document) GetFileID

func (s *Document) GetFileID() string

GetFileID returns the value of FileID.

func (*Document) GetFileName

func (s *Document) GetFileName() OptString

GetFileName returns the value of FileName.

func (*Document) GetFileSize

func (s *Document) GetFileSize() OptInt

GetFileSize returns the value of FileSize.

func (*Document) GetFileUniqueID

func (s *Document) GetFileUniqueID() string

GetFileUniqueID returns the value of FileUniqueID.

func (*Document) GetMimeType

func (s *Document) GetMimeType() OptString

GetMimeType returns the value of MimeType.

func (*Document) GetThumb

func (s *Document) GetThumb() OptPhotoSize

GetThumb returns the value of Thumb.

func (*Document) MarshalJSON

func (s *Document) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Document) SetFake

func (s *Document) SetFake()

SetFake set fake values.

func (*Document) SetFileID

func (s *Document) SetFileID(val string)

SetFileID sets the value of FileID.

func (*Document) SetFileName

func (s *Document) SetFileName(val OptString)

SetFileName sets the value of FileName.

func (*Document) SetFileSize

func (s *Document) SetFileSize(val OptInt)

SetFileSize sets the value of FileSize.

func (*Document) SetFileUniqueID

func (s *Document) SetFileUniqueID(val string)

SetFileUniqueID sets the value of FileUniqueID.

func (*Document) SetMimeType

func (s *Document) SetMimeType(val OptString)

SetMimeType sets the value of MimeType.

func (*Document) SetThumb

func (s *Document) SetThumb(val OptPhotoSize)

SetThumb sets the value of Thumb.

func (*Document) UnmarshalJSON

func (s *Document) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Document) Validate

func (s *Document) Validate() error
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 (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 (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

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

func (s *EditMessageMedia) SetFake()

SetFake set fake values.

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

func (s *EditMessageText) SetFake()

SetFake set fake values.

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

GetSelfie returns the value of Selfie.

func (*EncryptedPassportElement) GetTranslation

func (s *EncryptedPassportElement) GetTranslation() []PassportFile

GetTranslation returns the value of Translation.

func (*EncryptedPassportElement) GetType

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

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

AllValues returns all EncryptedPassportElementType values.

func (*EncryptedPassportElementType) Decode

Decode decodes EncryptedPassportElementType from json.

func (EncryptedPassportElementType) Encode

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

func (s *Error) Decode(d *jx.Decoder) error

Decode decodes Error from json.

func (*Error) Encode

func (s *Error) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Error) GetDescription

func (s *Error) GetDescription() string

GetDescription returns the value of Description.

func (*Error) GetErrorCode

func (s *Error) GetErrorCode() int

GetErrorCode returns the value of ErrorCode.

func (*Error) GetOk

func (s *Error) GetOk() bool

GetOk returns the value of Ok.

func (*Error) GetParameters

func (s *Error) GetParameters() OptResponse

GetParameters returns the value of Parameters.

func (*Error) MarshalJSON

func (s *Error) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Error) SetDescription

func (s *Error) SetDescription(val string)

SetDescription sets the value of Description.

func (*Error) SetErrorCode

func (s *Error) SetErrorCode(val int)

SetErrorCode sets the value of ErrorCode.

func (*Error) SetFake

func (s *Error) SetFake()

SetFake set fake values.

func (*Error) SetOk

func (s *Error) SetOk(val bool)

SetOk sets the value of Ok.

func (*Error) SetParameters

func (s *Error) SetParameters(val OptResponse)

SetParameters sets the value of Parameters.

func (*Error) UnmarshalJSON

func (s *Error) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ErrorHandler

type ErrorHandler = ogenerrors.ErrorHandler

ErrorHandler is error handler.

type ErrorStatusCode

type ErrorStatusCode struct {
	StatusCode int
	Response   Error
}

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

func (s *File) Decode(d *jx.Decoder) error

Decode decodes File from json.

func (*File) Encode

func (s *File) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*File) GetFileID

func (s *File) GetFileID() string

GetFileID returns the value of FileID.

func (*File) GetFilePath

func (s *File) GetFilePath() OptString

GetFilePath returns the value of FilePath.

func (*File) GetFileSize

func (s *File) GetFileSize() OptInt

GetFileSize returns the value of FileSize.

func (*File) GetFileUniqueID

func (s *File) GetFileUniqueID() string

GetFileUniqueID returns the value of FileUniqueID.

func (*File) MarshalJSON

func (s *File) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*File) SetFake

func (s *File) SetFake()

SetFake set fake values.

func (*File) SetFileID

func (s *File) SetFileID(val string)

SetFileID sets the value of FileID.

func (*File) SetFilePath

func (s *File) SetFilePath(val OptString)

SetFilePath sets the value of FilePath.

func (*File) SetFileSize

func (s *File) SetFileSize(val OptInt)

SetFileSize sets the value of FileSize.

func (*File) SetFileUniqueID

func (s *File) SetFileUniqueID(val string)

SetFileUniqueID sets the value of FileUniqueID.

func (*File) UnmarshalJSON

func (s *File) UnmarshalJSON(data []byte) error

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

func (s *ForceReply) SetFake()

SetFake set fake values.

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

func (s *ForwardMessage) SetFake()

SetFake set fake values.

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

func (s *Game) Decode(d *jx.Decoder) error

Decode decodes Game from json.

func (*Game) Encode

func (s *Game) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Game) GetAnimation

func (s *Game) GetAnimation() OptAnimation

GetAnimation returns the value of Animation.

func (*Game) GetDescription

func (s *Game) GetDescription() string

GetDescription returns the value of Description.

func (*Game) GetPhoto

func (s *Game) GetPhoto() []PhotoSize

GetPhoto returns the value of Photo.

func (*Game) GetText

func (s *Game) GetText() OptString

GetText returns the value of Text.

func (*Game) GetTextEntities

func (s *Game) GetTextEntities() []MessageEntity

GetTextEntities returns the value of TextEntities.

func (*Game) GetTitle

func (s *Game) GetTitle() string

GetTitle returns the value of Title.

func (*Game) MarshalJSON

func (s *Game) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Game) SetAnimation

func (s *Game) SetAnimation(val OptAnimation)

SetAnimation sets the value of Animation.

func (*Game) SetDescription

func (s *Game) SetDescription(val string)

SetDescription sets the value of Description.

func (*Game) SetFake

func (s *Game) SetFake()

SetFake set fake values.

func (*Game) SetPhoto

func (s *Game) SetPhoto(val []PhotoSize)

SetPhoto sets the value of Photo.

func (*Game) SetText

func (s *Game) SetText(val OptString)

SetText sets the value of Text.

func (*Game) SetTextEntities

func (s *Game) SetTextEntities(val []MessageEntity)

SetTextEntities sets the value of TextEntities.

func (*Game) SetTitle

func (s *Game) SetTitle(val string)

SetTitle sets the value of Title.

func (*Game) UnmarshalJSON

func (s *Game) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Game) Validate

func (s *Game) Validate() error

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

func (s *GameHighScore) SetFake()

SetFake set fake values.

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

func (s *GetChat) Decode(d *jx.Decoder) error

Decode decodes GetChat from json.

func (*GetChat) Encode

func (s *GetChat) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetChat) GetChatID

func (s *GetChat) GetChatID() ID

GetChatID returns the value of ChatID.

func (*GetChat) MarshalJSON

func (s *GetChat) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetChat) SetChatID

func (s *GetChat) SetChatID(val ID)

SetChatID sets the value of ChatID.

func (*GetChat) SetFake

func (s *GetChat) SetFake()

SetFake set fake values.

func (*GetChat) UnmarshalJSON

func (s *GetChat) UnmarshalJSON(data []byte) error

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

func (s *GetChatMember) SetFake()

SetFake set fake values.

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

func (s *GetFile) Decode(d *jx.Decoder) error

Decode decodes GetFile from json.

func (*GetFile) Encode

func (s *GetFile) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetFile) GetFileID

func (s *GetFile) GetFileID() string

GetFileID returns the value of FileID.

func (*GetFile) MarshalJSON

func (s *GetFile) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetFile) SetFake

func (s *GetFile) SetFake()

SetFake set fake values.

func (*GetFile) SetFileID

func (s *GetFile) SetFileID(val string)

SetFileID sets the value of FileID.

func (*GetFile) UnmarshalJSON

func (s *GetFile) UnmarshalJSON(data []byte) error

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

func (s *GetGameHighScores) SetFake()

SetFake set fake values.

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

func (s *GetMyCommands) SetFake()

SetFake set fake values.

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

func (s *GetStickerSet) SetFake()

SetFake set fake values.

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

func (s *GetUpdates) SetFake()

SetFake set fake values.

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

type ID struct {
	Type   IDType // switch on this field
	String string
	Int64  int64
}

Ref: #/components/schemas/ID ID represents sum type.

func NewInt64ID

func NewInt64ID(v int64) ID

NewInt64ID returns new ID from int64.

func NewStringID

func NewStringID(v string) ID

NewStringID returns new ID from string.

func (*ID) Decode

func (s *ID) Decode(d *jx.Decoder) error

Decode decodes ID from json.

func (ID) Encode

func (s ID) Encode(e *jx.Encoder)

Encode encodes ID as json.

func (ID) GetInt64

func (s ID) GetInt64() (v int64, ok bool)

GetInt64 returns int64 and true boolean if ID is int64.

func (ID) GetString

func (s ID) GetString() (v string, ok bool)

GetString returns string and true boolean if ID is string.

func (ID) IsInt64

func (s ID) IsInt64() bool

IsInt64 reports whether ID is int64.

func (ID) IsString

func (s ID) IsString() bool

IsString reports whether ID is string.

func (ID) MarshalJSON

func (s ID) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ID) SetFake

func (s *ID) SetFake()

SetFake set fake values.

func (*ID) SetInt64

func (s *ID) SetInt64(v int64)

SetInt64 sets ID to int64.

func (*ID) SetString

func (s *ID) SetString(v string)

SetString sets ID to string.

func (*ID) UnmarshalJSON

func (s *ID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type IDType

type IDType string

IDType is oneOf type of ID.

const (
	StringID IDType = "string"
	Int64ID  IDType = "int64"
)

Possible values for IDType.

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

func (s *InlineQuery) GetID() string

GetID returns the value of ID.

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

func (s *InlineQuery) SetFake()

SetFake set fake values.

func (*InlineQuery) SetFrom

func (s *InlineQuery) SetFrom(val User)

SetFrom sets the value of From.

func (*InlineQuery) SetID

func (s *InlineQuery) SetID(val string)

SetID sets the value of ID.

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

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

func (s *InlineQueryResult) SetFake()

SetFake set fake values.

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

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

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

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

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

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

Decode decodes InlineQueryResultCachedDocument from json.

func (*InlineQueryResultCachedDocument) Encode

Encode implements json.Marshaler.

func (*InlineQueryResultCachedDocument) GetCaption

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

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

GetReplyMarkup returns the value of ReplyMarkup.

func (*InlineQueryResultCachedDocument) GetTitle

GetTitle returns the value of Title.

func (*InlineQueryResultCachedDocument) GetType

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

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

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

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

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

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

Decode decodes InlineQueryResultCachedMpeg4Gif from json.

func (*InlineQueryResultCachedMpeg4Gif) Encode

Encode implements json.Marshaler.

func (*InlineQueryResultCachedMpeg4Gif) GetCaption

GetCaption returns the value of Caption.

func (*InlineQueryResultCachedMpeg4Gif) GetCaptionEntities

func (s *InlineQueryResultCachedMpeg4Gif) GetCaptionEntities() []MessageEntity

GetCaptionEntities returns the value of CaptionEntities.

func (*InlineQueryResultCachedMpeg4Gif) GetID

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

GetReplyMarkup returns the value of ReplyMarkup.

func (*InlineQueryResultCachedMpeg4Gif) GetTitle

GetTitle returns the value of Title.

func (*InlineQueryResultCachedMpeg4Gif) GetType

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

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

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

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

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

GetReplyMarkup returns the value of ReplyMarkup.

func (*InlineQueryResultCachedPhoto) GetTitle

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

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

Decode decodes InlineQueryResultCachedSticker from json.

func (*InlineQueryResultCachedSticker) Encode

Encode implements json.Marshaler.

func (*InlineQueryResultCachedSticker) GetID

GetID returns the value of ID.

func (*InlineQueryResultCachedSticker) GetInputMessageContent

func (s *InlineQueryResultCachedSticker) GetInputMessageContent() OptInputMessageContent

GetInputMessageContent returns the value of InputMessageContent.

func (*InlineQueryResultCachedSticker) GetReplyMarkup

GetReplyMarkup returns the value of ReplyMarkup.

func (*InlineQueryResultCachedSticker) GetStickerFileID

func (s *InlineQueryResultCachedSticker) GetStickerFileID() string

GetStickerFileID returns the value of StickerFileID.

func (*InlineQueryResultCachedSticker) GetType

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

func (s *InputMedia) SetFake()

SetFake set fake values.

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

func (s *InputMediaAudio) SetFake()

SetFake set fake values.

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

func (s *InputMediaPhoto) SetFake()

SetFake set fake values.

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

func (s *InputMediaVideo) SetFake()

SetFake set fake values.

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

func (s *Invoice) Decode(d *jx.Decoder) error

Decode decodes Invoice from json.

func (*Invoice) Encode

func (s *Invoice) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Invoice) GetCurrency

func (s *Invoice) GetCurrency() string

GetCurrency returns the value of Currency.

func (*Invoice) GetDescription

func (s *Invoice) GetDescription() string

GetDescription returns the value of Description.

func (*Invoice) GetStartParameter

func (s *Invoice) GetStartParameter() string

GetStartParameter returns the value of StartParameter.

func (*Invoice) GetTitle

func (s *Invoice) GetTitle() string

GetTitle returns the value of Title.

func (*Invoice) GetTotalAmount

func (s *Invoice) GetTotalAmount() int

GetTotalAmount returns the value of TotalAmount.

func (*Invoice) MarshalJSON

func (s *Invoice) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Invoice) SetCurrency

func (s *Invoice) SetCurrency(val string)

SetCurrency sets the value of Currency.

func (*Invoice) SetDescription

func (s *Invoice) SetDescription(val string)

SetDescription sets the value of Description.

func (*Invoice) SetFake

func (s *Invoice) SetFake()

SetFake set fake values.

func (*Invoice) SetStartParameter

func (s *Invoice) SetStartParameter(val string)

SetStartParameter sets the value of StartParameter.

func (*Invoice) SetTitle

func (s *Invoice) SetTitle(val string)

SetTitle sets the value of Title.

func (*Invoice) SetTotalAmount

func (s *Invoice) SetTotalAmount(val int)

SetTotalAmount sets the value of TotalAmount.

func (*Invoice) UnmarshalJSON

func (s *Invoice) UnmarshalJSON(data []byte) error

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

func (s *KeyboardButton) SetFake()

SetFake set fake values.

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

func (s *LabeledPrice) SetFake()

SetFake set fake values.

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

func LabelerFromContext(ctx context.Context) (*Labeler, bool)

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

func (l *Labeler) Add(attrs ...attribute.KeyValue)

Add attributes to the Labeler.

func (*Labeler) AttributeSet

func (l *Labeler) AttributeSet() attribute.Set

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

func (s *LeaveChat) Decode(d *jx.Decoder) error

Decode decodes LeaveChat from json.

func (*LeaveChat) Encode

func (s *LeaveChat) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*LeaveChat) GetChatID

func (s *LeaveChat) GetChatID() ID

GetChatID returns the value of ChatID.

func (*LeaveChat) MarshalJSON

func (s *LeaveChat) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*LeaveChat) SetChatID

func (s *LeaveChat) SetChatID(val ID)

SetChatID sets the value of ChatID.

func (*LeaveChat) SetFake

func (s *LeaveChat) SetFake()

SetFake set fake values.

func (*LeaveChat) UnmarshalJSON

func (s *LeaveChat) UnmarshalJSON(data []byte) error

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

func (s *Location) Decode(d *jx.Decoder) error

Decode decodes Location from json.

func (*Location) Encode

func (s *Location) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Location) GetHeading

func (s *Location) GetHeading() OptInt

GetHeading returns the value of Heading.

func (*Location) GetHorizontalAccuracy

func (s *Location) GetHorizontalAccuracy() OptFloat64

GetHorizontalAccuracy returns the value of HorizontalAccuracy.

func (*Location) GetLatitude

func (s *Location) GetLatitude() float64

GetLatitude returns the value of Latitude.

func (*Location) GetLivePeriod

func (s *Location) GetLivePeriod() OptInt

GetLivePeriod returns the value of LivePeriod.

func (*Location) GetLongitude

func (s *Location) GetLongitude() float64

GetLongitude returns the value of Longitude.

func (*Location) GetProximityAlertRadius

func (s *Location) GetProximityAlertRadius() OptInt

GetProximityAlertRadius returns the value of ProximityAlertRadius.

func (*Location) MarshalJSON

func (s *Location) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Location) SetFake

func (s *Location) SetFake()

SetFake set fake values.

func (*Location) SetHeading

func (s *Location) SetHeading(val OptInt)

SetHeading sets the value of Heading.

func (*Location) SetHorizontalAccuracy

func (s *Location) SetHorizontalAccuracy(val OptFloat64)

SetHorizontalAccuracy sets the value of HorizontalAccuracy.

func (*Location) SetLatitude

func (s *Location) SetLatitude(val float64)

SetLatitude sets the value of Latitude.

func (*Location) SetLivePeriod

func (s *Location) SetLivePeriod(val OptInt)

SetLivePeriod sets the value of LivePeriod.

func (*Location) SetLongitude

func (s *Location) SetLongitude(val float64)

SetLongitude sets the value of Longitude.

func (*Location) SetProximityAlertRadius

func (s *Location) SetProximityAlertRadius(val OptInt)

SetProximityAlertRadius sets the value of ProximityAlertRadius.

func (*Location) UnmarshalJSON

func (s *Location) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Location) Validate

func (s *Location) Validate() error

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

func (s *LoginUrl) Decode(d *jx.Decoder) error

Decode decodes LoginUrl from json.

func (*LoginUrl) Encode

func (s *LoginUrl) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*LoginUrl) GetBotUsername

func (s *LoginUrl) GetBotUsername() OptString

GetBotUsername returns the value of BotUsername.

func (*LoginUrl) GetForwardText

func (s *LoginUrl) GetForwardText() OptString

GetForwardText returns the value of ForwardText.

func (*LoginUrl) GetRequestWriteAccess

func (s *LoginUrl) GetRequestWriteAccess() OptBool

GetRequestWriteAccess returns the value of RequestWriteAccess.

func (*LoginUrl) GetURL

func (s *LoginUrl) GetURL() url.URL

GetURL returns the value of URL.

func (*LoginUrl) MarshalJSON

func (s *LoginUrl) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*LoginUrl) SetBotUsername

func (s *LoginUrl) SetBotUsername(val OptString)

SetBotUsername sets the value of BotUsername.

func (*LoginUrl) SetFake

func (s *LoginUrl) SetFake()

SetFake set fake values.

func (*LoginUrl) SetForwardText

func (s *LoginUrl) SetForwardText(val OptString)

SetForwardText sets the value of ForwardText.

func (*LoginUrl) SetRequestWriteAccess

func (s *LoginUrl) SetRequestWriteAccess(val OptBool)

SetRequestWriteAccess sets the value of RequestWriteAccess.

func (*LoginUrl) SetURL

func (s *LoginUrl) SetURL(val url.URL)

SetURL sets the value of URL.

func (*LoginUrl) UnmarshalJSON

func (s *LoginUrl) UnmarshalJSON(data []byte) error

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

func (s *MaskPosition) SetFake()

SetFake set fake values.

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

func (s *Message) Decode(d *jx.Decoder) error

Decode decodes Message from json.

func (*Message) Encode

func (s *Message) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Message) GetAnimation

func (s *Message) GetAnimation() OptAnimation

GetAnimation returns the value of Animation.

func (*Message) GetAudio

func (s *Message) GetAudio() OptAudio

GetAudio returns the value of Audio.

func (*Message) GetAuthorSignature

func (s *Message) GetAuthorSignature() OptString

GetAuthorSignature returns the value of AuthorSignature.

func (*Message) GetCaption

func (s *Message) GetCaption() OptString

GetCaption returns the value of Caption.

func (*Message) GetCaptionEntities

func (s *Message) GetCaptionEntities() []MessageEntity

GetCaptionEntities returns the value of CaptionEntities.

func (*Message) GetChannelChatCreated

func (s *Message) GetChannelChatCreated() OptBool

GetChannelChatCreated returns the value of ChannelChatCreated.

func (*Message) GetChat

func (s *Message) GetChat() Chat

GetChat returns the value of Chat.

func (*Message) GetConnectedWebsite

func (s *Message) GetConnectedWebsite() OptString

GetConnectedWebsite returns the value of ConnectedWebsite.

func (*Message) GetContact

func (s *Message) GetContact() OptContact

GetContact returns the value of Contact.

func (*Message) GetDate

func (s *Message) GetDate() int

GetDate returns the value of Date.

func (*Message) GetDeleteChatPhoto

func (s *Message) GetDeleteChatPhoto() OptBool

GetDeleteChatPhoto returns the value of DeleteChatPhoto.

func (*Message) GetDice

func (s *Message) GetDice() OptDice

GetDice returns the value of Dice.

func (*Message) GetDocument

func (s *Message) GetDocument() OptDocument

GetDocument returns the value of Document.

func (*Message) GetEditDate

func (s *Message) GetEditDate() OptInt

GetEditDate returns the value of EditDate.

func (*Message) GetEntities

func (s *Message) GetEntities() []MessageEntity

GetEntities returns the value of Entities.

func (*Message) GetForwardDate

func (s *Message) GetForwardDate() OptInt

GetForwardDate returns the value of ForwardDate.

func (*Message) GetForwardFrom

func (s *Message) GetForwardFrom() OptUser

GetForwardFrom returns the value of ForwardFrom.

func (*Message) GetForwardFromChat

func (s *Message) GetForwardFromChat() OptChat

GetForwardFromChat returns the value of ForwardFromChat.

func (*Message) GetForwardFromMessageID

func (s *Message) GetForwardFromMessageID() OptInt

GetForwardFromMessageID returns the value of ForwardFromMessageID.

func (*Message) GetForwardSenderName

func (s *Message) GetForwardSenderName() OptString

GetForwardSenderName returns the value of ForwardSenderName.

func (*Message) GetForwardSignature

func (s *Message) GetForwardSignature() OptString

GetForwardSignature returns the value of ForwardSignature.

func (*Message) GetFrom

func (s *Message) GetFrom() OptUser

GetFrom returns the value of From.

func (*Message) GetGame

func (s *Message) GetGame() OptGame

GetGame returns the value of Game.

func (*Message) GetGroupChatCreated

func (s *Message) GetGroupChatCreated() OptBool

GetGroupChatCreated returns the value of GroupChatCreated.

func (*Message) GetHasProtectedContent

func (s *Message) GetHasProtectedContent() OptBool

GetHasProtectedContent returns the value of HasProtectedContent.

func (*Message) GetInvoice

func (s *Message) GetInvoice() OptInvoice

GetInvoice returns the value of Invoice.

func (*Message) GetIsAutomaticForward

func (s *Message) GetIsAutomaticForward() OptBool

GetIsAutomaticForward returns the value of IsAutomaticForward.

func (*Message) GetLeftChatMember

func (s *Message) GetLeftChatMember() OptUser

GetLeftChatMember returns the value of LeftChatMember.

func (*Message) GetLocation

func (s *Message) GetLocation() OptLocation

GetLocation returns the value of Location.

func (*Message) GetMediaGroupID

func (s *Message) GetMediaGroupID() OptString

GetMediaGroupID returns the value of MediaGroupID.

func (*Message) GetMessageAutoDeleteTimerChanged

func (s *Message) GetMessageAutoDeleteTimerChanged() OptMessageAutoDeleteTimerChanged

GetMessageAutoDeleteTimerChanged returns the value of MessageAutoDeleteTimerChanged.

func (*Message) GetMessageID

func (s *Message) GetMessageID() int

GetMessageID returns the value of MessageID.

func (*Message) GetMigrateFromChatID

func (s *Message) GetMigrateFromChatID() OptInt64

GetMigrateFromChatID returns the value of MigrateFromChatID.

func (*Message) GetMigrateToChatID

func (s *Message) GetMigrateToChatID() OptInt64

GetMigrateToChatID returns the value of MigrateToChatID.

func (*Message) GetNewChatMembers

func (s *Message) GetNewChatMembers() []User

GetNewChatMembers returns the value of NewChatMembers.

func (*Message) GetNewChatPhoto

func (s *Message) GetNewChatPhoto() []PhotoSize

GetNewChatPhoto returns the value of NewChatPhoto.

func (*Message) GetNewChatTitle

func (s *Message) GetNewChatTitle() OptString

GetNewChatTitle returns the value of NewChatTitle.

func (*Message) GetPassportData

func (s *Message) GetPassportData() OptPassportData

GetPassportData returns the value of PassportData.

func (*Message) GetPhoto

func (s *Message) GetPhoto() []PhotoSize

GetPhoto returns the value of Photo.

func (*Message) GetPinnedMessage

func (s *Message) GetPinnedMessage() *Message

GetPinnedMessage returns the value of PinnedMessage.

func (*Message) GetPoll

func (s *Message) GetPoll() OptPoll

GetPoll returns the value of Poll.

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

func (s *Message) GetReplyToMessage() *Message

GetReplyToMessage returns the value of ReplyToMessage.

func (*Message) GetSenderChat

func (s *Message) GetSenderChat() OptChat

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

func (s *Message) GetSupergroupChatCreated() OptBool

GetSupergroupChatCreated returns the value of SupergroupChatCreated.

func (*Message) GetText

func (s *Message) GetText() OptString

GetText returns the value of Text.

func (*Message) GetVenue

func (s *Message) GetVenue() OptVenue

GetVenue returns the value of Venue.

func (*Message) GetViaBot

func (s *Message) GetViaBot() OptUser

GetViaBot returns the value of ViaBot.

func (*Message) GetVideo

func (s *Message) GetVideo() OptVideo

GetVideo returns the value of Video.

func (*Message) GetVideoNote

func (s *Message) GetVideoNote() OptVideoNote

GetVideoNote returns the value of VideoNote.

func (*Message) GetVoice

func (s *Message) GetVoice() OptVoice

GetVoice returns the value of Voice.

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

func (s *Message) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Message) SetAnimation

func (s *Message) SetAnimation(val OptAnimation)

SetAnimation sets the value of Animation.

func (*Message) SetAudio

func (s *Message) SetAudio(val OptAudio)

SetAudio sets the value of Audio.

func (*Message) SetAuthorSignature

func (s *Message) SetAuthorSignature(val OptString)

SetAuthorSignature sets the value of AuthorSignature.

func (*Message) SetCaption

func (s *Message) SetCaption(val OptString)

SetCaption sets the value of Caption.

func (*Message) SetCaptionEntities

func (s *Message) SetCaptionEntities(val []MessageEntity)

SetCaptionEntities sets the value of CaptionEntities.

func (*Message) SetChannelChatCreated

func (s *Message) SetChannelChatCreated(val OptBool)

SetChannelChatCreated sets the value of ChannelChatCreated.

func (*Message) SetChat

func (s *Message) SetChat(val Chat)

SetChat sets the value of Chat.

func (*Message) SetConnectedWebsite

func (s *Message) SetConnectedWebsite(val OptString)

SetConnectedWebsite sets the value of ConnectedWebsite.

func (*Message) SetContact

func (s *Message) SetContact(val OptContact)

SetContact sets the value of Contact.

func (*Message) SetDate

func (s *Message) SetDate(val int)

SetDate sets the value of Date.

func (*Message) SetDeleteChatPhoto

func (s *Message) SetDeleteChatPhoto(val OptBool)

SetDeleteChatPhoto sets the value of DeleteChatPhoto.

func (*Message) SetDice

func (s *Message) SetDice(val OptDice)

SetDice sets the value of Dice.

func (*Message) SetDocument

func (s *Message) SetDocument(val OptDocument)

SetDocument sets the value of Document.

func (*Message) SetEditDate

func (s *Message) SetEditDate(val OptInt)

SetEditDate sets the value of EditDate.

func (*Message) SetEntities

func (s *Message) SetEntities(val []MessageEntity)

SetEntities sets the value of Entities.

func (*Message) SetFake

func (s *Message) SetFake()

SetFake set fake values.

func (*Message) SetForwardDate

func (s *Message) SetForwardDate(val OptInt)

SetForwardDate sets the value of ForwardDate.

func (*Message) SetForwardFrom

func (s *Message) SetForwardFrom(val OptUser)

SetForwardFrom sets the value of ForwardFrom.

func (*Message) SetForwardFromChat

func (s *Message) SetForwardFromChat(val OptChat)

SetForwardFromChat sets the value of ForwardFromChat.

func (*Message) SetForwardFromMessageID

func (s *Message) SetForwardFromMessageID(val OptInt)

SetForwardFromMessageID sets the value of ForwardFromMessageID.

func (*Message) SetForwardSenderName

func (s *Message) SetForwardSenderName(val OptString)

SetForwardSenderName sets the value of ForwardSenderName.

func (*Message) SetForwardSignature

func (s *Message) SetForwardSignature(val OptString)

SetForwardSignature sets the value of ForwardSignature.

func (*Message) SetFrom

func (s *Message) SetFrom(val OptUser)

SetFrom sets the value of From.

func (*Message) SetGame

func (s *Message) SetGame(val OptGame)

SetGame sets the value of Game.

func (*Message) SetGroupChatCreated

func (s *Message) SetGroupChatCreated(val OptBool)

SetGroupChatCreated sets the value of GroupChatCreated.

func (*Message) SetHasProtectedContent

func (s *Message) SetHasProtectedContent(val OptBool)

SetHasProtectedContent sets the value of HasProtectedContent.

func (*Message) SetInvoice

func (s *Message) SetInvoice(val OptInvoice)

SetInvoice sets the value of Invoice.

func (*Message) SetIsAutomaticForward

func (s *Message) SetIsAutomaticForward(val OptBool)

SetIsAutomaticForward sets the value of IsAutomaticForward.

func (*Message) SetLeftChatMember

func (s *Message) SetLeftChatMember(val OptUser)

SetLeftChatMember sets the value of LeftChatMember.

func (*Message) SetLocation

func (s *Message) SetLocation(val OptLocation)

SetLocation sets the value of Location.

func (*Message) SetMediaGroupID

func (s *Message) SetMediaGroupID(val OptString)

SetMediaGroupID sets the value of MediaGroupID.

func (*Message) SetMessageAutoDeleteTimerChanged

func (s *Message) SetMessageAutoDeleteTimerChanged(val OptMessageAutoDeleteTimerChanged)

SetMessageAutoDeleteTimerChanged sets the value of MessageAutoDeleteTimerChanged.

func (*Message) SetMessageID

func (s *Message) SetMessageID(val int)

SetMessageID sets the value of MessageID.

func (*Message) SetMigrateFromChatID

func (s *Message) SetMigrateFromChatID(val OptInt64)

SetMigrateFromChatID sets the value of MigrateFromChatID.

func (*Message) SetMigrateToChatID

func (s *Message) SetMigrateToChatID(val OptInt64)

SetMigrateToChatID sets the value of MigrateToChatID.

func (*Message) SetNewChatMembers

func (s *Message) SetNewChatMembers(val []User)

SetNewChatMembers sets the value of NewChatMembers.

func (*Message) SetNewChatPhoto

func (s *Message) SetNewChatPhoto(val []PhotoSize)

SetNewChatPhoto sets the value of NewChatPhoto.

func (*Message) SetNewChatTitle

func (s *Message) SetNewChatTitle(val OptString)

SetNewChatTitle sets the value of NewChatTitle.

func (*Message) SetPassportData

func (s *Message) SetPassportData(val OptPassportData)

SetPassportData sets the value of PassportData.

func (*Message) SetPhoto

func (s *Message) SetPhoto(val []PhotoSize)

SetPhoto sets the value of Photo.

func (*Message) SetPinnedMessage

func (s *Message) SetPinnedMessage(val *Message)

SetPinnedMessage sets the value of PinnedMessage.

func (*Message) SetPoll

func (s *Message) SetPoll(val OptPoll)

SetPoll sets the value of Poll.

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

func (s *Message) SetReplyToMessage(val *Message)

SetReplyToMessage sets the value of ReplyToMessage.

func (*Message) SetSenderChat

func (s *Message) SetSenderChat(val OptChat)

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

func (s *Message) SetSupergroupChatCreated(val OptBool)

SetSupergroupChatCreated sets the value of SupergroupChatCreated.

func (*Message) SetText

func (s *Message) SetText(val OptString)

SetText sets the value of Text.

func (*Message) SetVenue

func (s *Message) SetVenue(val OptVenue)

SetVenue sets the value of Venue.

func (*Message) SetViaBot

func (s *Message) SetViaBot(val OptUser)

SetViaBot sets the value of ViaBot.

func (*Message) SetVideo

func (s *Message) SetVideo(val OptVideo)

SetVideo sets the value of Video.

func (*Message) SetVideoNote

func (s *Message) SetVideoNote(val OptVideoNote)

SetVideoNote sets the value of VideoNote.

func (*Message) SetVoice

func (s *Message) SetVoice(val OptVoice)

SetVoice sets the value of Voice.

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

func (s *Message) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Message) Validate

func (s *Message) Validate() error

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

Decode decodes MessageAutoDeleteTimerChanged from json.

func (*MessageAutoDeleteTimerChanged) Encode

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

func (s *MessageEntity) SetFake()

SetFake set fake values.

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

func (s *MessageEntityType) SetFake()

SetFake set fake values.

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

func (s *MessageId) Decode(d *jx.Decoder) error

Decode decodes MessageId from json.

func (*MessageId) Encode

func (s *MessageId) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MessageId) GetMessageID

func (s *MessageId) GetMessageID() int

GetMessageID returns the value of MessageID.

func (*MessageId) MarshalJSON

func (s *MessageId) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MessageId) SetFake

func (s *MessageId) SetFake()

SetFake set fake values.

func (*MessageId) SetMessageID

func (s *MessageId) SetMessageID(val int)

SetMessageID sets the value of MessageID.

func (*MessageId) UnmarshalJSON

func (s *MessageId) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Middleware

type Middleware = middleware.Middleware

Middleware is middleware type.

type OptAnimation

type OptAnimation struct {
	Value Animation
	Set   bool
}

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

Or returns value if set, or given parameter if does not.

func (*OptAnimation) Reset

func (o *OptAnimation) Reset()

Reset unsets value.

func (*OptAnimation) SetFake

func (s *OptAnimation) SetFake()

SetFake set fake values.

func (*OptAnimation) SetTo

func (o *OptAnimation) SetTo(v Animation)

SetTo sets value to v.

func (*OptAnimation) UnmarshalJSON

func (s *OptAnimation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptAudio

type OptAudio struct {
	Value Audio
	Set   bool
}

OptAudio is optional Audio.

func NewOptAudio

func NewOptAudio(v Audio) OptAudio

NewOptAudio returns new OptAudio with value set to v.

func (*OptAudio) Decode

func (o *OptAudio) Decode(d *jx.Decoder) error

Decode decodes Audio from json.

func (OptAudio) Encode

func (o OptAudio) Encode(e *jx.Encoder)

Encode encodes Audio as json.

func (OptAudio) Get

func (o OptAudio) Get() (v Audio, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptAudio) IsSet

func (o OptAudio) IsSet() bool

IsSet returns true if OptAudio was set.

func (OptAudio) MarshalJSON

func (s OptAudio) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptAudio) Or

func (o OptAudio) Or(d Audio) Audio

Or returns value if set, or given parameter if does not.

func (*OptAudio) Reset

func (o *OptAudio) Reset()

Reset unsets value.

func (*OptAudio) SetFake

func (s *OptAudio) SetFake()

SetFake set fake values.

func (*OptAudio) SetTo

func (o *OptAudio) SetTo(v Audio)

SetTo sets value to v.

func (*OptAudio) UnmarshalJSON

func (s *OptAudio) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptBool

type OptBool struct {
	Value bool
	Set   bool
}

OptBool is optional bool.

func NewOptBool

func NewOptBool(v bool) OptBool

NewOptBool returns new OptBool with value set to v.

func (*OptBool) Decode

func (o *OptBool) Decode(d *jx.Decoder) error

Decode decodes bool from json.

func (OptBool) Encode

func (o OptBool) Encode(e *jx.Encoder)

Encode encodes bool as json.

func (OptBool) Get

func (o OptBool) Get() (v bool, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBool) IsSet

func (o OptBool) IsSet() bool

IsSet returns true if OptBool was set.

func (OptBool) MarshalJSON

func (s OptBool) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBool) Or

func (o OptBool) Or(d bool) bool

Or returns value if set, or given parameter if does not.

func (*OptBool) Reset

func (o *OptBool) Reset()

Reset unsets value.

func (*OptBool) SetFake

func (s *OptBool) SetFake()

SetFake set fake values.

func (*OptBool) SetTo

func (o *OptBool) SetTo(v bool)

SetTo sets value to v.

func (*OptBool) UnmarshalJSON

func (s *OptBool) UnmarshalJSON(data []byte) error

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

Or returns value if set, or given parameter if does not.

func (*OptBotCommandScope) Reset

func (o *OptBotCommandScope) Reset()

Reset unsets value.

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

Or returns value if set, or given parameter if does not.

func (*OptCallbackQuery) Reset

func (o *OptCallbackQuery) Reset()

Reset unsets value.

func (*OptCallbackQuery) SetFake

func (s *OptCallbackQuery) SetFake()

SetFake set fake values.

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

type OptChat struct {
	Value Chat
	Set   bool
}

OptChat is optional Chat.

func NewOptChat

func NewOptChat(v Chat) OptChat

NewOptChat returns new OptChat with value set to v.

func (*OptChat) Decode

func (o *OptChat) Decode(d *jx.Decoder) error

Decode decodes Chat from json.

func (OptChat) Encode

func (o OptChat) Encode(e *jx.Encoder)

Encode encodes Chat as json.

func (OptChat) Get

func (o OptChat) Get() (v Chat, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptChat) IsSet

func (o OptChat) IsSet() bool

IsSet returns true if OptChat was set.

func (OptChat) MarshalJSON

func (s OptChat) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptChat) Or

func (o OptChat) Or(d Chat) Chat

Or returns value if set, or given parameter if does not.

func (*OptChat) Reset

func (o *OptChat) Reset()

Reset unsets value.

func (*OptChat) SetFake

func (s *OptChat) SetFake()

SetFake set fake values.

func (*OptChat) SetTo

func (o *OptChat) SetTo(v Chat)

SetTo sets value to v.

func (*OptChat) UnmarshalJSON

func (s *OptChat) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptChatInviteLink struct {
	Value ChatInviteLink
	Set   bool
}

OptChatInviteLink is optional ChatInviteLink.

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

Or returns value if set, or given parameter if does not.

func (*OptChatInviteLink) Reset

func (o *OptChatInviteLink) Reset()

Reset unsets value.

func (*OptChatInviteLink) SetFake

func (s *OptChatInviteLink) SetFake()

SetFake set fake values.

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

Or returns value if set, or given parameter if does not.

func (*OptChatJoinRequest) Reset

func (o *OptChatJoinRequest) Reset()

Reset unsets value.

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

Or returns value if set, or given parameter if does not.

func (*OptChatLocation) Reset

func (o *OptChatLocation) Reset()

Reset unsets value.

func (*OptChatLocation) SetFake

func (s *OptChatLocation) SetFake()

SetFake set fake values.

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

Or returns value if set, or given parameter if does not.

func (*OptChatMember) Reset

func (o *OptChatMember) Reset()

Reset unsets value.

func (*OptChatMember) SetFake

func (s *OptChatMember) SetFake()

SetFake set fake values.

func (*OptChatMember) SetTo

func (o *OptChatMember) SetTo(v ChatMember)

SetTo sets value to v.

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

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

Or returns value if set, or given parameter if does not.

func (*OptChatMemberUpdated) Reset

func (o *OptChatMemberUpdated) Reset()

Reset unsets value.

func (*OptChatMemberUpdated) SetFake

func (s *OptChatMemberUpdated) SetFake()

SetFake set fake values.

func (*OptChatMemberUpdated) SetTo

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

Or returns value if set, or given parameter if does not.

func (*OptChatPermissions) Reset

func (o *OptChatPermissions) Reset()

Reset unsets value.

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

type OptChatPhoto struct {
	Value ChatPhoto
	Set   bool
}

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

Or returns value if set, or given parameter if does not.

func (*OptChatPhoto) Reset

func (o *OptChatPhoto) Reset()

Reset unsets value.

func (*OptChatPhoto) SetFake

func (s *OptChatPhoto) SetFake()

SetFake set fake values.

func (*OptChatPhoto) SetTo

func (o *OptChatPhoto) SetTo(v ChatPhoto)

SetTo sets value to v.

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

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

Or returns value if set, or given parameter if does not.

func (*OptChosenInlineResult) Reset

func (o *OptChosenInlineResult) Reset()

Reset unsets value.

func (*OptChosenInlineResult) SetFake

func (s *OptChosenInlineResult) SetFake()

SetFake set fake values.

func (*OptChosenInlineResult) SetTo

SetTo sets value to v.

func (*OptChosenInlineResult) UnmarshalJSON

func (s *OptChosenInlineResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptContact

type OptContact struct {
	Value Contact
	Set   bool
}

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

func (o *OptContact) Reset()

Reset unsets value.

func (*OptContact) SetFake

func (s *OptContact) SetFake()

SetFake set fake values.

func (*OptContact) SetTo

func (o *OptContact) SetTo(v Contact)

SetTo sets value to v.

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

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

Or returns value if set, or given parameter if does not.

func (*OptCopyMessageReplyMarkup) Reset

func (o *OptCopyMessageReplyMarkup) Reset()

Reset unsets value.

func (*OptCopyMessageReplyMarkup) SetFake

func (s *OptCopyMessageReplyMarkup) SetFake()

SetFake set fake values.

func (*OptCopyMessageReplyMarkup) SetTo

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

Or returns value if set, or given parameter if does not.

func (*OptDeleteMyCommands) Reset

func (o *OptDeleteMyCommands) Reset()

Reset unsets value.

func (*OptDeleteMyCommands) SetFake

func (s *OptDeleteMyCommands) SetFake()

SetFake set fake values.

func (*OptDeleteMyCommands) SetTo

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

Or returns value if set, or given parameter if does not.

func (*OptDeleteWebhook) Reset

func (o *OptDeleteWebhook) Reset()

Reset unsets value.

func (*OptDeleteWebhook) SetFake

func (s *OptDeleteWebhook) SetFake()

SetFake set fake values.

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

type OptDice struct {
	Value Dice
	Set   bool
}

OptDice is optional Dice.

func NewOptDice

func NewOptDice(v Dice) OptDice

NewOptDice returns new OptDice with value set to v.

func (*OptDice) Decode

func (o *OptDice) Decode(d *jx.Decoder) error

Decode decodes Dice from json.

func (OptDice) Encode

func (o OptDice) Encode(e *jx.Encoder)

Encode encodes Dice as json.

func (OptDice) Get

func (o OptDice) Get() (v Dice, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptDice) IsSet

func (o OptDice) IsSet() bool

IsSet returns true if OptDice was set.

func (OptDice) MarshalJSON

func (s OptDice) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDice) Or

func (o OptDice) Or(d Dice) Dice

Or returns value if set, or given parameter if does not.

func (*OptDice) Reset

func (o *OptDice) Reset()

Reset unsets value.

func (*OptDice) SetFake

func (s *OptDice) SetFake()

SetFake set fake values.

func (*OptDice) SetTo

func (o *OptDice) SetTo(v Dice)

SetTo sets value to v.

func (*OptDice) UnmarshalJSON

func (s *OptDice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDocument

type OptDocument struct {
	Value Document
	Set   bool
}

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

func (o *OptDocument) Reset()

Reset unsets value.

func (*OptDocument) SetFake

func (s *OptDocument) SetFake()

SetFake set fake values.

func (*OptDocument) SetTo

func (o *OptDocument) SetTo(v Document)

SetTo sets value to v.

func (*OptDocument) UnmarshalJSON

func (s *OptDocument) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFile

type OptFile struct {
	Value File
	Set   bool
}

OptFile is optional File.

func NewOptFile

func NewOptFile(v File) OptFile

NewOptFile returns new OptFile with value set to v.

func (*OptFile) Decode

func (o *OptFile) Decode(d *jx.Decoder) error

Decode decodes File from json.

func (OptFile) Encode

func (o OptFile) Encode(e *jx.Encoder)

Encode encodes File as json.

func (OptFile) Get

func (o OptFile) Get() (v File, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptFile) IsSet

func (o OptFile) IsSet() bool

IsSet returns true if OptFile was set.

func (OptFile) MarshalJSON

func (s OptFile) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFile) Or

func (o OptFile) Or(d File) File

Or returns value if set, or given parameter if does not.

func (*OptFile) Reset

func (o *OptFile) Reset()

Reset unsets value.

func (*OptFile) SetFake

func (s *OptFile) SetFake()

SetFake set fake values.

func (*OptFile) SetTo

func (o *OptFile) SetTo(v File)

SetTo sets value to v.

func (*OptFile) UnmarshalJSON

func (s *OptFile) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFloat64

type OptFloat64 struct {
	Value float64
	Set   bool
}

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

func (o *OptFloat64) Reset()

Reset unsets value.

func (*OptFloat64) SetFake

func (s *OptFloat64) SetFake()

SetFake set fake values.

func (*OptFloat64) SetTo

func (o *OptFloat64) SetTo(v float64)

SetTo sets value to v.

func (*OptFloat64) UnmarshalJSON

func (s *OptFloat64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptGame

type OptGame struct {
	Value Game
	Set   bool
}

OptGame is optional Game.

func NewOptGame

func NewOptGame(v Game) OptGame

NewOptGame returns new OptGame with value set to v.

func (*OptGame) Decode

func (o *OptGame) Decode(d *jx.Decoder) error

Decode decodes Game from json.

func (OptGame) Encode

func (o OptGame) Encode(e *jx.Encoder)

Encode encodes Game as json.

func (OptGame) Get

func (o OptGame) Get() (v Game, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptGame) IsSet

func (o OptGame) IsSet() bool

IsSet returns true if OptGame was set.

func (OptGame) MarshalJSON

func (s OptGame) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptGame) Or

func (o OptGame) Or(d Game) Game

Or returns value if set, or given parameter if does not.

func (*OptGame) Reset

func (o *OptGame) Reset()

Reset unsets value.

func (*OptGame) SetFake

func (s *OptGame) SetFake()

SetFake set fake values.

func (*OptGame) SetTo

func (o *OptGame) SetTo(v Game)

SetTo sets value to v.

func (*OptGame) UnmarshalJSON

func (s *OptGame) UnmarshalJSON(data []byte) error

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

Or returns value if set, or given parameter if does not.

func (*OptGetMyCommands) Reset

func (o *OptGetMyCommands) Reset()

Reset unsets value.

func (*OptGetMyCommands) SetFake

func (s *OptGetMyCommands) SetFake()

SetFake set fake values.

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

Or returns value if set, or given parameter if does not.

func (*OptGetUpdates) Reset

func (o *OptGetUpdates) Reset()

Reset unsets value.

func (*OptGetUpdates) SetFake

func (s *OptGetUpdates) SetFake()

SetFake set fake values.

func (*OptGetUpdates) SetTo

func (o *OptGetUpdates) SetTo(v GetUpdates)

SetTo sets value to v.

func (*OptGetUpdates) UnmarshalJSON

func (s *OptGetUpdates) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptID

type OptID struct {
	Value ID
	Set   bool
}

OptID is optional ID.

func NewOptID

func NewOptID(v ID) OptID

NewOptID returns new OptID with value set to v.

func (*OptID) Decode

func (o *OptID) Decode(d *jx.Decoder) error

Decode decodes ID from json.

func (OptID) Encode

func (o OptID) Encode(e *jx.Encoder)

Encode encodes ID as json.

func (OptID) Get

func (o OptID) Get() (v ID, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptID) IsSet

func (o OptID) IsSet() bool

IsSet returns true if OptID was set.

func (OptID) MarshalJSON

func (s OptID) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptID) Or

func (o OptID) Or(d ID) ID

Or returns value if set, or given parameter if does not.

func (*OptID) Reset

func (o *OptID) Reset()

Reset unsets value.

func (*OptID) SetFake

func (s *OptID) SetFake()

SetFake set fake values.

func (*OptID) SetTo

func (o *OptID) SetTo(v ID)

SetTo sets value to v.

func (*OptID) UnmarshalJSON

func (s *OptID) UnmarshalJSON(data []byte) error

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

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

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

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

Or returns value if set, or given parameter if does not.

func (*OptInlineQuery) Reset

func (o *OptInlineQuery) Reset()

Reset unsets value.

func (*OptInlineQuery) SetFake

func (s *OptInlineQuery) SetFake()

SetFake set fake values.

func (*OptInlineQuery) SetTo

func (o *OptInlineQuery) SetTo(v InlineQuery)

SetTo sets value to v.

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

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

Or returns value if set, or given parameter if does not.

func (*OptInlineQueryChatType) Reset

func (o *OptInlineQueryChatType) Reset()

Reset unsets value.

func (*OptInlineQueryChatType) SetFake

func (s *OptInlineQueryChatType) SetFake()

SetFake set fake values.

func (*OptInlineQueryChatType) SetTo

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

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

Or returns value if set, or given parameter if does not.

func (*OptInputMessageContent) Reset

func (o *OptInputMessageContent) Reset()

Reset unsets value.

func (*OptInputMessageContent) SetFake

func (s *OptInputMessageContent) SetFake()

SetFake set fake values.

func (*OptInputMessageContent) SetTo

SetTo sets value to v.

func (*OptInputMessageContent) UnmarshalJSON

func (s *OptInputMessageContent) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt

type OptInt struct {
	Value int
	Set   bool
}

OptInt is optional int.

func NewOptInt

func NewOptInt(v int) OptInt

NewOptInt returns new OptInt with value set to v.

func (*OptInt) Decode

func (o *OptInt) Decode(d *jx.Decoder) error

Decode decodes int from json.

func (OptInt) Encode

func (o OptInt) Encode(e *jx.Encoder)

Encode encodes int as json.

func (OptInt) Get

func (o OptInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt) IsSet

func (o OptInt) IsSet() bool

IsSet returns true if OptInt was set.

func (OptInt) MarshalJSON

func (s OptInt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt) Or

func (o OptInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*OptInt) Reset

func (o *OptInt) Reset()

Reset unsets value.

func (*OptInt) SetFake

func (s *OptInt) SetFake()

SetFake set fake values.

func (*OptInt) SetTo

func (o *OptInt) SetTo(v int)

SetTo sets value to v.

func (*OptInt) UnmarshalJSON

func (s *OptInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt64

type OptInt64 struct {
	Value int64
	Set   bool
}

OptInt64 is optional int64.

func NewOptInt64

func NewOptInt64(v int64) OptInt64

NewOptInt64 returns new OptInt64 with value set to v.

func (*OptInt64) Decode

func (o *OptInt64) Decode(d *jx.Decoder) error

Decode decodes int64 from json.

func (OptInt64) Encode

func (o OptInt64) Encode(e *jx.Encoder)

Encode encodes int64 as json.

func (OptInt64) Get

func (o OptInt64) Get() (v int64, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt64) IsSet

func (o OptInt64) IsSet() bool

IsSet returns true if OptInt64 was set.

func (OptInt64) MarshalJSON

func (s OptInt64) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt64) Or

func (o OptInt64) Or(d int64) int64

Or returns value if set, or given parameter if does not.

func (*OptInt64) Reset

func (o *OptInt64) Reset()

Reset unsets value.

func (*OptInt64) SetFake

func (s *OptInt64) SetFake()

SetFake set fake values.

func (*OptInt64) SetTo

func (o *OptInt64) SetTo(v int64)

SetTo sets value to v.

func (*OptInt64) UnmarshalJSON

func (s *OptInt64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInvoice

type OptInvoice struct {
	Value Invoice
	Set   bool
}

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

func (o *OptInvoice) Reset()

Reset unsets value.

func (*OptInvoice) SetFake

func (s *OptInvoice) SetFake()

SetFake set fake values.

func (*OptInvoice) SetTo

func (o *OptInvoice) SetTo(v Invoice)

SetTo sets value to v.

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

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

Or returns value if set, or given parameter if does not.

func (*OptKeyboardButtonPollType) Reset

func (o *OptKeyboardButtonPollType) Reset()

Reset unsets value.

func (*OptKeyboardButtonPollType) SetFake

func (s *OptKeyboardButtonPollType) SetFake()

SetFake set fake values.

func (*OptKeyboardButtonPollType) SetTo

SetTo sets value to v.

func (*OptKeyboardButtonPollType) UnmarshalJSON

func (s *OptKeyboardButtonPollType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptLocation

type OptLocation struct {
	Value Location
	Set   bool
}

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

func (o *OptLocation) Reset()

Reset unsets value.

func (*OptLocation) SetFake

func (s *OptLocation) SetFake()

SetFake set fake values.

func (*OptLocation) SetTo

func (o *OptLocation) SetTo(v Location)

SetTo sets value to v.

func (*OptLocation) UnmarshalJSON

func (s *OptLocation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptLoginUrl

type OptLoginUrl struct {
	Value LoginUrl
	Set   bool
}

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

func (o *OptLoginUrl) Reset()

Reset unsets value.

func (*OptLoginUrl) SetFake

func (s *OptLoginUrl) SetFake()

SetFake set fake values.

func (*OptLoginUrl) SetTo

func (o *OptLoginUrl) SetTo(v LoginUrl)

SetTo sets value to v.

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

Or returns value if set, or given parameter if does not.

func (*OptMaskPosition) Reset

func (o *OptMaskPosition) Reset()

Reset unsets value.

func (*OptMaskPosition) SetFake

func (s *OptMaskPosition) SetFake()

SetFake set fake values.

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

type OptMessage struct {
	Value Message
	Set   bool
}

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

func (o *OptMessage) Reset()

Reset unsets value.

func (*OptMessage) SetFake

func (s *OptMessage) SetFake()

SetFake set fake values.

func (*OptMessage) SetTo

func (o *OptMessage) SetTo(v Message)

SetTo sets value to v.

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

Decode decodes MessageAutoDeleteTimerChanged from json.

func (OptMessageAutoDeleteTimerChanged) Encode

Encode encodes MessageAutoDeleteTimerChanged as json.

func (OptMessageAutoDeleteTimerChanged) Get

Get returns value and boolean that denotes whether value was set.

func (OptMessageAutoDeleteTimerChanged) IsSet

IsSet returns true if OptMessageAutoDeleteTimerChanged was set.

func (OptMessageAutoDeleteTimerChanged) MarshalJSON

func (s OptMessageAutoDeleteTimerChanged) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptMessageAutoDeleteTimerChanged) Or

Or returns value if set, or given parameter if does not.

func (*OptMessageAutoDeleteTimerChanged) Reset

Reset unsets value.

func (*OptMessageAutoDeleteTimerChanged) SetFake

func (s *OptMessageAutoDeleteTimerChanged) SetFake()

SetFake set fake values.

func (*OptMessageAutoDeleteTimerChanged) SetTo

SetTo sets value to v.

func (*OptMessageAutoDeleteTimerChanged) UnmarshalJSON

func (s *OptMessageAutoDeleteTimerChanged) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptMessageId

type OptMessageId struct {
	Value MessageId
	Set   bool
}

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

Or returns value if set, or given parameter if does not.

func (*OptMessageId) Reset

func (o *OptMessageId) Reset()

Reset unsets value.

func (*OptMessageId) SetFake

func (s *OptMessageId) SetFake()

SetFake set fake values.

func (*OptMessageId) SetTo

func (o *OptMessageId) SetTo(v MessageId)

SetTo sets value to v.

func (*OptMessageId) UnmarshalJSON

func (s *OptMessageId) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptOrderInfo

type OptOrderInfo struct {
	Value OrderInfo
	Set   bool
}

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

Or returns value if set, or given parameter if does not.

func (*OptOrderInfo) Reset

func (o *OptOrderInfo) Reset()

Reset unsets value.

func (*OptOrderInfo) SetFake

func (s *OptOrderInfo) SetFake()

SetFake set fake values.

func (*OptOrderInfo) SetTo

func (o *OptOrderInfo) SetTo(v OrderInfo)

SetTo sets value to v.

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

Or returns value if set, or given parameter if does not.

func (*OptPassportData) Reset

func (o *OptPassportData) Reset()

Reset unsets value.

func (*OptPassportData) SetFake

func (s *OptPassportData) SetFake()

SetFake set fake values.

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

Or returns value if set, or given parameter if does not.

func (*OptPassportFile) Reset

func (o *OptPassportFile) Reset()

Reset unsets value.

func (*OptPassportFile) SetFake

func (s *OptPassportFile) SetFake()

SetFake set fake values.

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

type OptPhotoSize struct {
	Value PhotoSize
	Set   bool
}

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

Or returns value if set, or given parameter if does not.

func (*OptPhotoSize) Reset

func (o *OptPhotoSize) Reset()

Reset unsets value.

func (*OptPhotoSize) SetFake

func (s *OptPhotoSize) SetFake()

SetFake set fake values.

func (*OptPhotoSize) SetTo

func (o *OptPhotoSize) SetTo(v PhotoSize)

SetTo sets value to v.

func (*OptPhotoSize) UnmarshalJSON

func (s *OptPhotoSize) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPoll

type OptPoll struct {
	Value Poll
	Set   bool
}

OptPoll is optional Poll.

func NewOptPoll

func NewOptPoll(v Poll) OptPoll

NewOptPoll returns new OptPoll with value set to v.

func (*OptPoll) Decode

func (o *OptPoll) Decode(d *jx.Decoder) error

Decode decodes Poll from json.

func (OptPoll) Encode

func (o OptPoll) Encode(e *jx.Encoder)

Encode encodes Poll as json.

func (OptPoll) Get

func (o OptPoll) Get() (v Poll, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptPoll) IsSet

func (o OptPoll) IsSet() bool

IsSet returns true if OptPoll was set.

func (OptPoll) MarshalJSON

func (s OptPoll) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPoll) Or

func (o OptPoll) Or(d Poll) Poll

Or returns value if set, or given parameter if does not.

func (*OptPoll) Reset

func (o *OptPoll) Reset()

Reset unsets value.

func (*OptPoll) SetFake

func (s *OptPoll) SetFake()

SetFake set fake values.

func (*OptPoll) SetTo

func (o *OptPoll) SetTo(v Poll)

SetTo sets value to v.

func (*OptPoll) UnmarshalJSON

func (s *OptPoll) UnmarshalJSON(data []byte) error

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

Or returns value if set, or given parameter if does not.

func (*OptPollAnswer) Reset

func (o *OptPollAnswer) Reset()

Reset unsets value.

func (*OptPollAnswer) SetFake

func (s *OptPollAnswer) SetFake()

SetFake set fake values.

func (*OptPollAnswer) SetTo

func (o *OptPollAnswer) SetTo(v PollAnswer)

SetTo sets value to v.

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

Or returns value if set, or given parameter if does not.

func (*OptPreCheckoutQuery) Reset

func (o *OptPreCheckoutQuery) Reset()

Reset unsets value.

func (*OptPreCheckoutQuery) SetFake

func (s *OptPreCheckoutQuery) SetFake()

SetFake set fake values.

func (*OptPreCheckoutQuery) SetTo

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

Decode decodes ProximityAlertTriggered from json.

func (OptProximityAlertTriggered) Encode

func (o OptProximityAlertTriggered) Encode(e *jx.Encoder)

Encode encodes ProximityAlertTriggered as json.

func (OptProximityAlertTriggered) Get

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

Or returns value if set, or given parameter if does not.

func (*OptProximityAlertTriggered) Reset

func (o *OptProximityAlertTriggered) Reset()

Reset unsets value.

func (*OptProximityAlertTriggered) SetFake

func (s *OptProximityAlertTriggered) SetFake()

SetFake set fake values.

func (*OptProximityAlertTriggered) SetTo

SetTo sets value to v.

func (*OptProximityAlertTriggered) UnmarshalJSON

func (s *OptProximityAlertTriggered) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptResponse

type OptResponse struct {
	Value Response
	Set   bool
}

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

func (o *OptResponse) Reset()

Reset unsets value.

func (*OptResponse) SetFake

func (s *OptResponse) SetFake()

SetFake set fake values.

func (*OptResponse) SetTo

func (o *OptResponse) SetTo(v Response)

SetTo sets value to v.

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

Decode decodes SendAnimationReplyMarkup from json.

func (OptSendAnimationReplyMarkup) Encode

func (o OptSendAnimationReplyMarkup) Encode(e *jx.Encoder)

Encode encodes SendAnimationReplyMarkup as json.

func (OptSendAnimationReplyMarkup) Get

Get returns value and boolean that denotes whether value was set.

func (OptSendAnimationReplyMarkup) IsSet

IsSet returns true if OptSendAnimationReplyMarkup was set.

func (OptSendAnimationReplyMarkup) MarshalJSON

func (s OptSendAnimationReplyMarkup) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSendAnimationReplyMarkup) Or

Or returns value if set, or given parameter if does not.

func (*OptSendAnimationReplyMarkup) Reset

func (o *OptSendAnimationReplyMarkup) Reset()

Reset unsets value.

func (*OptSendAnimationReplyMarkup) SetFake

func (s *OptSendAnimationReplyMarkup) SetFake()

SetFake set fake values.

func (*OptSendAnimationReplyMarkup) SetTo

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

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

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

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

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

Or returns value if set, or given parameter if does not.

func (*OptSendContactReplyMarkup) Reset

func (o *OptSendContactReplyMarkup) Reset()

Reset unsets value.

func (*OptSendContactReplyMarkup) SetFake

func (s *OptSendContactReplyMarkup) SetFake()

SetFake set fake values.

func (*OptSendContactReplyMarkup) SetTo

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

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

Or returns value if set, or given parameter if does not.

func (*OptSendDiceReplyMarkup) Reset

func (o *OptSendDiceReplyMarkup) Reset()

Reset unsets value.

func (*OptSendDiceReplyMarkup) SetFake

func (s *OptSendDiceReplyMarkup) SetFake()

SetFake set fake values.

func (*OptSendDiceReplyMarkup) SetTo

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

Decode decodes SendDocumentReplyMarkup from json.

func (OptSendDocumentReplyMarkup) Encode

func (o OptSendDocumentReplyMarkup) Encode(e *jx.Encoder)

Encode encodes SendDocumentReplyMarkup as json.

func (OptSendDocumentReplyMarkup) Get

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

Or returns value if set, or given parameter if does not.

func (*OptSendDocumentReplyMarkup) Reset

func (o *OptSendDocumentReplyMarkup) Reset()

Reset unsets value.

func (*OptSendDocumentReplyMarkup) SetFake

func (s *OptSendDocumentReplyMarkup) SetFake()

SetFake set fake values.

func (*OptSendDocumentReplyMarkup) SetTo

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

Decode decodes SendLocationReplyMarkup from json.

func (OptSendLocationReplyMarkup) Encode

func (o OptSendLocationReplyMarkup) Encode(e *jx.Encoder)

Encode encodes SendLocationReplyMarkup as json.

func (OptSendLocationReplyMarkup) Get

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

Or returns value if set, or given parameter if does not.

func (*OptSendLocationReplyMarkup) Reset

func (o *OptSendLocationReplyMarkup) Reset()

Reset unsets value.

func (*OptSendLocationReplyMarkup) SetFake

func (s *OptSendLocationReplyMarkup) SetFake()

SetFake set fake values.

func (*OptSendLocationReplyMarkup) SetTo

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

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

Or returns value if set, or given parameter if does not.

func (*OptSendMessageReplyMarkup) Reset

func (o *OptSendMessageReplyMarkup) Reset()

Reset unsets value.

func (*OptSendMessageReplyMarkup) SetFake

func (s *OptSendMessageReplyMarkup) SetFake()

SetFake set fake values.

func (*OptSendMessageReplyMarkup) SetTo

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

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

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

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

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

Or returns value if set, or given parameter if does not.

func (*OptSendPollReplyMarkup) Reset

func (o *OptSendPollReplyMarkup) Reset()

Reset unsets value.

func (*OptSendPollReplyMarkup) SetFake

func (s *OptSendPollReplyMarkup) SetFake()

SetFake set fake values.

func (*OptSendPollReplyMarkup) SetTo

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

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

Or returns value if set, or given parameter if does not.

func (*OptSendStickerReplyMarkup) Reset

func (o *OptSendStickerReplyMarkup) Reset()

Reset unsets value.

func (*OptSendStickerReplyMarkup) SetFake

func (s *OptSendStickerReplyMarkup) SetFake()

SetFake set fake values.

func (*OptSendStickerReplyMarkup) SetTo

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

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

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

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

Decode decodes SendVideoNoteReplyMarkup from json.

func (OptSendVideoNoteReplyMarkup) Encode

func (o OptSendVideoNoteReplyMarkup) Encode(e *jx.Encoder)

Encode encodes SendVideoNoteReplyMarkup as json.

func (OptSendVideoNoteReplyMarkup) Get

Get returns value and boolean that denotes whether value was set.

func (OptSendVideoNoteReplyMarkup) IsSet

IsSet returns true if OptSendVideoNoteReplyMarkup was set.

func (OptSendVideoNoteReplyMarkup) MarshalJSON

func (s OptSendVideoNoteReplyMarkup) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSendVideoNoteReplyMarkup) Or

Or returns value if set, or given parameter if does not.

func (*OptSendVideoNoteReplyMarkup) Reset

func (o *OptSendVideoNoteReplyMarkup) Reset()

Reset unsets value.

func (*OptSendVideoNoteReplyMarkup) SetFake

func (s *OptSendVideoNoteReplyMarkup) SetFake()

SetFake set fake values.

func (*OptSendVideoNoteReplyMarkup) SetTo

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

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

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

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

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

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

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

Or returns value if set, or given parameter if does not.

func (*OptShippingAddress) Reset

func (o *OptShippingAddress) Reset()

Reset unsets value.

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

Or returns value if set, or given parameter if does not.

func (*OptShippingQuery) Reset

func (o *OptShippingQuery) Reset()

Reset unsets value.

func (*OptShippingQuery) SetFake

func (s *OptShippingQuery) SetFake()

SetFake set fake values.

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

type OptSticker struct {
	Value Sticker
	Set   bool
}

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

func (o *OptSticker) Reset()

Reset unsets value.

func (*OptSticker) SetFake

func (s *OptSticker) SetFake()

SetFake set fake values.

func (*OptSticker) SetTo

func (o *OptSticker) SetTo(v Sticker)

SetTo sets value to v.

func (*OptSticker) UnmarshalJSON

func (s *OptSticker) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptString

type OptString struct {
	Value string
	Set   bool
}

OptString is optional string.

func NewOptString

func NewOptString(v string) OptString

NewOptString returns new OptString with value set to v.

func (*OptString) Decode

func (o *OptString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptString) Encode

func (o OptString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptString) Get

func (o OptString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptString) IsSet

func (o OptString) IsSet() bool

IsSet returns true if OptString was set.

func (OptString) MarshalJSON

func (s OptString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptString) Or

func (o OptString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptString) Reset

func (o *OptString) Reset()

Reset unsets value.

func (*OptString) SetFake

func (s *OptString) SetFake()

SetFake set fake values.

func (*OptString) SetTo

func (o *OptString) SetTo(v string)

SetTo sets value to v.

func (*OptString) UnmarshalJSON

func (s *OptString) UnmarshalJSON(data []byte) error

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

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

Or returns value if set, or given parameter if does not.

func (*OptSuccessfulPayment) Reset

func (o *OptSuccessfulPayment) Reset()

Reset unsets value.

func (*OptSuccessfulPayment) SetFake

func (s *OptSuccessfulPayment) SetFake()

SetFake set fake values.

func (*OptSuccessfulPayment) SetTo

SetTo sets value to v.

func (*OptSuccessfulPayment) UnmarshalJSON

func (s *OptSuccessfulPayment) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptURI

type OptURI struct {
	Value url.URL
	Set   bool
}

OptURI is optional url.URL.

func NewOptURI

func NewOptURI(v url.URL) OptURI

NewOptURI returns new OptURI with value set to v.

func (*OptURI) Decode

func (o *OptURI) Decode(d *jx.Decoder) error

Decode decodes url.URL from json.

func (OptURI) Encode

func (o OptURI) Encode(e *jx.Encoder)

Encode encodes url.URL as json.

func (OptURI) Get

func (o OptURI) Get() (v url.URL, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptURI) IsSet

func (o OptURI) IsSet() bool

IsSet returns true if OptURI was set.

func (OptURI) MarshalJSON

func (s OptURI) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptURI) Or

func (o OptURI) Or(d url.URL) url.URL

Or returns value if set, or given parameter if does not.

func (*OptURI) Reset

func (o *OptURI) Reset()

Reset unsets value.

func (*OptURI) SetFake

func (s *OptURI) SetFake()

SetFake set fake values.

func (*OptURI) SetTo

func (o *OptURI) SetTo(v url.URL)

SetTo sets value to v.

func (*OptURI) UnmarshalJSON

func (s *OptURI) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUser

type OptUser struct {
	Value User
	Set   bool
}

OptUser is optional User.

func NewOptUser

func NewOptUser(v User) OptUser

NewOptUser returns new OptUser with value set to v.

func (*OptUser) Decode

func (o *OptUser) Decode(d *jx.Decoder) error

Decode decodes User from json.

func (OptUser) Encode

func (o OptUser) Encode(e *jx.Encoder)

Encode encodes User as json.

func (OptUser) Get

func (o OptUser) Get() (v User, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptUser) IsSet

func (o OptUser) IsSet() bool

IsSet returns true if OptUser was set.

func (OptUser) MarshalJSON

func (s OptUser) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUser) Or

func (o OptUser) Or(d User) User

Or returns value if set, or given parameter if does not.

func (*OptUser) Reset

func (o *OptUser) Reset()

Reset unsets value.

func (*OptUser) SetFake

func (s *OptUser) SetFake()

SetFake set fake values.

func (*OptUser) SetTo

func (o *OptUser) SetTo(v User)

SetTo sets value to v.

func (*OptUser) UnmarshalJSON

func (s *OptUser) UnmarshalJSON(data []byte) error

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

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

Or returns value if set, or given parameter if does not.

func (*OptUserProfilePhotos) Reset

func (o *OptUserProfilePhotos) Reset()

Reset unsets value.

func (*OptUserProfilePhotos) SetFake

func (s *OptUserProfilePhotos) SetFake()

SetFake set fake values.

func (*OptUserProfilePhotos) SetTo

SetTo sets value to v.

func (*OptUserProfilePhotos) UnmarshalJSON

func (s *OptUserProfilePhotos) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptVenue

type OptVenue struct {
	Value Venue
	Set   bool
}

OptVenue is optional Venue.

func NewOptVenue

func NewOptVenue(v Venue) OptVenue

NewOptVenue returns new OptVenue with value set to v.

func (*OptVenue) Decode

func (o *OptVenue) Decode(d *jx.Decoder) error

Decode decodes Venue from json.

func (OptVenue) Encode

func (o OptVenue) Encode(e *jx.Encoder)

Encode encodes Venue as json.

func (OptVenue) Get

func (o OptVenue) Get() (v Venue, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptVenue) IsSet

func (o OptVenue) IsSet() bool

IsSet returns true if OptVenue was set.

func (OptVenue) MarshalJSON

func (s OptVenue) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptVenue) Or

func (o OptVenue) Or(d Venue) Venue

Or returns value if set, or given parameter if does not.

func (*OptVenue) Reset

func (o *OptVenue) Reset()

Reset unsets value.

func (*OptVenue) SetFake

func (s *OptVenue) SetFake()

SetFake set fake values.

func (*OptVenue) SetTo

func (o *OptVenue) SetTo(v Venue)

SetTo sets value to v.

func (*OptVenue) UnmarshalJSON

func (s *OptVenue) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptVideo

type OptVideo struct {
	Value Video
	Set   bool
}

OptVideo is optional Video.

func NewOptVideo

func NewOptVideo(v Video) OptVideo

NewOptVideo returns new OptVideo with value set to v.

func (*OptVideo) Decode

func (o *OptVideo) Decode(d *jx.Decoder) error

Decode decodes Video from json.

func (OptVideo) Encode

func (o OptVideo) Encode(e *jx.Encoder)

Encode encodes Video as json.

func (OptVideo) Get

func (o OptVideo) Get() (v Video, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptVideo) IsSet

func (o OptVideo) IsSet() bool

IsSet returns true if OptVideo was set.

func (OptVideo) MarshalJSON

func (s OptVideo) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptVideo) Or

func (o OptVideo) Or(d Video) Video

Or returns value if set, or given parameter if does not.

func (*OptVideo) Reset

func (o *OptVideo) Reset()

Reset unsets value.

func (*OptVideo) SetFake

func (s *OptVideo) SetFake()

SetFake set fake values.

func (*OptVideo) SetTo

func (o *OptVideo) SetTo(v Video)

SetTo sets value to v.

func (*OptVideo) UnmarshalJSON

func (s *OptVideo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptVideoNote

type OptVideoNote struct {
	Value VideoNote
	Set   bool
}

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

Or returns value if set, or given parameter if does not.

func (*OptVideoNote) Reset

func (o *OptVideoNote) Reset()

Reset unsets value.

func (*OptVideoNote) SetFake

func (s *OptVideoNote) SetFake()

SetFake set fake values.

func (*OptVideoNote) SetTo

func (o *OptVideoNote) SetTo(v VideoNote)

SetTo sets value to v.

func (*OptVideoNote) UnmarshalJSON

func (s *OptVideoNote) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptVoice

type OptVoice struct {
	Value Voice
	Set   bool
}

OptVoice is optional Voice.

func NewOptVoice

func NewOptVoice(v Voice) OptVoice

NewOptVoice returns new OptVoice with value set to v.

func (*OptVoice) Decode

func (o *OptVoice) Decode(d *jx.Decoder) error

Decode decodes Voice from json.

func (OptVoice) Encode

func (o OptVoice) Encode(e *jx.Encoder)

Encode encodes Voice as json.

func (OptVoice) Get

func (o OptVoice) Get() (v Voice, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptVoice) IsSet

func (o OptVoice) IsSet() bool

IsSet returns true if OptVoice was set.

func (OptVoice) MarshalJSON

func (s OptVoice) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptVoice) Or

func (o OptVoice) Or(d Voice) Voice

Or returns value if set, or given parameter if does not.

func (*OptVoice) Reset

func (o *OptVoice) Reset()

Reset unsets value.

func (*OptVoice) SetFake

func (s *OptVoice) SetFake()

SetFake set fake values.

func (*OptVoice) SetTo

func (o *OptVoice) SetTo(v Voice)

SetTo sets value to v.

func (*OptVoice) UnmarshalJSON

func (s *OptVoice) UnmarshalJSON(data []byte) error

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

Or returns value if set, or given parameter if does not.

func (*OptVoiceChatEnded) Reset

func (o *OptVoiceChatEnded) Reset()

Reset unsets value.

func (*OptVoiceChatEnded) SetFake

func (s *OptVoiceChatEnded) SetFake()

SetFake set fake values.

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

Decode decodes VoiceChatParticipantsInvited from json.

func (OptVoiceChatParticipantsInvited) Encode

Encode encodes VoiceChatParticipantsInvited as json.

func (OptVoiceChatParticipantsInvited) Get

Get returns value and boolean that denotes whether value was set.

func (OptVoiceChatParticipantsInvited) IsSet

IsSet returns true if OptVoiceChatParticipantsInvited was set.

func (OptVoiceChatParticipantsInvited) MarshalJSON

func (s OptVoiceChatParticipantsInvited) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptVoiceChatParticipantsInvited) Or

Or returns value if set, or given parameter if does not.

func (*OptVoiceChatParticipantsInvited) Reset

Reset unsets value.

func (*OptVoiceChatParticipantsInvited) SetFake

func (s *OptVoiceChatParticipantsInvited) SetFake()

SetFake set fake values.

func (*OptVoiceChatParticipantsInvited) SetTo

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

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

Or returns value if set, or given parameter if does not.

func (*OptVoiceChatScheduled) Reset

func (o *OptVoiceChatScheduled) Reset()

Reset unsets value.

func (*OptVoiceChatScheduled) SetFake

func (s *OptVoiceChatScheduled) SetFake()

SetFake set fake values.

func (*OptVoiceChatScheduled) SetTo

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

Or returns value if set, or given parameter if does not.

func (*OptWebhookInfo) Reset

func (o *OptWebhookInfo) Reset()

Reset unsets value.

func (*OptWebhookInfo) SetFake

func (s *OptWebhookInfo) SetFake()

SetFake set fake values.

func (*OptWebhookInfo) SetTo

func (o *OptWebhookInfo) SetTo(v WebhookInfo)

SetTo sets value to v.

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

func (s *OrderInfo) Decode(d *jx.Decoder) error

Decode decodes OrderInfo from json.

func (*OrderInfo) Encode

func (s *OrderInfo) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*OrderInfo) GetEmail

func (s *OrderInfo) GetEmail() OptString

GetEmail returns the value of Email.

func (*OrderInfo) GetName

func (s *OrderInfo) GetName() OptString

GetName returns the value of Name.

func (*OrderInfo) GetPhoneNumber

func (s *OrderInfo) GetPhoneNumber() OptString

GetPhoneNumber returns the value of PhoneNumber.

func (*OrderInfo) GetShippingAddress

func (s *OrderInfo) GetShippingAddress() OptShippingAddress

GetShippingAddress returns the value of ShippingAddress.

func (*OrderInfo) MarshalJSON

func (s *OrderInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OrderInfo) SetEmail

func (s *OrderInfo) SetEmail(val OptString)

SetEmail sets the value of Email.

func (*OrderInfo) SetFake

func (s *OrderInfo) SetFake()

SetFake set fake values.

func (*OrderInfo) SetName

func (s *OrderInfo) SetName(val OptString)

SetName sets the value of Name.

func (*OrderInfo) SetPhoneNumber

func (s *OrderInfo) SetPhoneNumber(val OptString)

SetPhoneNumber sets the value of PhoneNumber.

func (*OrderInfo) SetShippingAddress

func (s *OrderInfo) SetShippingAddress(val OptShippingAddress)

SetShippingAddress sets the value of ShippingAddress.

func (*OrderInfo) UnmarshalJSON

func (s *OrderInfo) UnmarshalJSON(data []byte) error

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

func (s *PassportData) SetFake()

SetFake set fake values.

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

Decode decodes PassportElementErrorDataField from json.

func (*PassportElementErrorDataField) Encode

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

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

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

AllValues returns all PassportElementErrorDataFieldType values.

func (*PassportElementErrorDataFieldType) Decode

Decode decodes PassportElementErrorDataFieldType from json.

func (PassportElementErrorDataFieldType) Encode

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

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

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

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

AllValues returns all PassportElementErrorFileType values.

func (*PassportElementErrorFileType) Decode

Decode decodes PassportElementErrorFileType from json.

func (PassportElementErrorFileType) Encode

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

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

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

AllValues returns all PassportElementErrorFilesType values.

func (*PassportElementErrorFilesType) Decode

Decode decodes PassportElementErrorFilesType from json.

func (PassportElementErrorFilesType) Encode

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

Decode decodes PassportElementErrorFrontSide from json.

func (*PassportElementErrorFrontSide) Encode

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

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

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

AllValues returns all PassportElementErrorFrontSideType values.

func (*PassportElementErrorFrontSideType) Decode

Decode decodes PassportElementErrorFrontSideType from json.

func (PassportElementErrorFrontSideType) Encode

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

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

Decode decodes PassportElementErrorReverseSide from json.

func (*PassportElementErrorReverseSide) Encode

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

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

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

AllValues returns all PassportElementErrorReverseSideType values.

func (*PassportElementErrorReverseSideType) Decode

Decode decodes PassportElementErrorReverseSideType from json.

func (PassportElementErrorReverseSideType) Encode

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

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

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

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

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

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

AllValues returns all PassportElementErrorSelfieType values.

func (*PassportElementErrorSelfieType) Decode

Decode decodes PassportElementErrorSelfieType from json.

func (PassportElementErrorSelfieType) Encode

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

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

Decode decodes PassportElementErrorTranslationFile from json.

func (*PassportElementErrorTranslationFile) Encode

Encode implements json.Marshaler.

func (*PassportElementErrorTranslationFile) GetFileHash

GetFileHash returns the value of FileHash.

func (*PassportElementErrorTranslationFile) GetMessage

GetMessage returns the value of Message.

func (*PassportElementErrorTranslationFile) GetSource

GetSource returns the value of Source.

func (*PassportElementErrorTranslationFile) GetType

GetType returns the value of Type.

func (*PassportElementErrorTranslationFile) MarshalJSON

func (s *PassportElementErrorTranslationFile) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*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

SetType sets the value of Type.

func (*PassportElementErrorTranslationFile) UnmarshalJSON

func (s *PassportElementErrorTranslationFile) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PassportElementErrorTranslationFile) Validate

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

AllValues returns all PassportElementErrorTranslationFileType values.

func (*PassportElementErrorTranslationFileType) Decode

Decode decodes PassportElementErrorTranslationFileType from json.

func (PassportElementErrorTranslationFileType) Encode

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

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

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

Decode decodes PassportElementErrorTranslationFiles from json.

func (*PassportElementErrorTranslationFiles) Encode

Encode implements json.Marshaler.

func (*PassportElementErrorTranslationFiles) GetFileHashes

func (s *PassportElementErrorTranslationFiles) GetFileHashes() []string

GetFileHashes returns the value of FileHashes.

func (*PassportElementErrorTranslationFiles) GetMessage

GetMessage returns the value of Message.

func (*PassportElementErrorTranslationFiles) GetSource

GetSource returns the value of Source.

func (*PassportElementErrorTranslationFiles) GetType

GetType returns the value of Type.

func (*PassportElementErrorTranslationFiles) MarshalJSON

func (s *PassportElementErrorTranslationFiles) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*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

SetType sets the value of Type.

func (*PassportElementErrorTranslationFiles) UnmarshalJSON

func (s *PassportElementErrorTranslationFiles) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PassportElementErrorTranslationFiles) Validate

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

AllValues returns all PassportElementErrorTranslationFilesType values.

func (*PassportElementErrorTranslationFilesType) Decode

Decode decodes PassportElementErrorTranslationFilesType from json.

func (PassportElementErrorTranslationFilesType) Encode

Encode encodes PassportElementErrorTranslationFilesType as json.

func (PassportElementErrorTranslationFilesType) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (PassportElementErrorTranslationFilesType) MarshalText

MarshalText implements encoding.TextMarshaler.

func (*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

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

Decode decodes PassportElementErrorUnspecified from json.

func (*PassportElementErrorUnspecified) Encode

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

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

func (s *PassportFile) SetFake()

SetFake set fake values.

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

func (s *PhotoSize) Decode(d *jx.Decoder) error

Decode decodes PhotoSize from json.

func (*PhotoSize) Encode

func (s *PhotoSize) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PhotoSize) GetFileID

func (s *PhotoSize) GetFileID() string

GetFileID returns the value of FileID.

func (*PhotoSize) GetFileSize

func (s *PhotoSize) GetFileSize() OptInt

GetFileSize returns the value of FileSize.

func (*PhotoSize) GetFileUniqueID

func (s *PhotoSize) GetFileUniqueID() string

GetFileUniqueID returns the value of FileUniqueID.

func (*PhotoSize) GetHeight

func (s *PhotoSize) GetHeight() int

GetHeight returns the value of Height.

func (*PhotoSize) GetWidth

func (s *PhotoSize) GetWidth() int

GetWidth returns the value of Width.

func (*PhotoSize) MarshalJSON

func (s *PhotoSize) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PhotoSize) SetFake

func (s *PhotoSize) SetFake()

SetFake set fake values.

func (*PhotoSize) SetFileID

func (s *PhotoSize) SetFileID(val string)

SetFileID sets the value of FileID.

func (*PhotoSize) SetFileSize

func (s *PhotoSize) SetFileSize(val OptInt)

SetFileSize sets the value of FileSize.

func (*PhotoSize) SetFileUniqueID

func (s *PhotoSize) SetFileUniqueID(val string)

SetFileUniqueID sets the value of FileUniqueID.

func (*PhotoSize) SetHeight

func (s *PhotoSize) SetHeight(val int)

SetHeight sets the value of Height.

func (*PhotoSize) SetWidth

func (s *PhotoSize) SetWidth(val int)

SetWidth sets the value of Width.

func (*PhotoSize) UnmarshalJSON

func (s *PhotoSize) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PhotoSize) Validate

func (s *PhotoSize) Validate() error

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

func (s *PinChatMessage) SetFake()

SetFake set fake values.

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

func (s *Poll) Decode(d *jx.Decoder) error

Decode decodes Poll from json.

func (*Poll) Encode

func (s *Poll) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Poll) GetAllowsMultipleAnswers

func (s *Poll) GetAllowsMultipleAnswers() bool

GetAllowsMultipleAnswers returns the value of AllowsMultipleAnswers.

func (*Poll) GetCloseDate

func (s *Poll) GetCloseDate() OptInt

GetCloseDate returns the value of CloseDate.

func (*Poll) GetCorrectOptionID

func (s *Poll) GetCorrectOptionID() OptInt

GetCorrectOptionID returns the value of CorrectOptionID.

func (*Poll) GetExplanation

func (s *Poll) GetExplanation() OptString

GetExplanation returns the value of Explanation.

func (*Poll) GetExplanationEntities

func (s *Poll) GetExplanationEntities() []MessageEntity

GetExplanationEntities returns the value of ExplanationEntities.

func (*Poll) GetID

func (s *Poll) GetID() string

GetID returns the value of ID.

func (*Poll) GetIsAnonymous

func (s *Poll) GetIsAnonymous() bool

GetIsAnonymous returns the value of IsAnonymous.

func (*Poll) GetIsClosed

func (s *Poll) GetIsClosed() bool

GetIsClosed returns the value of IsClosed.

func (*Poll) GetOpenPeriod

func (s *Poll) GetOpenPeriod() OptInt

GetOpenPeriod returns the value of OpenPeriod.

func (*Poll) GetOptions

func (s *Poll) GetOptions() []PollOption

GetOptions returns the value of Options.

func (*Poll) GetQuestion

func (s *Poll) GetQuestion() string

GetQuestion returns the value of Question.

func (*Poll) GetTotalVoterCount

func (s *Poll) GetTotalVoterCount() int

GetTotalVoterCount returns the value of TotalVoterCount.

func (*Poll) GetType

func (s *Poll) GetType() PollType

GetType returns the value of Type.

func (*Poll) MarshalJSON

func (s *Poll) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Poll) SetAllowsMultipleAnswers

func (s *Poll) SetAllowsMultipleAnswers(val bool)

SetAllowsMultipleAnswers sets the value of AllowsMultipleAnswers.

func (*Poll) SetCloseDate

func (s *Poll) SetCloseDate(val OptInt)

SetCloseDate sets the value of CloseDate.

func (*Poll) SetCorrectOptionID

func (s *Poll) SetCorrectOptionID(val OptInt)

SetCorrectOptionID sets the value of CorrectOptionID.

func (*Poll) SetExplanation

func (s *Poll) SetExplanation(val OptString)

SetExplanation sets the value of Explanation.

func (*Poll) SetExplanationEntities

func (s *Poll) SetExplanationEntities(val []MessageEntity)

SetExplanationEntities sets the value of ExplanationEntities.

func (*Poll) SetFake

func (s *Poll) SetFake()

SetFake set fake values.

func (*Poll) SetID

func (s *Poll) SetID(val string)

SetID sets the value of ID.

func (*Poll) SetIsAnonymous

func (s *Poll) SetIsAnonymous(val bool)

SetIsAnonymous sets the value of IsAnonymous.

func (*Poll) SetIsClosed

func (s *Poll) SetIsClosed(val bool)

SetIsClosed sets the value of IsClosed.

func (*Poll) SetOpenPeriod

func (s *Poll) SetOpenPeriod(val OptInt)

SetOpenPeriod sets the value of OpenPeriod.

func (*Poll) SetOptions

func (s *Poll) SetOptions(val []PollOption)

SetOptions sets the value of Options.

func (*Poll) SetQuestion

func (s *Poll) SetQuestion(val string)

SetQuestion sets the value of Question.

func (*Poll) SetTotalVoterCount

func (s *Poll) SetTotalVoterCount(val int)

SetTotalVoterCount sets the value of TotalVoterCount.

func (*Poll) SetType

func (s *Poll) SetType(val PollType)

SetType sets the value of Type.

func (*Poll) UnmarshalJSON

func (s *Poll) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Poll) Validate

func (s *Poll) Validate() error

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

func (s *PollAnswer) GetUser() User

GetUser returns the value of User.

func (*PollAnswer) MarshalJSON

func (s *PollAnswer) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PollAnswer) SetFake

func (s *PollAnswer) SetFake()

SetFake set fake values.

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

func (s *PollAnswer) SetUser(val User)

SetUser sets the value of User.

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

func (s *PollOption) SetFake()

SetFake set fake values.

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

const (
	PollTypeRegular PollType = "regular"
	PollTypeQuiz    PollType = "quiz"
)

func (PollType) AllValues

func (PollType) AllValues() []PollType

AllValues returns all PollType values.

func (*PollType) Decode

func (s *PollType) Decode(d *jx.Decoder) error

Decode decodes PollType from json.

func (PollType) Encode

func (s PollType) Encode(e *jx.Encoder)

Encode encodes PollType as json.

func (PollType) MarshalJSON

func (s PollType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PollType) MarshalText

func (s PollType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PollType) SetFake

func (s *PollType) SetFake()

SetFake set fake values.

func (*PollType) UnmarshalJSON

func (s *PollType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PollType) UnmarshalText

func (s *PollType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PollType) Validate

func (s PollType) Validate() error

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

func (s *PreCheckoutQuery) SetFake()

SetFake set fake values.

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

func (s *PromoteChatMember) SetFake()

SetFake set fake values.

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

func (s *Response) Decode(d *jx.Decoder) error

Decode decodes Response from json.

func (*Response) Encode

func (s *Response) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Response) GetMigrateToChatID

func (s *Response) GetMigrateToChatID() OptInt64

GetMigrateToChatID returns the value of MigrateToChatID.

func (*Response) GetRetryAfter

func (s *Response) GetRetryAfter() OptInt

GetRetryAfter returns the value of RetryAfter.

func (*Response) MarshalJSON

func (s *Response) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Response) SetFake

func (s *Response) SetFake()

SetFake set fake values.

func (*Response) SetMigrateToChatID

func (s *Response) SetMigrateToChatID(val OptInt64)

SetMigrateToChatID sets the value of MigrateToChatID.

func (*Response) SetRetryAfter

func (s *Response) SetRetryAfter(val OptInt)

SetRetryAfter sets the value of RetryAfter.

func (*Response) UnmarshalJSON

func (s *Response) UnmarshalJSON(data []byte) error

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

type Result struct {
	Result OptBool `json:"result"`
	Ok     bool    `json:"ok"`
}

Ref: #/components/schemas/Result

func (*Result) Decode

func (s *Result) Decode(d *jx.Decoder) error

Decode decodes Result from json.

func (*Result) Encode

func (s *Result) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Result) GetOk

func (s *Result) GetOk() bool

GetOk returns the value of Ok.

func (*Result) GetResult

func (s *Result) GetResult() OptBool

GetResult returns the value of Result.

func (*Result) MarshalJSON

func (s *Result) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Result) SetFake

func (s *Result) SetFake()

SetFake set fake values.

func (*Result) SetOk

func (s *Result) SetOk(val bool)

SetOk sets the value of Ok.

func (*Result) SetResult

func (s *Result) SetResult(val OptBool)

SetResult sets the value of Result.

func (*Result) UnmarshalJSON

func (s *Result) UnmarshalJSON(data []byte) error

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

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

type ResultArrayOfMessage struct {
	Result []Message `json:"result"`
	Ok     bool      `json:"ok"`
}

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

type ResultArrayOfUpdate struct {
	Result []Update `json:"result"`
	Ok     bool     `json:"ok"`
}

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

type ResultChat struct {
	Result OptChat `json:"result"`
	Ok     bool    `json:"ok"`
}

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

func (s *ResultChat) GetOk() bool

GetOk returns the value of Ok.

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

func (s *ResultChat) SetFake()

SetFake set fake values.

func (*ResultChat) SetOk

func (s *ResultChat) SetOk(val bool)

SetOk sets the value of Ok.

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

func (s *ResultChatMember) SetFake()

SetFake set fake values.

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

type ResultFile struct {
	Result OptFile `json:"result"`
	Ok     bool    `json:"ok"`
}

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

func (s *ResultFile) GetOk() bool

GetOk returns the value of Ok.

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

func (s *ResultFile) SetFake()

SetFake set fake values.

func (*ResultFile) SetOk

func (s *ResultFile) SetOk(val bool)

SetOk sets the value of Ok.

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

type ResultInt struct {
	Result OptInt `json:"result"`
	Ok     bool   `json:"ok"`
}

Ref: #/components/schemas/ResultInt

func (*ResultInt) Decode

func (s *ResultInt) Decode(d *jx.Decoder) error

Decode decodes ResultInt from json.

func (*ResultInt) Encode

func (s *ResultInt) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ResultInt) GetOk

func (s *ResultInt) GetOk() bool

GetOk returns the value of Ok.

func (*ResultInt) GetResult

func (s *ResultInt) GetResult() OptInt

GetResult returns the value of Result.

func (*ResultInt) MarshalJSON

func (s *ResultInt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ResultInt) SetFake

func (s *ResultInt) SetFake()

SetFake set fake values.

func (*ResultInt) SetOk

func (s *ResultInt) SetOk(val bool)

SetOk sets the value of Ok.

func (*ResultInt) SetResult

func (s *ResultInt) SetResult(val OptInt)

SetResult sets the value of Result.

func (*ResultInt) UnmarshalJSON

func (s *ResultInt) UnmarshalJSON(data []byte) error

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

func (s *ResultMessage) GetOk() bool

GetOk returns the value of Ok.

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

func (s *ResultMessage) SetFake()

SetFake set fake values.

func (*ResultMessage) SetOk

func (s *ResultMessage) SetOk(val bool)

SetOk sets the value of Ok.

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

func (s *ResultMessageId) SetFake()

SetFake set fake values.

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

type ResultPoll struct {
	Result OptPoll `json:"result"`
	Ok     bool    `json:"ok"`
}

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

func (s *ResultPoll) GetOk() bool

GetOk returns the value of Ok.

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

func (s *ResultPoll) SetFake()

SetFake set fake values.

func (*ResultPoll) SetOk

func (s *ResultPoll) SetOk(val bool)

SetOk sets the value of Ok.

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

type ResultString struct {
	Result OptString `json:"result"`
	Ok     bool      `json:"ok"`
}

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

func (s *ResultString) GetOk() bool

GetOk returns the value of Ok.

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

func (s *ResultString) SetFake()

SetFake set fake values.

func (*ResultString) SetOk

func (s *ResultString) SetOk(val bool)

SetOk sets the value of Ok.

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

type ResultUser struct {
	Result OptUser `json:"result"`
	Ok     bool    `json:"ok"`
}

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

func (s *ResultUser) GetOk() bool

GetOk returns the value of Ok.

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

func (s *ResultUser) SetFake()

SetFake set fake values.

func (*ResultUser) SetOk

func (s *ResultUser) SetOk(val bool)

SetOk sets the value of Ok.

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

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

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

func (s *ResultWebhookInfo) SetFake()

SetFake set fake values.

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 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 (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 (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) Args

func (r Route) Args() []string

Args returns parsed arguments.

func (Route) Name

func (r Route) Name() string

Name returns ogen operation name.

It is guaranteed to be unique and not empty.

func (Route) OperationID

func (r Route) OperationID() string

OperationID returns OpenAPI operationId.

func (Route) PathPattern

func (r Route) PathPattern() string

PathPattern returns OpenAPI path.

func (Route) Summary

func (r Route) Summary() string

Summary returns OpenAPI summary.

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

func (s *SendAnimation) SetFake()

SetFake set fake values.

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

func (s *SendAudio) Decode(d *jx.Decoder) error

Decode decodes SendAudio from json.

func (*SendAudio) Encode

func (s *SendAudio) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SendAudio) GetAllowSendingWithoutReply

func (s *SendAudio) GetAllowSendingWithoutReply() OptBool

GetAllowSendingWithoutReply returns the value of AllowSendingWithoutReply.

func (*SendAudio) GetAudio

func (s *SendAudio) GetAudio() string

GetAudio returns the value of Audio.

func (*SendAudio) GetCaption

func (s *SendAudio) GetCaption() OptString

GetCaption returns the value of Caption.

func (*SendAudio) GetCaptionEntities

func (s *SendAudio) GetCaptionEntities() []MessageEntity

GetCaptionEntities returns the value of CaptionEntities.

func (*SendAudio) GetChatID

func (s *SendAudio) GetChatID() ID

GetChatID returns the value of ChatID.

func (*SendAudio) GetDisableNotification

func (s *SendAudio) GetDisableNotification() OptBool

GetDisableNotification returns the value of DisableNotification.

func (*SendAudio) GetDuration

func (s *SendAudio) GetDuration() OptInt

GetDuration returns the value of Duration.

func (*SendAudio) GetParseMode

func (s *SendAudio) GetParseMode() OptString

GetParseMode returns the value of ParseMode.

func (*SendAudio) GetPerformer

func (s *SendAudio) GetPerformer() OptString

GetPerformer returns the value of Performer.

func (*SendAudio) GetReplyMarkup

func (s *SendAudio) GetReplyMarkup() OptSendAudioReplyMarkup

GetReplyMarkup returns the value of ReplyMarkup.

func (*SendAudio) GetReplyToMessageID

func (s *SendAudio) GetReplyToMessageID() OptInt

GetReplyToMessageID returns the value of ReplyToMessageID.

func (*SendAudio) GetThumb

func (s *SendAudio) GetThumb() OptString

GetThumb returns the value of Thumb.

func (*SendAudio) GetTitle

func (s *SendAudio) GetTitle() OptString

GetTitle returns the value of Title.

func (*SendAudio) MarshalJSON

func (s *SendAudio) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SendAudio) SetAllowSendingWithoutReply

func (s *SendAudio) SetAllowSendingWithoutReply(val OptBool)

SetAllowSendingWithoutReply sets the value of AllowSendingWithoutReply.

func (*SendAudio) SetAudio

func (s *SendAudio) SetAudio(val string)

SetAudio sets the value of Audio.

func (*SendAudio) SetCaption

func (s *SendAudio) SetCaption(val OptString)

SetCaption sets the value of Caption.

func (*SendAudio) SetCaptionEntities

func (s *SendAudio) SetCaptionEntities(val []MessageEntity)

SetCaptionEntities sets the value of CaptionEntities.

func (*SendAudio) SetChatID

func (s *SendAudio) SetChatID(val ID)

SetChatID sets the value of ChatID.

func (*SendAudio) SetDisableNotification

func (s *SendAudio) SetDisableNotification(val OptBool)

SetDisableNotification sets the value of DisableNotification.

func (*SendAudio) SetDuration

func (s *SendAudio) SetDuration(val OptInt)

SetDuration sets the value of Duration.

func (*SendAudio) SetFake

func (s *SendAudio) SetFake()

SetFake set fake values.

func (*SendAudio) SetParseMode

func (s *SendAudio) SetParseMode(val OptString)

SetParseMode sets the value of ParseMode.

func (*SendAudio) SetPerformer

func (s *SendAudio) SetPerformer(val OptString)

SetPerformer sets the value of Performer.

func (*SendAudio) SetReplyMarkup

func (s *SendAudio) SetReplyMarkup(val OptSendAudioReplyMarkup)

SetReplyMarkup sets the value of ReplyMarkup.

func (*SendAudio) SetReplyToMessageID

func (s *SendAudio) SetReplyToMessageID(val OptInt)

SetReplyToMessageID sets the value of ReplyToMessageID.

func (*SendAudio) SetThumb

func (s *SendAudio) SetThumb(val OptString)

SetThumb sets the value of Thumb.

func (*SendAudio) SetTitle

func (s *SendAudio) SetTitle(val OptString)

SetTitle sets the value of Title.

func (*SendAudio) UnmarshalJSON

func (s *SendAudio) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SendAudio) Validate

func (s *SendAudio) Validate() error

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

func (s *SendChatAction) SetFake()

SetFake set fake values.

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

func (s *SendContact) SetFake()

SetFake set fake values.

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

func (s *SendDice) Decode(d *jx.Decoder) error

Decode decodes SendDice from json.

func (*SendDice) Encode

func (s *SendDice) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SendDice) GetAllowSendingWithoutReply

func (s *SendDice) GetAllowSendingWithoutReply() OptBool

GetAllowSendingWithoutReply returns the value of AllowSendingWithoutReply.

func (*SendDice) GetChatID

func (s *SendDice) GetChatID() ID

GetChatID returns the value of ChatID.

func (*SendDice) GetDisableNotification

func (s *SendDice) GetDisableNotification() OptBool

GetDisableNotification returns the value of DisableNotification.

func (*SendDice) GetEmoji

func (s *SendDice) GetEmoji() OptString

GetEmoji returns the value of Emoji.

func (*SendDice) GetReplyMarkup

func (s *SendDice) GetReplyMarkup() OptSendDiceReplyMarkup

GetReplyMarkup returns the value of ReplyMarkup.

func (*SendDice) GetReplyToMessageID

func (s *SendDice) GetReplyToMessageID() OptInt

GetReplyToMessageID returns the value of ReplyToMessageID.

func (*SendDice) MarshalJSON

func (s *SendDice) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SendDice) SetAllowSendingWithoutReply

func (s *SendDice) SetAllowSendingWithoutReply(val OptBool)

SetAllowSendingWithoutReply sets the value of AllowSendingWithoutReply.

func (*SendDice) SetChatID

func (s *SendDice) SetChatID(val ID)

SetChatID sets the value of ChatID.

func (*SendDice) SetDisableNotification

func (s *SendDice) SetDisableNotification(val OptBool)

SetDisableNotification sets the value of DisableNotification.

func (*SendDice) SetEmoji

func (s *SendDice) SetEmoji(val OptString)

SetEmoji sets the value of Emoji.

func (*SendDice) SetFake

func (s *SendDice) SetFake()

SetFake set fake values.

func (*SendDice) SetReplyMarkup

func (s *SendDice) SetReplyMarkup(val OptSendDiceReplyMarkup)

SetReplyMarkup sets the value of ReplyMarkup.

func (*SendDice) SetReplyToMessageID

func (s *SendDice) SetReplyToMessageID(val OptInt)

SetReplyToMessageID sets the value of ReplyToMessageID.

func (*SendDice) UnmarshalJSON

func (s *SendDice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SendDice) Validate

func (s *SendDice) Validate() error

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

func (s *SendDocument) SetFake()

SetFake set fake values.

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

func (s *SendGame) Decode(d *jx.Decoder) error

Decode decodes SendGame from json.

func (*SendGame) Encode

func (s *SendGame) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SendGame) GetAllowSendingWithoutReply

func (s *SendGame) GetAllowSendingWithoutReply() OptBool

GetAllowSendingWithoutReply returns the value of AllowSendingWithoutReply.

func (*SendGame) GetChatID

func (s *SendGame) GetChatID() int64

GetChatID returns the value of ChatID.

func (*SendGame) GetDisableNotification

func (s *SendGame) GetDisableNotification() OptBool

GetDisableNotification returns the value of DisableNotification.

func (*SendGame) GetGameShortName

func (s *SendGame) GetGameShortName() string

GetGameShortName returns the value of GameShortName.

func (*SendGame) GetReplyMarkup

func (s *SendGame) GetReplyMarkup() OptInlineKeyboardMarkup

GetReplyMarkup returns the value of ReplyMarkup.

func (*SendGame) GetReplyToMessageID

func (s *SendGame) GetReplyToMessageID() OptInt

GetReplyToMessageID returns the value of ReplyToMessageID.

func (*SendGame) MarshalJSON

func (s *SendGame) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SendGame) SetAllowSendingWithoutReply

func (s *SendGame) SetAllowSendingWithoutReply(val OptBool)

SetAllowSendingWithoutReply sets the value of AllowSendingWithoutReply.

func (*SendGame) SetChatID

func (s *SendGame) SetChatID(val int64)

SetChatID sets the value of ChatID.

func (*SendGame) SetDisableNotification

func (s *SendGame) SetDisableNotification(val OptBool)

SetDisableNotification sets the value of DisableNotification.

func (*SendGame) SetFake

func (s *SendGame) SetFake()

SetFake set fake values.

func (*SendGame) SetGameShortName

func (s *SendGame) SetGameShortName(val string)

SetGameShortName sets the value of GameShortName.

func (*SendGame) SetReplyMarkup

func (s *SendGame) SetReplyMarkup(val OptInlineKeyboardMarkup)

SetReplyMarkup sets the value of ReplyMarkup.

func (*SendGame) SetReplyToMessageID

func (s *SendGame) SetReplyToMessageID(val OptInt)

SetReplyToMessageID sets the value of ReplyToMessageID.

func (*SendGame) UnmarshalJSON

func (s *SendGame) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SendGame) Validate

func (s *SendGame) Validate() error

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

func (s *SendInvoice) SetFake()

SetFake set fake values.

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

func (s *SendLocation) SetFake()

SetFake set fake values.

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

func (s *SendMediaGroup) SetFake()

SetFake set fake values.

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

func (s *SendMessage) SetFake()

SetFake set fake values.

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

func (s *SendPhoto) Decode(d *jx.Decoder) error

Decode decodes SendPhoto from json.

func (*SendPhoto) Encode

func (s *SendPhoto) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SendPhoto) GetAllowSendingWithoutReply

func (s *SendPhoto) GetAllowSendingWithoutReply() OptBool

GetAllowSendingWithoutReply returns the value of AllowSendingWithoutReply.

func (*SendPhoto) GetCaption

func (s *SendPhoto) GetCaption() OptString

GetCaption returns the value of Caption.

func (*SendPhoto) GetCaptionEntities

func (s *SendPhoto) GetCaptionEntities() []MessageEntity

GetCaptionEntities returns the value of CaptionEntities.

func (*SendPhoto) GetChatID

func (s *SendPhoto) GetChatID() ID

GetChatID returns the value of ChatID.

func (*SendPhoto) GetDisableNotification

func (s *SendPhoto) GetDisableNotification() OptBool

GetDisableNotification returns the value of DisableNotification.

func (*SendPhoto) GetParseMode

func (s *SendPhoto) GetParseMode() OptString

GetParseMode returns the value of ParseMode.

func (*SendPhoto) GetPhoto

func (s *SendPhoto) GetPhoto() string

GetPhoto returns the value of Photo.

func (*SendPhoto) GetReplyMarkup

func (s *SendPhoto) GetReplyMarkup() OptSendPhotoReplyMarkup

GetReplyMarkup returns the value of ReplyMarkup.

func (*SendPhoto) GetReplyToMessageID

func (s *SendPhoto) GetReplyToMessageID() OptInt

GetReplyToMessageID returns the value of ReplyToMessageID.

func (*SendPhoto) MarshalJSON

func (s *SendPhoto) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SendPhoto) SetAllowSendingWithoutReply

func (s *SendPhoto) SetAllowSendingWithoutReply(val OptBool)

SetAllowSendingWithoutReply sets the value of AllowSendingWithoutReply.

func (*SendPhoto) SetCaption

func (s *SendPhoto) SetCaption(val OptString)

SetCaption sets the value of Caption.

func (*SendPhoto) SetCaptionEntities

func (s *SendPhoto) SetCaptionEntities(val []MessageEntity)

SetCaptionEntities sets the value of CaptionEntities.

func (*SendPhoto) SetChatID

func (s *SendPhoto) SetChatID(val ID)

SetChatID sets the value of ChatID.

func (*SendPhoto) SetDisableNotification

func (s *SendPhoto) SetDisableNotification(val OptBool)

SetDisableNotification sets the value of DisableNotification.

func (*SendPhoto) SetFake

func (s *SendPhoto) SetFake()

SetFake set fake values.

func (*SendPhoto) SetParseMode

func (s *SendPhoto) SetParseMode(val OptString)

SetParseMode sets the value of ParseMode.

func (*SendPhoto) SetPhoto

func (s *SendPhoto) SetPhoto(val string)

SetPhoto sets the value of Photo.

func (*SendPhoto) SetReplyMarkup

func (s *SendPhoto) SetReplyMarkup(val OptSendPhotoReplyMarkup)

SetReplyMarkup sets the value of ReplyMarkup.

func (*SendPhoto) SetReplyToMessageID

func (s *SendPhoto) SetReplyToMessageID(val OptInt)

SetReplyToMessageID sets the value of ReplyToMessageID.

func (*SendPhoto) UnmarshalJSON

func (s *SendPhoto) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SendPhoto) Validate

func (s *SendPhoto) Validate() error

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

func (s *SendPoll) Decode(d *jx.Decoder) error

Decode decodes SendPoll from json.

func (*SendPoll) Encode

func (s *SendPoll) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SendPoll) GetAllowSendingWithoutReply

func (s *SendPoll) GetAllowSendingWithoutReply() OptBool

GetAllowSendingWithoutReply returns the value of AllowSendingWithoutReply.

func (*SendPoll) GetAllowsMultipleAnswers

func (s *SendPoll) GetAllowsMultipleAnswers() OptBool

GetAllowsMultipleAnswers returns the value of AllowsMultipleAnswers.

func (*SendPoll) GetChatID

func (s *SendPoll) GetChatID() ID

GetChatID returns the value of ChatID.

func (*SendPoll) GetCloseDate

func (s *SendPoll) GetCloseDate() OptInt

GetCloseDate returns the value of CloseDate.

func (*SendPoll) GetCorrectOptionID

func (s *SendPoll) GetCorrectOptionID() OptInt

GetCorrectOptionID returns the value of CorrectOptionID.

func (*SendPoll) GetDisableNotification

func (s *SendPoll) GetDisableNotification() OptBool

GetDisableNotification returns the value of DisableNotification.

func (*SendPoll) GetExplanation

func (s *SendPoll) GetExplanation() OptString

GetExplanation returns the value of Explanation.

func (*SendPoll) GetExplanationEntities

func (s *SendPoll) GetExplanationEntities() []MessageEntity

GetExplanationEntities returns the value of ExplanationEntities.

func (*SendPoll) GetExplanationParseMode

func (s *SendPoll) GetExplanationParseMode() OptString

GetExplanationParseMode returns the value of ExplanationParseMode.

func (*SendPoll) GetIsAnonymous

func (s *SendPoll) GetIsAnonymous() OptBool

GetIsAnonymous returns the value of IsAnonymous.

func (*SendPoll) GetIsClosed

func (s *SendPoll) GetIsClosed() OptBool

GetIsClosed returns the value of IsClosed.

func (*SendPoll) GetOpenPeriod

func (s *SendPoll) GetOpenPeriod() OptInt

GetOpenPeriod returns the value of OpenPeriod.

func (*SendPoll) GetOptions

func (s *SendPoll) GetOptions() []string

GetOptions returns the value of Options.

func (*SendPoll) GetQuestion

func (s *SendPoll) GetQuestion() string

GetQuestion returns the value of Question.

func (*SendPoll) GetReplyMarkup

func (s *SendPoll) GetReplyMarkup() OptSendPollReplyMarkup

GetReplyMarkup returns the value of ReplyMarkup.

func (*SendPoll) GetReplyToMessageID

func (s *SendPoll) GetReplyToMessageID() OptInt

GetReplyToMessageID returns the value of ReplyToMessageID.

func (*SendPoll) GetType

func (s *SendPoll) GetType() OptString

GetType returns the value of Type.

func (*SendPoll) MarshalJSON

func (s *SendPoll) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SendPoll) SetAllowSendingWithoutReply

func (s *SendPoll) SetAllowSendingWithoutReply(val OptBool)

SetAllowSendingWithoutReply sets the value of AllowSendingWithoutReply.

func (*SendPoll) SetAllowsMultipleAnswers

func (s *SendPoll) SetAllowsMultipleAnswers(val OptBool)

SetAllowsMultipleAnswers sets the value of AllowsMultipleAnswers.

func (*SendPoll) SetChatID

func (s *SendPoll) SetChatID(val ID)

SetChatID sets the value of ChatID.

func (*SendPoll) SetCloseDate

func (s *SendPoll) SetCloseDate(val OptInt)

SetCloseDate sets the value of CloseDate.

func (*SendPoll) SetCorrectOptionID

func (s *SendPoll) SetCorrectOptionID(val OptInt)

SetCorrectOptionID sets the value of CorrectOptionID.

func (*SendPoll) SetDisableNotification

func (s *SendPoll) SetDisableNotification(val OptBool)

SetDisableNotification sets the value of DisableNotification.

func (*SendPoll) SetExplanation

func (s *SendPoll) SetExplanation(val OptString)

SetExplanation sets the value of Explanation.

func (*SendPoll) SetExplanationEntities

func (s *SendPoll) SetExplanationEntities(val []MessageEntity)

SetExplanationEntities sets the value of ExplanationEntities.

func (*SendPoll) SetExplanationParseMode

func (s *SendPoll) SetExplanationParseMode(val OptString)

SetExplanationParseMode sets the value of ExplanationParseMode.

func (*SendPoll) SetFake

func (s *SendPoll) SetFake()

SetFake set fake values.

func (*SendPoll) SetIsAnonymous

func (s *SendPoll) SetIsAnonymous(val OptBool)

SetIsAnonymous sets the value of IsAnonymous.

func (*SendPoll) SetIsClosed

func (s *SendPoll) SetIsClosed(val OptBool)

SetIsClosed sets the value of IsClosed.

func (*SendPoll) SetOpenPeriod

func (s *SendPoll) SetOpenPeriod(val OptInt)

SetOpenPeriod sets the value of OpenPeriod.

func (*SendPoll) SetOptions

func (s *SendPoll) SetOptions(val []string)

SetOptions sets the value of Options.

func (*SendPoll) SetQuestion

func (s *SendPoll) SetQuestion(val string)

SetQuestion sets the value of Question.

func (*SendPoll) SetReplyMarkup

func (s *SendPoll) SetReplyMarkup(val OptSendPollReplyMarkup)

SetReplyMarkup sets the value of ReplyMarkup.

func (*SendPoll) SetReplyToMessageID

func (s *SendPoll) SetReplyToMessageID(val OptInt)

SetReplyToMessageID sets the value of ReplyToMessageID.

func (*SendPoll) SetType

func (s *SendPoll) SetType(val OptString)

SetType sets the value of Type.

func (*SendPoll) UnmarshalJSON

func (s *SendPoll) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SendPoll) Validate

func (s *SendPoll) Validate() error

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

func (s *SendSticker) SetFake()

SetFake set fake values.

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

func (s *SendVenue) Decode(d *jx.Decoder) error

Decode decodes SendVenue from json.

func (*SendVenue) Encode

func (s *SendVenue) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SendVenue) GetAddress

func (s *SendVenue) GetAddress() string

GetAddress returns the value of Address.

func (*SendVenue) GetAllowSendingWithoutReply

func (s *SendVenue) GetAllowSendingWithoutReply() OptBool

GetAllowSendingWithoutReply returns the value of AllowSendingWithoutReply.

func (*SendVenue) GetChatID

func (s *SendVenue) GetChatID() ID

GetChatID returns the value of ChatID.

func (*SendVenue) GetDisableNotification

func (s *SendVenue) GetDisableNotification() OptBool

GetDisableNotification returns the value of DisableNotification.

func (*SendVenue) GetFoursquareID

func (s *SendVenue) GetFoursquareID() OptString

GetFoursquareID returns the value of FoursquareID.

func (*SendVenue) GetFoursquareType

func (s *SendVenue) GetFoursquareType() OptString

GetFoursquareType returns the value of FoursquareType.

func (*SendVenue) GetGooglePlaceID

func (s *SendVenue) GetGooglePlaceID() OptString

GetGooglePlaceID returns the value of GooglePlaceID.

func (*SendVenue) GetGooglePlaceType

func (s *SendVenue) GetGooglePlaceType() OptString

GetGooglePlaceType returns the value of GooglePlaceType.

func (*SendVenue) GetLatitude

func (s *SendVenue) GetLatitude() float64

GetLatitude returns the value of Latitude.

func (*SendVenue) GetLongitude

func (s *SendVenue) GetLongitude() float64

GetLongitude returns the value of Longitude.

func (*SendVenue) GetReplyMarkup

func (s *SendVenue) GetReplyMarkup() OptSendVenueReplyMarkup

GetReplyMarkup returns the value of ReplyMarkup.

func (*SendVenue) GetReplyToMessageID

func (s *SendVenue) GetReplyToMessageID() OptInt

GetReplyToMessageID returns the value of ReplyToMessageID.

func (*SendVenue) GetTitle

func (s *SendVenue) GetTitle() string

GetTitle returns the value of Title.

func (*SendVenue) MarshalJSON

func (s *SendVenue) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SendVenue) SetAddress

func (s *SendVenue) SetAddress(val string)

SetAddress sets the value of Address.

func (*SendVenue) SetAllowSendingWithoutReply

func (s *SendVenue) SetAllowSendingWithoutReply(val OptBool)

SetAllowSendingWithoutReply sets the value of AllowSendingWithoutReply.

func (*SendVenue) SetChatID

func (s *SendVenue) SetChatID(val ID)

SetChatID sets the value of ChatID.

func (*SendVenue) SetDisableNotification

func (s *SendVenue) SetDisableNotification(val OptBool)

SetDisableNotification sets the value of DisableNotification.

func (*SendVenue) SetFake

func (s *SendVenue) SetFake()

SetFake set fake values.

func (*SendVenue) SetFoursquareID

func (s *SendVenue) SetFoursquareID(val OptString)

SetFoursquareID sets the value of FoursquareID.

func (*SendVenue) SetFoursquareType

func (s *SendVenue) SetFoursquareType(val OptString)

SetFoursquareType sets the value of FoursquareType.

func (*SendVenue) SetGooglePlaceID

func (s *SendVenue) SetGooglePlaceID(val OptString)

SetGooglePlaceID sets the value of GooglePlaceID.

func (*SendVenue) SetGooglePlaceType

func (s *SendVenue) SetGooglePlaceType(val OptString)

SetGooglePlaceType sets the value of GooglePlaceType.

func (*SendVenue) SetLatitude

func (s *SendVenue) SetLatitude(val float64)

SetLatitude sets the value of Latitude.

func (*SendVenue) SetLongitude

func (s *SendVenue) SetLongitude(val float64)

SetLongitude sets the value of Longitude.

func (*SendVenue) SetReplyMarkup

func (s *SendVenue) SetReplyMarkup(val OptSendVenueReplyMarkup)

SetReplyMarkup sets the value of ReplyMarkup.

func (*SendVenue) SetReplyToMessageID

func (s *SendVenue) SetReplyToMessageID(val OptInt)

SetReplyToMessageID sets the value of ReplyToMessageID.

func (*SendVenue) SetTitle

func (s *SendVenue) SetTitle(val string)

SetTitle sets the value of Title.

func (*SendVenue) UnmarshalJSON

func (s *SendVenue) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SendVenue) Validate

func (s *SendVenue) Validate() error

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

func (s *SendVideo) Decode(d *jx.Decoder) error

Decode decodes SendVideo from json.

func (*SendVideo) Encode

func (s *SendVideo) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SendVideo) GetAllowSendingWithoutReply

func (s *SendVideo) GetAllowSendingWithoutReply() OptBool

GetAllowSendingWithoutReply returns the value of AllowSendingWithoutReply.

func (*SendVideo) GetCaption

func (s *SendVideo) GetCaption() OptString

GetCaption returns the value of Caption.

func (*SendVideo) GetCaptionEntities

func (s *SendVideo) GetCaptionEntities() []MessageEntity

GetCaptionEntities returns the value of CaptionEntities.

func (*SendVideo) GetChatID

func (s *SendVideo) GetChatID() ID

GetChatID returns the value of ChatID.

func (*SendVideo) GetDisableNotification

func (s *SendVideo) GetDisableNotification() OptBool

GetDisableNotification returns the value of DisableNotification.

func (*SendVideo) GetDuration

func (s *SendVideo) GetDuration() OptInt

GetDuration returns the value of Duration.

func (*SendVideo) GetHeight

func (s *SendVideo) GetHeight() OptInt

GetHeight returns the value of Height.

func (*SendVideo) GetParseMode

func (s *SendVideo) GetParseMode() OptString

GetParseMode returns the value of ParseMode.

func (*SendVideo) GetReplyMarkup

func (s *SendVideo) GetReplyMarkup() OptSendVideoReplyMarkup

GetReplyMarkup returns the value of ReplyMarkup.

func (*SendVideo) GetReplyToMessageID

func (s *SendVideo) GetReplyToMessageID() OptInt

GetReplyToMessageID returns the value of ReplyToMessageID.

func (*SendVideo) GetSupportsStreaming

func (s *SendVideo) GetSupportsStreaming() OptBool

GetSupportsStreaming returns the value of SupportsStreaming.

func (*SendVideo) GetThumb

func (s *SendVideo) GetThumb() OptString

GetThumb returns the value of Thumb.

func (*SendVideo) GetVideo

func (s *SendVideo) GetVideo() string

GetVideo returns the value of Video.

func (*SendVideo) GetWidth

func (s *SendVideo) GetWidth() OptInt

GetWidth returns the value of Width.

func (*SendVideo) MarshalJSON

func (s *SendVideo) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SendVideo) SetAllowSendingWithoutReply

func (s *SendVideo) SetAllowSendingWithoutReply(val OptBool)

SetAllowSendingWithoutReply sets the value of AllowSendingWithoutReply.

func (*SendVideo) SetCaption

func (s *SendVideo) SetCaption(val OptString)

SetCaption sets the value of Caption.

func (*SendVideo) SetCaptionEntities

func (s *SendVideo) SetCaptionEntities(val []MessageEntity)

SetCaptionEntities sets the value of CaptionEntities.

func (*SendVideo) SetChatID

func (s *SendVideo) SetChatID(val ID)

SetChatID sets the value of ChatID.

func (*SendVideo) SetDisableNotification

func (s *SendVideo) SetDisableNotification(val OptBool)

SetDisableNotification sets the value of DisableNotification.

func (*SendVideo) SetDuration

func (s *SendVideo) SetDuration(val OptInt)

SetDuration sets the value of Duration.

func (*SendVideo) SetFake

func (s *SendVideo) SetFake()

SetFake set fake values.

func (*SendVideo) SetHeight

func (s *SendVideo) SetHeight(val OptInt)

SetHeight sets the value of Height.

func (*SendVideo) SetParseMode

func (s *SendVideo) SetParseMode(val OptString)

SetParseMode sets the value of ParseMode.

func (*SendVideo) SetReplyMarkup

func (s *SendVideo) SetReplyMarkup(val OptSendVideoReplyMarkup)

SetReplyMarkup sets the value of ReplyMarkup.

func (*SendVideo) SetReplyToMessageID

func (s *SendVideo) SetReplyToMessageID(val OptInt)

SetReplyToMessageID sets the value of ReplyToMessageID.

func (*SendVideo) SetSupportsStreaming

func (s *SendVideo) SetSupportsStreaming(val OptBool)

SetSupportsStreaming sets the value of SupportsStreaming.

func (*SendVideo) SetThumb

func (s *SendVideo) SetThumb(val OptString)

SetThumb sets the value of Thumb.

func (*SendVideo) SetVideo

func (s *SendVideo) SetVideo(val string)

SetVideo sets the value of Video.

func (*SendVideo) SetWidth

func (s *SendVideo) SetWidth(val OptInt)

SetWidth sets the value of Width.

func (*SendVideo) UnmarshalJSON

func (s *SendVideo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SendVideo) Validate

func (s *SendVideo) Validate() error

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

func (s *SendVideoNote) SetFake()

SetFake set fake values.

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

func (s *SendVoice) Decode(d *jx.Decoder) error

Decode decodes SendVoice from json.

func (*SendVoice) Encode

func (s *SendVoice) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SendVoice) GetAllowSendingWithoutReply

func (s *SendVoice) GetAllowSendingWithoutReply() OptBool

GetAllowSendingWithoutReply returns the value of AllowSendingWithoutReply.

func (*SendVoice) GetCaption

func (s *SendVoice) GetCaption() OptString

GetCaption returns the value of Caption.

func (*SendVoice) GetCaptionEntities

func (s *SendVoice) GetCaptionEntities() []MessageEntity

GetCaptionEntities returns the value of CaptionEntities.

func (*SendVoice) GetChatID

func (s *SendVoice) GetChatID() ID

GetChatID returns the value of ChatID.

func (*SendVoice) GetDisableNotification

func (s *SendVoice) GetDisableNotification() OptBool

GetDisableNotification returns the value of DisableNotification.

func (*SendVoice) GetDuration

func (s *SendVoice) GetDuration() OptInt

GetDuration returns the value of Duration.

func (*SendVoice) GetParseMode

func (s *SendVoice) GetParseMode() OptString

GetParseMode returns the value of ParseMode.

func (*SendVoice) GetReplyMarkup

func (s *SendVoice) GetReplyMarkup() OptSendVoiceReplyMarkup

GetReplyMarkup returns the value of ReplyMarkup.

func (*SendVoice) GetReplyToMessageID

func (s *SendVoice) GetReplyToMessageID() OptInt

GetReplyToMessageID returns the value of ReplyToMessageID.

func (*SendVoice) GetVoice

func (s *SendVoice) GetVoice() string

GetVoice returns the value of Voice.

func (*SendVoice) MarshalJSON

func (s *SendVoice) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SendVoice) SetAllowSendingWithoutReply

func (s *SendVoice) SetAllowSendingWithoutReply(val OptBool)

SetAllowSendingWithoutReply sets the value of AllowSendingWithoutReply.

func (*SendVoice) SetCaption

func (s *SendVoice) SetCaption(val OptString)

SetCaption sets the value of Caption.

func (*SendVoice) SetCaptionEntities

func (s *SendVoice) SetCaptionEntities(val []MessageEntity)

SetCaptionEntities sets the value of CaptionEntities.

func (*SendVoice) SetChatID

func (s *SendVoice) SetChatID(val ID)

SetChatID sets the value of ChatID.

func (*SendVoice) SetDisableNotification

func (s *SendVoice) SetDisableNotification(val OptBool)

SetDisableNotification sets the value of DisableNotification.

func (*SendVoice) SetDuration

func (s *SendVoice) SetDuration(val OptInt)

SetDuration sets the value of Duration.

func (*SendVoice) SetFake

func (s *SendVoice) SetFake()

SetFake set fake values.

func (*SendVoice) SetParseMode

func (s *SendVoice) SetParseMode(val OptString)

SetParseMode sets the value of ParseMode.

func (*SendVoice) SetReplyMarkup

func (s *SendVoice) SetReplyMarkup(val OptSendVoiceReplyMarkup)

SetReplyMarkup sets the value of ReplyMarkup.

func (*SendVoice) SetReplyToMessageID

func (s *SendVoice) SetReplyToMessageID(val OptInt)

SetReplyToMessageID sets the value of ReplyToMessageID.

func (*SendVoice) SetVoice

func (s *SendVoice) SetVoice(val string)

SetVoice sets the value of Voice.

func (*SendVoice) UnmarshalJSON

func (s *SendVoice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SendVoice) Validate

func (s *SendVoice) Validate() error

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.

func (*Server) FindPath

func (s *Server) FindPath(method string, u *url.URL) (r Route, _ bool)

FindPath finds Route for given method and URL.

func (*Server) FindRoute

func (s *Server) FindRoute(method, path string) (Route, bool)

FindRoute finds Route for given method and path.

Note: this method does not unescape path or handle reserved characters in path properly. Use FindPath instead.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP serves http request as defined by OpenAPI v3 specification, calling handler that matches the path or returning not found error.

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

Decode decodes SetChatAdministratorCustomTitle from json.

func (*SetChatAdministratorCustomTitle) Encode

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

func (s *SetChatPhoto) SetFake()

SetFake set fake values.

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

func (s *SetChatStickerSet) SetFake()

SetFake set fake values.

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

func (s *SetChatTitle) SetFake()

SetFake set fake values.

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

func (s *SetGameScore) SetFake()

SetFake set fake values.

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

func (s *SetMyCommands) SetFake()

SetFake set fake values.

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

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

func (s *SetWebhook) GetURL() url.URL

GetURL returns the value of URL.

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

func (s *SetWebhook) SetFake()

SetFake set fake values.

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

func (s *SetWebhook) SetURL(val url.URL)

SetURL sets the value of URL.

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

func (s *ShippingAddress) SetFake()

SetFake set fake values.

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

func (s *ShippingOption) SetFake()

SetFake set fake values.

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

func (s *ShippingQuery) GetID() string

GetID returns the value of ID.

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

func (s *ShippingQuery) SetFake()

SetFake set fake values.

func (*ShippingQuery) SetFrom

func (s *ShippingQuery) SetFrom(val User)

SetFrom sets the value of From.

func (*ShippingQuery) SetID

func (s *ShippingQuery) SetID(val string)

SetID sets the value of ID.

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

func (s *Sticker) Decode(d *jx.Decoder) error

Decode decodes Sticker from json.

func (*Sticker) Encode

func (s *Sticker) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Sticker) GetEmoji

func (s *Sticker) GetEmoji() OptString

GetEmoji returns the value of Emoji.

func (*Sticker) GetFileID

func (s *Sticker) GetFileID() string

GetFileID returns the value of FileID.

func (*Sticker) GetFileSize

func (s *Sticker) GetFileSize() OptInt

GetFileSize returns the value of FileSize.

func (*Sticker) GetFileUniqueID

func (s *Sticker) GetFileUniqueID() string

GetFileUniqueID returns the value of FileUniqueID.

func (*Sticker) GetHeight

func (s *Sticker) GetHeight() int

GetHeight returns the value of Height.

func (*Sticker) GetIsAnimated

func (s *Sticker) GetIsAnimated() bool

GetIsAnimated returns the value of IsAnimated.

func (*Sticker) GetMaskPosition

func (s *Sticker) GetMaskPosition() OptMaskPosition

GetMaskPosition returns the value of MaskPosition.

func (*Sticker) GetSetName

func (s *Sticker) GetSetName() OptString

GetSetName returns the value of SetName.

func (*Sticker) GetThumb

func (s *Sticker) GetThumb() OptPhotoSize

GetThumb returns the value of Thumb.

func (*Sticker) GetWidth

func (s *Sticker) GetWidth() int

GetWidth returns the value of Width.

func (*Sticker) MarshalJSON

func (s *Sticker) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Sticker) SetEmoji

func (s *Sticker) SetEmoji(val OptString)

SetEmoji sets the value of Emoji.

func (*Sticker) SetFake

func (s *Sticker) SetFake()

SetFake set fake values.

func (*Sticker) SetFileID

func (s *Sticker) SetFileID(val string)

SetFileID sets the value of FileID.

func (*Sticker) SetFileSize

func (s *Sticker) SetFileSize(val OptInt)

SetFileSize sets the value of FileSize.

func (*Sticker) SetFileUniqueID

func (s *Sticker) SetFileUniqueID(val string)

SetFileUniqueID sets the value of FileUniqueID.

func (*Sticker) SetHeight

func (s *Sticker) SetHeight(val int)

SetHeight sets the value of Height.

func (*Sticker) SetIsAnimated

func (s *Sticker) SetIsAnimated(val bool)

SetIsAnimated sets the value of IsAnimated.

func (*Sticker) SetMaskPosition

func (s *Sticker) SetMaskPosition(val OptMaskPosition)

SetMaskPosition sets the value of MaskPosition.

func (*Sticker) SetSetName

func (s *Sticker) SetSetName(val OptString)

SetSetName sets the value of SetName.

func (*Sticker) SetThumb

func (s *Sticker) SetThumb(val OptPhotoSize)

SetThumb sets the value of Thumb.

func (*Sticker) SetWidth

func (s *Sticker) SetWidth(val int)

SetWidth sets the value of Width.

func (*Sticker) UnmarshalJSON

func (s *Sticker) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Sticker) Validate

func (s *Sticker) Validate() error

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

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

func (s *StopPoll) Decode(d *jx.Decoder) error

Decode decodes StopPoll from json.

func (*StopPoll) Encode

func (s *StopPoll) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*StopPoll) GetChatID

func (s *StopPoll) GetChatID() ID

GetChatID returns the value of ChatID.

func (*StopPoll) GetMessageID

func (s *StopPoll) GetMessageID() int

GetMessageID returns the value of MessageID.

func (*StopPoll) GetReplyMarkup

func (s *StopPoll) GetReplyMarkup() OptInlineKeyboardMarkup

GetReplyMarkup returns the value of ReplyMarkup.

func (*StopPoll) MarshalJSON

func (s *StopPoll) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*StopPoll) SetChatID

func (s *StopPoll) SetChatID(val ID)

SetChatID sets the value of ChatID.

func (*StopPoll) SetFake

func (s *StopPoll) SetFake()

SetFake set fake values.

func (*StopPoll) SetMessageID

func (s *StopPoll) SetMessageID(val int)

SetMessageID sets the value of MessageID.

func (*StopPoll) SetReplyMarkup

func (s *StopPoll) SetReplyMarkup(val OptInlineKeyboardMarkup)

SetReplyMarkup sets the value of ReplyMarkup.

func (*StopPoll) UnmarshalJSON

func (s *StopPoll) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*StopPoll) Validate

func (s *StopPoll) Validate() error

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

func (s *SuccessfulPayment) SetFake()

SetFake set fake values.

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

func (s *UnbanChatMember) SetFake()

SetFake set fake values.

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

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

func (UnimplementedHandler) GetFile(ctx context.Context, req *GetFile) (r *Result, _ error)

GetFile implements getFile operation.

POST /getFile

func (UnimplementedHandler) GetGameHighScores

GetGameHighScores implements getGameHighScores operation.

POST /getGameHighScores

func (UnimplementedHandler) GetMe

GetMe implements getMe operation.

POST /getMe

func (UnimplementedHandler) GetMyCommands

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

GetUpdates implements getUpdates operation.

POST /getUpdates

func (UnimplementedHandler) GetUserProfilePhotos

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

func (UnimplementedHandler) LeaveChat(ctx context.Context, req *LeaveChat) (r *Result, _ error)

LeaveChat implements leaveChat operation.

POST /leaveChat

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

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

func (s *UnpinChatMessage) SetFake()

SetFake set fake values.

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

func (s *Update) Decode(d *jx.Decoder) error

Decode decodes Update from json.

func (*Update) Encode

func (s *Update) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

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

func (s *Update) GetPoll() OptPoll

GetPoll returns the value of Poll.

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

func (s *Update) GetUpdateID() int

GetUpdateID returns the value of UpdateID.

func (*Update) MarshalJSON

func (s *Update) MarshalJSON() ([]byte, error)

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

func (s *Update) SetFake()

SetFake set fake values.

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

func (s *Update) SetPoll(val OptPoll)

SetPoll sets the value of Poll.

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

func (s *Update) SetUpdateID(val int)

SetUpdateID sets the value of UpdateID.

func (*Update) UnmarshalJSON

func (s *Update) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Update) Validate

func (s *Update) Validate() error

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

func (s *UploadStickerFile) SetFake()

SetFake set fake values.

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

func (s *User) Decode(d *jx.Decoder) error

Decode decodes User from json.

func (*User) Encode

func (s *User) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*User) GetCanJoinGroups

func (s *User) GetCanJoinGroups() OptBool

GetCanJoinGroups returns the value of CanJoinGroups.

func (*User) GetCanReadAllGroupMessages

func (s *User) GetCanReadAllGroupMessages() OptBool

GetCanReadAllGroupMessages returns the value of CanReadAllGroupMessages.

func (*User) GetFirstName

func (s *User) GetFirstName() string

GetFirstName returns the value of FirstName.

func (*User) GetID

func (s *User) GetID() int64

GetID returns the value of ID.

func (*User) GetIsBot

func (s *User) GetIsBot() bool

GetIsBot returns the value of IsBot.

func (*User) GetLanguageCode

func (s *User) GetLanguageCode() OptString

GetLanguageCode returns the value of LanguageCode.

func (*User) GetLastName

func (s *User) GetLastName() OptString

GetLastName returns the value of LastName.

func (*User) GetSupportsInlineQueries

func (s *User) GetSupportsInlineQueries() OptBool

GetSupportsInlineQueries returns the value of SupportsInlineQueries.

func (*User) GetUsername

func (s *User) GetUsername() OptString

GetUsername returns the value of Username.

func (*User) MarshalJSON

func (s *User) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*User) SetCanJoinGroups

func (s *User) SetCanJoinGroups(val OptBool)

SetCanJoinGroups sets the value of CanJoinGroups.

func (*User) SetCanReadAllGroupMessages

func (s *User) SetCanReadAllGroupMessages(val OptBool)

SetCanReadAllGroupMessages sets the value of CanReadAllGroupMessages.

func (*User) SetFake

func (s *User) SetFake()

SetFake set fake values.

func (*User) SetFirstName

func (s *User) SetFirstName(val string)

SetFirstName sets the value of FirstName.

func (*User) SetID

func (s *User) SetID(val int64)

SetID sets the value of ID.

func (*User) SetIsBot

func (s *User) SetIsBot(val bool)

SetIsBot sets the value of IsBot.

func (*User) SetLanguageCode

func (s *User) SetLanguageCode(val OptString)

SetLanguageCode sets the value of LanguageCode.

func (*User) SetLastName

func (s *User) SetLastName(val OptString)

SetLastName sets the value of LastName.

func (*User) SetSupportsInlineQueries

func (s *User) SetSupportsInlineQueries(val OptBool)

SetSupportsInlineQueries sets the value of SupportsInlineQueries.

func (*User) SetUsername

func (s *User) SetUsername(val OptString)

SetUsername sets the value of Username.

func (*User) UnmarshalJSON

func (s *User) UnmarshalJSON(data []byte) error

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

func (s *UserProfilePhotos) SetFake()

SetFake set fake values.

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

func (s *Venue) Decode(d *jx.Decoder) error

Decode decodes Venue from json.

func (*Venue) Encode

func (s *Venue) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Venue) GetAddress

func (s *Venue) GetAddress() string

GetAddress returns the value of Address.

func (*Venue) GetFoursquareID

func (s *Venue) GetFoursquareID() OptString

GetFoursquareID returns the value of FoursquareID.

func (*Venue) GetFoursquareType

func (s *Venue) GetFoursquareType() OptString

GetFoursquareType returns the value of FoursquareType.

func (*Venue) GetGooglePlaceID

func (s *Venue) GetGooglePlaceID() OptString

GetGooglePlaceID returns the value of GooglePlaceID.

func (*Venue) GetGooglePlaceType

func (s *Venue) GetGooglePlaceType() OptString

GetGooglePlaceType returns the value of GooglePlaceType.

func (*Venue) GetLocation

func (s *Venue) GetLocation() Location

GetLocation returns the value of Location.

func (*Venue) GetTitle

func (s *Venue) GetTitle() string

GetTitle returns the value of Title.

func (*Venue) MarshalJSON

func (s *Venue) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Venue) SetAddress

func (s *Venue) SetAddress(val string)

SetAddress sets the value of Address.

func (*Venue) SetFake

func (s *Venue) SetFake()

SetFake set fake values.

func (*Venue) SetFoursquareID

func (s *Venue) SetFoursquareID(val OptString)

SetFoursquareID sets the value of FoursquareID.

func (*Venue) SetFoursquareType

func (s *Venue) SetFoursquareType(val OptString)

SetFoursquareType sets the value of FoursquareType.

func (*Venue) SetGooglePlaceID

func (s *Venue) SetGooglePlaceID(val OptString)

SetGooglePlaceID sets the value of GooglePlaceID.

func (*Venue) SetGooglePlaceType

func (s *Venue) SetGooglePlaceType(val OptString)

SetGooglePlaceType sets the value of GooglePlaceType.

func (*Venue) SetLocation

func (s *Venue) SetLocation(val Location)

SetLocation sets the value of Location.

func (*Venue) SetTitle

func (s *Venue) SetTitle(val string)

SetTitle sets the value of Title.

func (*Venue) UnmarshalJSON

func (s *Venue) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Venue) Validate

func (s *Venue) Validate() error

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

func (s *Video) Decode(d *jx.Decoder) error

Decode decodes Video from json.

func (*Video) Encode

func (s *Video) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Video) GetDuration

func (s *Video) GetDuration() int

GetDuration returns the value of Duration.

func (*Video) GetFileID

func (s *Video) GetFileID() string

GetFileID returns the value of FileID.

func (*Video) GetFileName

func (s *Video) GetFileName() OptString

GetFileName returns the value of FileName.

func (*Video) GetFileSize

func (s *Video) GetFileSize() OptInt

GetFileSize returns the value of FileSize.

func (*Video) GetFileUniqueID

func (s *Video) GetFileUniqueID() string

GetFileUniqueID returns the value of FileUniqueID.

func (*Video) GetHeight

func (s *Video) GetHeight() int

GetHeight returns the value of Height.

func (*Video) GetMimeType

func (s *Video) GetMimeType() OptString

GetMimeType returns the value of MimeType.

func (*Video) GetThumb

func (s *Video) GetThumb() OptPhotoSize

GetThumb returns the value of Thumb.

func (*Video) GetWidth

func (s *Video) GetWidth() int

GetWidth returns the value of Width.

func (*Video) MarshalJSON

func (s *Video) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Video) SetDuration

func (s *Video) SetDuration(val int)

SetDuration sets the value of Duration.

func (*Video) SetFake

func (s *Video) SetFake()

SetFake set fake values.

func (*Video) SetFileID

func (s *Video) SetFileID(val string)

SetFileID sets the value of FileID.

func (*Video) SetFileName

func (s *Video) SetFileName(val OptString)

SetFileName sets the value of FileName.

func (*Video) SetFileSize

func (s *Video) SetFileSize(val OptInt)

SetFileSize sets the value of FileSize.

func (*Video) SetFileUniqueID

func (s *Video) SetFileUniqueID(val string)

SetFileUniqueID sets the value of FileUniqueID.

func (*Video) SetHeight

func (s *Video) SetHeight(val int)

SetHeight sets the value of Height.

func (*Video) SetMimeType

func (s *Video) SetMimeType(val OptString)

SetMimeType sets the value of MimeType.

func (*Video) SetThumb

func (s *Video) SetThumb(val OptPhotoSize)

SetThumb sets the value of Thumb.

func (*Video) SetWidth

func (s *Video) SetWidth(val int)

SetWidth sets the value of Width.

func (*Video) UnmarshalJSON

func (s *Video) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Video) Validate

func (s *Video) Validate() error

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

func (s *VideoNote) Decode(d *jx.Decoder) error

Decode decodes VideoNote from json.

func (*VideoNote) Encode

func (s *VideoNote) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*VideoNote) GetDuration

func (s *VideoNote) GetDuration() int

GetDuration returns the value of Duration.

func (*VideoNote) GetFileID

func (s *VideoNote) GetFileID() string

GetFileID returns the value of FileID.

func (*VideoNote) GetFileSize

func (s *VideoNote) GetFileSize() OptInt

GetFileSize returns the value of FileSize.

func (*VideoNote) GetFileUniqueID

func (s *VideoNote) GetFileUniqueID() string

GetFileUniqueID returns the value of FileUniqueID.

func (*VideoNote) GetLength

func (s *VideoNote) GetLength() int

GetLength returns the value of Length.

func (*VideoNote) GetThumb

func (s *VideoNote) GetThumb() OptPhotoSize

GetThumb returns the value of Thumb.

func (*VideoNote) MarshalJSON

func (s *VideoNote) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*VideoNote) SetDuration

func (s *VideoNote) SetDuration(val int)

SetDuration sets the value of Duration.

func (*VideoNote) SetFake

func (s *VideoNote) SetFake()

SetFake set fake values.

func (*VideoNote) SetFileID

func (s *VideoNote) SetFileID(val string)

SetFileID sets the value of FileID.

func (*VideoNote) SetFileSize

func (s *VideoNote) SetFileSize(val OptInt)

SetFileSize sets the value of FileSize.

func (*VideoNote) SetFileUniqueID

func (s *VideoNote) SetFileUniqueID(val string)

SetFileUniqueID sets the value of FileUniqueID.

func (*VideoNote) SetLength

func (s *VideoNote) SetLength(val int)

SetLength sets the value of Length.

func (*VideoNote) SetThumb

func (s *VideoNote) SetThumb(val OptPhotoSize)

SetThumb sets the value of Thumb.

func (*VideoNote) UnmarshalJSON

func (s *VideoNote) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*VideoNote) Validate

func (s *VideoNote) Validate() error

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

func (s *Voice) Decode(d *jx.Decoder) error

Decode decodes Voice from json.

func (*Voice) Encode

func (s *Voice) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Voice) GetDuration

func (s *Voice) GetDuration() int

GetDuration returns the value of Duration.

func (*Voice) GetFileID

func (s *Voice) GetFileID() string

GetFileID returns the value of FileID.

func (*Voice) GetFileSize

func (s *Voice) GetFileSize() OptInt

GetFileSize returns the value of FileSize.

func (*Voice) GetFileUniqueID

func (s *Voice) GetFileUniqueID() string

GetFileUniqueID returns the value of FileUniqueID.

func (*Voice) GetMimeType

func (s *Voice) GetMimeType() OptString

GetMimeType returns the value of MimeType.

func (*Voice) MarshalJSON

func (s *Voice) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Voice) SetDuration

func (s *Voice) SetDuration(val int)

SetDuration sets the value of Duration.

func (*Voice) SetFake

func (s *Voice) SetFake()

SetFake set fake values.

func (*Voice) SetFileID

func (s *Voice) SetFileID(val string)

SetFileID sets the value of FileID.

func (*Voice) SetFileSize

func (s *Voice) SetFileSize(val OptInt)

SetFileSize sets the value of FileSize.

func (*Voice) SetFileUniqueID

func (s *Voice) SetFileUniqueID(val string)

SetFileUniqueID sets the value of FileUniqueID.

func (*Voice) SetMimeType

func (s *Voice) SetMimeType(val OptString)

SetMimeType sets the value of MimeType.

func (*Voice) UnmarshalJSON

func (s *Voice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Voice) Validate

func (s *Voice) Validate() error

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

func (s *VoiceChatEnded) SetFake()

SetFake set fake values.

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

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

func (s *VoiceChatStarted) SetFake()

SetFake set fake values.

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

func (s *WebhookInfo) SetFake()

SetFake set fake values.

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.

Jump to

Keyboard shortcuts

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