使用电报bot web app集成组成

发布于 2025-01-23 04:02:09 字数 124 浏览 1 评论 0原文

我遵循电报机器人API文档,以在telegram bot中为Web应用程序的新功能提供,但我设法使其仅在与机器人的私人聊天中使用。

也可以小组使用吗?如果否,是否计划将来更新?

我什么都没发现文档中的小组。

I followed telegram bot api documentation for the new feature of web application in telegram bots, but I managed to get it working only in private chats with the bot.

Can it be also used in groups? If no, is it planned for future updates?

I didn't found anything about groups in the documentation.

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

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

发布评论

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

评论(3

孤星 2025-01-30 04:02:09

不,这是不可能的。 WebApp仅在与Bot的私人聊天中工作。

No, this is not possible now. WebApp working only in private chat with bot.

把昨日还给我 2025-01-30 04:02:09

您可以将a link 单击网络应用程序。它按预期工作,并支持渠道和组。 首先注册WebApp

https://t.me/botusername/appname
https://t.me/botusername/appname?startapp=command

如果您想使用 inlinekeyboardbutton 使用web_app它只能在私人聊天中起作用:

用户按下按钮时将启动的Web应用程序的描述。 Web应用程序将能够使用方法weathbappquery代表用户发送任意消息。

You may put a link inside a text message that will open Web App on click. It works as expected and supports both channels and groups. Register a WebApp first.

https://t.me/botusername/appname
https://t.me/botusername/appname?startapp=command

If you want to use InlineKeyboardButton with the web_app type, it will work only in private chats:

Description of the Web App that will be launched when the user presses the button. The Web App will be able to send an arbitrary message on behalf of the user using the method answerWebAppQuery. ???? Available only in private chats between a user and the bot.

楠木可依 2025-01-30 04:02:09

因此,因为在2023年,您可以做到。

So, for in 2023 you can do it.

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