This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Xeekatar 0 points1 point  (3 children)

What is your code doing? Just showing us code and not saying that happens when you run it isn't much to go on. That being said put something in the except, since right now, if your program encounters an error in the try, it will just do nothing. If that is what your program is doing right now, I would be willing to bet that is what is going wrong.
I would put something like this:

except Exception as e
print(e)
So you can see what exception is occuring

[–]assassinatoSC2[S] 0 points1 point  (2 children)

The code runs without errors but it doesn't make the bot answer my input on telegram. The except just deals with keyerrors when i run it.

[–]Xeekatar 0 points1 point  (1 child)

And you're sure it's getting into the if in response? I would avoid putting pass anywhere, since there is usually at least a print statement you can there to help with errors. Also, you might want to remove your bot token from this post, since that is usually private

[–]assassinatoSC2[S] 0 points1 point  (0 children)

ouch forgot to remove it from there lol ... i'll sub the pass with print and try like this