mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-11-04 09:57:29 +03:00 
			
		
		
		
	Fix warning when using formatted phones in start (#1532)
This commit is contained in:
		
							parent
							
								
									bde38fb748
								
							
						
					
					
						commit
						1a9accbe5d
					
				| 
						 | 
					@ -155,7 +155,7 @@ class AuthMethods:
 | 
				
			||||||
                        'not login to the bot account using the provided '
 | 
					                        'not login to the bot account using the provided '
 | 
				
			||||||
                        'bot_token (it may not be using the user you expect)'
 | 
					                        'bot_token (it may not be using the user you expect)'
 | 
				
			||||||
                    )
 | 
					                    )
 | 
				
			||||||
            elif not callable(phone) and phone != me.phone:
 | 
					            elif phone and not callable(phone) and utils.parse_phone(phone) != me.phone:
 | 
				
			||||||
                warnings.warn(
 | 
					                warnings.warn(
 | 
				
			||||||
                    'the session already had an authorized user so it did '
 | 
					                    'the session already had an authorized user so it did '
 | 
				
			||||||
                    'not login to the user account using the provided '
 | 
					                    'not login to the user account using the provided '
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user