pyTelegramBotAPI icon indicating copy to clipboard operation
pyTelegramBotAPI copied to clipboard

add support for new html parse_mode

Open ticoti opened this issue 10 years ago • 1 comments

https://core.telegram.org/bots/api#formatting-options

ticoti avatar Jan 22 '16 06:01 ticoti

It works with the actual implementation. You only have to pass "HTML" to parse_mode argument.

tb.send_message(message.chat.id,message.text+"\n<b>"+message.text+"</b>\n<i>"+message.text+"</i>",parse_mode="HTML")

image

29antonioac avatar Jan 22 '16 15:01 29antonioac