-
Notifications
You must be signed in to change notification settings - Fork 613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Get user timezone offset #204
Comments
I think that it's expected that timezone offset is either inferred from |
The user's country code used to be included in |
Even if Telegram sent user's country to the bot, it wouldn't be possible to determine the timezone, cause there are countries with multiple timezones. |
@ggsupr Yes, I agree it can reveal a general location, but asking the user's location isn't a good idea since it sends the exact location, and many users won't accept this. |
Exact location is a little tricky: Seattle, WA, US uses the time zone for Los Angeles, CA, US ( Even just current offset is problematic: I use time zones to display the start/end times of future events, so when an event is coming up soon enough to warrant planning for, but with a daylight saving switchover between then and now, I would at best cause some irritation a couple times a year. The only good answer I have found is to explicitly ask users, and knowing their country code was a useful starting point (but now I explicitly prompt for it). For what it's worth, in my (Also for what it's worth, I would be happy to see a |
@levlam Any thoughts on this? |
Just a thought, but a feature like this would make the app less private: you would be able to pinpoint specific users to specific timezones, meaning you potentially locate them in specific parts of the globe. |
I agree completely It's worth noting that one of the proposed solutions above was to ask users for their exact location, and to write your bot to infer the timezone from that, and that solution would be a much, much worse location leak (admittedly, it would be an optional location leak which users would be aware of and have the chance to decline, so it still has its benefits)
This is definitely the best suggestion, In my humble opinion I'm assuming that the goal is to display a particular time, written as human-readable time, in the reader's own timezone (and perhaps the reader's own locale-specific format?) If that's the case, then this is a great suggestion. Telegram should provide a mechanism to for bots to submit a unix-time to Telegram, included as part of the message, and some kind of markup that would cause Telegram clients to display the time in a human-readable way ... except... I just realized that that means showing different text to different readers, for the same message. That would involve an update to the clients as well as the bot API. Damn... |
Simple markup is how you end up with stuff like: Event Alpha instead of something like: Event Alpha That said, if that kind of logic were competently moved into the clients themselves, I'd love to just emit something like:
I just don't want it to destroy readability. |
This would extremely useful for people like me because I always move all my clients to telegram. Basically I use telegram as my office platform for meetings, customer feedback and more. Some option on the group so they csn set their timezone and that way, when they type it tells me when they wrote that (similar to how fiverr shows it when talking to someone). That way there is no need to always ask for their time in order to coordinate meetings via telegram. |
The issue of confidentiality is not entirely clear. After all, the task is not “get the time zone of the user’s location.” And the task is to get the “time zone that is configured on the user’s device for dates” in which the telegram itself shows all the dates. This setting does not tell us where the user is located. In addition, there are a few more points - in WebApp it’s easy to get the user’s time zone, but for inline requests made to the bot @ there is no this information, and asking for the user’s time zone in some chat in response to his request also seems strange and an even bigger disclosure confidentiality. In general it would be great to be able to get the time zone along with the language in the "from" object. |
@JerakRus |
@levlam The permanent provision will only be to the bot or application, and the text message will be seen by all chat users. |
@JerakRus |
@NMorg Location demand - greatly reduces the conversion of users to the bot. For example, as a user, I don’t want to share my location, but I don’t mind if the bot knows my time zone to display the data correctly. In addition, it is not always possible to accurately determine the time zone by location - there are still countries with several zones or, conversely, with several locations - but they have different time zones. |
@JerakRus You're repeating some of the earlier discussion. I think the options so far are:
|
Thank you for such a detailed answer. Indeed, I could have repeated myself because I did not see all the previous discussions, for that I apologize. But judging by the fact that there is no functionality, the discussions came to conclusions that seemed strange to me and at the same time complicate third-party development, so I raised the question again. Of the options you proposed, for many factors it seems to me that 1 is the most suitable. |
Hi, It would be very useful if we could access the user's client timezone offset, maybe as a new field in the
from
objectThe text was updated successfully, but these errors were encountered: