Node-telegram-bot-api: Any plan to support KeyboardButton with request_contact and request_location?

Created on 21 May 2016  路  3Comments  路  Source: yagop/node-telegram-bot-api

Any plan to support KeyboardButton with request_contact and request_location?

sorry! my bad!

Most helpful comment

resolved. it turns out , already supported:

var options = {
                                                "parse_mode": "Markdown",
                                                "reply_markup": JSON.stringify({
                                                        "keyboard": [
                                                                [{ text: "Send Location", request_location:true }],
                                                                [{ text: "Send Contact", request_contact: true }]
                                                        ],
                                                        "one_time_keyboard" : true
                                                })
                                        };

All 3 comments

resolved. it turns out , already supported:

var options = {
                                                "parse_mode": "Markdown",
                                                "reply_markup": JSON.stringify({
                                                        "keyboard": [
                                                                [{ text: "Send Location", request_location:true }],
                                                                [{ text: "Send Contact", request_contact: true }]
                                                        ],
                                                        "one_time_keyboard" : true
                                                })
                                        };

@troywmz
The above code that @antonrifco share is correctly working ....
Please check bot father setting for your location of your bot and then try the above code ....

@FaRzad-845 solved. Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lenny76 picture lenny76  路  3Comments

hems picture hems  路  3Comments

Hostile picture Hostile  路  3Comments

saeedhei picture saeedhei  路  4Comments

mbrammer picture mbrammer  路  3Comments