2022-05-06 17:47:43 +08:00
|
|
|
package bot
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/go-telegram/bot/models"
|
|
|
|
)
|
|
|
|
|
|
|
|
type SetWebhookParams struct {
|
|
|
|
URL string `json:"url"`
|
|
|
|
Certificate models.InputFile `json:"certificate,omitempty"`
|
|
|
|
IPAddress string `json:"ip_address,omitempty"`
|
|
|
|
MaxConnections int `json:"max_connections,omitempty"`
|
|
|
|
AllowedUpdates []string `json:"allowed_updates,omitempty"`
|
|
|
|
DropPendingUpdates bool `json:"drop_pending_updates,omitempty"`
|
2022-07-08 17:20:49 +08:00
|
|
|
SecretToken string `json:"secret_token,omitempty"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type DeleteWebhookParams struct {
|
|
|
|
DropPendingUpdates bool `json:"drop_pending_updates,omitempty"`
|
|
|
|
}
|
|
|
|
|
2024-01-10 20:16:04 +08:00
|
|
|
// SendMessageParams https://core.telegram.org/bots/api#sendmessage
|
2022-05-06 17:47:43 +08:00
|
|
|
type SendMessageParams struct {
|
2024-04-02 23:09:36 +08:00
|
|
|
BusinessConnectionID string `json:"business_connection_id,omitempty"`
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageThreadID int `json:"message_thread_id,omitempty"`
|
|
|
|
Text string `json:"text"`
|
|
|
|
ParseMode models.ParseMode `json:"parse_mode,omitempty"`
|
|
|
|
Entities []models.MessageEntity `json:"entities,omitempty"`
|
|
|
|
LinkPreviewOptions *models.LinkPreviewOptions `json:"link_preview_options,omitempty"`
|
|
|
|
DisableNotification bool `json:"disable_notification,omitempty"`
|
|
|
|
ProtectContent bool `json:"protect_content,omitempty"`
|
2024-10-31 23:39:49 +08:00
|
|
|
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
|
2024-05-29 19:08:43 +08:00
|
|
|
MessageEffectID string `json:"message_effect_id,omitempty"`
|
2024-04-02 23:09:36 +08:00
|
|
|
ReplyParameters *models.ReplyParameters `json:"reply_parameters,omitempty"`
|
|
|
|
ReplyMarkup models.ReplyMarkup `json:"reply_markup,omitempty"`
|
2024-01-10 20:16:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// ForwardMessageParams https://core.telegram.org/bots/api#forwardmessage
|
2022-05-06 17:47:43 +08:00
|
|
|
type ForwardMessageParams struct {
|
2024-09-23 15:31:59 +08:00
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageThreadID int `json:"message_thread_id,omitempty"`
|
|
|
|
FromChatID any `json:"from_chat_id"`
|
|
|
|
DisableNotification bool `json:"disable_notification,omitempty"`
|
|
|
|
ProtectContent bool `json:"protect_content,omitempty"`
|
|
|
|
MessageID int `json:"message_id"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
|
|
|
|
2024-01-10 20:16:04 +08:00
|
|
|
// ForwardMessagesParams https://core.telegram.org/bots/api#forwardmessages
|
|
|
|
type ForwardMessagesParams struct {
|
2024-09-23 15:31:59 +08:00
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageThreadID int `json:"message_thread_id,omitempty"`
|
|
|
|
FromChatID any `json:"from_chat_id"`
|
|
|
|
MessageIDs []int `json:"message_ids"`
|
|
|
|
DisableNotification bool `json:"disable_notification,omitempty"`
|
|
|
|
ProtectContent bool `json:"protect_content,omitempty"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
|
|
|
|
2024-01-10 20:16:04 +08:00
|
|
|
// CopyMessageParams https://core.telegram.org/bots/api#copymessage
|
|
|
|
type CopyMessageParams struct {
|
2024-05-29 19:08:43 +08:00
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageThreadID int `json:"message_thread_id,omitempty"`
|
2024-09-23 15:31:59 +08:00
|
|
|
FromChatID any `json:"from_chat_id"`
|
2024-05-29 19:08:43 +08:00
|
|
|
MessageID int `json:"message_id"`
|
|
|
|
Caption string `json:"caption,omitempty"`
|
|
|
|
ParseMode models.ParseMode `json:"parse_mode,omitempty"`
|
|
|
|
CaptionEntities []models.MessageEntity `json:"caption_entities,omitempty"`
|
|
|
|
ShowCaptionAboveMedia bool `json:"show_caption_above_media,omitempty"`
|
|
|
|
DisableNotification bool `json:"disable_notification,omitempty"`
|
|
|
|
ProtectContent bool `json:"protect_content,omitempty"`
|
2024-10-31 23:39:49 +08:00
|
|
|
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
|
2024-05-29 19:08:43 +08:00
|
|
|
ReplyParameters *models.ReplyParameters `json:"reply_parameters,omitempty"`
|
|
|
|
ReplyMarkup models.ReplyMarkup `json:"reply_markup,omitempty"`
|
2024-01-10 20:16:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// CopyMessagesParams https://core.telegram.org/bots/api#copymessages
|
|
|
|
type CopyMessagesParams struct {
|
2024-09-23 15:31:59 +08:00
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageThreadID int `json:"message_thread_id,omitempty"`
|
|
|
|
FromChatID any `json:"from_chat_id"`
|
|
|
|
MessageIDs []int `json:"message_ids"`
|
|
|
|
DisableNotification bool `json:"disable_notification,omitempty"`
|
|
|
|
ProtectContent bool `json:"protect_content,omitempty"`
|
|
|
|
RemoveCaption bool `json:"remove_caption,omitempty"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
|
|
|
|
2024-01-10 20:16:04 +08:00
|
|
|
// SendPhotoParams https://core.telegram.org/bots/api#sendphoto
|
|
|
|
type SendPhotoParams struct {
|
2024-05-29 19:08:43 +08:00
|
|
|
BusinessConnectionID string `json:"business_connection_id,omitempty"`
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageThreadID int `json:"message_thread_id,omitempty"`
|
|
|
|
Photo models.InputFile `json:"photo"`
|
|
|
|
Caption string `json:"caption,omitempty"`
|
|
|
|
ParseMode models.ParseMode `json:"parse_mode,omitempty"`
|
|
|
|
CaptionEntities []models.MessageEntity `json:"caption_entities,omitempty"`
|
|
|
|
ShowCaptionAboveMedia bool `json:"show_caption_above_media,omitempty"`
|
|
|
|
HasSpoiler bool `json:"has_spoiler,omitempty"`
|
|
|
|
DisableNotification bool `json:"disable_notification,omitempty"`
|
|
|
|
ProtectContent bool `json:"protect_content,omitempty"`
|
2024-10-31 23:39:49 +08:00
|
|
|
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
|
2024-05-29 19:08:43 +08:00
|
|
|
MessageEffectID string `json:"message_effect_id,omitempty"`
|
|
|
|
ReplyParameters *models.ReplyParameters `json:"reply_parameters,omitempty"`
|
|
|
|
ReplyMarkup models.ReplyMarkup `json:"reply_markup,omitempty"`
|
2024-01-10 20:16:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// SendAudioParams https://core.telegram.org/bots/api#sendaudio
|
2022-05-06 17:47:43 +08:00
|
|
|
type SendAudioParams struct {
|
2024-04-02 23:09:36 +08:00
|
|
|
BusinessConnectionID string `json:"business_connection_id,omitempty"`
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageThreadID int `json:"message_thread_id,omitempty"`
|
|
|
|
Audio models.InputFile `json:"audio"`
|
|
|
|
Caption string `json:"caption,omitempty"`
|
|
|
|
ParseMode models.ParseMode `json:"parse_mode,omitempty"`
|
|
|
|
CaptionEntities []models.MessageEntity `json:"caption_entities,omitempty"`
|
|
|
|
Duration int `json:"duration,omitempty"`
|
|
|
|
Performer string `json:"performer,omitempty"`
|
|
|
|
Title string `json:"title,omitempty"`
|
|
|
|
Thumbnail models.InputFile `json:"thumbnail,omitempty"`
|
|
|
|
DisableNotification bool `json:"disable_notification,omitempty"`
|
|
|
|
ProtectContent bool `json:"protect_content,omitempty"`
|
2024-10-31 23:39:49 +08:00
|
|
|
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
|
2024-05-29 19:08:43 +08:00
|
|
|
MessageEffectID string `json:"message_effect_id,omitempty"`
|
2024-04-02 23:09:36 +08:00
|
|
|
ReplyParameters *models.ReplyParameters `json:"reply_parameters,omitempty"`
|
|
|
|
ReplyMarkup models.ReplyMarkup `json:"reply_markup,omitempty"`
|
2024-01-10 20:16:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// SendDocumentParams https://core.telegram.org/bots/api#senddocument
|
2022-05-06 17:47:43 +08:00
|
|
|
type SendDocumentParams struct {
|
2024-04-02 23:09:36 +08:00
|
|
|
BusinessConnectionID string `json:"business_connection_id,omitempty"`
|
2024-01-10 20:16:04 +08:00
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageThreadID int `json:"message_thread_id,omitempty"`
|
|
|
|
Document models.InputFile `json:"document"`
|
|
|
|
Thumbnail models.InputFile `json:"thumbnail,omitempty"`
|
|
|
|
Caption string `json:"caption,omitempty"`
|
|
|
|
ParseMode models.ParseMode `json:"parse_mode,omitempty"`
|
|
|
|
CaptionEntities []models.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"`
|
2024-10-31 23:39:49 +08:00
|
|
|
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
|
2024-05-29 19:08:43 +08:00
|
|
|
MessageEffectID string `json:"message_effect_id,omitempty"`
|
2024-01-10 20:16:04 +08:00
|
|
|
ReplyParameters *models.ReplyParameters `json:"reply_parameters,omitempty"`
|
|
|
|
ReplyMarkup models.ReplyMarkup `json:"reply_markup,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// SendVideoParams https://core.telegram.org/bots/api#sendvideo
|
2022-05-06 17:47:43 +08:00
|
|
|
type SendVideoParams struct {
|
2024-05-29 19:08:43 +08:00
|
|
|
BusinessConnectionID string `json:"business_connection_id,omitempty"`
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageThreadID int `json:"message_thread_id,omitempty"`
|
|
|
|
Video models.InputFile `json:"video"`
|
|
|
|
Duration int `json:"duration,omitempty"`
|
|
|
|
Width int `json:"width,omitempty"`
|
|
|
|
Height int `json:"height,omitempty"`
|
|
|
|
Thumbnail models.InputFile `json:"thumbnail,omitempty"`
|
|
|
|
Caption string `json:"caption,omitempty"`
|
|
|
|
ParseMode models.ParseMode `json:"parse_mode,omitempty"`
|
|
|
|
CaptionEntities []models.MessageEntity `json:"caption_entities,omitempty"`
|
|
|
|
ShowCaptionAboveMedia bool `json:"show_caption_above_media,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"`
|
2024-10-31 23:39:49 +08:00
|
|
|
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
|
2024-05-29 19:08:43 +08:00
|
|
|
MessageEffectID string `json:"message_effect_id,omitempty"`
|
|
|
|
ReplyParameters *models.ReplyParameters `json:"reply_parameters,omitempty"`
|
|
|
|
ReplyMarkup models.ReplyMarkup `json:"reply_markup,omitempty"`
|
2024-01-10 20:16:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// SendAnimationParams https://core.telegram.org/bots/api#sendanimation
|
2022-05-06 17:47:43 +08:00
|
|
|
type SendAnimationParams struct {
|
2024-05-29 19:08:43 +08:00
|
|
|
BusinessConnectionID string `json:"business_connection_id,omitempty"`
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageThreadID int `json:"message_thread_id,omitempty"`
|
|
|
|
Animation models.InputFile `json:"animation"`
|
|
|
|
Duration int `json:"duration,omitempty"`
|
|
|
|
Width int `json:"width,omitempty"`
|
|
|
|
Height int `json:"height,omitempty"`
|
|
|
|
Thumbnail models.InputFile `json:"thumbnail,omitempty"`
|
|
|
|
Caption string `json:"caption,omitempty"`
|
|
|
|
ParseMode models.ParseMode `json:"parse_mode,omitempty"`
|
|
|
|
CaptionEntities []models.MessageEntity `json:"caption_entities,omitempty"`
|
|
|
|
ShowCaptionAboveMedia bool `json:"show_caption_above_media,omitempty"`
|
|
|
|
HasSpoiler bool `json:"has_spoiler,omitempty"`
|
|
|
|
DisableNotification bool `json:"disable_notification,omitempty"`
|
|
|
|
ProtectContent bool `json:"protect_content,omitempty"`
|
2024-10-31 23:39:49 +08:00
|
|
|
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
|
2024-05-29 19:08:43 +08:00
|
|
|
MessageEffectID string `json:"message_effect_id,omitempty"`
|
|
|
|
ReplyParameters *models.ReplyParameters `json:"reply_parameters,omitempty"`
|
|
|
|
ReplyMarkup models.ReplyMarkup `json:"reply_markup,omitempty"`
|
2024-01-10 20:16:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// SendVoiceParams https://core.telegram.org/bots/api#sendvoice
|
2022-05-06 17:47:43 +08:00
|
|
|
type SendVoiceParams struct {
|
2024-04-02 23:09:36 +08:00
|
|
|
BusinessConnectionID string `json:"business_connection_id,omitempty"`
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageThreadID int `json:"message_thread_id,omitempty"`
|
|
|
|
Voice models.InputFile `json:"voice"`
|
|
|
|
Caption string `json:"caption,omitempty"`
|
|
|
|
ParseMode models.ParseMode `json:"parse_mode,omitempty"`
|
|
|
|
CaptionEntities []models.MessageEntity `json:"caption_entities,omitempty"`
|
|
|
|
Duration int `json:"duration,omitempty"`
|
|
|
|
DisableNotification bool `json:"disable_notification,omitempty"`
|
|
|
|
ProtectContent bool `json:"protect_content,omitempty"`
|
2024-10-31 23:39:49 +08:00
|
|
|
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
|
2024-05-29 19:08:43 +08:00
|
|
|
MessageEffectID string `json:"message_effect_id,omitempty"`
|
2024-04-02 23:09:36 +08:00
|
|
|
ReplyParameters *models.ReplyParameters `json:"reply_parameters,omitempty"`
|
|
|
|
ReplyMarkup models.ReplyMarkup `json:"reply_markup,omitempty"`
|
2024-01-10 20:16:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// SendVideoNoteParams https://core.telegram.org/bots/api#sendvideonote
|
2022-05-06 17:47:43 +08:00
|
|
|
type SendVideoNoteParams struct {
|
2024-04-02 23:09:36 +08:00
|
|
|
BusinessConnectionID string `json:"business_connection_id,omitempty"`
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageThreadID int `json:"message_thread_id,omitempty"`
|
|
|
|
VideoNote models.InputFile `json:"video_note"`
|
|
|
|
Duration int `json:"duration,omitempty"`
|
|
|
|
Length int `json:"length,omitempty"`
|
|
|
|
Thumbnail models.InputFile `json:"thumbnail,omitempty"`
|
|
|
|
DisableNotification bool `json:"disable_notification,omitempty"`
|
|
|
|
ProtectContent bool `json:"protect_content,omitempty"`
|
2024-10-31 23:39:49 +08:00
|
|
|
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
|
2024-05-29 19:08:43 +08:00
|
|
|
MessageEffectID string `json:"message_effect_id,omitempty"`
|
2024-04-02 23:09:36 +08:00
|
|
|
ReplyParameters *models.ReplyParameters `json:"reply_parameters,omitempty"`
|
|
|
|
ReplyMarkup models.ReplyMarkup `json:"reply_markup,omitempty"`
|
2024-01-10 20:16:04 +08:00
|
|
|
}
|
|
|
|
|
2024-07-18 22:37:31 +08:00
|
|
|
// SendPaidMediaParams https://core.telegram.org/bots/api#sendpaidmedia
|
|
|
|
type SendPaidMediaParams struct {
|
2024-08-14 21:43:42 +08:00
|
|
|
BusinessConnectionID string `json:"business_connection_id,omitempty"`
|
2024-07-18 22:37:31 +08:00
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
StarCount int `json:"star_count"`
|
|
|
|
Media []models.InputPaidMedia `json:"media"`
|
2024-09-13 20:43:05 +08:00
|
|
|
Payload string `json:"payload,omitempty"`
|
2024-07-18 22:37:31 +08:00
|
|
|
Caption string `json:"caption,omitempty"`
|
|
|
|
ParseMode models.ParseMode `json:"parse_mode,omitempty"`
|
|
|
|
CaptionEntities []models.MessageEntity `json:"caption_entities,omitempty"`
|
|
|
|
ShowCaptionAboveMedia bool `json:"show_caption_above_media,omitempty"`
|
|
|
|
DisableNotification bool `json:"disable_notification,omitempty"`
|
|
|
|
ProtectContent bool `json:"protect_content,omitempty"`
|
2024-10-31 23:39:49 +08:00
|
|
|
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
|
2024-07-18 22:37:31 +08:00
|
|
|
ReplyParameters *models.ReplyParameters `json:"reply_parameters,omitempty"`
|
|
|
|
ReplyMarkup models.ReplyMarkup `json:"reply_markup,omitempty"`
|
|
|
|
}
|
|
|
|
|
2024-01-10 20:16:04 +08:00
|
|
|
// SendMediaGroupParams https://core.telegram.org/bots/api#sendmediagroup
|
2022-05-06 17:47:43 +08:00
|
|
|
type SendMediaGroupParams struct {
|
2024-04-02 23:09:36 +08:00
|
|
|
BusinessConnectionID string `json:"business_connection_id,omitempty"`
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageThreadID int `json:"message_thread_id,omitempty"`
|
|
|
|
Media []models.InputMedia `json:"media"`
|
|
|
|
DisableNotification bool `json:"disable_notification,omitempty"`
|
|
|
|
ProtectContent bool `json:"protect_content,omitempty"`
|
2024-10-31 23:39:49 +08:00
|
|
|
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
|
2024-05-29 19:08:43 +08:00
|
|
|
MessageEffectID string `json:"message_effect_id,omitempty"`
|
2024-04-02 23:09:36 +08:00
|
|
|
ReplyParameters *models.ReplyParameters `json:"reply_parameters,omitempty"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
|
|
|
|
2024-01-10 20:16:04 +08:00
|
|
|
// SendLocationParams https://core.telegram.org/bots/api#sendlocation
|
2022-05-06 17:47:43 +08:00
|
|
|
type SendLocationParams struct {
|
2024-04-02 23:09:36 +08:00
|
|
|
BusinessConnectionID string `json:"business_connection_id,omitempty"`
|
2024-01-10 20:16:04 +08:00
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageThreadID int `json:"message_thread_id,omitempty"`
|
|
|
|
Latitude float64 `json:"latitude"`
|
|
|
|
Longitude float64 `json:"longitude"`
|
|
|
|
HorizontalAccuracy float64 `json:"horizontal_accuracy,omitempty"`
|
|
|
|
LivePeriod int `json:"live_period,omitempty"`
|
|
|
|
Heading int `json:"heading,omitempty"`
|
|
|
|
ProximityAlertRadius int `json:"proximity_alert_radius,omitempty"`
|
|
|
|
DisableNotification bool `json:"disable_notification,omitempty"`
|
|
|
|
ProtectContent bool `json:"protect_content,omitempty"`
|
2024-10-31 23:39:49 +08:00
|
|
|
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
|
2024-05-29 19:08:43 +08:00
|
|
|
MessageEffectID string `json:"message_effect_id,omitempty"`
|
2024-01-10 20:16:04 +08:00
|
|
|
ReplyParameters *models.ReplyParameters `json:"reply_parameters,omitempty"`
|
|
|
|
ReplyMarkup models.ReplyMarkup `json:"reply_markup,omitempty"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type EditMessageLiveLocationParams struct {
|
2024-06-24 18:13:37 +08:00
|
|
|
BusinessConnectionID string `json:"business_connection_id,omitempty"`
|
|
|
|
ChatID any `json:"chat_id,omitempty"`
|
2022-05-06 17:47:43 +08:00
|
|
|
MessageID int `json:"message_id,omitempty"`
|
|
|
|
InlineMessageID string `json:"inline_message_id,omitempty"`
|
|
|
|
Latitude float64 `json:"latitude"`
|
|
|
|
Longitude float64 `json:"longitude"`
|
2024-05-20 17:07:43 +08:00
|
|
|
LivePeriod int `json:"live_period,omitempty"`
|
2022-05-06 17:47:43 +08:00
|
|
|
HorizontalAccuracy float64 `json:"horizontal_accuracy,omitempty"`
|
|
|
|
Heading int `json:"heading,omitempty"`
|
|
|
|
ProximityAlertRadius int `json:"proximity_alert_radius,omitempty"`
|
|
|
|
ReplyMarkup models.ReplyMarkup `json:"reply_markup,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type StopMessageLiveLocationParams struct {
|
2024-06-24 18:13:37 +08:00
|
|
|
BusinessConnectionID string `json:"business_connection_id,omitempty"`
|
|
|
|
ChatID any `json:"chat_id,omitempty"`
|
|
|
|
MessageID int `json:"message_id,omitempty"`
|
|
|
|
InlineMessageID string `json:"inline_message_id,omitempty"`
|
|
|
|
ReplyMarkup models.ReplyMarkup `json:"reply_markup,omitempty"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
|
|
|
|
2024-01-10 20:16:04 +08:00
|
|
|
// SendVenueParams https://core.telegram.org/bots/api#sendvenue
|
2022-05-06 17:47:43 +08:00
|
|
|
type SendVenueParams struct {
|
2024-04-02 23:09:36 +08:00
|
|
|
BusinessConnectionID string `json:"business_connection_id,omitempty"`
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageThreadID int `json:"message_thread_id,omitempty"`
|
|
|
|
Latitude float64 `json:"latitude"`
|
|
|
|
Longitude float64 `json:"longitude"`
|
|
|
|
Title string `json:"title"`
|
|
|
|
Address string `json:"address"`
|
|
|
|
FoursquareID string `json:"foursquare_id,omitempty"`
|
|
|
|
FoursquareType string `json:"foursquare_type,omitempty"`
|
|
|
|
GooglePlaceID string `json:"google_place_id,omitempty"`
|
|
|
|
GooglePlaceType string `json:"google_place_type,omitempty"`
|
|
|
|
DisableNotification bool `json:"disable_notification,omitempty"`
|
|
|
|
ProtectContent bool `json:"protect_content,omitempty"`
|
2024-10-31 23:39:49 +08:00
|
|
|
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
|
2024-05-29 19:08:43 +08:00
|
|
|
MessageEffectID string `json:"message_effect_id,omitempty"`
|
2024-04-02 23:09:36 +08:00
|
|
|
ReplyParameters *models.ReplyParameters `json:"reply_parameters,omitempty"`
|
|
|
|
ReplyMarkup models.ReplyMarkup `json:"reply_markup,omitempty"`
|
2024-01-10 20:16:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// SendContactParams https://core.telegram.org/bots/api#sendcontact
|
2022-05-06 17:47:43 +08:00
|
|
|
type SendContactParams struct {
|
2024-04-02 23:09:36 +08:00
|
|
|
BusinessConnectionID string `json:"business_connection_id,omitempty"`
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageThreadID int `json:"message_thread_id,omitempty"`
|
|
|
|
PhoneNumber string `json:"phone_number"`
|
|
|
|
FirstName string `json:"first_name"`
|
|
|
|
LastName string `json:"last_name,omitempty"`
|
|
|
|
VCard string `json:"vcard,omitempty"`
|
|
|
|
DisableNotification bool `json:"disable_notification,omitempty"`
|
|
|
|
ProtectContent bool `json:"protect_content,omitempty"`
|
2024-10-31 23:39:49 +08:00
|
|
|
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
|
2024-05-29 19:08:43 +08:00
|
|
|
MessageEffectID string `json:"message_effect_id,omitempty"`
|
2024-04-02 23:09:36 +08:00
|
|
|
ReplyParameters *models.ReplyParameters `json:"reply_parameters,omitempty"`
|
|
|
|
ReplyMarkup models.ReplyMarkup `json:"reply_markup,omitempty"`
|
2024-01-10 20:16:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// SendPollParams https://core.telegram.org/bots/api#sendpoll
|
2022-05-06 17:47:43 +08:00
|
|
|
type SendPollParams struct {
|
2024-05-20 17:07:43 +08:00
|
|
|
BusinessConnectionID string `json:"business_connection_id,omitempty"`
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageThreadID int `json:"message_thread_id,omitempty"`
|
|
|
|
Question string `json:"question"`
|
|
|
|
QuestionParseMode models.ParseMode `json:"question_parse_mode,omitempty"`
|
|
|
|
QuestionEntities []models.MessageEntity `json:"question_entities,omitempty"`
|
|
|
|
Options []models.InputPollOption `json:"options"`
|
|
|
|
IsAnonymous *bool `json:"is_anonymous,omitempty"`
|
|
|
|
Type string `json:"type,omitempty"`
|
|
|
|
AllowsMultipleAnswers bool `json:"allows_multiple_answers,omitempty"`
|
|
|
|
CorrectOptionID int `json:"correct_option_id"`
|
|
|
|
Explanation string `json:"explanation,omitempty"`
|
|
|
|
ExplanationParseMode string `json:"explanation_parse_mode,omitempty"`
|
|
|
|
ExplanationEntities []models.MessageEntity `json:"explanation_entities,omitempty"`
|
|
|
|
OpenPeriod int `json:"open_period,omitempty"`
|
|
|
|
CloseDate int `json:"close_date,omitempty"`
|
|
|
|
IsClosed bool `json:"is_closed,omitempty"`
|
|
|
|
DisableNotification bool `json:"disable_notification,omitempty"`
|
|
|
|
ProtectContent bool `json:"protect_content,omitempty"`
|
2024-10-31 23:39:49 +08:00
|
|
|
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
|
2024-05-29 19:08:43 +08:00
|
|
|
MessageEffectID string `json:"message_effect_id,omitempty"`
|
2024-05-20 17:07:43 +08:00
|
|
|
ReplyParameters *models.ReplyParameters `json:"reply_parameters,omitempty"`
|
|
|
|
ReplyMarkup models.ReplyMarkup `json:"reply_markup,omitempty"`
|
2024-01-10 20:16:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// SendDiceParams https://core.telegram.org/bots/api#senddice
|
2022-05-06 17:47:43 +08:00
|
|
|
type SendDiceParams struct {
|
2024-04-02 23:09:36 +08:00
|
|
|
BusinessConnectionID string `json:"business_connection_id,omitempty"`
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageThreadID int `json:"message_thread_id,omitempty"`
|
|
|
|
Emoji string `json:"emoji,omitempty"`
|
|
|
|
DisableNotification bool `json:"disable_notification,omitempty"`
|
|
|
|
ProtectContent bool `json:"protect_content,omitempty"`
|
2024-10-31 23:39:49 +08:00
|
|
|
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
|
2024-05-29 19:08:43 +08:00
|
|
|
MessageEffectID string `json:"message_effect_id,omitempty"`
|
2024-04-02 23:09:36 +08:00
|
|
|
ReplyParameters *models.ReplyParameters `json:"reply_parameters,omitempty"`
|
|
|
|
ReplyMarkup models.ReplyMarkup `json:"reply_markup,omitempty"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type SendChatActionParams struct {
|
2024-04-02 23:09:36 +08:00
|
|
|
BusinessConnectionID string `json:"business_connection_id,omitempty"`
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageThreadID int `json:"message_thread_id,omitempty"`
|
|
|
|
Action models.ChatAction `json:"action"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
|
|
|
|
2024-01-10 20:16:04 +08:00
|
|
|
// SetMessageReactionParams https://core.telegram.org/bots/api#setmessagereaction
|
|
|
|
type SetMessageReactionParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageID int `json:"message_id"`
|
|
|
|
Reaction []models.ReactionType `json:"reaction,omitempty"`
|
|
|
|
IsBig *bool `json:"is_big,omitempty"`
|
|
|
|
}
|
|
|
|
|
2022-05-06 17:47:43 +08:00
|
|
|
type GetUserProfilePhotosParams struct {
|
2023-03-01 15:26:05 +08:00
|
|
|
UserID int64 `json:"user_id"`
|
|
|
|
Offset int `json:"offset,omitempty"`
|
|
|
|
Limit int `json:"limit,omitempty"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
|
|
|
|
2024-11-18 16:37:50 +08:00
|
|
|
// SetUserEmojiStatusParams https://core.telegram.org/bots/api#setuseremojistatus
|
|
|
|
type SetUserEmojiStatusParams struct {
|
|
|
|
UserID int64 `json:"user_id"`
|
|
|
|
EmojiStatusCustomEmojiID string `json:"emoji_status_custom_emoji_id,omitempty"`
|
|
|
|
EmojiStatusExpirationDate int `json:"emoji_status_expiration_date,omitempty"`
|
|
|
|
}
|
|
|
|
|
2022-05-06 17:47:43 +08:00
|
|
|
type GetFileParams struct {
|
|
|
|
FileID string `json:"file_id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type BanChatMemberParams struct {
|
2023-03-01 15:26:05 +08:00
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
UserID int64 `json:"user_id"`
|
|
|
|
UntilDate int `json:"until_date,omitempty"`
|
|
|
|
RevokeMessages bool `json:"revoke_messages,omitempty"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type UnbanChatMemberParams struct {
|
2023-03-01 15:26:05 +08:00
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
UserID int64 `json:"user_id"`
|
|
|
|
OnlyIfBanned bool `json:"only_if_banned,omitempty"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type RestrictChatMemberParams struct {
|
2023-02-06 15:54:44 +08:00
|
|
|
ChatID any `json:"chat_id"`
|
2023-03-01 15:26:05 +08:00
|
|
|
UserID int64 `json:"user_id"`
|
2023-02-06 15:54:44 +08:00
|
|
|
Permissions *models.ChatPermissions `json:"permissions,omitempty"`
|
|
|
|
UseIndependentChatPermissions bool `json:"use_independent_chat_permissions,omitempty"`
|
|
|
|
UntilDate int `json:"until_date,omitempty"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type PromoteChatMemberParams struct {
|
2023-09-28 18:57:02 +08:00
|
|
|
ChatID any `json:"chat_id" rules:"required,chat_id"`
|
|
|
|
UserID int64 `json:"user_id" rules:"required"`
|
|
|
|
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"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type SetChatAdministratorCustomTitleParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
2023-03-01 15:26:05 +08:00
|
|
|
UserID int64 `json:"user_id"`
|
2022-05-06 17:47:43 +08:00
|
|
|
CustomTitle string `json:"custom_title"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type BanChatSenderChatParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
SenderChatID int `json:"sender_chat_id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type UnbanChatSenderChatParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
SenderChatID int `json:"sender_chat_id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type SetChatPermissionsParams struct {
|
2023-02-06 15:54:44 +08:00
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
Permissions models.ChatPermissions `json:"permissions"`
|
|
|
|
UseIndependentChatPermissions bool `json:"use_independent_chat_permissions,omitempty"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type ExportChatInviteLinkParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type CreateChatInviteLinkParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
Name string `json:"name,omitempty"`
|
|
|
|
ExpireDate int `json:"expire_date,omitempty"`
|
|
|
|
MemberLimit int `json:"member_limit,omitempty"`
|
|
|
|
CreatesJoinRequest bool `json:"creates_join_request,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type EditChatInviteLinkParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
InviteLink string `json:"invite_link"`
|
|
|
|
Name string `json:"name,omitempty"`
|
|
|
|
ExpireDate int `json:"expire_date,omitempty"`
|
|
|
|
MemberLimit int `json:"member_limit,omitempty"`
|
|
|
|
CreatesJoinRequest bool `json:"creates_join_request,omitempty"`
|
|
|
|
}
|
|
|
|
|
2024-08-14 21:43:42 +08:00
|
|
|
type CreateChatSubscriptionInviteLinkParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
Name string `json:"name,omitempty"`
|
|
|
|
SubscriptionPeriod int `json:"subscription_period"`
|
|
|
|
SubscriptionPrice int `json:"subscription_price"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type EditChatSubscriptionInviteLinkParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
InviteLink string `json:"invite_link"`
|
|
|
|
Name string `json:"name,omitempty"`
|
|
|
|
}
|
|
|
|
|
2022-05-06 17:47:43 +08:00
|
|
|
type RevokeChatInviteLinkParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
InviteLink string `json:"invite_link"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ApproveChatJoinRequestParams struct {
|
2023-03-01 15:26:05 +08:00
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
UserID int64 `json:"user_id"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type DeclineChatJoinRequestParams struct {
|
2023-03-01 15:26:05 +08:00
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
UserID int64 `json:"user_id"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type SetChatPhotoParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
Photo models.InputFile `json:"photo"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DeleteChatPhotoParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type SetChatTitleParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
Title string `json:"title"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type SetChatDescriptionParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
2023-12-06 23:27:59 +08:00
|
|
|
Description string `json:"description"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type PinChatMessageParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageID int `json:"message_id"`
|
|
|
|
DisableNotification bool `json:"disable_notification,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type UnpinChatMessageParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageID int `json:"message_id,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type UnpinAllChatMessagesParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type LeaveChatParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetChatParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetChatAdministratorsParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetChatMemberCountParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetChatMemberParams struct {
|
2023-03-01 15:26:05 +08:00
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
UserID int64 `json:"user_id"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type SetChatStickerSetParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
StickerSetName string `json:"sticker_set_name"`
|
|
|
|
}
|
|
|
|
|
2022-11-06 00:31:41 +08:00
|
|
|
type CreateForumTopicParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
IconColor int `json:"icon_color,omitempty"`
|
|
|
|
IconCustomEmojiID string `json:"icon_custom_emoji_id,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type EditForumTopicParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageThreadID int `json:"message_thread_id"`
|
2023-01-10 16:18:24 +08:00
|
|
|
Name string `json:"name,omitempty"`
|
|
|
|
IconCustomEmojiID string `json:"icon_custom_emoji_id,omitempty"`
|
2022-11-06 00:31:41 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type CloseForumTopicParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageThreadID int `json:"message_thread_id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ReopenForumTopicParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageThreadID int `json:"message_thread_id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DeleteForumTopicParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageThreadID int `json:"message_thread_id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type UnpinAllForumTopicMessagesParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageThreadID int `json:"message_thread_id"`
|
|
|
|
}
|
|
|
|
|
2023-01-10 16:18:24 +08:00
|
|
|
type EditGeneralForumTopicParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type CloseGeneralForumTopicParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ReopenGeneralForumTopicParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type HideGeneralForumTopicParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type UnhideGeneralForumTopicParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
}
|
|
|
|
|
2023-08-24 16:29:23 +08:00
|
|
|
type UnpinAllGeneralForumTopicMessagesParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
}
|
|
|
|
|
2022-05-06 17:47:43 +08:00
|
|
|
type DeleteChatStickerSetParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
StickerSetName string `json:"sticker_set_name"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type AnswerCallbackQueryParams struct {
|
|
|
|
CallbackQueryID string `json:"callback_query_id"`
|
|
|
|
Text string `json:"text,omitempty"`
|
|
|
|
ShowAlert bool `json:"show_alert,omitempty"`
|
|
|
|
URL string `json:"url,omitempty"`
|
|
|
|
CacheTime int `json:"cache_time,omitempty"`
|
|
|
|
}
|
|
|
|
|
2024-01-10 20:16:04 +08:00
|
|
|
// GetUserChatBoostsParams https://core.telegram.org/bots/api#getuserchatboosts
|
|
|
|
type GetUserChatBoostsParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
UserID int `json:"user_id"`
|
|
|
|
}
|
|
|
|
|
2024-10-10 21:24:24 +08:00
|
|
|
// GetBusinessConnectionParams https://core.telegram.org/bots/api#getbusinessconnection
|
2024-10-10 21:23:24 +08:00
|
|
|
type GetBusinessConnectionParams struct {
|
|
|
|
BusinessConnectionID any `json:"business_connection_id"`
|
|
|
|
}
|
|
|
|
|
2022-05-06 17:47:43 +08:00
|
|
|
type SetMyCommandsParams struct {
|
|
|
|
Commands []models.BotCommand `json:"commands"`
|
|
|
|
Scope models.BotCommandScope `json:"scope,omitempty"`
|
|
|
|
LanguageCode string `json:"language_code,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DeleteMyCommandsParams struct {
|
|
|
|
Scope models.BotCommandScope `json:"scope,omitempty"`
|
|
|
|
LanguageCode string `json:"language_code,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetMyCommandsParams struct {
|
|
|
|
Scope models.BotCommandScope `json:"scope,omitempty"`
|
|
|
|
LanguageCode string `json:"language_code,omitempty"`
|
|
|
|
}
|
|
|
|
|
2023-04-24 14:11:48 +08:00
|
|
|
type SetMyNameParams struct {
|
|
|
|
Name string `json:"name,omitempty"`
|
|
|
|
LanguageCode string `json:"language_code,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetMyNameParams struct {
|
|
|
|
LanguageCode string `json:"language_code,omitempty"`
|
|
|
|
}
|
|
|
|
|
2023-03-14 16:26:55 +08:00
|
|
|
type SetMyDescriptionParams struct {
|
|
|
|
Description string `json:"description,omitempty"`
|
|
|
|
LanguageCode string `json:"language_code,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetMyDescriptionParams struct {
|
|
|
|
LanguageCode string `json:"language_code,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type SetMyShortDescriptionParams struct {
|
|
|
|
ShortDescription string `json:"short_description,omitempty"`
|
|
|
|
LanguageCode string `json:"language_code,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetMyShortDescriptionParams struct {
|
|
|
|
LanguageCode string `json:"language_code,omitempty"`
|
|
|
|
}
|
|
|
|
|
2022-05-06 17:47:43 +08:00
|
|
|
type SetChatMenuButtonParams struct {
|
2024-01-09 16:08:03 +08:00
|
|
|
ChatID any `json:"chat_id,omitempty"`
|
2022-05-06 17:47:43 +08:00
|
|
|
MenuButton models.InputMenuButton `json:"menu_button"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetChatMenuButtonParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type SetMyDefaultAdministratorRightsParams struct {
|
|
|
|
Rights *models.ChatAdministratorRights `json:"rights,omitempty"`
|
|
|
|
ForChannels bool `json:"for_channels,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type GetMyDefaultAdministratorRightsParams struct {
|
|
|
|
ForChannels bool `json:"for_channels,omitempty"`
|
|
|
|
}
|
|
|
|
|
2024-01-10 20:16:04 +08:00
|
|
|
// EditMessageTextParams https://core.telegram.org/bots/api#editmessagetext
|
2022-05-06 17:47:43 +08:00
|
|
|
type EditMessageTextParams struct {
|
2024-06-24 18:13:37 +08:00
|
|
|
BusinessConnectionID string `json:"business_connection_id,omitempty"`
|
|
|
|
ChatID any `json:"chat_id,omitempty"`
|
|
|
|
MessageID int `json:"message_id,omitempty"`
|
|
|
|
InlineMessageID string `json:"inline_message_id,omitempty"`
|
|
|
|
Text string `json:"text"`
|
|
|
|
ParseMode models.ParseMode `json:"parse_mode,omitempty"`
|
|
|
|
Entities []models.MessageEntity `json:"entities,omitempty"`
|
|
|
|
LinkPreviewOptions *models.LinkPreviewOptions `json:"link_preview_options,omitempty"`
|
|
|
|
ReplyMarkup models.ReplyMarkup `json:"reply_markup,omitempty"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type EditMessageCaptionParams struct {
|
2024-06-24 18:13:37 +08:00
|
|
|
BusinessConnectionID string `json:"business_connection_id,omitempty"`
|
|
|
|
ChatID any `json:"chat_id,omitempty"`
|
2022-05-06 17:47:43 +08:00
|
|
|
MessageID int `json:"message_id,omitempty"`
|
|
|
|
InlineMessageID string `json:"inline_message_id,omitempty"`
|
|
|
|
Caption string `json:"caption,omitempty"`
|
|
|
|
ParseMode models.ParseMode `json:"parse_mode,omitempty"`
|
|
|
|
CaptionEntities []models.MessageEntity `json:"caption_entities,omitempty"`
|
2024-05-29 19:08:43 +08:00
|
|
|
ShowCaptionAboveMedia bool `json:"k,omitempty"`
|
2022-05-06 17:47:43 +08:00
|
|
|
DisableWebPagePreview bool `json:"disable_web_page_preview,omitempty"`
|
|
|
|
ReplyMarkup models.ReplyMarkup `json:"reply_markup,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type EditMessageMediaParams struct {
|
2024-06-24 18:13:37 +08:00
|
|
|
BusinessConnectionID string `json:"business_connection_id,omitempty"`
|
|
|
|
ChatID any `json:"chat_id,omitempty"`
|
|
|
|
MessageID int `json:"message_id,omitempty"`
|
|
|
|
InlineMessageID string `json:"inline_message_id,omitempty"`
|
|
|
|
Media models.InputMedia `json:"media"`
|
|
|
|
ReplyMarkup models.ReplyMarkup `json:"reply_markup,omitempty"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type EditMessageReplyMarkupParams struct {
|
2024-06-24 18:13:37 +08:00
|
|
|
BusinessConnectionID string `json:"business_connection_id,omitempty"`
|
|
|
|
ChatID any `json:"chat_id,omitempty"`
|
|
|
|
MessageID int `json:"message_id,omitempty"`
|
|
|
|
InlineMessageID string `json:"inline_message_id,omitempty"`
|
|
|
|
ReplyMarkup models.ReplyMarkup `json:"reply_markup,omitempty"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type StopPollParams struct {
|
2024-06-24 18:13:37 +08:00
|
|
|
BusinessConnectionID string `json:"business_connection_id,omitempty"`
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageID int `json:"message_id"`
|
|
|
|
ReplyMarkup models.ReplyMarkup `json:"reply_markup,omitempty"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
|
|
|
|
2024-01-10 20:16:04 +08:00
|
|
|
// DeleteMessageParams https://core.telegram.org/bots/api#deletemessage
|
2022-05-06 17:47:43 +08:00
|
|
|
type DeleteMessageParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageID int `json:"message_id"`
|
|
|
|
}
|
|
|
|
|
2024-01-10 20:16:04 +08:00
|
|
|
// DeleteMessagesParams https://core.telegram.org/bots/api#deletemessages
|
|
|
|
type DeleteMessagesParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
2024-02-22 17:28:25 +08:00
|
|
|
MessageIDs []int `json:"message_ids"`
|
2024-01-10 20:16:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// SendStickerParams https://core.telegram.org/bots/api#sendsticker
|
2022-05-06 17:47:43 +08:00
|
|
|
type SendStickerParams struct {
|
2024-04-02 23:09:36 +08:00
|
|
|
BusinessConnectionID string `json:"business_connection_id,omitempty"`
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageThreadID int `json:"message_thread_id,omitempty"`
|
|
|
|
Sticker models.InputFile `json:"sticker"`
|
|
|
|
Emoji string `json:"emoji,omitempty"`
|
|
|
|
DisableNotification bool `json:"disable_notification,omitempty"`
|
|
|
|
ProtectContent bool `json:"protect_content,omitempty"`
|
2024-10-31 23:39:49 +08:00
|
|
|
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
|
2024-05-29 19:08:43 +08:00
|
|
|
MessageEffectID string `json:"message_effect_id,omitempty"`
|
2024-04-02 23:09:36 +08:00
|
|
|
ReplyParameters *models.ReplyParameters `json:"reply_parameters,omitempty"`
|
|
|
|
ReplyMarkup models.ReplyMarkup `json:"reply_markup,omitempty"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type GetStickerSetParams struct {
|
|
|
|
Name string `json:"name"`
|
|
|
|
}
|
|
|
|
|
2022-08-23 18:24:20 +08:00
|
|
|
type GetCustomEmojiStickersParams struct {
|
|
|
|
CustomEmojiIDs []string `json:"custom_emoji_ids"`
|
|
|
|
}
|
|
|
|
|
2022-05-06 17:47:43 +08:00
|
|
|
type UploadStickerFileParams struct {
|
2023-03-01 15:26:05 +08:00
|
|
|
UserID int64 `json:"user_id"`
|
2022-05-06 17:47:43 +08:00
|
|
|
PngSticker models.InputFile `json:"png_sticker"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type CreateNewStickerSetParams struct {
|
2023-03-14 16:26:55 +08:00
|
|
|
UserID int64 `json:"user_id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Title string `json:"title"`
|
2024-11-21 16:00:16 +08:00
|
|
|
Stickers []models.Sticker `json:"stickers"`
|
2023-03-14 16:26:55 +08:00
|
|
|
StickerType string `json:"sticker_type,omitempty"`
|
|
|
|
NeedsRepainting bool `json:"needs_repainting,omitempty"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type AddStickerToSetParams struct {
|
2023-03-14 16:26:55 +08:00
|
|
|
UserID int64 `json:"user_id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Sticker models.InputSticker `json:"sticker"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type SetStickerPositionInSetParams struct {
|
|
|
|
Sticker string `json:"sticker"`
|
|
|
|
Position int `json:"position"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DeleteStickerFromSetParams struct {
|
|
|
|
Sticker string `json:"sticker"`
|
|
|
|
}
|
|
|
|
|
2024-04-02 23:09:36 +08:00
|
|
|
type ReplaceStickerInSetParams struct {
|
|
|
|
UserID int64 `json:"user_id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
OldSticker string `json:"old_sticker"`
|
|
|
|
Sticker models.InputSticker `json:"sticker"`
|
|
|
|
}
|
|
|
|
|
2023-03-14 16:26:55 +08:00
|
|
|
type SetStickerEmojiListParams struct {
|
|
|
|
Sticker string `json:"sticker"`
|
|
|
|
EmojiList []string `json:"emoji_list"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type SetStickerKeywordsParams struct {
|
|
|
|
Sticker string `json:"sticker"`
|
|
|
|
Keywords []string `json:"keywords"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type SetStickerMaskPositionParams struct {
|
|
|
|
Sticker string `json:"sticker"`
|
|
|
|
MaskPosition models.MaskPosition `json:"mask_position"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type SetStickerSetTitleParams struct {
|
|
|
|
Name string `json:"name"`
|
|
|
|
Title string `json:"title"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type SetStickerSetThumbnailParams struct {
|
|
|
|
Name string `json:"name"`
|
|
|
|
UserID int64 `json:"user_id"`
|
2024-04-02 23:09:36 +08:00
|
|
|
Thumbnail models.InputFile `json:"thumbnail,omitempty"`
|
|
|
|
Format string `json:"format"`
|
2023-03-14 16:26:55 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type SetCustomEmojiStickerSetThumbnailParams struct {
|
|
|
|
Name string `json:"name"`
|
|
|
|
CustomEmojiID string `json:"custom_emoji_id,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DeleteStickerSetParams struct {
|
|
|
|
Name string `json:"name"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type AnswerInlineQueryParams struct {
|
2023-04-24 14:11:48 +08:00
|
|
|
InlineQueryID string `json:"inline_query_id"`
|
|
|
|
Results []models.InlineQueryResult `json:"results"`
|
|
|
|
CacheTime int `json:"cache_time,omitempty"`
|
|
|
|
IsPersonal bool `json:"is_personal,omitempty"`
|
|
|
|
NextOffset string `json:"next_offset,omitempty"`
|
|
|
|
Button *models.InlineQueryResultsButton `json:"button,omitempty"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type AnswerWebAppQueryParams struct {
|
|
|
|
WebAppQueryID string `json:"web_app_query_id"`
|
|
|
|
Result models.InlineQueryResult `json:"result"`
|
|
|
|
}
|
|
|
|
|
2024-11-18 16:37:50 +08:00
|
|
|
// SavePreparedInlineMessageParams https://core.telegram.org/bots/api#savepreparedinlinemessage
|
|
|
|
type SavePreparedInlineMessageParams struct {
|
|
|
|
UserID int64 `json:"user_id"`
|
|
|
|
Result models.InlineQueryResult `json:"result"`
|
|
|
|
AllowUserChats bool `json:"allow_user_chats,omitempty"`
|
|
|
|
AllowBotChats bool `json:"allow_bot_chats,omitempty"`
|
|
|
|
AllowGroupChats bool `json:"allow_group_chats,omitempty"`
|
|
|
|
AllowChannelChats bool `json:"allow_channel_chats,omitempty"`
|
|
|
|
}
|
|
|
|
|
2024-01-10 20:16:04 +08:00
|
|
|
// SendInvoiceParams https://core.telegram.org/bots/api#sendinvoice
|
2022-05-06 17:47:43 +08:00
|
|
|
type SendInvoiceParams struct {
|
2024-01-10 20:16:04 +08:00
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageThreadID int `json:"message_thread_id,omitempty"`
|
|
|
|
Title string `json:"title"`
|
|
|
|
Description string `json:"description"`
|
|
|
|
Payload string `json:"payload"`
|
2024-05-29 19:08:43 +08:00
|
|
|
ProviderToken string `json:"provider_token,omitempty"`
|
2024-01-10 20:16:04 +08:00
|
|
|
Currency string `json:"currency"`
|
|
|
|
Prices []models.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"`
|
2024-10-31 23:39:49 +08:00
|
|
|
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
|
2024-05-29 19:08:43 +08:00
|
|
|
MessageEffectID string `json:"message_effect_id,omitempty"`
|
2024-01-10 20:16:04 +08:00
|
|
|
ReplyParameters *models.ReplyParameters `json:"reply_parameters,omitempty"`
|
|
|
|
ReplyMarkup models.ReplyMarkup `json:"reply_markup,omitempty"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
|
|
|
|
2022-07-08 17:20:49 +08:00
|
|
|
type CreateInvoiceLinkParams struct {
|
2024-11-18 16:37:50 +08:00
|
|
|
BusinessConnectionID string `json:"business_connection_id,omitempty"`
|
2022-07-08 17:20:49 +08:00
|
|
|
Title string `json:"title"`
|
|
|
|
Description string `json:"description"`
|
|
|
|
Payload string `json:"payload"`
|
2024-05-29 19:08:43 +08:00
|
|
|
ProviderToken string `json:"provider_token,omitempty"`
|
2022-07-08 17:20:49 +08:00
|
|
|
Currency string `json:"currency"`
|
|
|
|
Prices []models.LabeledPrice `json:"prices"`
|
2024-11-18 16:37:50 +08:00
|
|
|
SubscriptionPeriod int `json:"subscription_period,omitempty"`
|
2022-07-08 17:20:49 +08:00
|
|
|
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"`
|
|
|
|
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"`
|
|
|
|
}
|
|
|
|
|
2022-05-06 17:47:43 +08:00
|
|
|
type AnswerShippingQueryParams struct {
|
|
|
|
ShippingQueryID string `json:"shipping_query_id"`
|
|
|
|
OK bool `json:"ok"`
|
|
|
|
ShippingOptions []models.ShippingOption `json:"shipping_options,omitempty"`
|
|
|
|
ErrorMessage string `json:"error_message,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type AnswerPreCheckoutQueryParams struct {
|
|
|
|
PreCheckoutQueryID string `json:"pre_checkout_query_id"`
|
|
|
|
OK bool `json:"ok"`
|
|
|
|
ErrorMessage string `json:"error_message,omitempty"`
|
|
|
|
}
|
|
|
|
|
2024-06-24 18:13:37 +08:00
|
|
|
type GetStarTransactionsParams struct {
|
|
|
|
Offset int `json:"offset,omitempty"`
|
|
|
|
Limit int `json:"limit,omitempty"`
|
|
|
|
}
|
|
|
|
|
2024-05-29 19:08:43 +08:00
|
|
|
type RefundStarPaymentParams struct {
|
|
|
|
UserID int64 `json:"user_id"`
|
|
|
|
TelegramPaymentChargeID string `json:"telegram_payment_charge_id"`
|
|
|
|
}
|
|
|
|
|
2024-11-18 16:37:50 +08:00
|
|
|
// EditUserStarSubscriptionParams https://core.telegram.org/bots/api#edituserstarsubscription
|
|
|
|
type EditUserStarSubscriptionParams struct {
|
|
|
|
UserID int64 `json:"user_id"`
|
|
|
|
TelegramPaymentChargeID string `json:"telegram_payment_charge_id"`
|
|
|
|
IsCanceled bool `json:"is_canceled"`
|
|
|
|
}
|
|
|
|
|
2022-05-06 17:47:43 +08:00
|
|
|
type SetPassportDataErrorsParams struct {
|
2023-03-01 15:26:05 +08:00
|
|
|
UserID int64 `json:"user_id"`
|
2022-05-06 17:47:43 +08:00
|
|
|
Errors []models.PassportElementError `json:"errors"`
|
|
|
|
}
|
|
|
|
|
2024-01-10 20:16:04 +08:00
|
|
|
// SendGameParams https://core.telegram.org/bots/api#sendgame
|
2022-05-06 17:47:43 +08:00
|
|
|
type SendGameParams struct {
|
2024-04-02 23:09:36 +08:00
|
|
|
BusinessConnectionID string `json:"business_connection_id,omitempty"`
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
MessageThreadID int `json:"message_thread_id,omitempty"`
|
|
|
|
GameShorName string `json:"game_short_name"`
|
|
|
|
DisableNotification bool `json:"disable_notification,omitempty"`
|
|
|
|
ProtectContent bool `json:"protect_content,omitempty"`
|
2024-10-31 23:39:49 +08:00
|
|
|
AllowPaidBroadcast bool `json:"allow_paid_broadcast,omitempty"`
|
2024-05-29 19:08:43 +08:00
|
|
|
MessageEffectID string `json:"message_effect_id,omitempty"`
|
2024-04-02 23:09:36 +08:00
|
|
|
ReplyParameters *models.ReplyParameters `json:"reply_parameters,omitempty"`
|
|
|
|
ReplyMarkup models.ReplyMarkup `json:"reply_markup,omitempty"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type SetGameScoreParams struct {
|
2023-03-01 15:26:05 +08:00
|
|
|
UserID int64 `json:"user_id"`
|
|
|
|
Score int `json:"score"`
|
|
|
|
Force bool `json:"force,omitempty"`
|
|
|
|
DisableEditMessage bool `json:"disable_edit_message,omitempty"`
|
2024-06-11 21:22:59 +08:00
|
|
|
ChatID any `json:"chat_id,omitempty"`
|
2023-03-01 15:26:05 +08:00
|
|
|
MessageID int `json:"message_id,omitempty"`
|
|
|
|
InlineMessageID int `json:"inline_message_id,omitempty"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type GetGameHighScoresParams struct {
|
2023-03-01 15:26:05 +08:00
|
|
|
UserID int64 `json:"user_id"`
|
2024-06-11 21:22:59 +08:00
|
|
|
ChatID any `json:"chat_id,omitempty"`
|
2023-03-01 15:26:05 +08:00
|
|
|
MessageID int `json:"message_id,omitempty"`
|
|
|
|
InlineMessageID int `json:"inline_message_id,omitempty"`
|
2022-05-06 17:47:43 +08:00
|
|
|
}
|
2024-11-18 16:37:50 +08:00
|
|
|
|
|
|
|
// SendGiftParams https://core.telegram.org/bots/api#sendgift
|
|
|
|
type SendGiftParams struct {
|
|
|
|
UserID int64 `json:"user_id"`
|
|
|
|
GiftID string `json:"gift_id"`
|
2025-01-10 16:11:35 +08:00
|
|
|
PayForUpgrade bool `json:"pay_for_upgrade,omitempty"`
|
2024-11-18 16:37:50 +08:00
|
|
|
Text string `json:"text,omitempty"`
|
|
|
|
TextParseMode models.ParseMode `json:"text_parse_mode,omitempty"`
|
|
|
|
TextEntities []models.MessageEntity `json:"text_entities,omitempty"`
|
|
|
|
}
|
2025-01-10 16:11:35 +08:00
|
|
|
|
|
|
|
// VerifyUserParams https://core.telegram.org/bots/api#verifyuser
|
|
|
|
type VerifyUserParams struct {
|
|
|
|
UserID int64 `json:"user_id"`
|
|
|
|
CustomDescription string `json:"custom_description,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// VerifyChatParams https://core.telegram.org/bots/api#verifychat
|
|
|
|
type VerifyChatParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
CustomDescription string `json:"custom_description,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// RemoveUserVerificationParams https://core.telegram.org/bots/api#removeuserverification
|
|
|
|
type RemoveUserVerificationParams struct {
|
|
|
|
UserID int64 `json:"user_id"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// RemoveChatVerificationParams https://core.telegram.org/bots/api#removechatverification
|
|
|
|
type RemoveChatVerificationParams struct {
|
|
|
|
ChatID any `json:"chat_id"`
|
|
|
|
}
|