mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-11-26 22:16:51 +01:00
Support botTransactionPurposePaidMedia.
This commit is contained in:
parent
af5f55b206
commit
6478c25096
@ -4116,8 +4116,13 @@ class Client::JsonStarTransactionPartner final : public td::Jsonable {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case td_api::botTransactionPurposePaidMedia::ID:
|
case td_api::botTransactionPurposePaidMedia::ID: {
|
||||||
|
auto purpose = static_cast<const td_api::botTransactionPurposePaidMedia *>(source_user->purpose_.get());
|
||||||
|
object("paid_media", td::json_array(purpose->media_, [client = client_](auto &media) {
|
||||||
|
return JsonPaidMedia(media.get(), client);
|
||||||
|
}));
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user