2
0
mirror of https://github.com/Nick80835/microbot synced 2025-09-02 15:35:43 +00:00

catch QueryIdInvalidError moar gooder

This commit is contained in:
Nick80835
2020-05-24 12:10:54 -04:00
parent 572dbec0df
commit da77e236f7

View File

@@ -76,7 +76,10 @@ class CommandHandler():
pass pass
if not pattern_match: if not pattern_match:
await event.answer([await event.builder.article(title=key, text=f"{self.settings.get_config('cmd_prefix') or '.'}{value['default']}") for key, value in self.inline_photo_commands.items() if value["default"]]) try:
await event.answer([await event.builder.article(title=key, text=f"{self.settings.get_config('cmd_prefix') or '.'}{value['default']}") for key, value in self.inline_photo_commands.items() if value["default"]])
except:
pass
async def try_coro(self, coro): async def try_coro(self, coro):
try: try: