Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Telegram Bot. Get User timezone

Tags:

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.

like image 617
nnesterov Avatar asked Apr 26 '16 17:04

nnesterov


1 Answers

It's imposible by standard Bot API.

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

like image 192
Danil Pyatnitsev Avatar answered Sep 22 '22 13:09

Danil Pyatnitsev