mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Update API scheme to layer 184.
This commit is contained in:
@@ -1315,6 +1315,12 @@ auto HtmlWriter::Wrap::pushMessage(
|
||||
+ " boosted the group "
|
||||
+ QByteArray::number(data.boosts)
|
||||
+ (data.boosts > 1 ? " times" : " time");
|
||||
}, [&](const ActionPaymentRefunded &data) {
|
||||
const auto amount = FormatMoneyAmount(data.amount, data.currency);
|
||||
auto result = peers.wrapPeerName(data.peerId)
|
||||
+ " refunded back "
|
||||
+ amount;
|
||||
return result;
|
||||
}, [](v::null_t) { return QByteArray(); });
|
||||
|
||||
if (!serviceText.isEmpty()) {
|
||||
|
@@ -625,6 +625,13 @@ QByteArray SerializeMessage(
|
||||
pushActor();
|
||||
pushAction("boost_apply");
|
||||
push("boosts", data.boosts);
|
||||
}, [&](const ActionPaymentRefunded &data) {
|
||||
pushAction("refunded_payment");
|
||||
push("amount", data.amount);
|
||||
push("currency", data.currency);
|
||||
pushBare("peer_name", wrapPeerName(data.peerId));
|
||||
push("peer_id", data.peerId);
|
||||
push("charge_id", data.transactionId);
|
||||
}, [](v::null_t) {});
|
||||
|
||||
if (v::is_null(message.action.content)) {
|
||||
|
Reference in New Issue
Block a user