mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-10-31 07:57:38 +03:00 
			
		
		
		
	Don't access NewMessage properties when building the event
This commit is contained in:
		
							parent
							
								
									9c09233b4f
								
							
						
					
					
						commit
						dc43757cff
					
				|  | @ -92,7 +92,7 @@ class NewMessage(_EventBuilder): | |||
|             return | ||||
| 
 | ||||
|         if self.chats is not None: | ||||
|             inside = utils.get_peer_id(event.input_chat) in self.chats | ||||
|             inside = utils.get_peer_id(event.message.to_id) in self.chats | ||||
|             if inside == self.blacklist_chats: | ||||
|                 # If this chat matches but it's a blacklist ignore. | ||||
|                 # If it doesn't match but it's a whitelist ignore. | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user