+ 1

How solve this error

Traceback (most recent call last): File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 31, in <module> start(fakepyfile,mainpyfile) File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 30, in start exec(open(mainpyfile).read(), __main__.__dict__) File "<string>", line 6 context.bot.sendMessage(chat_id=update.effective_chat.id,text="Hello{yourname},Welcome on sillytuktuk bot".formot(yourname=update.effective.user=fullname)) ^ SyntaxError: invalid syntax [Program finished]

31st Jan 2022, 2:48 PM
Silly Tuktuk
3 Antworten
+ 3
Are you using python telegram bot Api. Check there you have written wrong spelling of format. You have written formot which is wrong replace it with format. Also, load the update.effective.user=fullname in a variable before that will be best for you.
1st Feb 2022, 12:31 AM
Abu Habban
Abu Habban - avatar
+ 3
Also like my answer
1st Feb 2022, 8:28 AM
Abu Habban
Abu Habban - avatar
+ 1
Ok bro
1st Feb 2022, 6:37 AM
Silly Tuktuk