Answer the question
In order to leave comments, you need to log in
NameError: name 'phone' is not defined?
Traceback (most recent call last):
File "C:/Users/arkasha/AppData/Local/Temp/Rar$DRa7804.22900/edefrog/main.py", line 13, in
qiwi = QApi(phone=phone, token= qiwi_token)
NameError: name 'phone' is not defined
Process finished with exit code 1
code itself:
qiwi = QApi(phone=phone, token=qiwi_token)
bot = Bot(telegram_token, parse_mode=ParseMode.HTML)
dp = Dispatcher(bot, storage=MemoryStorage())
Answer the question
In order to leave comments, you need to log in
You don't have a phone variable, a NameError occurs when the variable used is not defined. Make sure a variable with that name exists, check that there are no errors in the name and check the indentation
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question