如何使用电报机器人创建超链接?

How to create a hyperlink using telegram bot?

我想在 python 中使用电报 api 创建一个名为 ABC which takes you to http://example.com/ 的超链接。

You can use formatting option to do this

示例:

from telegram import ParseMode

bot.send_message(chat_id=chat_id, text="<a href='http://example.com/'>ABC</a>", 
                  parse_mode=telegram.ParseMode.HTML)