Unique message ID in telegram bot

Viewed 20

I want to make my own telegram bot for make my work routine a little bit easier I have a problem: im trying to assign unique id to each telegram message (answer on questions) and then send them to the google sheets, but i have a problem, i can't assign unique id for some reason, can you share some ideas about it? It can be realized at all? Language: python

@bot.message_handler()
def get_user_text(message):
    if message.text == "#ув":
        bot.send_message(message.chat.id, f'Итак, если хотите записать, следуйте инструкциям <b><u>ниже:</u></b>', parse_mode='html')
        bot.send_message(message.chat.id,'Введите фамилию и инициалы (пример <b><u>Иванов И.И.</u></b>):', parse_mode='html')
        NSI=get_user_text(message)
    elif message.text == 'NSI':
        bot.send_message(message.chat.id, NSI)

P.S. program requires surname and initials

0 Answers
Related