@bot.callback_query_handler(func=lambda call: call.data == '1')
def write_to_support(message):
chat_id = message.from_user.id
bot.send_message(chat_id, 'Введите свою фамилию')
users[chat_id] = {}
bot.register_next_step_handler(message, save_surname)
def save_surname(message):
chat_id = message.from_user.id
surname = message.text
users[chat_id]['surname'] = surname
bot.send_message(chat_id, f'Отлично, {surname}. Теперь укажи свое имя')
bot.register_next_step_handler(message, save_username)