Skip to content
Projects

zu1k/tg-keyword-reply-bot

View on GitHub

About

Telegram keyword auto-reply bot: automatically replies with text, images, or files based on keywords or regular expressions configured by group administrators, and can perform group moderation actions such as permanent or temporary mutes and removals.

Science & Engineering

How these counts are measured

Measured star growth

in 24h
0
in 7 days
-1
in 15 days
-2
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original


Telegram 关键词自动回复机器人

基本命令

  • 添加关键词回复规则 /add 关键词===回复内容 或者 /add 关键词1||关键词2===回复内容
  • 关键词可以使用正则表达式,例如/add re:p([a-z]+)ch===测试正则,就会匹配规则p([a-z]+)ch
  • 删除关键词规则 /del 关键词 暂不支持一次性删除多个关键词
  • 自动删除含有关键词的文字消息, 只需要将回复内容设置成 delete, 并给机器人添加删除消息权限
  • 使用/list命令可以查看本群内所有自动回复规则
  • 给机器人添加删除消息和踢人的管理权限,可以自动防清真(阿拉伯语)

回复特殊内容

  • 回复内容支持文字\图片\GIF\视频,默认文字
  • 如需图片,回复内容设置成photo:https://t.me/c/1472018167/53095,https://t.me/c/1472018167/53095是已经发送过的图片获取到的链接
  • 同理,gif将photo替换成gif,视频替换成video,文件替换成file
  • 注意: 这里的链接必须是公开群组的,否则无法发出来

License

MIT zu1k [email protected]

不提供任何机器人相关的咨询或其他服务,不要私聊我

Explore related projects

Loading…