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)
One of the user that you tried might have weird names, and you are not escaping the user input.
How to solve this error then?
Can you try escaping the / in /img
Means remove /
But it's a command
Try printing out the string from 29th char onwards
Make sure the same username occurs there
show full code in nekobin maybe 🤔
Обсуждают сегодня