parsing()
price = float(currency)
differnce = ('0,1')
time.sleep(10)
parsing()
ab = (price + float(differnce))
ac = (price - float(differnce))
if currency >= ab:
bot.send_message(message.chat.id, ' Course increased: ' + str(currency) +' ')
elif currency <= ac:
bot.send_message(message.chat.id, ' Course lowered: ' + str(currency) +' ')
cur = "75,82"
print(float(cur.replace(',','.'))) # 75.82
print(float(cur)) # ValueError: could not convert string to float: '75,82'
currency = convert[0].text
заменить на:
currency = convert[0].text.replace(',','.')