telegram bot send message every hour python

Solutions on MaxInterview for telegram bot send message every hour python by the best coders in the world

showing results for - "telegram bot send message every hour python"
Rowan
01 Jun 2019
1def check_the_week(bot, update):
2reply_keyboard = [['YES', 'NO']]
3bot.send_message(
4    chat_id=update.message.chat_id,
5    text=report,
6
7    reply_markup=ReplyKeyboardMarkup(reply_keyboard, one_time_keyboard=True))  # sends the total nr of hours
8update.reply_text("Did you report all you working hour on freshdesk for this week?",
9                  ReplyKeyboardMarkup(reply_keyboard, one_time_keyboard=True))
10
11if update.message.text == "YES":
12    update.message.reply_text(text="Are you sure?",
13                              reply_markup=ReplyKeyboardMarkup(reply_keyboard, one_time_keyboard=True))
14
15    # Asks confirmation
16    if update.message.text == "YES":
17        update.message.reply_text(text="Thank you for reporting your working hours in time!")
18
19    elif update.message.text == "NO":
20        update.message.reply_text(text="Please, check you time reports and add missing")
21
22elif update.message.text == "NO":
23    update.message.reply_text(text="Please, check you time reports and add missing")
24