I'm using the python-telegram-bot
library.
I want to track a user's Live Location, but I don't know how to do it.
I try to use Job Queue:
def notification(bot, job):
updates = bot.get_updates()
print([u.message.location for u in updates])
# Add job to queue
job = job_queue.run_repeating(notification, 10, 1, context=chat_id)
chat_data['job'] = job
But updates are void. I want to track location every 1 minutes.
edited_updates=True
is now unnecessary; it will now yield aTelegramDeprecationWarning
. The Transition Guide will essentially say, it now accepts all updates by default. – Cunnilingus