mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2025-01-01 23:25:52 +01:00
Fix crash with service messages
This commit is contained in:
parent
3268395eae
commit
b99a45bbf8
@ -9501,7 +9501,7 @@ td::int64 Client::as_tdlib_message_id(int32 message_id) {
|
||||
|
||||
td::int32 Client::as_client_message_id(int64 message_id) {
|
||||
int32 result = static_cast<int32>(message_id >> 20);
|
||||
CHECK(as_tdlib_message_id(result) == message_id);
|
||||
CHECK(as_tdlib_message_id(result) >> 2 == message_id >> 2);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user