skip to Main Content

How can I take chat_id in job_queue run_repeating callback function in telegram bot in python? – Telegram API

I need to take chat_id in repeating task to send users some repeating but personalized messages. How can I take chat_id in repeating func? def repeating(context): context.bot.send_message(chat_id=<CHAT_ID>,text=res["message"]) def main(): updater = Updater(constants.BOT_API_KEY, use_context= True) job_queue = JobQueue() dp = updater.dispatcher…

VIEW QUESTION
Back To Top
Search