I everyone, I am using telepot to send text and image on my telegram bot. Below an example of my code:
bot.sendPhoto('@XXXXXXXXXX', getImage(soup),
caption = getTitle(soup) + getDealPrice(soup) , disable_notification=True)
getTitle(soup) and getDealPrice(soup) return a string.
How can I bold only getTitle(soup) ?
Thank you so much.
I resolved.
bot.sendPhoto(
'@XXXXXXXXXX',
getImage(soup),
parse_mode='Markdown',
caption = '*' + getTitle(soup)+ '*' + '*' + getDealPrice(soup) + '*',
disable_notification=True
)
Thanks
mo1ein