mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-11-04 01:47:27 +03:00 
			
		
		
		
	Fix broadcast being named post for is_group property
This commit is contained in:
		
							parent
							
								
									0c25bf29b4
								
							
						
					
					
						commit
						2a90de2b08
					
				| 
						 | 
				
			
			@ -252,8 +252,11 @@ class Message:
 | 
			
		|||
    @property
 | 
			
		||||
    def is_group(self):
 | 
			
		||||
        """True if the message was sent on a group or megagroup."""
 | 
			
		||||
        return not self.original_message.broadcast and isinstance(
 | 
			
		||||
            self.original_message.to_id, (types.PeerChat, types.PeerChannel))
 | 
			
		||||
        return (
 | 
			
		||||
            isinstance(self.original_message.to_id, (types.PeerChat,
 | 
			
		||||
                                                     types.PeerChannel))
 | 
			
		||||
            and not self.original_message.post
 | 
			
		||||
        )
 | 
			
		||||
 | 
			
		||||
    @property
 | 
			
		||||
    def is_channel(self):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user