This commit is contained in:
penn5 2020-04-29 17:22:32 +01:00 committed by GitHub
parent a710caf86e
commit 4cf12a774a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,7 +86,7 @@ class _MessagesIter(RequestIter):
filter = types.InputMessagesFilterEmpty()
# Telegram completely ignores `from_id` in private chats
if self.entity:
if not isinstance(self.entity, types.InputPeerEmpty):
ty = helpers._entity_type(self.entity)
if ty == helpers._EntityType.USER:
# Don't bother sending `from_user` (it's ignored anyway),