mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-21 00:23:56 +08:00
Support phrases for unclaimed giveaway prizes.
This commit is contained in:
@@ -1280,7 +1280,12 @@ auto HtmlWriter::Wrap::pushMessage(
|
||||
+ wrapReplyToLink("the same background")
|
||||
+ " for this chat";
|
||||
}, [&](const ActionGiftCode &data) {
|
||||
return data.viaGiveaway
|
||||
return data.unclaimed
|
||||
? ("This is an unclaimed Telegram Premium for "
|
||||
+ NumberToString(data.months)
|
||||
+ (data.months > 1 ? " months" : "month")
|
||||
+ " prize in a giveaway organized by a channel.")
|
||||
: data.viaGiveaway
|
||||
? ("You won a Telegram Premium for "
|
||||
+ NumberToString(data.months)
|
||||
+ (data.months > 1 ? " months" : "month")
|
||||
|
||||
Reference in New Issue
Block a user