Answer the question
In order to leave comments, you need to log in
What caused the Unicode error?
An error appears in this part of the code: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal.
if message.text =='Товары':
bot.send_message(message.chat.id, 'Доступные товары')
elif message.text =='Баланс':
bot.send_message(message.chat.id, 'Ваш баланс '+balance+' руб.')
else:
bot.send_message(message.chat.id, 'Такой команды нет :/')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question