问题描述
我正在尝试使用 Telegram BOT 向群组发送消息.首先,我认为知道群聊 id 就足够了,但事实并非如此.BOT 必须是该组的一部分.好吧,这有点道理,但问题是:当您将 BOT 添加到一个组(在本例中是一个大组)中时,每个人都开始在他们的设备上看到一个新图标,即斜线"图标.他们做什么?他们点击它,查看命令列表,选择其中一个,突然间每个人都收到来自该组的新消息:/something".想象一下,有几十个人在这样做吗?这很烦人.所以,这些都对我有用:
I'm trying to use a Telegram BOT to send messages to a group. First, I thought that it'd be enough to know the group chat id to accomplish that, but it's not. The BOT MUST be part of that group. OK, it kind of make sense, but the problem is: When you add a BOT into a group (a large group in this case) everyone start seeing a new icon on their devices, a "slash" icon. And what do they do ? They click on it, see the list of commands, choose one of them, and all of a sudden everyone is getting a new message from the group: a "/something". Imagine dozens of people doing that ? It's pretty annoying. So, any of these would work for me:
1) 我可以在没有 BOT 的情况下将消息从 BOT 发送到组吗?2)我可以有一种无方法"BOT,只发送消息吗?3) 我可以禁用客户端的斜线"图标,这样我就不会在组中出现机器人方法大战"吗?
1) Can I send messages from a BOT to a group without having that BOT in the group ?2) Can I have a kind of "no methods" BOT, that only send messages ?3) Can I disable "slash" icon from clients so I won't have a "bot method war" in the group ?
谢谢
推荐答案
- 不可以,您不能让机器人在不属于该群组的情况下向该群组发送消息.
- 您可以简单地不使用 BotFather 设置命令,然后客户端将没有命令可显示.
- 如果 bot 在当前聊天中,它总是存在,但在 BotFather 中没有设置命令时,它会执行以下操作:
这篇关于当它是一个组的一部分时如何隐藏 Telegram BOT 命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!