def handle_message(message): markup = types.ReplyKeyboardMarkup() itembtn1 = types.KeyboardButton('На главную') time, bids, active_users, activ_list = reports_active_users( get_dates()[2], get_dates()[2]) # today, today bot.reply_to( message, f"{time} \n" f"{bids} \n" f"{active_users} \n" f"{activ_list}")
def handle_message(message): markup = types.ReplyKeyboardMarkup() itembtn1 = types.KeyboardButton('Продажи') itembtn2 = types.KeyboardButton('На главную') markup.add(itembtn1, itembtn2) _, quantity, sum = reports_moysclad(get_dates()[3], get_dates()[3], 'moscow_store') # today, today bot.reply_to(message, f"За период {get_dates()[1]}/{get_dates()[1]}: \n" f"со склада 'Москва' \n" f"продаж {quantity} \n" f"на сумму {sum} тыс.", reply_markup=markup)