电报机器人如何回复特定的司令机器人API?
每当有人使用默认的“/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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须获取机器人的更新。您可以通过调用
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.