if message.text == 'Оценивать':
vote(message)
print(vote(message)[1])
cursor.execute(f"UPDATE users SET rating == ?, total_votes == ? WHERE chat_id == ?", (f'{rating}', f'{total_votes}', f'{vote(message)[1]}'))
message.from_user.id
menu = ReplyKeyboardMarkup(resize_keyboard=True)
menu.row(KeyboardButton('Кнопка 1'), KeyboardButton('Кнопка 2'), KeyboardButton('Кнопка 3'))
menu.row(KeyboardButton('Кнопка 4'))
menu.row(KeyboardButton('Кнопка 5'), KeyboardButton('Кнопка 6'))
@bot.message_handler(content_types=['text'])
def get_text_messages(message):
if message.text == "Кнопка 1":
...
elif message.text == "Кнопка 2":
...