python telegram bot:为什么数字是指向电话号码的链接?

亚历克斯·波卡(Alex Poca)

使用Python-Telegram-Bot发送文本/降价,所有数字组都呈现为指向电话号码的链接,例如

测试影像

单击12345,将跳至电话键盘。如何避免这种行为,将12345渲染为普通文本(而不是链接)?

我浏览了文档,但找不到与此特定问题有关的任何参考。

这是测试代码:

import telegram
from telegram.ext import Updater, CommandHandler

TOKEN="token_here"

def start_function(update, context):
    update.message.reply_text("Test 12345", parse_mode=telegram.ParseMode.MARKDOWN)

bot = telegram.Bot(token=TOKEN)
updater = Updater(token=TOKEN, use_context=True)
dispatcher = updater.dispatcher
dispatcher.add_handler(CommandHandler("start", start_function))
updater.start_polling()

欢迎使用任何指向文档或示例的指针。先感谢您。

0石0

降价

将数字包装在``(反引号)中;

Test: `12345`

的HTML

将数字括起来<code></code>

Test: <code>12345</code>


MarkDown 示例(第一个提示 `` ,第二个请求;):

&text=Test: `12345`&parse_mode=MarkDown

在此处输入图片说明

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Telegram bot 使用 Ruby 解析用户的电话号码?

来自分类Dev

在heroku上托管python telegram bot

来自分类Dev

使Python-Telegram-Bot持久化

来自分类Dev

在Python中将字母转换为电话号码的数字

来自分类Dev

通过Telegram Bot API使用可用的匹配电话号码获取用户名和名字

来自分类Dev

通过Telegram Bot API使用可用的匹配电话号码获取用户名和名字

来自分类Dev

如何通过python-telegram-bot接收file_id?

来自分类Dev

如何使用python-telegram-bot转发消息

来自分类Dev

如何在python中为Telegram bot设置webhook?

来自分类Dev

如何通过python-telegram-bot接收file_id?

来自分类Dev

在 Telepot 中运行 handle(msg)(telegram bot python 包)

来自分类Dev

Python Telegram bot 从列表中添加处理程序

来自分类Dev

如何检查电话号码数据库中是否存在Telegram Messenger?

来自分类Dev

Python“猜测您的电话号码”错误

来自分类Dev

Python - 在返回之前验证电话号码

来自分类Dev

尝试通过python-telegram-bot发送sendPhoto时出现UnicodeDecodeError

来自分类Dev

在python-telegram-bot中如何获取小组的所有参与者?

来自分类Dev

python-telegram-bot错误“ CallbackContext”对象没有属性“ message”

来自分类Dev

python-telegram-bot在对话处理程序之间传递参数

来自分类Dev

telegram-python-bot ImportError没有名为'cryptography'的模块高山Docker

来自分类Dev

如何将ConversationHandler模块从Python-Telegram-Bot迁移到Telethon

来自分类Dev

python-telegram-bot-send_photo()缺少1个必需的位置参数:'self'

来自分类Dev

无法使用Python Telegram bot将文件保存在自定义路径目录中

来自分类Dev

如何在python-telegram-bot中更新时间变量字符串

来自分类Dev

python-telegram-bot 菜单创建工具库导入问题

来自分类Dev

带有 python-telegram-bot 库的电报机器人

来自分类Dev

安装python-telegram-bot时出现错误“找不到包'libffi'”

来自分类Dev

Telegram Bot 不回复消息

来自分类Dev

托管 C# Telegram Bot

Related 相关文章

  1. 1

    Telegram bot 使用 Ruby 解析用户的电话号码?

  2. 2

    在heroku上托管python telegram bot

  3. 3

    使Python-Telegram-Bot持久化

  4. 4

    在Python中将字母转换为电话号码的数字

  5. 5

    通过Telegram Bot API使用可用的匹配电话号码获取用户名和名字

  6. 6

    通过Telegram Bot API使用可用的匹配电话号码获取用户名和名字

  7. 7

    如何通过python-telegram-bot接收file_id?

  8. 8

    如何使用python-telegram-bot转发消息

  9. 9

    如何在python中为Telegram bot设置webhook?

  10. 10

    如何通过python-telegram-bot接收file_id?

  11. 11

    在 Telepot 中运行 handle(msg)(telegram bot python 包)

  12. 12

    Python Telegram bot 从列表中添加处理程序

  13. 13

    如何检查电话号码数据库中是否存在Telegram Messenger?

  14. 14

    Python“猜测您的电话号码”错误

  15. 15

    Python - 在返回之前验证电话号码

  16. 16

    尝试通过python-telegram-bot发送sendPhoto时出现UnicodeDecodeError

  17. 17

    在python-telegram-bot中如何获取小组的所有参与者?

  18. 18

    python-telegram-bot错误“ CallbackContext”对象没有属性“ message”

  19. 19

    python-telegram-bot在对话处理程序之间传递参数

  20. 20

    telegram-python-bot ImportError没有名为'cryptography'的模块高山Docker

  21. 21

    如何将ConversationHandler模块从Python-Telegram-Bot迁移到Telethon

  22. 22

    python-telegram-bot-send_photo()缺少1个必需的位置参数:'self'

  23. 23

    无法使用Python Telegram bot将文件保存在自定义路径目录中

  24. 24

    如何在python-telegram-bot中更新时间变量字符串

  25. 25

    python-telegram-bot 菜单创建工具库导入问题

  26. 26

    带有 python-telegram-bot 库的电报机器人

  27. 27

    安装python-telegram-bot时出现错误“找不到包'libffi'”

  28. 28

    Telegram Bot 不回复消息

  29. 29

    托管 C# Telegram Bot

热门标签

归档