响应诸如 “/抱”、“/摸摸” 之类消息的 Telegram Bot
Go to file
2022-12-17 02:25:29 +08:00
.github/workflows build: migrate to GitHub Action cache 2022-04-28 04:48:21 +08:00
resources update README 2020-10-29 02:50:48 +08:00
.gitignore [+] Create gitignore for IDEA 2021-08-05 11:48:17 +08:00
Dockerfile make docker build caching take effect 2022-03-28 04:59:36 +08:00
LICENSE Initial commit 2020-10-26 00:58:15 +08:00
mtp_test.py [U] Upload MTProto testing script 2021-08-05 18:16:57 +08:00
README.md update badges in README 2022-03-28 05:10:24 +08:00
requirements.txt chore: bump deps 2022-09-13 09:52:43 +08:00
SlashBot.py feat: loosen random sticker regex 2022-12-17 02:25:29 +08:00

SlashBot

Docker Cloud Build Status Docker Pulls GitHub stars

@RongSlashBot
Privacy Mode on接收不到非指令消息保证隐私安全性。

由于 Telegram 限制,如您的群组已有其他 bot ,请使用 Privacy Mode off 的 @RongSlashRBot
请注意Privacy Mode off 意味着 bot 在技术上可以收到所有消息,本 bot 已经设计为不处理及不记录任何无关消息,如您疑虑安全性,请自行搭建或到末尾查看更多解决方案。

Usage

docker create \
    --name [container name] \
    --restart unless-stopped \
    -e TOKEN=[bot token] \
    rongronggg9/slashbot
docker start [container name]

薛定谔的 Telegram Bot API

若您的群组存在大于一个 bot (含本 bot),本 bot 可能时常无法正常工作。

症状: @RongSlashBot 突然接收不到任何指令消息,因而也无法回复。

触发条件 (需全部满足)

  1. 群组内存在大于一个 bot
  2. 该 bot 未被设置为管理员
  3. 该 bot Privacy Mode on
  4. 指令未指明目标 (如 /example)

总体上,管理员或 Privacy Mode off 的 bot 几乎一定会收到消息,其余 bot 可能收到也可能收不到消息。

规避方法 (满足任一即可)

  1. 仅保留本 bot
  2. 将本 bot 添加为管理员(给予任一权限均可。需注意该操作意味着对于本群,该 bot Privacy Mode off
  3. 换用 Privacy Mode off 的 @RongSlashRBot (如您疑虑安全性,请自行搭建)
  4. 给指令指明目标 (如 /example@RongSlashBot),触发成功后一段时间内 ,不需再指明目标也可使 bot 接收到指令