mardi 20 octobre 2020

callback and if conditions in a telegram bot in python

Hello I'm new to telegram bot development in python. Faced this problem: I need to complete these conditions so that I end up with 2, but it turns out in fact that 1 is always displayed, I do some kind of questioning

if call.data == '112':
    p += 1
if call.data == '121':
    p += 1
    print(p)

Aucun commentaire:

Enregistrer un commentaire