Return the service message produced when kicking somebody

Helps with #1664.
This commit is contained in:
Lonami Exo
2021-01-02 12:13:53 +01:00
parent acd4c8648e
commit d0ee3c3a56
2 changed files with 18 additions and 8 deletions

View File

@@ -67,7 +67,7 @@ class MessageParseMethods:
entities[i].offset, entities[i].length,
await self.get_input_entity(user)
)
return True
return True
except (ValueError, TypeError):
return False
@@ -134,7 +134,7 @@ class MessageParseMethods:
# Pinning a message with `updatePinnedMessage` seems to
# always produce a service message we can't map so return
# it directly.
# it directly. The same happens for kicking users.
#
# It could also be a list (e.g. when sending albums).
#