method_dto

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddStickerToSet

type AddStickerToSet struct {
	UserID  int64                     `json:"user_id"`
	Name    string                    `json:"name"`
	Sticker stickers_dto.InputSticker `json:"sticker"`
}

https://core.telegram.org/bots/api#addstickertoset

func NewAddStickerToSet

func NewAddStickerToSet(userID int64, name string, sticker stickers_dto.InputSticker) *AddStickerToSet

type AnswerCallbackQuery

type AnswerCallbackQuery struct {
	CallbackQueryId string `json:"callback_query_id"`
	Text            string `json:"text,omitempty"`
	ShowAlert       bool   `json:"show_alert,omitempty"`
	Url             string `json:"url,omitempty"`
	CacheTime       uint64 `json:"cache_time,omitempty"`
}

https://core.telegram.org/bots/api#answercallbackquery

func NewAnswerCallbackQuery

func NewAnswerCallbackQuery(callbackQueryId string) *AnswerCallbackQuery

func (*AnswerCallbackQuery) SetCacheTime

func (a *AnswerCallbackQuery) SetCacheTime(cacheTime uint64) *AnswerCallbackQuery

func (*AnswerCallbackQuery) SetShowAlert

func (a *AnswerCallbackQuery) SetShowAlert(showAlert bool) *AnswerCallbackQuery

func (*AnswerCallbackQuery) SetText

func (*AnswerCallbackQuery) SetUrl

type AnswerInlineQuery

type AnswerInlineQuery struct {
	InlineQueryId string                               `json:"inline_query_id"`
	Results       []inline_dto.InlineQueryResult       `json:"results"`
	CacheTime     int                                  `json:"cache_time,omitempty"`
	IsPersonal    bool                                 `json:"is_personal,omitempty"`
	NextOffset    string                               `json:"next_offset,omitempty"`
	Button        *inline_dto.InlineQueryResultsButton `json:"button,omitempty"`
}

https://core.telegram.org/bots/api#answerinlinequery

func NewAnswerInlineQuery

func NewAnswerInlineQuery(inlineQueryId string, results []inline_dto.InlineQueryResult) *AnswerInlineQuery

func (*AnswerInlineQuery) SetButton

func (*AnswerInlineQuery) SetCacheTime

func (aiq *AnswerInlineQuery) SetCacheTime(cacheTime int) *AnswerInlineQuery

func (*AnswerInlineQuery) SetIsPersonal

func (aiq *AnswerInlineQuery) SetIsPersonal(isPersonal bool) *AnswerInlineQuery

func (*AnswerInlineQuery) SetNextOffset

func (aiq *AnswerInlineQuery) SetNextOffset(nextOffset string) *AnswerInlineQuery

type AnswerPreCheckoutQuery

type AnswerPreCheckoutQuery struct {
	PreCheckoutQueryID string `json:"pre_checkout_query_id"`
	OK                 bool   `json:"ok"`
	ErrorMessage       string `json:"error_message,omitempty"`
}

https://core.telegram.org/bots/api#answerprecheckoutquery

func NewAnswerPreCheckoutQuery

func NewAnswerPreCheckoutQuery(preCheckoutQueryID string, ok bool) *AnswerPreCheckoutQuery

func (*AnswerPreCheckoutQuery) SetErrorMessage

func (apcq *AnswerPreCheckoutQuery) SetErrorMessage(errorMessage string)

type AnswerShippingQuery

type AnswerShippingQuery struct {
	ShippingQueryID string                       `json:"shipping_query_id"`
	OK              bool                         `json:"ok"`
	ShippingOptions []payment_dto.ShippingOption `json:"shipping_options,omitempty"`
	ErrorMessage    string                       `json:"error_message,omitempty"`
}

https://core.telegram.org/bots/api#answershippingquery

func NewAnswerShippingQuery

func NewAnswerShippingQuery(shippingQueryID string, ok bool) *AnswerShippingQuery

func (*AnswerShippingQuery) SetErrorMessage

func (asq *AnswerShippingQuery) SetErrorMessage(errorMessage string)

func (*AnswerShippingQuery) SetShippingOptions

func (asq *AnswerShippingQuery) SetShippingOptions(shippingOptions []payment_dto.ShippingOption)

type AnswerWebAppQuery

type AnswerWebAppQuery struct {
	WebAppQueryId string                       `json:"web_app_query_id"`
	Result        inline_dto.InlineQueryResult `json:"result"`
}

https://core.telegram.org/bots/api#answerwebappquery

func NewAnswerWebAppQuery

func NewAnswerWebAppQuery(webAppQueryId string, result inline_dto.InlineQueryResult) *AnswerWebAppQuery

type ApproveChatJoinRequest

type ApproveChatJoinRequest[ID int64 | string] struct {
	ChatID ID  `json:"chat_id"`
	UserID int `json:"user_id"`
}

https://core.telegram.org/bots/api#approvechatjoinrequest

func NewApproveChatJoinRequest

func NewApproveChatJoinRequest[ID int64 | string](chatID ID, userID int) *ApproveChatJoinRequest[ID]

type BanChatMember

type BanChatMember[ID int64 | string] struct {
	ChatID         ID   `json:"chat_id"`
	UserID         int  `json:"user_id"`
	UntilDate      int  `json:"until_date,omitempty"`
	RevokeMessages bool `json:"revoke_messages,omitempty"`
}

https://core.telegram.org/bots/api#banchatmember

func NewBanChatMember

func NewBanChatMember[ID int64 | string](chatID ID, userID int) *BanChatMember[ID]

func (*BanChatMember[ID]) SetRevokeMessages

func (bcm *BanChatMember[ID]) SetRevokeMessages(revoke bool) *BanChatMember[ID]

func (*BanChatMember[ID]) SetUntilDate

func (bcm *BanChatMember[ID]) SetUntilDate(untilDate int) *BanChatMember[ID]

type BanChatSenderChat

type BanChatSenderChat[ID int64 | string] struct {
	ChatID       ID  `json:"chat_id"`
	SenderChatID int `json:"sender_chat_id"`
}

https://core.telegram.org/bots/api#banchatsenderchat

func NewBanChatSenderChat

func NewBanChatSenderChat[ID int64 | string](chatID ID, senderChatID int) *BanChatSenderChat[ID]

type ChatID

type ChatID[ID int64 | string] struct {
	ChatID ID `json:"chat_id"`
}

ChatID

func NewChatID

func NewChatID[ID int64 | string](chatID ID) *ChatID[ID]

type CloseForumTopic

type CloseForumTopic[ID int64 | string] struct {
	ChatID          ID  `json:"chat_id"`
	MessageThreadID int `json:"message_thread_id"`
}

https://core.telegram.org/bots/api#closeforumtopic

func NewCloseForumTopic

func NewCloseForumTopic[ID int64 | string](chatID ID, messageThreadID int) *CloseForumTopic[ID]

type CopyMessage

