line 9, in <module>
                  
                  
                      apphash = f9e51921ad2da7bce31ab69ee69f50e4
                  
                  
                  NameError: name 'f9e51921ad2da7bce31ab69ee69f50e4' is not defined
                  
                  
                  from telethon import TelegramClient, sync
                  
                  
                   
                  
                  
                  from telethon.tl.functions.account import UpdateProfileRequest
                  
                  
                   
                  
                  
                  new_name = 'hack'
                  
                  
                   
                  
                  
                  appid = 3829185
                  
                  
                   
                  
                  
                  apphash = f9e51921ad2da7bce31ab69ee69f50e4
                  
                  
                   
                  
                  
                  client = TelegramClient("session19371", appid, apphash)
                  
                  
                   
                  
                  
                  client.start()
                  
                  
                   
                  
                  
                  client(UpdateProfileRequest(first_name=new_name))
                  
                  
                  ```
                  
                  
                
Ты бы строку в кавычки взял (apphash)
Обсуждают сегодня