This commit is contained in:
Alexander Bridges 2017-10-15 11:00:54 +00:00 committed by GitHub
commit 56fdbd7718

View File

@ -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
total_count, messages, senders = self.get_message_history( try:
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: