22
votes

When developing bot for Telegram is there any way to get user timezone? Date field in Message object contains UNIX timestamp only. I want to create bot sending some messages an fixed time of day to subscribed user. User can have different time zones and I don't want to force users to explicit send their timezone to bot in message.

2
No! There is no such ability currently in Telegram Bot API - ihoru

2 Answers

17
votes

It's imposible by standard Bot API.

You can ask user for location, and next, from this location calculate timezone for user.

3
votes

I've added /set_utc_offset command to my bot where users enter the time difference in minutes compared to UTC