diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index 32fc2d4..169672f 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -4148,6 +4148,9 @@ class Client::JsonStarTransactionPartner final : public td::Jsonable { object("paid_media", td::json_array(purpose->media_, [client = client_](auto &media) { return JsonPaidMedia(media.get(), client); })); + if (!purpose->payload_.empty()) { + object("paid_media_payload", purpose->payload_); + } break; } default: