mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 20:50:22 +03:00
Merge remote-tracking branch 'remotes/upstream/master' into delete-messages
# Conflicts: # telethon/telegram_client.py
This commit is contained in:
parent
8e026123f5
commit
bd00e29c5d
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -101,6 +101,3 @@ ENV/
|
|||
|
||||
# Rope project settings
|
||||
.ropeproject
|
||||
|
||||
# Developer tests
|
||||
test.py
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
import os
|
||||
import re
|
||||
from datetime import datetime, timedelta
|
||||
from functools import lru_cache
|
||||
from mimetypes import guess_type
|
||||
|
||||
import re
|
||||
|
||||
try:
|
||||
import socks
|
||||
except ImportError:
|
||||
|
@ -385,8 +384,6 @@ class TelegramClient(TelegramBareClient):
|
|||
else:
|
||||
return self(messages.DeleteMessagesRequest(message_ids, revoke=revoke))
|
||||
|
||||
|
||||
|
||||
def get_message_history(self,
|
||||
entity,
|
||||
limit=20,
|
||||
|
@ -435,7 +432,7 @@ class TelegramClient(TelegramBareClient):
|
|||
utils.find_user_or_chat(m.to_id, result.users, result.chats)
|
||||
|
||||
for m in result.messages
|
||||
]
|
||||
]
|
||||
|
||||
return total_messages, result.messages, entities
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user