@@ -2512,6 +2512,10 @@ type InlineKeyboardButton struct {
2512
2512
//
2513
2513
//optional
2514
2514
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"`
2515
2519
// CallbackGame description of the game that will be launched when the user presses the button.
2516
2520
//
2517
2521
// optional
@@ -2559,6 +2563,12 @@ type LoginURL struct {
2559
2563
RequestWriteAccess bool `json:"request_write_access,omitempty"`
2560
2564
}
2561
2565
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
+
2562
2572
// CallbackQuery represents an incoming callback query from a callback button in
2563
2573
// an inline keyboard. If the button that originated the query was attached to a
2564
2574
// message sent by the bot, the field message will be present. If the button was
@@ -5233,13 +5243,15 @@ type RevenueWithdrawalState struct {
5233
5243
// - TransactionPartnerUser
5234
5244
// - TransactionPartnerFragment
5235
5245
// - TransactionPartnerTelegramAds
5246
+ // - TransactionPartnerTelegramApi
5236
5247
// - TransactionPartnerOther
5237
5248
type TransactionPartner struct {
5238
5249
// Type of the transaction partner. Must be one of:
5239
5250
// - fragment
5240
5251
// - user
5241
5252
// - other
5242
5253
// - telegram_ads
5254
+ // - telegram_api
5243
5255
Type string `json:"type"`
5244
5256
// State of the transaction if the transaction is outgoing.
5245
5257
// Represent only in "fragment" state
@@ -5260,6 +5272,12 @@ type TransactionPartner struct {
5260
5272
//
5261
5273
// optional
5262
5274
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"`
5263
5281
}
5264
5282
5265
5283
// StarTransaction describes a Telegram Star transaction.
0 commit comments