bot-on-anything icon indicating copy to clipboard operation
bot-on-anything copied to clipboard

telegram机器人可以设置特定前缀触发吗?

Open Nanlo1 opened this issue 1 year ago • 3 comments

现在telegram机器人在群里每条消息都会回复,可以设置包含特定前缀则触发机器人吗?

另外现在所有群都可以添加,能支持只有特定的群组可以使用吗?

"channel": { "type": "telegram", "single_chat_prefix": ["bot", "@bot"], "single_chat_reply_prefix": "[bot] ", "group_chat_prefix": ["@bot"], "group_name_white_list": ["ChatGPT测试群"], "image_create_prefix": ["画", "看", "找一张"],

我在这里设置了貌似不起作用,是不支持还是我没设置对呢?

Nanlo1 avatar Mar 05 '23 03:03 Nanlo1

我看了下,目前telegram只支持 image_create_prefix 这一个参数,其他的都没有实现,后续考虑添加

zhayujie avatar Mar 05 '23 08:03 zhayujie

@1491928274 你的机器人是在国内使用么?为什么我配置好了。发消息给机器人没反应,我 挂了vpn

frankchn-x avatar Mar 05 '23 09:03 frankchn-x

@frankchn-x 需要在代码中添加代理

import os ##设置代理 os.environ["https_proxy"] = "http://127.0.0.1:7890" os.environ["http_proxy"] = "http://127.0.0.1:7890" os.environ["all_proxy"] = "socks5://127.0.0.1:7890"

Nanlo1 avatar Mar 07 '23 13:03 Nanlo1

我部署在tg上,用的是bing,为什么对机器人聊天没反应啊?提示已经开启机器人了,openai是正常的,我也试过EGDEGPT,终端访问也是可以正常交流的

kettly1260 avatar Mar 19 '23 16:03 kettly1260

I deployed on TG and use Bing, why is it not responsive to bot chat? The prompt has turned on the robot, openai is normal, I have also tried EGDEGPT, terminal access can also communicate normally

same issue here

infinit-X avatar Mar 31 '23 15:03 infinit-X