@@ -2512,6 +2512,10 @@ type InlineKeyboardButton struct {
25122512 //
25132513 //optional
25142514 SwitchInlineQueryChosenChat * SwitchInlineQueryChosenChat `json:"switch_inline_query_chosen_chat,omitempty"`
2515+ //CopyText is the description of the button that copies the specified text to the clipboard.
2516+ //
2517+ //optional
2518+ CopyText * CopyTextButton `json:"copy_text,omitempty"`
25152519 // CallbackGame description of the game that will be launched when the user presses the button.
25162520 //
25172521 // optional
@@ -2559,6 +2563,12 @@ type LoginURL struct {
25592563 RequestWriteAccess bool `json:"request_write_access,omitempty"`
25602564}
25612565
2566+ // CopyTextButton represents an inline keyboard button that
2567+ // copies specified text to the clipboard.
2568+ type CopyTextButton struct {
2569+ Text string `json:"text"`
2570+ }
2571+
25622572// CallbackQuery represents an incoming callback query from a callback button in
25632573// an inline keyboard. If the button that originated the query was attached to a
25642574// message sent by the bot, the field message will be present. If the button was
@@ -5233,13 +5243,15 @@ type RevenueWithdrawalState struct {
52335243// - TransactionPartnerUser
52345244// - TransactionPartnerFragment
52355245// - TransactionPartnerTelegramAds
5246+ // - TransactionPartnerTelegramApi
52365247// - TransactionPartnerOther
52375248type TransactionPartner struct {
52385249 // Type of the transaction partner. Must be one of:
52395250 // - fragment
52405251 // - user
52415252 // - other
52425253 // - telegram_ads
5254+ // - telegram_api
52435255 Type string `json:"type"`
52445256 // State of the transaction if the transaction is outgoing.
52455257 // Represent only in "fragment" state
@@ -5260,6 +5272,12 @@ type TransactionPartner struct {
52605272 //
52615273 // optional
52625274 PaidMedia []PaidMedia `json:"paid_media,omitempty"`
5275+ // RequestCount is the number of successful requests that
5276+ // exceeded regular limits and were therefore billed
5277+ // Represent only in "telegram_api" state
5278+ //
5279+ // optional
5280+ RequestCount int `json:"request_count,omitempty"`
52635281}
52645282
52655283// StarTransaction describes a Telegram Star transaction.
0 commit comments