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