E
E
Enalenaral2022-02-24 20:45:33
Python
Enalenaral, 2022-02-24 20:45:33

How to make the date in the QR code automatically change (for telebot) in python?

elif call.data == "yes_will_eat":
        bot.answer_callback_query(call.id, "Вот твой QR-код")
        users = surname+" "+name+"/"+grade+"/"+now+"/"+"2334"
        img = qrcode.make(users)
        img.save('qr_code.png')
        bot.send_photo(call.message.chat.id, open('qr_code.png', 'rb'))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
Zolg, 2022-02-24
@Zolg

ask for the current date at code generation time rather than relying on the date(?) in the now variable

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question