summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Telegram/src/utils.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/protocols/Telegram/src/utils.cpp b/protocols/Telegram/src/utils.cpp
index 7d8984c1fb..250a3561d2 100644
--- a/protocols/Telegram/src/utils.cpp
+++ b/protocols/Telegram/src/utils.cpp
@@ -437,7 +437,12 @@ CMStringA CTelegramProto::GetMessageText(TG_USER *pUser, const TD::message *pMsg
case TD::messageSticker::ID:
{
auto *pSticker = ((TD::messageSticker *)pBody)->sticker_.get();
- if (pSticker->full_type_->get_id() != TD::stickerTypeRegular::ID) {
+ switch(pSticker->full_type_->get_id()) {
+ case TD::stickerTypeRegular::ID:
+ case TD::stickerFullTypeRegular::ID:
+ break;
+
+ default:
debugLogA("You received a sticker of unsupported type %d, ignored", pSticker->full_type_->get_id());
break;
}