diff options
author | George Hazan <george.hazan@gmail.com> | 2023-06-24 18:22:57 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-06-24 18:22:57 +0300 |
commit | e6414485ede3c6bb321e70b86c1560cddd2b3458 (patch) | |
tree | 9e63d271b06fb0645340d8947495f37f58853d80 | |
parent | a07bca6c0e46003a46270999c0c92d3cfef94ee7 (diff) |
Telegram: fix for receiving stickers
-rw-r--r-- | protocols/Telegram/src/utils.cpp | 7 |
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;
}
|