type CopyMessage struct {
	ChatID                   int64                              `json:"chat_id"`
	FromChatId               int64                              `json:"from_chat_id"`
	MessageId                int64                              `json:"message_id"`
	MessageThreadId          int                                `json:"message_thread_id,omitempty"`
	Caption                  int64                              `json:"caption,omitempty"`
	ParseMode                string                             `json:"parse_mode,omitempty"`
	Entities                 []message_entity_dto.MessageEntity `json:"entities,omitempty"`
	DisableNotification      bool                               `json:"disable_notification,omitempty"`
	ProtectContent           bool                               `json:"protect_content,omitempty"`
	ReplyToMessageId         uint64                             `json:"reply_to_message_id,omitempty"`
	AllowSendingWithoutReply bool                               `json:"allow_sending_without_reply,omitempty"`
	ReplyMarkup              message_dto.IKeyboard              `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#copymessage

func NewCopyMessage

func NewCopyMessage(chatID, fromChatID, messageID int64) *CopyMessage

func (*CopyMessage) SetAllowSendingWithoutReply

func (cm *CopyMessage) SetAllowSendingWithoutReply(allowSendingWithoutReply bool) *CopyMessage

func (*CopyMessage) SetCaption

func (cm *CopyMessage) SetCaption(caption int64) *CopyMessage

func (*CopyMessage) SetDisableNotification

func (cm *CopyMessage) SetDisableNotification(disableNotification bool) *CopyMessage

func (*CopyMessage) SetEntities

func (cm *CopyMessage) SetEntities(entities []message_entity_dto.MessageEntity) *CopyMessage

func (*CopyMessage) SetMessageThreadId

func (cm *CopyMessage) SetMessageThreadId(messageThreadId int) *CopyMessage

func (*CopyMessage) SetParseMode

func (cm *CopyMessage) SetParseMode(parseMode string) *CopyMessage

func (*CopyMessage) SetProtectContent

func (cm *CopyMessage) SetProtectContent(protectContent bool) *CopyMessage

func (*CopyMessage) SetReplyMarkup

func (cm *CopyMessage) SetReplyMarkup(replyMarkup message_dto.IKeyboard) *CopyMessage

func (*CopyMessage) SetReplyToMessageId

func (cm *CopyMessage) SetReplyToMessageId(replyToMessageId uint64) *CopyMessage
type CreateChatInviteLink[ID int64 | string] struct {
	ChatID             ID     `json:"chat_id"`
	Name               string `json:"name,omitempty"`
	ExpireDate         int64  `json:"expire_date,omitempty"`
	MemberLimit        int    `json:"member_limit,omitempty"`
	CreatesJoinRequest bool   `json:"creates_join_request,omitempty"`
}

https://core.telegram.org/bots/api#createchatinvitelink

func NewCreateChatInviteLink[ID int64 | string](chatID ID) *CreateChatInviteLink[ID]

func (*CreateChatInviteLink[ID]) SetCreatesJoinRequest

func (c *CreateChatInviteLink[ID]) SetCreatesJoinRequest(createsJoinRequest bool) *CreateChatInviteLink[ID]

func (*CreateChatInviteLink[ID]) SetExpireDate

func (c *CreateChatInviteLink[ID]) SetExpireDate(expireDate int64) *CreateChatInviteLink[ID]

func (*CreateChatInviteLink[ID]) SetMemberLimit

func (c *CreateChatInviteLink[ID]) SetMemberLimit(memberLimit int) *CreateChatInviteLink[ID]

func (*CreateChatInviteLink[ID]) SetName

func (c *CreateChatInviteLink[ID]) SetName(name string) *CreateChatInviteLink[ID]

type CreateForumTopic

type CreateForumTopic[ID int64 | string] struct {
	ChatID            ID     `json:"chat_id"`
	Name              string `json:"name"`
	IconColor         int    `json:"icon_color,omitempty"`
	IconCustomEmojiID string `json:"icon_custom_emoji_id,omitempty"`
}

https://core.telegram.org/bots/api#createforumtopic

func NewCreateForumTopic

func NewCreateForumTopic[ID int64 | string](chatID ID, name string) *CreateForumTopic[ID]

func (*CreateForumTopic[ID]) SetIconColor

func (ft *CreateForumTopic[ID]) SetIconColor(iconColor int) *CreateForumTopic[ID]

func (*CreateForumTopic[ID]) SetIconCustomEmojiID

func (ft *CreateForumTopic[ID]) SetIconCustomEmojiID(iconCustomEmojiID string) *CreateForumTopic[ID]
type CreateInvoiceLink struct {
	Title               string                     `json:"title"`
	Description         string                     `json:"description"`
	Payload             string                     `json:"payload"`
	ProviderToken       string                     `json:"provider_token"`
	Currency            string                     `json:"currency"`
	Prices              []payment_dto.LabeledPrice `json:"prices"`
	MaxTipAmount        int                        `json:"max_tip_amount,omitempty"`
	SuggestedTipAmounts []int                      `json:"suggested_tip_amounts,omitempty"`
	ProviderData        string                     `json:"provider_data,omitempty"`
	PhotoURL            string                     `json:"photo_url,omitempty"`
	PhotoSize           int                        `json:"photo_size,omitempty"`
	PhotoWidth          int                        `json:"photo_width,omitempty"`
	PhotoHeight         int                        `json:"photo_height,omitempty"`
	NeedName            bool                       `json:"need_name,omitempty"`
	NeedPhoneNumber     bool                       `json:"need_phone_number,omitempty"`
	NeedEmail           bool                       `json:"need_email,omitempty"`
	NeedShippingAddr    bool                       `json:"need_shipping_address,omitempty"`
	SendPhoneToProvider bool                       `json:"send_phone_number_to_provider,omitempty"`
	SendEmailToProvider bool                       `json:"send_email_to_provider,omitempty"`
	IsFlexible          bool                       `json:"is_flexible,omitempty"`
}

https://core.telegram.org/bots/api#createinvoicelink

func NewCreateInvoiceLink(title, description, payload, providerToken, currency string, prices []payment_dto.LabeledPrice) *CreateInvoiceLink

func (*CreateInvoiceLink) SetIsFlexible

func (cil *CreateInvoiceLink) SetIsFlexible(isFlexible bool)

func (*CreateInvoiceLink) SetMaxTipAmount

func (cil *CreateInvoiceLink) SetMaxTipAmount(maxTipAmount int)

func (*CreateInvoiceLink) SetNeedEmail

func (cil *CreateInvoiceLink) SetNeedEmail(needEmail bool)

func (*CreateInvoiceLink) SetNeedName

func (cil *CreateInvoiceLink) SetNeedName(needName bool)

func (*CreateInvoiceLink) SetNeedPhoneNumber

func (cil *CreateInvoiceLink) SetNeedPhoneNumber(needPhoneNumber bool)

func (*CreateInvoiceLink) SetNeedShippingAddress

func (cil *CreateInvoiceLink) SetNeedShippingAddress(needShippingAddress bool)

func (*CreateInvoiceLink) SetPhotoDimensions

func (cil *CreateInvoiceLink) SetPhotoDimensions(width, height int)

func (*CreateInvoiceLink) SetPhotoSize

func (cil *CreateInvoiceLink) SetPhotoSize(photoSize int)

func (*CreateInvoiceLink) SetPhotoURL

func (cil *CreateInvoiceLink) SetPhotoURL(photoURL string)

func (*CreateInvoiceLink) SetProviderData

func (cil *CreateInvoiceLink) SetProviderData(providerData string)

func (*CreateInvoiceLink) SetSendEmailToProvider

func (cil *CreateInvoiceLink) SetSendEmailToProvider(sendEmailToProvider bool)

func (*CreateInvoiceLink) SetSendPhoneToProvider

func (cil *CreateInvoiceLink) SetSendPhoneToProvider(sendPhoneToProvider bool)

func (*CreateInvoiceLink) SetSuggestedTipAmounts

func (cil *CreateInvoiceLink) SetSuggestedTipAmounts(suggestedTipAmounts []int)

type CreateNewStickerSet

type CreateNewStickerSet struct {
	UserID          int64                       `json:"user_id"`
	Name            string                      `json:"name"`
	Title           string                      `json:"title"`
	Stickers        []stickers_dto.InputSticker `json:"stickers"`
	StickerFormat   string                      `json:"sticker_format"`
	StickerType     string                      `json:"sticker_type,omitempty"`
	NeedsRepainting bool                        `json:"needs_repainting,omitempty"`
}

https://core.telegram.org/bots/api#createnewstickerset

func NewCreateNewStickerSet

func NewCreateNewStickerSet(userID int64, name string, title string, stickers []stickers_dto.InputSticker, stickerFormat string) *CreateNewStickerSet

func (*CreateNewStickerSet) SetNeedsRepainting

func (c *CreateNewStickerSet) SetNeedsRepainting(needsRepainting bool) *CreateNewStickerSet

func (*CreateNewStickerSet) SetStickerType

func (c *CreateNewStickerSet) SetStickerType(stickerType string) *CreateNewStickerSet

type DeclineChatJoinRequest

type DeclineChatJoinRequest[ID int64 | string] struct {
	ChatID ID  `json:"chat_id"`
	UserID int `json:"user_id"`
}

https://core.telegram.org/bots/api#declinechatjoinrequest

func NewDeclineChatJoinRequest

func NewDeclineChatJoinRequest[ID int64 | string](chatID ID, userID int) *DeclineChatJoinRequest[ID]

type DeleteForumTopic

type DeleteForumTopic[ID int64 | string] struct {
	ChatID          ID  `json:"chat_id"`
	MessageThreadID int `json:"message_thread_id"`
}

https://core.telegram.org/bots/api#deleteforumtopic

func NewDeleteForumTopic

func NewDeleteForumTopic[ID int64 | string](chatID ID, messageThreadID int) *DeleteForumTopic[ID]

type DeleteMessage

type DeleteMessage[ID int64 | string] struct {
	ChatID    ID  `json:"chat_id"`
	MessageID int `json:"message_id"`
}

https://core.telegram.org/bots/api#deletemessage

func NewDeleteMessage

func NewDeleteMessage[ID int64 | string](chatID ID, messageID int) *DeleteMessage[ID]

type DeleteStickerFromSet

type DeleteStickerFromSet struct {
	Sticker string `json:"sticker"`
}

https://core.telegram.org/bots/api#deletestickerfromset

func NewDeleteStickerFromSet

func NewDeleteStickerFromSet(sticker string) *DeleteStickerFromSet

type DeleteStickerSet

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

https://core.telegram.org/bots/api#deletestickerset

func NewDeleteStickerSet

func NewDeleteStickerSet(name string) *DeleteStickerSet
type EditChatInviteLink[ID int64 | string] struct {
	ChatID             ID     `json:"chat_id"`
	InviteLink         string `json:"invite_link"`
	Name               string `json:"name,omitempty"`
	ExpireDate         int64  `json:"expire_date,omitempty"`
	MemberLimit        int    `json:"member_limit,omitempty"`
	CreatesJoinRequest bool   `json:"creates_join_request,omitempty"`
}

https://core.telegram.org/bots/api#editchatinvitelink

func NewEditChatInviteLink[ID int64 | string](chatID ID, inviteLink string) *EditChatInviteLink[ID]

func (*EditChatInviteLink[ID]) SetCreatesJoinRequest

func (e *EditChatInviteLink[ID]) SetCreatesJoinRequest(createsJoinRequest bool) *EditChatInviteLink[ID]

func (*EditChatInviteLink[ID]) SetExpireDate

func (e *EditChatInviteLink[ID]) SetExpireDate(expireDate int64) *EditChatInviteLink[ID]

func (*EditChatInviteLink[ID]) SetMemberLimit

func (e *EditChatInviteLink[ID]) SetMemberLimit(memberLimit int) *EditChatInviteLink[ID]

func (*EditChatInviteLink[ID]) SetName

func (e *EditChatInviteLink[ID]) SetName(name string) *EditChatInviteLink[ID]

type EditForumTopic

type EditForumTopic[ID int64 | string] struct {
	ChatID            ID     `json:"chat_id"`
	MessageThreadID   int    `json:"message_thread_id"`
	Name              string `json:"name,omitempty"`
	IconCustomEmojiID string `json:"icon_custom_emoji_id,omitempty"`
}

https://core.telegram.org/bots/api#editforumtopic

func NewEditForumTopic

func NewEditForumTopic[ID int64 | string](chatID ID, messageThreadID int) *EditForumTopic[ID]

func (*EditForumTopic[ID]) SetIconCustomEmojiID

func (e *EditForumTopic[ID]) SetIconCustomEmojiID(iconCustomEmojiID string) *EditForumTopic[ID]

func (*EditForumTopic[ID]) SetName

func (e *EditForumTopic[ID]) SetName(name string) *EditForumTopic[ID]

type EditGeneralForumTopic

type EditGeneralForumTopic[ID int64 | string] struct {
	ChatID ID     `json:"chat_id"`
	Name   string `json:"name"`
}

https://core.telegram.org/bots/api#editgeneralforumtopic

func NewEditGeneralForumTopic

func NewEditGeneralForumTopic[ID int64 | string](chatID ID, name string) *EditGeneralForumTopic[ID]

type EditMessageCaption

type EditMessageCaption[ID int64 | string] struct {
	ChatID          ID                                 `json:"chat_id,omitempty"`
	MessageID       int                                `json:"message_id,omitempty"`
	InlineMessageID string                             `json:"inline_message_id,omitempty"`
	Caption         string                             `json:"caption,omitempty"`
	ParseMode       string                             `json:"parse_mode,omitempty"`
	CaptionEntities []message_entity_dto.MessageEntity `json:"caption_entities,omitempty"`
	ReplyMarkup     message_dto.InlineKeyboardMarkup   `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#editmessagecaption

func NewEditMessageCaption

func NewEditMessageCaption[ID int64 | string](text string) *EditMessageCaption[ID]

func (*EditMessageCaption[ID]) SetCaptionEntities

func (e *EditMessageCaption[ID]) SetCaptionEntities(entities []message_entity_dto.MessageEntity) *EditMessageCaption[ID]

func (*EditMessageCaption[ID]) SetChatID

func (e *EditMessageCaption[ID]) SetChatID(chatID ID) *EditMessageCaption[ID]

func (*EditMessageCaption[ID]) SetInlineMessageID

func (e *EditMessageCaption[ID]) SetInlineMessageID(inlineMessageID string) *EditMessageCaption[ID]

func (*EditMessageCaption[ID]) SetMessageID

func (e *EditMessageCaption[ID]) SetMessageID(messageID int) *EditMessageCaption[ID]

func (*EditMessageCaption[ID]) SetParseMode

func (e *EditMessageCaption[ID]) SetParseMode(parseMode string) *EditMessageCaption[ID]

func (*EditMessageCaption[ID]) SetReplyMarkup

func (e *EditMessageCaption[ID]) SetReplyMarkup(replyMarkup message_dto.InlineKeyboardMarkup) *EditMessageCaption[ID]

type EditMessageLiveLocation

type EditMessageLiveLocation[ID int64 | string] struct {
	ChatID               ID                               `json:"chat_id,omitempty"`
	MessageID            int                              `json:"message_id,omitempty"`
	InlineMessageID      string                           `json:"inline_message_id,omitempty"`
	Latitude             float64                          `json:"latitude"`
	Longitude            float64                          `json:"longitude"`
	HorizontalAccuracy   float64                          `json:"horizontal_accuracy,omitempty"`
	Heading              int                              `json:"heading,omitempty"`
	ProximityAlertRadius int                              `json:"proximity_alert_radius,omitempty"`
	ReplyMarkup          message_dto.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#editmessagelivelocation

func NewEditMessageLiveLocation

func NewEditMessageLiveLocation[ID int64 | string](latitude, longitude float64) *EditMessageLiveLocation[ID]

func (*EditMessageLiveLocation[ID]) SetChatID

func (e *EditMessageLiveLocation[ID]) SetChatID(chatID ID) *EditMessageLiveLocation[ID]

func (*EditMessageLiveLocation[ID]) SetHeading

func (e *EditMessageLiveLocation[ID]) SetHeading(heading int) *EditMessageLiveLocation[ID]

func (*EditMessageLiveLocation[ID]) SetHorizontalAccuracy

func (e *EditMessageLiveLocation[ID]) SetHorizontalAccuracy(horizontalAccuracy float64) *EditMessageLiveLocation[ID]

func (*EditMessageLiveLocation[ID]) SetInlineMessageID

func (e *EditMessageLiveLocation[ID]) SetInlineMessageID(inlineMessageID string) *EditMessageLiveLocation[ID]

func (*EditMessageLiveLocation[ID]) SetMessageID

func (e *EditMessageLiveLocation[ID]) SetMessageID(messageID int) *EditMessageLiveLocation[ID]

func (*EditMessageLiveLocation[ID]) SetProximityAlertRadius

func (e *EditMessageLiveLocation[ID]) SetProximityAlertRadius(proximityAlertRadius int) *EditMessageLiveLocation[ID]

func (*EditMessageLiveLocation[ID]) SetReplyMarkup

func (e *EditMessageLiveLocation[ID]) SetReplyMarkup(replyMarkup message_dto.InlineKeyboardMarkup) *EditMessageLiveLocation[ID]

type EditMessageMedia

type EditMessageMedia[ID int64 | string] struct {
	ChatID          ID                               `json:"chat_id,omitempty"`
	MessageID       int                              `json:"message_id,omitempty"`
	InlineMessageID string                           `json:"inline_message_id,omitempty"`
	Media           message_dto.InputMedia           `json:"media"`
	ReplyMarkup     message_dto.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#editmessagemedia

func NewEditMessageMedia

func NewEditMessageMedia[ID int64 | string](media message_dto.InputMedia) *EditMessageMedia[ID]

func (*EditMessageMedia[ID]) SetChatID

func (e *EditMessageMedia[ID]) SetChatID(chatID ID) *EditMessageMedia[ID]

func (*EditMessageMedia[ID]) SetInlineMessageID

func (e *EditMessageMedia[ID]) SetInlineMessageID(inlineMessageID string) *EditMessageMedia[ID]

func (*EditMessageMedia[ID]) SetMessageID

func (e *EditMessageMedia[ID]) SetMessageID(messageID int) *EditMessageMedia[ID]

func (*EditMessageMedia[ID]) SetReplyMarkup

func (e *EditMessageMedia[ID]) SetReplyMarkup(replyMarkup message_dto.InlineKeyboardMarkup) *EditMessageMedia[ID]

type EditMessageReplyMarkup

type EditMessageReplyMarkup[ID int64 | string] struct {
	ChatID          ID                               `json:"chat_id,omitempty"`
	MessageID       int                              `json:"message_id,omitempty"`
	InlineMessageID string                           `json:"inline_message_id,omitempty"`
	ReplyMarkup     message_dto.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#editmessagereplymarkup

func NewEditMessageReplyMarkup

func NewEditMessageReplyMarkup[ID int64 | string]() *EditMessageReplyMarkup[ID]

func (*EditMessageReplyMarkup[ID]) SetChatID

func (e *EditMessageReplyMarkup[ID]) SetChatID(chatID ID) *EditMessageReplyMarkup[ID]

func (*EditMessageReplyMarkup[ID]) SetInlineMessageID

func (e *EditMessageReplyMarkup[ID]) SetInlineMessageID(inlineMessageID string) *EditMessageReplyMarkup[ID]

func (*EditMessageReplyMarkup[ID]) SetMessageID

func (e *EditMessageReplyMarkup[ID]) SetMessageID(messageID int) *EditMessageReplyMarkup[ID]

func (*EditMessageReplyMarkup[ID]) SetReplyMarkup

func (e *EditMessageReplyMarkup[ID]) SetReplyMarkup(replyMarkup message_dto.InlineKeyboardMarkup) *EditMessageReplyMarkup[ID]

type EditMessageText

type EditMessageText[ID int64 | string] struct {
	ChatID                ID                                 `json:"chat_id"`
	MessageID             int                                `json:"message_id,omitempty"`
	InlineMessageID       string                             `json:"inline_message_id,omitempty"`
	Text                  string                             `json:"text"`
	ParseMode             string                             `json:"parse_mode,omitempty"`
	Entities              []message_entity_dto.MessageEntity `json:"entities,omitempty"`
	DisableWebPagePreview bool                               `json:"disable_web_page_preview,omitempty"`
	ReplyMarkup           message_dto.IKeyboard              `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#editmessagetext

func NewEditMessageText

func NewEditMessageText[ID int64 | string](chatID ID, text string) *EditMessageText[ID]

func (*EditMessageText[ID]) SetDisableWebPagePreview

func (s *EditMessageText[ID]) SetDisableWebPagePreview(disableWebPagePreview bool) *EditMessageText[ID]

func (*EditMessageText[ID]) SetEntities

func (s *EditMessageText[ID]) SetEntities(entities []message_entity_dto.MessageEntity) *EditMessageText[ID]

func (*EditMessageText[ID]) SetInlineMessageID

func (s *EditMessageText[ID]) SetInlineMessageID(inlineMessageID string) *EditMessageText[ID]

func (*EditMessageText[ID]) SetMessageID

func (s *EditMessageText[ID]) SetMessageID(messageID int) *EditMessageText[ID]

func (*EditMessageText[ID]) SetParseMode

func (s *EditMessageText[ID]) SetParseMode(parseMode string) *EditMessageText[ID]

func (*EditMessageText[ID]) SetReplyMarkup

func (s *EditMessageText[ID]) SetReplyMarkup(replyMarkup message_dto.IKeyboard) *EditMessageText[ID]

type ForwardMessage

type ForwardMessage struct {
	ChatID              int64 `json:"chat_id"`
	FromChatId          int64 `json:"from_chat_id"`
	MessageId           int64 `json:"message_id"`
	MessageThreadId     int   `json:"message_thread_id,omitempty"`
	ProtectContent      bool  `json:"protect_content,omitempty"`
	DisableNotification bool  `json:"disable_notification,omitempty"`
}

https://core.telegram.org/bots/api#forwardmessage

func NewForwardMessage

func NewForwardMessage(chatID, fromChatID, messageID int64) *ForwardMessage

func (*ForwardMessage) SetDisableNotification

func (fm *ForwardMessage) SetDisableNotification(disableNotification bool) *ForwardMessage

func (*ForwardMessage) SetMessageThreadId

func (fm *ForwardMessage) SetMessageThreadId(messageThreadId int) *ForwardMessage

func (*ForwardMessage) SetProtectContent

func (fm *ForwardMessage) SetProtectContent(protectContent bool) *ForwardMessage

type GetChatMember

type GetChatMember[ID int64 | string] struct {
	ChatID ID  `json:"chat_id"`
	UserID int `json:"user_id"`
}

https://core.telegram.org/bots/api#getchatmember

func NewGetChatMember

func NewGetChatMember[ID int64 | string](chatID ID, userID int) *GetChatMember[ID]

type GetChatMenuButton

type GetChatMenuButton struct {
	ChatId uint64 `json:"chat_id,omitempty"`
}

https://core.telegram.org/bots/api#getchatmenubutton

func NewGetChatMenuButton

func NewGetChatMenuButton() *GetChatMenuButton

func (*GetChatMenuButton) SetChatId

func (g *GetChatMenuButton) SetChatId(chatId uint64) *GetChatMenuButton

type GetCustomEmojiStickers

type GetCustomEmojiStickers struct {
	CustomEmojiIDs []string `json:"custom_emoji_ids"`
}

https://core.telegram.org/bots/api#getcustomemojistickers

func NewGetCustomEmojiStickers

func NewGetCustomEmojiStickers(customEmojiIDs []string) *GetCustomEmojiStickers

type GetFile

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

https://core.telegram.org/bots/api#getfile

func NewGetFile

func NewGetFile() *GetFile

func (*GetFile) SetFileId

func (g *GetFile) SetFileId(fileId string) *GetFile

type GetGameHighScores

type GetGameHighScores struct {
	UserID          int64  `json:"user_id"`
	ChatID          int64  `json:"chat_id,omitempty"`
	MessageID       int    `json:"message_id,omitempty"`
	InlineMessageID string `json:"inline_message_id,omitempty"`
}

https://core.telegram.org/bots/api#getgamehighscores

func NewGetGameHighScores

func NewGetGameHighScores(userID int64) *GetGameHighScores

func (*GetGameHighScores) SetChatID

func (gghs *GetGameHighScores) SetChatID(chatID int64) *GetGameHighScores

func (*GetGameHighScores) SetInlineMessageID

func (gghs *GetGameHighScores) SetInlineMessageID(inlineMessageID string) *GetGameHighScores

func (*GetGameHighScores) SetMessageID

func (gghs *GetGameHighScores) SetMessageID(messageID int) *GetGameHighScores

type GetMyDefaultAdministratorRights

type GetMyDefaultAdministratorRights struct {
	ForChannels bool `json:"for_channels,omitempty"`
}

https://core.telegram.org/bots/api#setmycommands

func NewGetMyDefaultAdministratorRights

func NewGetMyDefaultAdministratorRights() *GetMyDefaultAdministratorRights

func (*GetMyDefaultAdministratorRights) SetForChannels

type GetMyDescription

type GetMyDescription struct {
	LanguageCode string `json:"language_code,omitempty"`
}

https://core.telegram.org/bots/api#getmydescription

func NewGetMyDescription

func NewGetMyDescription() *GetMyDescription

func (*GetMyDescription) SetLanguageCode

func (g *GetMyDescription) SetLanguageCode(languageCode string) *GetMyDescription

type GetMyName

type GetMyName struct {
	LanguageCode string `json:"language_code,omitempty"`
}

https://core.telegram.org/bots/api#getmyname

func NewGetMyName

func NewGetMyName() *GetMyName

func (*GetMyName) SetLanguageCode

func (g *GetMyName) SetLanguageCode(languageCode string) *GetMyName

type GetMyShortDescription

type GetMyShortDescription struct {
	LanguageCode string `json:"language_code,omitempty"`
}

https://core.telegram.org/bots/api#getmyshortdescription

func NewGetMyShortDescription

func NewGetMyShortDescription() *GetMyShortDescription

func (*GetMyShortDescription) SetLanguageCode

func (g *GetMyShortDescription) SetLanguageCode(languageCode string) *GetMyShortDescription

type GetStickerSet

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

https://core.telegram.org/bots/api#getstickerset

func NewGetStickerSet

func NewGetStickerSet(name string) *GetStickerSet

type GetUserProfilePhotos

type GetUserProfilePhotos struct {
	UserId uint64 `json:"user_id"`
	Offset uint16 `json:"offset,omitempty"`
	Limit  uint8  `json:"limit,omitempty"`
}

https://core.telegram.org/bots/api#getuserprofilephotos

func NewGetUserProfilePhotos

func NewGetUserProfilePhotos(userId uint64) *GetUserProfilePhotos

func (*GetUserProfilePhotos) SetLimit

func (g *GetUserProfilePhotos) SetLimit(limit uint8) *GetUserProfilePhotos

func (*GetUserProfilePhotos) SetOffset

func (g *GetUserProfilePhotos) SetOffset(offset uint16) *GetUserProfilePhotos

type PinChatMessage

type PinChatMessage[ID int64 | string] struct {
	ChatID              ID   `json:"chat_id"`
	MessageID           int  `json:"message_id"`
	DisableNotification bool `json:"disable_notification,omitempty"`
}

https://core.telegram.org/bots/api#pinchatmessage

func NewPinChatMessage

func NewPinChatMessage[ID int64 | string](chatID ID, messageID int) *PinChatMessage[ID]

func (*PinChatMessage[ID]) SetDisableNotification

func (pcm *PinChatMessage[ID]) SetDisableNotification(disable bool) *PinChatMessage[ID]

type PromoteChatMember

type PromoteChatMember[ID int64 | string] struct {
	ChatID              ID   `json:"chat_id"`
	UserID              int  `json:"user_id"`
	IsAnonymous         bool `json:"is_anonymous,omitempty"`
	CanManageChat       bool `json:"can_manage_chat,omitempty"`
	CanDeleteMessages   bool `json:"can_delete_messages,omitempty"`
	CanManageVideoChats bool `json:"can_manage_video_chats,omitempty"`
	CanRestrictMembers  bool `json:"can_restrict_members,omitempty"`
	CanPromoteMembers   bool `json:"can_promote_members,omitempty"`
	CanChangeInfo       bool `json:"can_change_info,omitempty"`
	CanInviteUsers      bool `json:"can_invite_users,omitempty"`
	CanPostMessages     bool `json:"can_post_messages,omitempty"`
	CanEditMessages     bool `json:"can_edit_messages,omitempty"`
	CanPinMessages      bool `json:"can_pin_messages,omitempty"`
	CanPostStories      bool `json:"can_post_stories,omitempty"`
	CanEditStories      bool `json:"can_edit_stories,omitempty"`
	CanDeleteStories    bool `json:"can_delete_stories,omitempty"`
	CanManageTopics     bool `json:"can_manage_topics,omitempty"`
}

https://core.telegram.org/bots/api#promotechatmember

func NewPromoteChatMember

func NewPromoteChatMember[ID int64 | string](chatID ID, userID int) *PromoteChatMember[ID]

func (*PromoteChatMember[ID]) SetCanChangeInfo

func (pcm *PromoteChatMember[ID]) SetCanChangeInfo(canChangeInfo bool) *PromoteChatMember[ID]

func (*PromoteChatMember[ID]) SetCanDeleteMessages

func (pcm *PromoteChatMember[ID]) SetCanDeleteMessages(canDeleteMessages bool) *PromoteChatMember[ID]

func (*PromoteChatMember[ID]) SetCanDeleteStories

func (pcm *PromoteChatMember[ID]) SetCanDeleteStories(canDeleteStories bool) *PromoteChatMember[ID]

func (*PromoteChatMember[ID]) SetCanEditMessages

func (pcm *PromoteChatMember[ID]) SetCanEditMessages(canEditMessages bool) *PromoteChatMember[ID]

func (*PromoteChatMember[ID]) SetCanEditStories

func (pcm *PromoteChatMember[ID]) SetCanEditStories(canEditStories bool) *PromoteChatMember[ID]

func (*PromoteChatMember[ID]) SetCanInviteUsers

func (pcm *PromoteChatMember[ID]) SetCanInviteUsers(canInviteUsers bool) *PromoteChatMember[ID]

func (*PromoteChatMember[ID]) SetCanManageChat

func (pcm *PromoteChatMember[ID]) SetCanManageChat(canManageChat bool) *PromoteChatMember[ID]

func (*PromoteChatMember[ID]) SetCanManageTopics

func (pcm *PromoteChatMember[ID]) SetCanManageTopics(canManageTopics bool) *PromoteChatMember[ID]

func (*PromoteChatMember[ID]) SetCanManageVideoChats

func (pcm *PromoteChatMember[ID]) SetCanManageVideoChats(canManageVideoChats bool) *PromoteChatMember[ID]

func (*PromoteChatMember[ID]) SetCanPinMessages

func (pcm *PromoteChatMember[ID]) SetCanPinMessages(canPinMessages bool) *PromoteChatMember[ID]

func (*PromoteChatMember[ID]) SetCanPostMessages

func (pcm *PromoteChatMember[ID]) SetCanPostMessages(canPostMessages bool) *PromoteChatMember[ID]

func (*PromoteChatMember[ID]) SetCanPostStories

func (pcm *PromoteChatMember[ID]) SetCanPostStories(canPostStories bool) *PromoteChatMember[ID]

func (*PromoteChatMember[ID]) SetCanPromoteMembers

func (pcm *PromoteChatMember[ID]) SetCanPromoteMembers(canPromoteMembers bool) *PromoteChatMember[ID]

func (*PromoteChatMember[ID]) SetCanRestrictMembers

func (pcm *PromoteChatMember[ID]) SetCanRestrictMembers(canRestrictMembers bool) *PromoteChatMember[ID]

func (*PromoteChatMember[ID]) SetIsAnonymous

func (pcm *PromoteChatMember[ID]) SetIsAnonymous(isAnonymous bool) *PromoteChatMember[ID]

type ReopenForumTopic

type ReopenForumTopic[ID int64 | string] struct {
	ChatID          ID  `json:"chat_id"`
	MessageThreadID int `json:"message_thread_id"`
}

https://core.telegram.org/bots/api#reopenforumtopic

func NewReopenForumTopic

func NewReopenForumTopic[ID int64 | string](chatID ID, messageThreadID int) *ReopenForumTopic[ID]

type RestrictChatMember

type RestrictChatMember[ID int64 | string] struct {
	ChatID                        ID                          `json:"chat_id"`
	UserID                        int                         `json:"user_id"`
	Permissions                   message_dto.ChatPermissions `json:"permissions"`
	UseIndependentChatPermissions bool                        `json:"use_independent_chat_permissions,omitempty"`
	UntilDate                     int                         `json:"until_date,omitempty"`
}

https://core.telegram.org/bots/api#restrictchatmember

func NewRestrictChatMember

func NewRestrictChatMember[ID int64 | string](chatID ID, userID int, permissions message_dto.ChatPermissions) *RestrictChatMember[ID]

func (*RestrictChatMember[ID]) SetUntilDate

func (rcm *RestrictChatMember[ID]) SetUntilDate(untilDate int) *RestrictChatMember[ID]

func (*RestrictChatMember[ID]) SetUseIndependentChatPermissions

func (rcm *RestrictChatMember[ID]) SetUseIndependentChatPermissions(useIndependent bool) *RestrictChatMember[ID]
type RevokeChatInviteLink[ID int64 | string] struct {
	ChatID     ID     `json:"chat_id"`
	InviteLink string `json:"invite_link"`
}

https://core.telegram.org/bots/api#revokechatinvitelink

func NewRevokeChatInviteLink[ID int64 | string](chatID ID, inviteLink string) *RevokeChatInviteLink[ID]

type SendAnimation

type SendAnimation[ID string | int64] struct {
	ChatID                   ID                                 `json:"chat_id"`
	Animation                string                             `json:"animation"`
	MessageThreadId          int                                `json:"message_thread_id,omitempty"`
	Duration                 int                                `json:"duration,omitempty"`
	Width                    int                                `json:"width,omitempty"`
	Height                   int                                `json:"height,omitempty"`
	Thumbnail                string                             `json:"thumbnail,omitempty"`
	Caption                  string                             `json:"caption,omitempty"`
	ParseMode                string                             `json:"parse_mode,omitempty"`
	CaptionEntities          []message_entity_dto.MessageEntity `json:"caption_entities,omitempty"`
	HasSpoiler               bool                               `json:"has_spoiler,omitempty"`
	DisableNotification      bool                               `json:"disable_notification,omitempty"`
	ProtectContent           bool                               `json:"protect_content,omitempty"`
	ReplyToMessageId         uint64                             `json:"reply_to_message_id,omitempty"`
	AllowSendingWithoutReply bool                               `json:"allow_sending_without_reply,omitempty"`
	ReplyMarkup              message_dto.IKeyboard              `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#sendanimation

func NewSendAnimation

func NewSendAnimation[ID string | int64](chatID ID, animation string) *SendAnimation[ID]

func (*SendAnimation[ID]) SetAllowSendingWithoutReply

func (sa *SendAnimation[ID]) SetAllowSendingWithoutReply(allowSendingWithoutReply bool) *SendAnimation[ID]

func (*SendAnimation[ID]) SetCaption

func (sa *SendAnimation[ID]) SetCaption(caption string) *SendAnimation[ID]

func (*SendAnimation[ID]) SetCaptionEntities

func (sa *SendAnimation[ID]) SetCaptionEntities(captionEntities []message_entity_dto.MessageEntity) *SendAnimation[ID]

func (*SendAnimation[ID]) SetDisableNotification

func (sa *SendAnimation[ID]) SetDisableNotification(disableNotification bool) *SendAnimation[ID]

func (*SendAnimation[ID]) SetDuration

func (sa *SendAnimation[ID]) SetDuration(duration int) *SendAnimation[ID]

func (*SendAnimation[ID]) SetHasSpoiler

func (sa *SendAnimation[ID]) SetHasSpoiler(hasSpoiler bool) *SendAnimation[ID]

func (*SendAnimation[ID]) SetHeight

func (sa *SendAnimation[ID]) SetHeight(height int) *SendAnimation[ID]

func (*SendAnimation[ID]) SetMessageThreadId

func (sa *SendAnimation[ID]) SetMessageThreadId(messageThreadId int) *SendAnimation[ID]

func (*SendAnimation[ID]) SetParseMode

func (sa *SendAnimation[ID]) SetParseMode(parseMode string) *SendAnimation[ID]

func (*SendAnimation[ID]) SetProtectContent

func (sa *SendAnimation[ID]) SetProtectContent(protectContent bool) *SendAnimation[ID]

func (*SendAnimation[ID]) SetReplyMarkup

func (sa *SendAnimation[ID]) SetReplyMarkup(replyMarkup message_dto.IKeyboard) *SendAnimation[ID]

func (*SendAnimation[ID]) SetReplyToMessageId

func (sa *SendAnimation[ID]) SetReplyToMessageId(replyToMessageId uint64) *SendAnimation[ID]

func (*SendAnimation[ID]) SetThumbnail

func (sa *SendAnimation[ID]) SetThumbnail(thumbnail string) *SendAnimation[ID]

func (*SendAnimation[ID]) SetWidth

func (sa *SendAnimation[ID]) SetWidth(width int) *SendAnimation[ID]

type SendAudio

type SendAudio[ID string | int64] struct {
	ChatID                   ID                                 `json:"chat_id"`
	Audio                    string                             `json:"audio"`
	MessageThreadId          int                                `json:"message_thread_id,omitempty"`
	Caption                  string                             `json:"caption,omitempty"`
	ParseMode                string                             `json:"parse_mode,omitempty"`
	CaptionEntities          []message_entity_dto.MessageEntity `json:"caption_entities,omitempty"`
	Duration                 int                                `json:"duration,omitempty"`
	Performer                string                             `json:"performer,omitempty"`
	Title                    string                             `json:"title,omitempty"`
	Thumbnail                string                             `json:"thumbnail,omitempty"`
	DisableNotification      bool                               `json:"disable_notification,omitempty"`
	ProtectContent           bool                               `json:"protect_content,omitempty"`
	ReplyToMessageId         uint64                             `json:"reply_to_message_id,omitempty"`
	AllowSendingWithoutReply bool                               `json:"allow_sending_without_reply,omitempty"`
	ReplyMarkup              message_dto.IKeyboard              `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#sendaudio

func NewSendAudio

func NewSendAudio[ID string | int64](chatID ID, audio string) *SendAudio[ID]

func (*SendAudio[ID]) SetAllowSendingWithoutReply

func (sa *SendAudio[ID]) SetAllowSendingWithoutReply(allowSendingWithoutReply bool) *SendAudio[ID]

func (*SendAudio[ID]) SetCaption

func (sa *SendAudio[ID]) SetCaption(caption string) *SendAudio[ID]

func (*SendAudio[ID]) SetCaptionEntities

func (sa *SendAudio[ID]) SetCaptionEntities(captionEntities []message_entity_dto.MessageEntity) *SendAudio[ID]

func (*SendAudio[ID]) SetDisableNotification

func (sa *SendAudio[ID]) SetDisableNotification(disableNotification bool) *SendAudio[ID]

func (*SendAudio[ID]) SetDuration

func (sa *SendAudio[ID]) SetDuration(duration int) *SendAudio[ID]

func (*SendAudio[ID]) SetMessageThreadId

func (sa *SendAudio[ID]) SetMessageThreadId(messageThreadId int) *SendAudio[ID]

func (*SendAudio[ID]) SetParseMode

func (sa *SendAudio[ID]) SetParseMode(parseMode string) *SendAudio[ID]

func (*SendAudio[ID]) SetPerformer

func (sa *SendAudio[ID]) SetPerformer(performer string) *SendAudio[ID]

func (*SendAudio[ID]) SetProtectContent

func (sa *SendAudio[ID]) SetProtectContent(protectContent bool) *SendAudio[ID]

func (*SendAudio[ID]) SetReplyMarkup

func (sa *SendAudio[ID]) SetReplyMarkup(replyMarkup message_dto.IKeyboard) *SendAudio[ID]

func (*SendAudio[ID]) SetReplyToMessageId

func (sa *SendAudio[ID]) SetReplyToMessageId(replyToMessageId uint64) *SendAudio[ID]

func (*SendAudio[ID]) SetThumbnail

func (sa *SendAudio[ID]) SetThumbnail(thumbnail string) *SendAudio[ID]

func (*SendAudio[ID]) SetTitle

func (sa *SendAudio[ID]) SetTitle(title string) *SendAudio[ID]

type SendChatAction

type SendChatAction[ID string | int64] struct {
	ChatID          ID     `json:"chat_id"`
	MessageThreadId int    `json:"message_thread_id,omitempty"`
	Action          string `json:"caption"`
}

https://core.telegram.org/bots/api#sendchataction

func NewSendChatAction

func NewSendChatAction[ID string | int64](chatID ID, action string) *SendChatAction[ID]

func (*SendChatAction[ID]) SetAction

func (s *SendChatAction[ID]) SetAction(action string) *SendChatAction[ID]

func (*SendChatAction[ID]) SetMessageThreadId

func (s *SendChatAction[ID]) SetMessageThreadId(messageThreadId int) *SendChatAction[ID]

type SendDice

type SendDice[ID string | int64] struct {
	ChatID                   ID                    `json:"chat_id"`
	Emoji                    string                `json:"voice,omitempty"`
	MessageThreadId          int                   `json:"message_thread_id,omitempty"`
	DisableNotification      bool                  `json:"disable_notification,omitempty"`
	ProtectContent           bool                  `json:"protect_content,omitempty"`
	ReplyToMessageId         uint64                `json:"reply_to_message_id,omitempty"`
	AllowSendingWithoutReply bool                  `json:"allow_sending_without_reply,omitempty"`
	ReplyMarkup              message_dto.IKeyboard `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#senddice

func NewSendDice

func NewSendDice[ID string | int64](chatID ID) *SendDice[ID]

func (*SendDice[ID]) SetAllowSendingWithoutReply

func (s *SendDice[ID]) SetAllowSendingWithoutReply(allowSendingWithoutReply bool) *SendDice[ID]

func (*SendDice[ID]) SetDisableNotification

func (s *SendDice[ID]) SetDisableNotification(disableNotification bool) *SendDice[ID]

func (*SendDice[ID]) SetEmoji

func (s *SendDice[ID]) SetEmoji(emoji string) *SendDice[ID]

func (*SendDice[ID]) SetMessageThreadId

func (s *SendDice[ID]) SetMessageThreadId(messageThreadId int) *SendDice[ID]

func (*SendDice[ID]) SetProtectContent

func (s *SendDice[ID]) SetProtectContent(protectContent bool) *SendDice[ID]

func (*SendDice[ID]) SetReplyMarkup

func (s *SendDice[ID]) SetReplyMarkup(replyMarkup message_dto.IKeyboard) *SendDice[ID]

func (*SendDice[ID]) SetReplyToMessageId

func (s *SendDice[ID]) SetReplyToMessageId(replyToMessageId uint64) *SendDice[ID]

type SendDocument

type SendDocument[ID string | int64] struct {
	ChatID                      ID                                 `json:"chat_id"`
	Document                    string                             `json:"document"`
	Thumbnail                   string                             `json:"thumbnail,omitempty"`
	MessageThreadId             int                                `json:"message_thread_id,omitempty"`
	Caption                     string                             `json:"caption,omitempty"`
	ParseMode                   string                             `json:"parse_mode,omitempty"`
	CaptionEntities             []message_entity_dto.MessageEntity `json:"caption_entities,omitempty"`
	DisableContentTypeDetection bool                               `json:"disable_content_type_detection,omitempty"`
	DisableNotification         bool                               `json:"disable_notification,omitempty"`
	ProtectContent              bool                               `json:"protect_content,omitempty"`
	ReplyToMessageId            uint64                             `json:"reply_to_message_id,omitempty"`
	AllowSendingWithoutReply    bool                               `json:"allow_sending_without_reply,omitempty"`
	ReplyMarkup                 message_dto.IKeyboard              `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#senddocument

func NewSendDocument

func NewSendDocument[ID string | int64](chatID ID, document string) *SendDocument[ID]

func (*SendDocument[ID]) SetAllowSendingWithoutReply

func (sd *SendDocument[ID]) SetAllowSendingWithoutReply(allowSendingWithoutReply bool) *SendDocument[ID]

func (*SendDocument[ID]) SetCaption

func (sd *SendDocument[ID]) SetCaption(caption string) *SendDocument[ID]

func (*SendDocument[ID]) SetCaptionEntities

func (sd *SendDocument[ID]) SetCaptionEntities(captionEntities []message_entity_dto.MessageEntity) *SendDocument[ID]

func (*SendDocument[ID]) SetDisableContentTypeDetection

func (sd *SendDocument[ID]) SetDisableContentTypeDetection(disableContentTypeDetection bool) *SendDocument[ID]

func (*SendDocument[ID]) SetDisableNotification

func (sd *SendDocument[ID]) SetDisableNotification(disableNotification bool) *SendDocument[ID]

func (*SendDocument[ID]) SetMessageThreadId

func (sd *SendDocument[ID]) SetMessageThreadId(messageThreadId int) *SendDocument[ID]

func (*SendDocument[ID]) SetParseMode

func (sd *SendDocument[ID]) SetParseMode(parseMode string) *SendDocument[ID]

func (*SendDocument[ID]) SetProtectContent

func (sd *SendDocument[ID]) SetProtectContent(protectContent bool) *SendDocument[ID]

func (*SendDocument[ID]) SetReplyMarkup

func (sd *SendDocument[ID]) SetReplyMarkup(replyMarkup message_dto.IKeyboard) *SendDocument[ID]

func (*SendDocument[ID]) SetReplyToMessageId

func (sd *SendDocument[ID]) SetReplyToMessageId(replyToMessageId uint64) *SendDocument[ID]

func (*SendDocument[ID]) SetThumbnail

func (sd *SendDocument[ID]) SetThumbnail(thumbnail string) *SendDocument[ID]

type SendGame

type SendGame struct {
	ChatID                   int64                             `json:"chat_id"`
	GameShortName            string                            `json:"game_short_name"`
	MessageThreadId          int                               `json:"message_thread_id,omitempty"`
	DisableNotification      bool                              `json:"disable_notification,omitempty"`
	ProtectContent           bool                              `json:"protect_content,omitempty"`
	ReplyToMessageId         uint64                            `json:"reply_to_message_id,omitempty"`
	AllowSendingWithoutReply bool                              `json:"allow_sending_without_reply,omitempty"`
	ReplyMarkup              *message_dto.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#sendgame

func NewSendGame

func NewSendGame(chatID int64, gameShortName string) *SendGame

func (*SendGame) SetAllowSendingWithoutReply

func (sg *SendGame) SetAllowSendingWithoutReply(allow bool) *SendGame

func (*SendGame) SetDisableNotification

func (sg *SendGame) SetDisableNotification(disable bool) *SendGame

func (*SendGame) SetMessageThreadId

func (sg *SendGame) SetMessageThreadId(messageThreadId int) *SendGame

func (*SendGame) SetProtectContent

func (sg *SendGame) SetProtectContent(protect bool) *SendGame

func (*SendGame) SetReplyMarkup

func (sg *SendGame) SetReplyMarkup(markup *message_dto.InlineKeyboardMarkup) *SendGame

func (*SendGame) SetReplyToMessageId

func (sg *SendGame) SetReplyToMessageId(messageID uint64) *SendGame

type SendInvoice

type SendInvoice struct {
	ChatID                    int64                             `json:"chat_id"`
	Title                     string                            `json:"title"`
	Description               string                            `json:"description"`
	Payload                   string                            `json:"payload"`
	ProviderToken             string                            `json:"provider_token"`
	Currency                  string                            `json:"currency"`
	Prices                    []payment_dto.LabeledPrice        `json:"prices"`
	MaxTipAmount              int                               `json:"max_tip_amount,omitempty"`
	SuggestedTipAmounts       []int                             `json:"suggested_tip_amounts,omitempty"`
	StartParameter            string                            `json:"start_parameter,omitempty"`
	ProviderData              string                            `json:"provider_data,omitempty"`
	PhotoURL                  string                            `json:"photo_url,omitempty"`
	PhotoSize                 int                               `json:"photo_size,omitempty"`
	PhotoWidth                int                               `json:"photo_width,omitempty"`
	PhotoHeight               int                               `json:"photo_height,omitempty"`
	NeedName                  bool                              `json:"need_name,omitempty"`
	NeedPhoneNumber           bool                              `json:"need_phone_number,omitempty"`
	NeedEmail                 bool                              `json:"need_email,omitempty"`
	NeedShippingAddress       bool                              `json:"need_shipping_address,omitempty"`
	SendPhoneNumberToProvider bool                              `json:"send_phone_number_to_provider,omitempty"`
	SendEmailToProvider       bool                              `json:"send_email_to_provider,omitempty"`
	IsFlexible                bool                              `json:"is_flexible,omitempty"`
	DisableNotification       bool                              `json:"disable_notification,omitempty"`
	ProtectContent            bool                              `json:"protect_content,omitempty"`
	ReplyToMessageID          int                               `json:"reply_to_message_id,omitempty"`
	AllowSendingWithoutReply  bool                              `json:"allow_sending_without_reply,omitempty"`
	ReplyMarkup               *message_dto.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#sendinvoice

func NewSendInvoice

func NewSendInvoice(chatID int64, title, description, payload, providerToken, currency string, prices []payment_dto.LabeledPrice) *SendInvoice

func (*SendInvoice) SetAllowSendingWithoutReply

func (s *SendInvoice) SetAllowSendingWithoutReply(allowSendingWithoutReply bool)

func (*SendInvoice) SetDisableNotification

func (s *SendInvoice) SetDisableNotification(disableNotification bool)

func (*SendInvoice) SetIsFlexible

func (s *SendInvoice) SetIsFlexible(isFlexible bool)

func (*SendInvoice) SetMaxTipAmount

func (s *SendInvoice) SetMaxTipAmount(maxTipAmount int)

func (*SendInvoice) SetNeedEmail

func (s *SendInvoice) SetNeedEmail(needEmail bool)

func (*SendInvoice) SetNeedName

func (s *SendInvoice) SetNeedName(needName bool)

func (*SendInvoice) SetNeedPhoneNumber

func (s *SendInvoice) SetNeedPhoneNumber(needPhoneNumber bool)

func (*SendInvoice) SetNeedShippingAddress

func (s *SendInvoice) SetNeedShippingAddress(needShippingAddress bool)

func (*SendInvoice) SetPhoto

func (s *SendInvoice) SetPhoto(photoURL string, photoSize int, photoWidth int, photoHeight int)

func (*SendInvoice) SetProtectContent

func (s *SendInvoice) SetProtectContent(protectContent bool)

func (*SendInvoice) SetProviderData

func (s *SendInvoice) SetProviderData(providerData string)

func (*SendInvoice) SetReplyMarkup

func (s *SendInvoice) SetReplyMarkup(replyMarkup *message_dto.InlineKeyboardMarkup)

func (*SendInvoice) SetReplyToMessageID

func (s *SendInvoice) SetReplyToMessageID(replyToMessageID int)

func (*SendInvoice) SetSendEmailToProvider

func (s *SendInvoice) SetSendEmailToProvider(sendEmailToProvider bool)

func (*SendInvoice) SetSendPhoneNumberToProvider

func (s *SendInvoice) SetSendPhoneNumberToProvider(sendPhoneNumberToProvider bool)

func (*SendInvoice) SetStartParameter

func (s *SendInvoice) SetStartParameter(startParameter string)

func (*SendInvoice) SetSuggestedTipAmounts

func (s *SendInvoice) SetSuggestedTipAmounts(suggestedTipAmounts []int)

type SendLocation

type SendLocation[ID string | int64] struct {
	ChatID                   ID                    `json:"chat_id"`
	Latitude                 float64               `json:"latitude"`
	Longitude                float64               `json:"longitude"`
	MessageThreadId          int                   `json:"message_thread_id,omitempty"`
	HorizontalAccuracy       float32               `json:"horizontal_accuracy,omitempty"`
	LivePeriod               int                   `json:"live_period,omitempty"`
	Heading                  uint16                `json:"heading,omitempty"`
	ProximityAlertRadius     uint                  `json:"proximity_alert_radius,omitempty"`
	DisableNotification      bool                  `json:"disable_notification,omitempty"`
	ProtectContent           bool                  `json:"protect_content,omitempty"`
	ReplyToMessageId         uint64                `json:"reply_to_message_id,omitempty"`
	AllowSendingWithoutReply bool                  `json:"allow_sending_without_reply,omitempty"`
	ReplyMarkup              message_dto.IKeyboard `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#sendlocation

func NewSendLocation

func NewSendLocation[ID string | int64](chatID ID, latitude float64, longitude float64) *SendLocation[ID]

func (*SendLocation[ID]) SetAllowSendingWithoutReply

func (s *SendLocation[ID]) SetAllowSendingWithoutReply(allowSendingWithoutReply bool) *SendLocation[ID]

func (*SendLocation[ID]) SetDisableNotification

func (s *SendLocation[ID]) SetDisableNotification(disableNotification bool) *SendLocation[ID]

func (*SendLocation[ID]) SetHeading

func (s *SendLocation[ID]) SetHeading(heading uint16) *SendLocation[ID]

func (*SendLocation[ID]) SetHorizontalAccuracy

func (s *SendLocation[ID]) SetHorizontalAccuracy(horizontalAccuracy float32) *SendLocation[ID]

func (*SendLocation[ID]) SetLivePeriod

func (s *SendLocation[ID]) SetLivePeriod(livePeriod int) *SendLocation[ID]

func (*SendLocation[ID]) SetMessageThreadId

func (s *SendLocation[ID]) SetMessageThreadId(messageThreadId int) *SendLocation[ID]

func (*SendLocation[ID]) SetProtectContent

func (s *SendLocation[ID]) SetProtectContent(protectContent bool) *SendLocation[ID]

func (*SendLocation[ID]) SetProximityAlertRadius

func (s *SendLocation[ID]) SetProximityAlertRadius(proximityAlertRadius uint) *SendLocation[ID]

func (*SendLocation[ID]) SetReplyToMessageId

func (s *SendLocation[ID]) SetReplyToMessageId(replyToMessageId uint64) *SendLocation[ID]

type SendMediaGroup

type SendMediaGroup[ID string | int64] struct {
	ChatID                   ID                       `json:"chat_id"`
	Media                    []message_dto.InputMedia `json:"media"`
	MessageThreadId          int                      `json:"message_thread_id,omitempty"`
	DisableNotification      bool                     `json:"disable_notification,omitempty"`
	ProtectContent           bool                     `json:"protect_content,omitempty"`
	ReplyToMessageId         uint64                   `json:"reply_to_message_id,omitempty"`
	AllowSendingWithoutReply bool                     `json:"allow_sending_without_reply,omitempty"`
}

https://core.telegram.org/bots/api#sendmediagroup

func NewSendMediaGroup

func NewSendMediaGroup[ID string | int64](chatID ID, media []message_dto.InputMedia) *SendMediaGroup[ID]

func (*SendMediaGroup[ID]) SetAllowSendingWithoutReply

func (s *SendMediaGroup[ID]) SetAllowSendingWithoutReply(allowSendingWithoutReply bool) *SendMediaGroup[ID]

func (*SendMediaGroup[ID]) SetDisableNotification

func (s *SendMediaGroup[ID]) SetDisableNotification(disableNotification bool) *SendMediaGroup[ID]

func (*SendMediaGroup[ID]) SetMessageThreadId

func (s *SendMediaGroup[ID]) SetMessageThreadId(messageThreadId int) *SendMediaGroup[ID]

func (*SendMediaGroup[ID]) SetProtectContent

func (s *SendMediaGroup[ID]) SetProtectContent(protectContent bool) *SendMediaGroup[ID]

func (*SendMediaGroup[ID]) SetReplyToMessageId

func (s *SendMediaGroup[ID]) SetReplyToMessageId(replyToMessageId uint64) *SendMediaGroup[ID]

type SendMessage

type SendMessage[ID int64 | string] struct {
	ChatID                   ID                                 `json:"chat_id"`
	Text                     string                             `json:"text"`
	MessageThreadId          int                                `json:"message_thread_id,omitempty"`
	ParseMode                string                             `json:"parse_mode,omitempty"`
	Entities                 []message_entity_dto.MessageEntity `json:"entities,omitempty"`
	DisableWebPagePreview    bool                               `json:"disable_web_page_preview,omitempty"`
	DisableNotification      bool                               `json:"disable_notification,omitempty"`
	ProtectContent           bool                               `json:"protect_content,omitempty"`
	ReplyToMessageId         uint64                             `json:"reply_to_message_id,omitempty"`
	AllowSendingWithoutReply bool                               `json:"allow_sending_without_reply,omitempty"`
	ReplyMarkup              message_dto.IKeyboard              `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#sendmessage

func NewSendMessage

func NewSendMessage[ID int64 | string](chatID ID, text string) *SendMessage[ID]

func (*SendMessage[ID]) SetAllowSendingWithoutReply

func (sm *SendMessage[ID]) SetAllowSendingWithoutReply(allowSendingWithoutReply bool) *SendMessage[ID]

func (*SendMessage[ID]) SetDisableNotification

func (sm *SendMessage[ID]) SetDisableNotification(disableNotification bool) *SendMessage[ID]

func (*SendMessage[ID]) SetDisableWebPagePreview

func (sm *SendMessage[ID]) SetDisableWebPagePreview(disableWebPagePreview bool) *SendMessage[ID]

func (*SendMessage[ID]) SetEntities

func (sm *SendMessage[ID]) SetEntities(entities []message_entity_dto.MessageEntity) *SendMessage[ID]

func (*SendMessage[ID]) SetMessageThreadId

func (sm *SendMessage[ID]) SetMessageThreadId(messageThreadId int) *SendMessage[ID]

func (*SendMessage[ID]) SetParseMode

func (sm *SendMessage[ID]) SetParseMode(parseMode string) *SendMessage[ID]

func (*SendMessage[ID]) SetProtectContent

func (sm *SendMessage[ID]) SetProtectContent(protectContent bool) *SendMessage[ID]

func (*SendMessage[ID]) SetReplyMarkup

func (sm *SendMessage[ID]) SetReplyMarkup(replyMarkup message_dto.IKeyboard) *SendMessage[ID]

func (*SendMessage[ID]) SetReplyToMessageId

func (sm *SendMessage[ID]) SetReplyToMessageId(replyToMessageId uint64) *SendMessage[ID]

type SendPhoto

type SendPhoto[ID string | int64] struct {
	ChatID                   ID                                 `json:"chat_id"`
	Photo                    string                             `json:"photo"`
	MessageThreadId          int                                `json:"message_thread_id,omitempty"`
	Caption                  string                             `json:"caption,omitempty"`
	ParseMode                string                             `json:"parse_mode,omitempty"`
	CaptionEntities          []message_entity_dto.MessageEntity `json:"caption_entities,omitempty"`
	HasSpoiler               bool                               `json:"has_spoiler,omitempty"`
	DisableNotification      bool                               `json:"disable_notification,omitempty"`
	ProtectContent           bool                               `json:"protect_content,omitempty"`
	ReplyToMessageId         uint64                             `json:"reply_to_message_id,omitempty"`
	AllowSendingWithoutReply bool                               `json:"allow_sending_without_reply,omitempty"`
	ReplyMarkup              message_dto.IKeyboard              `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#sendphoto

func NewSendPhoto

func NewSendPhoto[ID string | int64](chatID ID, photo string) *SendPhoto[ID]

func (*SendPhoto[ID]) SetAllowSendingWithoutReply

func (sp *SendPhoto[ID]) SetAllowSendingWithoutReply(allowSendingWithoutReply bool) *SendPhoto[ID]

func (*SendPhoto[ID]) SetCaption

func (sp *SendPhoto[ID]) SetCaption(caption string) *SendPhoto[ID]

func (*SendPhoto[ID]) SetCaptionEntities

func (sp *SendPhoto[ID]) SetCaptionEntities(captionEntities []message_entity_dto.MessageEntity) *SendPhoto[ID]

func (*SendPhoto[ID]) SetDisableNotification

func (sp *SendPhoto[ID]) SetDisableNotification(disableNotification bool) *SendPhoto[ID]

func (*SendPhoto[ID]) SetHasSpoiler

func (sp *SendPhoto[ID]) SetHasSpoiler(hasSpoiler bool) *SendPhoto[ID]

func (*SendPhoto[ID]) SetMessageThreadId

func (sp *SendPhoto[ID]) SetMessageThreadId(messageThreadId int) *SendPhoto[ID]

func (*SendPhoto[ID]) SetParseMode

func (sp *SendPhoto[ID]) SetParseMode(parseMode string) *SendPhoto[ID]

func (*SendPhoto[ID]) SetProtectContent

func (sp *SendPhoto[ID]) SetProtectContent(protectContent bool) *SendPhoto[ID]

func (*SendPhoto[ID]) SetReplyMarkup

func (sp *SendPhoto[ID]) SetReplyMarkup(replyMarkup message_dto.IKeyboard) *SendPhoto[ID]

func (*SendPhoto[ID]) SetReplyToMessageId

func (sp *SendPhoto[ID]) SetReplyToMessageId(replyToMessageId uint64) *SendPhoto[ID]

type SendSticker

type SendSticker[ID int64 | string] struct {
	ChatID                   ID                    `json:"chat_id"`
	MessageThreadId          int                   `json:"message_thread_id,omitempty"`
	Sticker                  string                `json:"sticker"`
	Emoji                    string                `json:"emoji,omitempty"`
	DisableNotification      bool                  `json:"disable_notification,omitempty"`
	ProtectContent           bool                  `json:"protect_content,omitempty"`
	ReplyToMessageId         uint64                `json:"reply_to_message_id,omitempty"`
	AllowSendingWithoutReply bool                  `json:"allow_sending_without_reply,omitempty"`
	ReplyMarkup              message_dto.IKeyboard `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#sendsticker

func NewSendSticker

func NewSendSticker[ID int64 | string](chatID ID, sticker string) *SendSticker[ID]

func (*SendSticker[ID]) SetAllowSendingWithoutReply

func (ss *SendSticker[ID]) SetAllowSendingWithoutReply(allow bool) *SendSticker[ID]

func (*SendSticker[ID]) SetDisableNotification

func (ss *SendSticker[ID]) SetDisableNotification(disable bool) *SendSticker[ID]

func (*SendSticker[ID]) SetEmoji

func (ss *SendSticker[ID]) SetEmoji(emoji string) *SendSticker[ID]

func (*SendSticker[ID]) SetMessageThreadId

func (ss *SendSticker[ID]) SetMessageThreadId(messageThreadId int) *SendSticker[ID]

func (*SendSticker[ID]) SetProtectContent

func (ss *SendSticker[ID]) SetProtectContent(protect bool) *SendSticker[ID]

func (*SendSticker[ID]) SetReplyMarkup

func (ss *SendSticker[ID]) SetReplyMarkup(replyMarkup message_dto.IKeyboard) *SendSticker[ID]

func (*SendSticker[ID]) SetReplyToMessage

func (ss *SendSticker[ID]) SetReplyToMessage(replyToMessageID uint64) *SendSticker[ID]

type SendVideo

type SendVideo[ID string | int64] struct {
	ChatID                   ID                                 `json:"chat_id"`
	Video                    string                             `json:"video"`
	MessageThreadId          int                                `json:"message_thread_id,omitempty"`
	Duration                 int                                `json:"duration,omitempty"`
	Width                    int                                `json:"width,omitempty"`
	Height                   int                                `json:"height,omitempty"`
	Thumbnail                string                             `json:"thumbnail,omitempty"`
	Caption                  string                             `json:"caption,omitempty"`
	ParseMode                string                             `json:"parse_mode,omitempty"`
	CaptionEntities          []message_entity_dto.MessageEntity `json:"caption_entities,omitempty"`
	HasSpoiler               bool                               `json:"has_spoiler,omitempty"`
	SupportsStreaming        bool                               `json:"supports_streaming,omitempty"`
	DisableNotification      bool                               `json:"disable_notification,omitempty"`
	ProtectContent           bool                               `json:"protect_content,omitempty"`
	ReplyToMessageId         uint64                             `json:"reply_to_message_id,omitempty"`
	AllowSendingWithoutReply bool                               `json:"allow_sending_without_reply,omitempty"`
	ReplyMarkup              message_dto.IKeyboard              `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#sendvideo

func NewSendVideo

func NewSendVideo[ID string | int64](chatID ID, video string) *SendVideo[ID]

func (*SendVideo[ID]) SetAllowSendingWithoutReply

func (sv *SendVideo[ID]) SetAllowSendingWithoutReply(allowSendingWithoutReply bool) *SendVideo[ID]

func (*SendVideo[ID]) SetCaption

func (sv *SendVideo[ID]) SetCaption(caption string) *SendVideo[ID]

func (*SendVideo[ID]) SetCaptionEntities

func (sv *SendVideo[ID]) SetCaptionEntities(captionEntities []message_entity_dto.MessageEntity) *SendVideo[ID]

func (*SendVideo[ID]) SetDisableNotification

func (sv *SendVideo[ID]) SetDisableNotification(disableNotification bool) *SendVideo[ID]

func (*SendVideo[ID]) SetDuration

func (sv *SendVideo[ID]) SetDuration(duration int) *SendVideo[ID]

func (*SendVideo[ID]) SetHasSpoiler

func (sv *SendVideo[ID]) SetHasSpoiler(hasSpoiler bool) *SendVideo[ID]

func (*SendVideo[ID]) SetHeight

func (sv *SendVideo[ID]) SetHeight(height int) *SendVideo[ID]

func (*SendVideo[ID]) SetMessageThreadId

func (sv *SendVideo[ID]) SetMessageThreadId(messageThreadId int) *SendVideo[ID]

func (*SendVideo[ID]) SetParseMode

func (sv *SendVideo[ID]) SetParseMode(parseMode string) *SendVideo[ID]

func (*SendVideo[ID]) SetProtectContent

func (sv *SendVideo[ID]) SetProtectContent(protectContent bool) *SendVideo[ID]

func (*SendVideo[ID]) SetReplyMarkup

func (sv *SendVideo[ID]) SetReplyMarkup(replyMarkup message_dto.IKeyboard) *SendVideo[ID]

func (*SendVideo[ID]) SetReplyToMessageId

func (sv *SendVideo[ID]) SetReplyToMessageId(replyToMessageId uint64) *SendVideo[ID]

func (*SendVideo[ID]) SetSupportsStreaming

func (sv *SendVideo[ID]) SetSupportsStreaming(supportsStreaming bool) *SendVideo[ID]

func (*SendVideo[ID]) SetThumbnail

func (sv *SendVideo[ID]) SetThumbnail(thumbnail string) *SendVideo[ID]

func (*SendVideo[ID]) SetWidth

func (sv *SendVideo[ID]) SetWidth(width int) *SendVideo[ID]

type SendVideoNote

type SendVideoNote[ID string | int64] struct {
	ChatID                   ID                    `json:"chat_id"`
	VideoNote                string                `json:"video_note"`
	MessageThreadId          int                   `json:"message_thread_id,omitempty"`
	Duration                 int                   `json:"duration,omitempty"`
	Length                   int                   `json:"length,omitempty"`
	Thumbnail                string                `json:"thumbnail,omitempty"`
	DisableNotification      bool                  `json:"disable_notification,omitempty"`
	ProtectContent           bool                  `json:"protect_content,omitempty"`
	ReplyToMessageId         uint64                `json:"reply_to_message_id,omitempty"`
	AllowSendingWithoutReply bool                  `json:"allow_sending_without_reply,omitempty"`
	ReplyMarkup              message_dto.IKeyboard `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#sendvideonote

func NewSendVideoNote

func NewSendVideoNote[ID string | int64](chatID ID, videoNote string) *SendVideoNote[ID]

func (*SendVideoNote[ID]) SetAllowSendingWithoutReply

func (s *SendVideoNote[ID]) SetAllowSendingWithoutReply(allowSendingWithoutReply bool) *SendVideoNote[ID]

func (*SendVideoNote[ID]) SetDisableNotification

func (s *SendVideoNote[ID]) SetDisableNotification(disableNotification bool) *SendVideoNote[ID]

func (*SendVideoNote[ID]) SetDuration

func (s *SendVideoNote[ID]) SetDuration(duration int) *SendVideoNote[ID]

func (*SendVideoNote[ID]) SetLength

func (s *SendVideoNote[ID]) SetLength(length int) *SendVideoNote[ID]

func (*SendVideoNote[ID]) SetMessageThreadId

func (s *SendVideoNote[ID]) SetMessageThreadId(messageThreadId int) *SendVideoNote[ID]

func (*SendVideoNote[ID]) SetProtectContent

func (s *SendVideoNote[ID]) SetProtectContent(protectContent bool) *SendVideoNote[ID]

func (*SendVideoNote[ID]) SetReplyMarkup

func (s *SendVideoNote[ID]) SetReplyMarkup(replyMarkup message_dto.IKeyboard) *SendVideoNote[ID]

func (*SendVideoNote[ID]) SetReplyToMessageId

func (s *SendVideoNote[ID]) SetReplyToMessageId(replyToMessageId uint64) *SendVideoNote[ID]

func (*SendVideoNote[ID]) SetThumbnail

func (s *SendVideoNote[ID]) SetThumbnail(thumbnail string) *SendVideoNote[ID]

type SendVoice

type SendVoice[ID string | int64] struct {
	ChatID                   ID                                 `json:"chat_id"`
	Voice                    string                             `json:"voice"`
	MessageThreadId          int                                `json:"message_thread_id,omitempty"`
	Caption                  string                             `json:"caption,omitempty"`
	ParseMode                string                             `json:"parse_mode,omitempty"`
	CaptionEntities          []message_entity_dto.MessageEntity `json:"caption_entities,omitempty"`
	Duration                 int                                `json:"duration,omitempty"`
	DisableNotification      bool                               `json:"disable_notification,omitempty"`
	ProtectContent           bool                               `json:"protect_content,omitempty"`
	ReplyToMessageId         uint64                             `json:"reply_to_message_id,omitempty"`
	AllowSendingWithoutReply bool                               `json:"allow_sending_without_reply,omitempty"`
	ReplyMarkup              message_dto.IKeyboard              `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#sendvoice

func NewSendVoice

func NewSendVoice[ID string | int64](chatID ID, voice string) *SendVoice[ID]

func (*SendVoice[ID]) SetAllowSendingWithoutReply

func (sv *SendVoice[ID]) SetAllowSendingWithoutReply(allowSendingWithoutReply bool) *SendVoice[ID]

func (*SendVoice[ID]) SetCaption

func (sv *SendVoice[ID]) SetCaption(caption string) *SendVoice[ID]

func (*SendVoice[ID]) SetCaptionEntities

func (sv *SendVoice[ID]) SetCaptionEntities(captionEntities []message_entity_dto.MessageEntity) *SendVoice[ID]

func (*SendVoice[ID]) SetDisableNotification

func (sv *SendVoice[ID]) SetDisableNotification(disableNotification bool) *SendVoice[ID]

func (*SendVoice[ID]) SetDuration

func (sv *SendVoice[ID]) SetDuration(duration int) *SendVoice[ID]

func (*SendVoice[ID]) SetMessageThreadId

func (sv *SendVoice[ID]) SetMessageThreadId(messageThreadId int) *SendVoice[ID]

func (*SendVoice[ID]) SetParseMode

func (sv *SendVoice[ID]) SetParseMode(parseMode string) *SendVoice[ID]

func (*SendVoice[ID]) SetProtectContent

func (sv *SendVoice[ID]) SetProtectContent(protectContent bool) *SendVoice[ID]

func (*SendVoice[ID]) SetReplyMarkup

func (sv *SendVoice[ID]) SetReplyMarkup(replyMarkup message_dto.IKeyboard) *SendVoice[ID]

func (*SendVoice[ID]) SetReplyToMessageId

func (sv *SendVoice[ID]) SetReplyToMessageId(replyToMessageId uint64) *SendVoice[ID]

type SetChatAdministratorCustomTitle

type SetChatAdministratorCustomTitle[ID int64 | string] struct {
	ChatID      ID     `json:"chat_id"`
	UserID      int    `json:"user_id"`
	CustomTitle string `json:"custom_title"`
}

https://core.telegram.org/bots/api#setchatadministratorcustomtitle

func NewSetChatAdministratorCustomTitle

func NewSetChatAdministratorCustomTitle[ID int64 | string](chatID ID, userID int, customTitle string) *SetChatAdministratorCustomTitle[ID]

type SetChatDescription

type SetChatDescription[ID int64 | string] struct {
	ChatID      ID     `json:"chat_id"`
	Description string `json:"description,omitempty"`
}

https://core.telegram.org/bots/api#setchatdescription

func NewSetChatDescription

func NewSetChatDescription[ID int64 | string](chatID ID, description string) *SetChatDescription[ID]

func (*SetChatDescription[ID]) SetDescription

func (scd *SetChatDescription[ID]) SetDescription(description string) *SetChatDescription[ID]

type SetChatMenuButton

type SetChatMenuButton struct {
	ChatId     uint64                 `json:"chat_id,omitempty"`
	MenuButton message_dto.MenuButton `json:"menu_button,omitempty"`
}

https://core.telegram.org/bots/api#setchatmenubutton

func NewSetChatMenuButton

func NewSetChatMenuButton() *SetChatMenuButton

func (*SetChatMenuButton) SetChatId

func (s *SetChatMenuButton) SetChatId(chatId uint64) *SetChatMenuButton

func (*SetChatMenuButton) SetMenuButton

func (s *SetChatMenuButton) SetMenuButton(menuButton message_dto.MenuButton) *SetChatMenuButton

type SetChatPermissions

type SetChatPermissions[ID int64 | string] struct {
	ChatID                        ID                          `json:"chat_id"`
	Permissions                   message_dto.ChatPermissions `json:"permissions"`
	UseIndependentChatPermissions bool                        `json:"use_independent_chat_permissions,omitempty"`
}

https://core.telegram.org/bots/api#setchatpermissions

func NewSetChatPermissions

func NewSetChatPermissions[ID int64 | string](chatID ID, permissions message_dto.ChatPermissions) *SetChatPermissions[ID]

func (*SetChatPermissions[ID]) SetUseIndependentChatPermissions

func (scp *SetChatPermissions[ID]) SetUseIndependentChatPermissions(useIndependent bool) *SetChatPermissions[ID]

type SetChatPhoto

type SetChatPhoto[ID int64 | string] struct {
	ChatID ID     `json:"chat_id"`
	Photo  string `json:"photo"`
}

https://core.telegram.org/bots/api#setchatphoto

func NewSetChatPhoto

func NewSetChatPhoto[ID int64 | string](chatID ID, photo string) *SetChatPhoto[ID]

func (*SetChatPhoto[ID]) SetPhoto

func (scp *SetChatPhoto[ID]) SetPhoto(photo string) *SetChatPhoto[ID]

type SetChatStickerSet

type SetChatStickerSet[ID int64 | string] struct {
	ChatID         ID     `json:"chat_id"`
	StickerSetName string `json:"sticker_set_name"`
}

https://core.telegram.org/bots/api#setchatstickerset

func NewSetChatStickerSet

func NewSetChatStickerSet[ID int64 | string](chatID ID, stickerSetName string) *SetChatStickerSet[ID]

type SetChatTitle

type SetChatTitle[ID int64 | string] struct {
	ChatID ID     `json:"chat_id"`
	Title  string `json:"title"`
}

https://core.telegram.org/bots/api#setchattitle

func NewSetChatTitle

func NewSetChatTitle[ID int64 | string](chatID ID, title string) *SetChatTitle[ID]

func (*SetChatTitle[ID]) SetTitle

func (sct *SetChatTitle[ID]) SetTitle(title string) *SetChatTitle[ID]

type SetCommandRequest

type SetCommandRequest struct {
	Commands     []*command_dto.BotCommand `json:"commands"`
	Scope        any                       `json:"scope,omitempty"`
	LanguageCode string                    `json:"language_code,omitempty"`
}

https://core.telegram.org/bots/api#setmycommands

func NewSetCommandRequest

func NewSetCommandRequest(commands []*command_dto.BotCommand) *SetCommandRequest

func (*SetCommandRequest) SetLanguageCode

func (scr *SetCommandRequest) SetLanguageCode(languageCode string) *SetCommandRequest

func (*SetCommandRequest) SetScope

func (scr *SetCommandRequest) SetScope(scope any) *SetCommandRequest

type SetCustomEmojiStickerSetThumbnail

type SetCustomEmojiStickerSetThumbnail struct {
	Name          string `json:"name"`
	CustomEmojiID string `json:"custom_emoji_id,omitempty"`
}

https://core.telegram.org/bots/api#setcustomemojistickersetthumbnail

func NewSetCustomEmojiStickerSetThumbnail

func NewSetCustomEmojiStickerSetThumbnail(name string) *SetCustomEmojiStickerSetThumbnail

func (*SetCustomEmojiStickerSetThumbnail) SetCustomEmojiID

func (scest *SetCustomEmojiStickerSetThumbnail) SetCustomEmojiID(customEmojiID string) *SetCustomEmojiStickerSetThumbnail

type SetGameScore

type SetGameScore struct {
	UserID             int64  `json:"user_id"`
	Score              int    `json:"score"`
	Force              bool   `json:"force,omitempty"`
	DisableEditMessage bool   `json:"disable_edit_message,omitempty"`
	ChatID             int64  `json:"chat_id,omitempty"`
	MessageID          int    `json:"message_id,omitempty"`
	InlineMessageID    string `json:"inline_message_id,omitempty"`
}

https://core.telegram.org/bots/api#setgamescore

func NewSetGameScore

func NewSetGameScore(userID int64, score int) *SetGameScore

func (*SetGameScore) SetChatID

func (sgs *SetGameScore) SetChatID(chatID int64) *SetGameScore

func (*SetGameScore) SetDisableEditMessage

func (sgs *SetGameScore) SetDisableEditMessage(disable bool) *SetGameScore

func (*SetGameScore) SetForce

func (sgs *SetGameScore) SetForce(force bool) *SetGameScore

func (*SetGameScore) SetInlineMessageID

func (sgs *SetGameScore) SetInlineMessageID(inlineMessageID string) *SetGameScore

func (*SetGameScore) SetMessageID

func (sgs *SetGameScore) SetMessageID(messageID int) *SetGameScore

type SetMyDefaultAdministratorRights

type SetMyDefaultAdministratorRights struct {
	Rights      message_dto.ChatAdministratorRights `json:"rights,omitempty"`
	ForChannels bool                                `json:"for_channels,omitempty"`
}

https://core.telegram.org/bots/api#setmydefaultadministratorrights

func NewSetMyDefaultAdministratorRights

func NewSetMyDefaultAdministratorRights() *SetMyDefaultAdministratorRights

func (*SetMyDefaultAdministratorRights) SetForChannels

func (*SetMyDefaultAdministratorRights) SetRights

type SetMyDescription

type SetMyDescription struct {
	Description  string `json:"description,omitempty"`
	LanguageCode string `json:"language_code,omitempty"`
}

https://core.telegram.org/bots/api#setmydescription

func NewSetMyDescription

func NewSetMyDescription() *SetMyDescription

func (*SetMyDescription) SetDescription

func (s *SetMyDescription) SetDescription(description string) *SetMyDescription

func (*SetMyDescription) SetLanguageCode

func (s *SetMyDescription) SetLanguageCode(languageCode string) *SetMyDescription

type SetMyName

type SetMyName struct {
	Name         string `json:"name,omitempty"`
	LanguageCode string `json:"language_code,omitempty"`
}

https://core.telegram.org/bots/api#setmyname

func NewSetMyName

func NewSetMyName() *SetMyName

func (*SetMyName) SetLanguageCode

func (s *SetMyName) SetLanguageCode(languageCode string) *SetMyName

func (*SetMyName) SetName

func (s *SetMyName) SetName(name string) *SetMyName

type SetMyShortDescription

type SetMyShortDescription struct {
	ShortDescription string `json:"short_description,omitempty"`
	LanguageCode     string `json:"language_code,omitempty"`
}

https://core.telegram.org/bots/api#setmyshortdescription

func NewSetMyShortDescription

func NewSetMyShortDescription() *SetMyShortDescription

func (*SetMyShortDescription) SetLanguageCode

func (s *SetMyShortDescription) SetLanguageCode(languageCode string) *SetMyShortDescription

func (*SetMyShortDescription) SetShortDescription

func (s *SetMyShortDescription) SetShortDescription(shortDescription string) *SetMyShortDescription

type SetPassportDataErrors

type SetPassportDataErrors struct {
	UserID int                                 `json:"user_id"`
	Errors []passport_dto.PassportElementError `json:"errors"`
}

https://core.telegram.org/bots/api#setpassportdataerrors

func NewSetPassportDataErrors

func NewSetPassportDataErrors(userID int, errors []passport_dto.PassportElementError) *SetPassportDataErrors

type SetStickerEmojiList

type SetStickerEmojiList struct {
	Sticker   string   `json:"sticker"`
	EmojiList []string `json:"emoji_list"`
}

https://core.telegram.org/bots/api#setstickeremojilist

func NewSetStickerEmojiList

func NewSetStickerEmojiList(sticker string, emojiList []string) *SetStickerEmojiList

type SetStickerKeywords

type SetStickerKeywords struct {
	Sticker  string   `json:"sticker"`
	Keywords []string `json:"keywords,omitempty"`
}

https://core.telegram.org/bots/api#setstickerkeywords

func NewSetStickerKeywords

func NewSetStickerKeywords(sticker string) *SetStickerKeywords

func (*SetStickerKeywords) SetKeywords

func (ssk *SetStickerKeywords) SetKeywords(keywords []string) *SetStickerKeywords

type SetStickerMaskPosition

type SetStickerMaskPosition struct {
	Sticker      string                     `json:"sticker"`
	MaskPosition *stickers_dto.MaskPosition `json:"mask_position,omitempty"`
}

https://core.telegram.org/bots/api#setstickermaskposition

func NewSetStickerMaskPosition

func NewSetStickerMaskPosition(sticker string) *SetStickerMaskPosition

func (*SetStickerMaskPosition) SetMaskPosition

func (ssmp *SetStickerMaskPosition) SetMaskPosition(maskPosition *stickers_dto.MaskPosition) *SetStickerMaskPosition

type SetStickerPositionInSet

type SetStickerPositionInSet struct {
	Sticker  string `json:"sticker"`
	Position int    `json:"position"`
}

https://core.telegram.org/bots/api#setstickerpositioninset

func NewSetStickerPositionInSet

func NewSetStickerPositionInSet(sticker string, position int) *SetStickerPositionInSet

type SetStickerSetThumbnail

type SetStickerSetThumbnail struct {
	Name      string `json:"name"`
	UserID    int    `json:"user_id"`
	Thumbnail string `json:"thumbnail,omitempty"`
}

https://core.telegram.org/bots/api#setstickersetthumbnail

func NewSetStickerSetThumbnail

func NewSetStickerSetThumbnail(name string, userID int) *SetStickerSetThumbnail

func (*SetStickerSetThumbnail) SetThumbnail

func (sst *SetStickerSetThumbnail) SetThumbnail(thumbnail string) *SetStickerSetThumbnail

type SetStickerSetTitle

type SetStickerSetTitle struct {
	Name  string `json:"name"`
	Title string `json:"title"`
}

https://core.telegram.org/bots/api#setstickersettitle

func NewSetStickerSetTitle

func NewSetStickerSetTitle(name, title string) *SetStickerSetTitle

type StopMessageLiveLocation

type StopMessageLiveLocation[ID int64 | string] struct {
	ChatID          ID                               `json:"chat_id,omitempty"`
	MessageID       int                              `json:"message_id,omitempty"`
	InlineMessageID string                           `json:"inline_message_id,omitempty"`
	ReplyMarkup     message_dto.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#stopmessagelivelocation

func NewStopMessageLiveLocation

func NewStopMessageLiveLocation[ID int64 | string]() *StopMessageLiveLocation[ID]

func (*StopMessageLiveLocation[ID]) SetChatID

func (s *StopMessageLiveLocation[ID]) SetChatID(chatID ID) *StopMessageLiveLocation[ID]

func (*StopMessageLiveLocation[ID]) SetInlineMessageID

func (s *StopMessageLiveLocation[ID]) SetInlineMessageID(inlineMessageID string) *StopMessageLiveLocation[ID]

func (*StopMessageLiveLocation[ID]) SetMessageID

func (s *StopMessageLiveLocation[ID]) SetMessageID(messageID int) *StopMessageLiveLocation[ID]

func (*StopMessageLiveLocation[ID]) SetReplyMarkup

func (s *StopMessageLiveLocation[ID]) SetReplyMarkup(replyMarkup message_dto.InlineKeyboardMarkup) *StopMessageLiveLocation[ID]

type StopPoll

type StopPoll[ID int64 | string] struct {
	ChatID      ID                               `json:"chat_id"`
	MessageID   int                              `json:"message_id"`
	ReplyMarkup message_dto.InlineKeyboardMarkup `json:"reply_markup,omitempty"`
}

https://core.telegram.org/bots/api#stoppoll

func NewStopPoll

func NewStopPoll[ID int64 | string](chatID ID, messageID int) *StopPoll[ID]

func (*StopPoll[ID]) SetReplyMarkup

func (s *StopPoll[ID]) SetReplyMarkup(replyMarkup message_dto.InlineKeyboardMarkup) *StopPoll[ID]

type UnbanChatMember

type UnbanChatMember[ID int64 | string] struct {
	ChatID       ID   `json:"chat_id"`
	UserID       int  `json:"user_id"`
	OnlyIfBanned bool `json:"only_if_banned,omitempty"`
}

https://core.telegram.org/bots/api#unbanchatmember

func NewUnbanChatMember

func NewUnbanChatMember[ID int64 | string](chatID ID, userID int) *UnbanChatMember[ID]

func (*UnbanChatMember[ID]) SetOnlyIfBanned

func (ucm *UnbanChatMember[ID]) SetOnlyIfBanned(onlyIfBanned bool) *UnbanChatMember[ID]

type UnbanChatSenderChat

type UnbanChatSenderChat[ID int64 | string] struct {
	ChatID       ID  `json:"chat_id"`
	SenderChatID int `json:"sender_chat_id"`
}

https://core.telegram.org/bots/api#unbanchatsenderchat

func NewUnbanChatSenderChat

func NewUnbanChatSenderChat[ID int64 | string](chatID ID, senderChatID int) *UnbanChatSenderChat[ID]

type UnpinAllForumTopicMessages

type UnpinAllForumTopicMessages[ID int64 | string] struct {
	ChatID          ID  `json:"chat_id"`
	MessageThreadID int `json:"message_thread_id"`
}

https://core.telegram.org/bots/api#unpinallforumtopicmessages

func NewUnpinAllForumTopicMessages

func NewUnpinAllForumTopicMessages[ID int64 | string](chatID ID, messageThreadID int) *UnpinAllForumTopicMessages[ID]

type UnpinChatMessage

type UnpinChatMessage[ID int64 | string] struct {
	ChatID    ID  `json:"chat_id"`
	MessageID int `json:"message_id,omitempty"`
}

https://core.telegram.org/bots/api#unpinchatmessage

func NewUnpinChatMessage

func NewUnpinChatMessage[ID int64 | string](chatID ID) *UnpinChatMessage[ID]

func (*UnpinChatMessage[ID]) SetMessageID

func (ucm *UnpinChatMessage[ID]) SetMessageID(messageID int) *UnpinChatMessage[ID]

type UploadStickerFile

type UploadStickerFile struct {
	UserID        int64  `json:"user_id"`
	StickerFile   string `json:"sticker_file"`
	StickerFormat string `json:"sticker_format,omitempty"`
}

https://core.telegram.org/bots/api#uploadstickerfile

func NewUploadStickerFile

func NewUploadStickerFile(userID int64, stickerFile string) *UploadStickerFile

func (*UploadStickerFile) SetStickerFormat

func (u *UploadStickerFile) SetStickerFormat(stickerFormat string) *UploadStickerFile

Jump to

Keyboard shortcuts

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