Html - "<b>Hey #{user_mention},</b>\n<i>This is an image generator bot.</i>\n\n<i>How to

use it?</i>\nJust type /img Whatever you want.\nFor example type /img Tiger. This will give you results for tiger."

error - /app/vendor/bundle/ruby/3.1.0/gems/telegram-bot-ruby-1.0.0/lib/telegram/bot/api.rb:61:in `call': Telegram API has returned the error. (ok: "false", error_code: "400", description: "Bad Request: can't parse entities: Unsupported start tag "whatever" at byte offset 29") (Telegram::Bot::Exceptions::ResponseError)

9 ответов

34 просмотра

One of the user that you tried might have weird names, and you are not escaping the user input.

Can you try escaping the / in /img

Похожие вопросы

Карта сайта