telegram-bot-ruby icon indicating copy to clipboard operation
telegram-bot-ruby copied to clipboard

markdown square bracket characters [ ] dont work

Open lsaavedr opened this issue 8 years ago • 4 comments

dont work:

bot.api.sendMessage(chat_id: message.chat.id, text: "\[dont show in brackets\]", parse_mode: "Markdown")

work, but why?:

bot.api.sendMessage(chat_id: message.chat.id, text: "\\[show in brackets\]", parse_mode: "Markdown")

regards, Luis

lsaavedr avatar May 02 '16 02:05 lsaavedr

I believe it's Telegram API's issue, as gem doesn't do any markdown transformation and sends your data as is.

atipugin avatar May 04 '16 10:05 atipugin

HowTo see the RESTful request ?

lsaavedr avatar Jun 15 '16 07:06 lsaavedr

maybe it is a faraday hash-parse-params-to-generate-request-url problem...

lsaavedr avatar Jun 15 '16 08:06 lsaavedr

was because text must be surrounded with ' not with " (ruby style), but the second scape ']' it's not necessary and it's an API's issue?

lsaavedr avatar Jun 15 '16 09:06 lsaavedr

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Feb 19 '23 15:02 github-actions[bot]