Skip to content
\n

I just tried to start a bot at 11:30 and it didn't call callback at 11:35. Also I tried to print job.next_t but it is always None (perhaps it is ok regarding docs). In additional job_*.enabled is always false, is it ok or I do something wrong here?

","upvoteCount":1,"answerCount":2,"acceptedAnswer":{"@type":"Answer","text":"

I'm dumbass, my bad. I passed datetime.timezone.utc (which equals UTC+0), but I'm in UTC+3, that's why nothing worked. I changed it onto datetime.timezone(datetime.timedelta(hours=3)) and now they works!

","upvoteCount":0,"url":"https://github.com/python-telegram-bot/python-telegram-bot/discussions/5018#discussioncomment-14758751"}}}
Discussion options

You must be logged in to vote

I'm dumbass, my bad. I passed datetime.timezone.utc (which equals UTC+0), but I'm in UTC+3, that's why nothing worked. I changed it onto datetime.timezone(datetime.timedelta(hours=3)) and now they works!

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@obfuscate
Comment options

@obfuscate
Comment options

@obfuscate
Comment options

Answer selected by obfuscate
Comment options

You must be logged in to vote
1 reply
@obfuscate
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants