Merge pull request #8 from code1mountain/self_destruct

Receive Updates for self destructing media
This commit is contained in:
andrew-ld 2020-11-23 11:34:27 +01:00 committed by GitHub
commit 20155346c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -124,6 +124,8 @@ The `User` object now has two new fields:
In addition, the member list now shows the full bot list (previously only the bot that executed the query was shown)
The bot will now receive Updates for all received media, even if a destruction timer is set.
<a name="installation"></a>
## Installation

View File

@ -8603,9 +8603,9 @@ bool Client::need_skip_update_message(int64 chat_id, const object_ptr<td_api::me
}
}
if (message->ttl_ > 0) {
return true;
}
//if (message->ttl_ > 0) {
// return true;
//}
switch (message->content_->get_id()) {
case td_api::messagePhoto::ID: {