Telegram icon indicating copy to clipboard operation
Telegram copied to clipboard

request_location=True doesn't work in a custom keyboard

Open notpurum opened this issue 6 years ago • 3 comments

The same keyboard does work in a normal Telegram but does nothing in Telegram X.

notpurum avatar Apr 08 '18 20:04 notpurum

request_contact тоже не работает...

makapoh avatar Apr 09 '18 06:04 makapoh

I think this happens because the reply_to_message field is not included when the "request_location" feature is used from the iPhone and Web clients. The field is included when the feature is used from an Android client. See message structures below -

Message from Android client -

 {"message": {"delete_chat_photo": false, "new_chat_photo": [], "reply_to_message": {"delete_chat_photo": false, "new_chat_photo": [], "from": {"username": "XXXXXXXXXXXXXX", "first_name": "XX XX XX", "is_bot": true, "id": 0000131313}, "text": "CheckIn", "caption_entities": [], "entities": [], "channel_chat_created": false, "new_chat_members": [], "supergroup_chat_created": false, "chat": {"first_name": "X", "last_name": "Y", "type": "private", "id": 01992937}, "photo": [], "date": 1536643711, "group_chat_created": false, "message_id": XXX}, "from": {"first_name": "X", "last_name": "Y", "is_bot": false, "id": 01992937, "language_code": "en-us"}, "photo": [], "channel_chat_created": false, "caption_entities": [], "entities": [], "new_chat_members": [], "location": {"latitude": 00.622373, "longitude": 00.625734}, "chat": {"first_name": "X", "last_name": "Y", "type": "private", "id": 01992937}, "date": 1536643730, "group_chat_created": false, "message_id": 807, "supergroup_chat_created": false}, "update_id": 98787878}

Message from Web/iPhone Client:-

{"message": {"delete_chat_photo": false, "new_chat_photo": [], "from": {"first_name": "X", "last_name": "Y", "is_bot": false, "id": 01992937, "language_code": "en-US"}, "photo": [], "channel_chat_created": false, "caption_entities": [], "entities": [], "new_chat_members": [], "location": {"latitude": 19.883311, "longitude": 75.333297}, "chat": {"first_name": "X", "last_name": "Y", "type": "private", "id": 01992937}, "date": 1536643902, "group_chat_created": false, "message_id": NNN, "supergroup_chat_created": false}, "update_id": 79128731}

arjunvenkatraman avatar Sep 11 '18 05:09 arjunvenkatraman

I have the same problem only in IOS

midianet avatar Apr 27 '19 14:04 midianet