mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-07 05:30:20 +03:00
Merge aa5779b89a
into 27728be242
This commit is contained in:
commit
56fdbd7718
|
@ -158,8 +158,11 @@ class InteractiveTelegramClient(TelegramClient):
|
||||||
# History
|
# History
|
||||||
elif msg == '!h':
|
elif msg == '!h':
|
||||||
# First retrieve the messages and some information
|
# First retrieve the messages and some information
|
||||||
|
try:
|
||||||
total_count, messages, senders = self.get_message_history(
|
total_count, messages, senders = self.get_message_history(
|
||||||
entity, limit=10)
|
entity, limit=10)
|
||||||
|
except:
|
||||||
|
continue
|
||||||
|
|
||||||
# Iterate over all (in reverse order so the latest appear
|
# Iterate over all (in reverse order so the latest appear
|
||||||
# the last in the console) and print them with format:
|
# the last in the console) and print them with format:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user