Clearer error on send_file(chat, invalid type)

This commit is contained in:
Lonami Exo
2019-02-19 16:41:51 +01:00
parent f540c4e089
commit 6db60627e6
2 changed files with 9 additions and 1 deletions

View File

@@ -313,7 +313,7 @@ async def handler(event):
text = 'Available commands:\n'
for callback, handler in bot.list_event_handlers():
if isinstance(handler, events.NewMessage) and callback.__doc__:
text += f'\n{callback.__doc__}'
text += f'\n{callback.__doc__.strip()}'
text += '\n\nYou can suggest new commands [here](https://docs.google.com/'\
'spreadsheets/d/12yWwixUu_vB426_toLBAiajXxYKvR2J1DD6yZtQz9l4/edit).'