Skip to content
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

use locale given from telegram #17

Open
N-Coder opened this issue May 30, 2017 · 0 comments
Open

use locale given from telegram #17

N-Coder opened this issue May 30, 2017 · 0 comments

Comments

@N-Coder
Copy link
Collaborator

N-Coder commented May 30, 2017

locale is available in the "from" field of updates:
{'update_id': 810333647, 'message': {'message_id': 750, 'date': 1496137493, 'chat': {'id': 114998496, 'type': 'private', 'first_name': 'Niko', 'last_name': 'Fink'}, 'text': '/mensa', 'entities': [{'type': 'bot_command', 'offset': 0, 'length': 6}], 'photo': [], 'new_chat_members': [], 'new_chat_photo': [], 'delete_chat_photo': False, 'group_chat_created': False, 'supergroup_chat_created': False, 'channel_chat_created': False, 'from': {'id': 114998496, 'first_name': 'Niko', 'last_name': 'Fink', 'language_code': 'en-GB'}}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant