I'm using the sendMessage
method from telegram api
I want to send something like this:
Some message some_text_for_command , another text.
When user will read this message from telegram bot, he can click on some_text_for_command and this action will generate message from user, which should looks like this:
/some_command with_text
Is is possible to realize something like this?
Because, when I try to use messageEntity is doesn't work:
curl --location --request POST 'https://api.telegram.org/bot{bot_code}/sendMessage' \
--header 'Content-Type: application/json' \
--data-raw '{
"chat_id": 1,
"text": "/some_command text, another text",
"entities": [
{
"type" : "bot_command",
"offset": 0,
"length": 18
}
]
}'
So telegram just parses message and gives an ability to click only on some_command
, not for the command with the text. Also if I try to send message without \
, it should parse it at all.