mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-11-04 09:57:29 +03:00 
			
		
		
		
	
							parent
							
								
									5c5cee16d9
								
							
						
					
					
						commit
						522681f463
					
				| 
						 | 
					@ -946,6 +946,8 @@ def get_peer(peer):
 | 
				
			||||||
            return peer.peer
 | 
					            return peer.peer
 | 
				
			||||||
        elif isinstance(peer, types.ChannelFull):
 | 
					        elif isinstance(peer, types.ChannelFull):
 | 
				
			||||||
            return types.PeerChannel(peer.id)
 | 
					            return types.PeerChannel(peer.id)
 | 
				
			||||||
 | 
					        elif isinstance(peer, types.UserEmpty):
 | 
				
			||||||
 | 
					            return types.PeerUser(peer.id)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if peer.SUBCLASS_OF_ID in (0x7d7c6f86, 0xd9c7fc18):
 | 
					        if peer.SUBCLASS_OF_ID in (0x7d7c6f86, 0xd9c7fc18):
 | 
				
			||||||
            # ChatParticipant, ChannelParticipant
 | 
					            # ChatParticipant, ChannelParticipant
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user