Skip to content
Advertisement

Unable to get data collector to display values (Keeps displaying None value)

Hello I am currently using python telegram bot to create my bot, currently I am unable to use my data collector (which also functions to calculate my calories) to display the value I want) The issue is that it keeps returning a None value, does anybody know the solution why ?

JavaScript

I understand my means of doing this is quite rubbish :’) so if anybody has other better solutions to better store my data in python telegram bot it would be much appreciated! ( I am still not too sure how to utilise classes and objects for this tho)

Advertisement

Answer

Nevermind, turns out the issue was that the values were being thrown away as said by @BoarGules. Also, I restructured the code in such a way such that it was much simpler. Although it does not have the isnumeric filter yet for the user input but i will do what I can. Here is the appended code for anyone that is interested.

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement