Initial stake dice game implementation.

This commit is contained in:
John Preston
2025-12-16 14:23:28 +04:00
parent a96e00e44c
commit 4a7148e20a
21 changed files with 550 additions and 104 deletions
+6
View File
@@ -21,6 +21,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "mtproto/mtp_instance.h"
#include "mtproto/mtproto_config.h"
#include "mtproto/mtproto_dc_options.h"
#include "chat_helpers/stickers_dice_pack.h"
#include "data/business/data_shortcut_messages.h"
#include "data/components/credits.h"
#include "data/components/gift_auctions.h"
@@ -2677,6 +2678,11 @@ void Updates::feedUpdate(const MTPUpdate &update) {
const auto &data = update.c_updateStarGiftAuctionUserState();
_session->giftAuctions().apply(data);
} break;
case mtpc_updateEmojiGameInfo: {
const auto &data = update.c_updateEmojiGameInfo();
_session->diceStickersPacks().apply(data);
} break;
}
}