change your name and try, 😁😁 i don't know what else to say...
So the Name of the users is the problem here
Try adding < in your name
You can try triggering that mssg cuz u got <> in name
If the user’s name has characters which is actually used for html parsing, If the tag is incomplete or weirdly formatted this error occurs
if message.text == '/start' user_mention = "<a href=\"tg://user?id=#{message.from.id}\">#{message.from.first_name}</a>" caption = "<b>Hey #{user_mention},</b>\n<i>This is an image generator bot.</i>\n\n<i>How to use it?</i>\nJust type <code>/img <Whatever you want.></code>\nFor example type <code>/img Tiger</code>. This will give you results for tiger.</code>"
You can either strip() all html tags in the user’s name or just escape it
I don't want to strip all html tags
Then you can escape html
How to escape html?
There is a python module called html
And in ruby ?
Oh you use ruby
Обсуждают сегодня