mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-06 13:10:22 +03:00
Merge remote-tracking branch 'remotes/upstream/master' into delete-messages
# Conflicts: # telethon/telegram_client.py
This commit is contained in:
commit
8e026123f5
|
@ -1,9 +1,9 @@
|
||||||
import os
|
import os
|
||||||
import re
|
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
from functools import lru_cache
|
from functools import lru_cache
|
||||||
from mimetypes import guess_type
|
from mimetypes import guess_type
|
||||||
from pprint import pprint
|
|
||||||
|
import re
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import socks
|
import socks
|
||||||
|
@ -608,7 +608,7 @@ class TelegramClient(TelegramBareClient):
|
||||||
some performance loss.
|
some performance loss.
|
||||||
"""
|
"""
|
||||||
possible_names = []
|
possible_names = []
|
||||||
if not isinstance(entity, TLObject) or type(entity).subclass_of_id in (
|
if not isinstance(entity, TLObject) or type(entity).SUBCLASS_OF_ID in (
|
||||||
0x2da17977, 0xc5af5d94, 0x1f4661b9, 0xd49a2697
|
0x2da17977, 0xc5af5d94, 0x1f4661b9, 0xd49a2697
|
||||||
):
|
):
|
||||||
# Maybe it is an user or a chat? Or their full versions?
|
# Maybe it is an user or a chat? Or their full versions?
|
||||||
|
|
Loading…
Reference in New Issue
Block a user