close

How to send a hyperlink in bot.sendMessage()

Hello Guys, How are you all? Hope You all Are Fine. Today We Are Going To learn about How to send a hyperlink in bot.sendMessage() in Python. So Here I am Explain to you all the possible Methods here.

Without wasting your time, Let’s start This Article.

Table of Contents

  1. How to send a hyperlink in bot.sendMessage()?

    By specifying pare_mode=ParseMode.HTML in send_message() you can use HTML tags.

  2. send a hyperlink in bot.sendMessage()

    By specifying pare_mode=ParseMode.HTML in send_message() you can use HTML tags.

Method 1

By specifying pare_mode=ParseMode.HTML in send_message() you can use HTML tags.

Example for Hyperlink

bot.send_message(chat_id=update.message.chat_id, text="<a href='https://www.google.com/'>Google</a>",parse_mode=ParseMode.HTML)

Example for Bold

bot.send_message(chat_id=update.message.chat_id, text="<b>Bold font</b>",parse_mode=ParseMode.HTML)

Summery

It’s all About this issue. Hope all Methods helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which Method worked for you? Thank You.

Also, Read