mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-11-04 01:47:27 +03:00 
			
		
		
		
	
							parent
							
								
									2052b502c8
								
							
						
					
					
						commit
						417bfcd36e
					
				| 
						 | 
					@ -54,7 +54,7 @@ class QRLogin:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        The URL simply consists of `token` base64-encoded.
 | 
					        The URL simply consists of `token` base64-encoded.
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
        return 'tg://login?token={}'.format(base64.b64encode(self._resp.token).decode('utf-8'))
 | 
					        return 'tg://login?token={}'.format(base64.urlsafe_b64encode(self._resp.token).decode('utf-8').rstrip('='))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @property
 | 
					    @property
 | 
				
			||||||
    def expires(self) -> datetime.datetime:
 | 
					    def expires(self) -> datetime.datetime:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user