You can use our Wehbook service to create a custom request to Telegram to provide the user with a message and a button and here’s how.
Your URL should be:
https://api.telegram.org/bot[Token]/sendMessage
You’ll just need to pop your bot token in the URL where indicated.
The Method should be POST.
The Content Type should be Raw Body.
You then need to paste the following in the body:
{
"chat_id": "{{bot_new_message.channel_id}}",
"text": "Hello World",
"reply_markup": {
"keyboard": [
[{
"text": "Send Location",
"request_location": true
}]
]
}
}
You will need to add a Header to the request and enter the following:
If you have renamed your trigger, you will need to update the output {{bot_new_message.channel_id}} with the channelid output from your bot trigger.
If you want to change the message, you need to edit the content between the quotes on the right side of “text”:“Hello World”
Known Issues: Telegram does not support sending location in the Desktop App version