电报机器人如何回复特定的司令机器人API?

发布于 2025-02-07 00:00:51 字数 122 浏览 2 评论 0原文

每当有人使用默认的“/start”命令启动机器人时,我正在尝试找到一种方法来使我的电报机器人回答“您好,请输入您的电话号码”。有没有办法使用电报机器人令牌和电报机器人API来执行此操作?还是有办法使用Botfather做到这一点?

I am trying to find a way to make my Telegram bots reply "Hello, please enter your phone number" whenever someone starts the bot using the default "/start" command. Is there a way to do this with Telegram Bot token and Telegram Bot API? Or is there a way for me to do this using BotFather?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ぶ宁プ宁ぶ 2025-02-14 00:00:51

您必须获取机器人的更新。您可以通过调用 getupdates ,或设置 webhooks 。有关获取更新的更多信息,请访问获取更新

You have to fetch the updates your bot gets. You can do this either by calling the getUpdates method constantly, or setting up Webhooks. For more on getting updates, head to Getting updates.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文