无法在电报API中创建哈希标记

2024-06-01 21:32:47 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在为我的频道建立电报机器人。我正在使用parse_mode=Markdown使消息更漂亮。你知道吗

我还需要使锚提供更容易的搜索。我正在尝试做我有整数值discount['id'],我正在构建如下锚定:

telegramPost = '%23' + str(discount['id'])

但它只打印纯文本。我也试着让它像

telegramPost = '[%23' + str(discount['id']) + ']'

但结果是一样的。如何制作一个可点击的标签?你知道吗


Tags: 文本id消息parsemode机器人discount整数