Skip to content

Commit 26f3bd4

Browse files
committed
wording: drop misleading 举报 labels (no behavior change)
Telegram Bot API has no report method — these actions only decline/ban, never reported anything. Renamed to match: join-challenge admin button 举报并封禁 -> 拒绝并封禁 (decline+ban applicant); /sb 举报并封禁 -> 封禁并清空 (ban+purge). Touches only button text, /help, command descriptions + a comment; zero logic change.
1 parent 3c2a827 commit 26f3bd4

5 files changed

Lines changed: 14 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ All notable changes to this project are documented here. The format is based on
44
[Keep a Changelog](https://keepachangelog.com/), and this project adheres to
55
[Semantic Versioning](https://semver.org/).
66

7+
## [3.9.3] - 2026-06-24
8+
9+
### Changed
10+
- **Wording: dropped the misleading "举报" (report) labels — no behavior change.** The Telegram Bot
11+
API has no report method, so these moderation actions never reported anything; they decline/ban.
12+
Renamed to match what they actually do: the join-challenge admin button is now **「拒绝并封禁」**
13+
(decline + ban the applicant) and `/sb` is **「封禁并清空」** (ban + purge the user's messages).
14+
Same actions, accurate names; touches only button text, `/help`, and command descriptions.
15+
716
## [3.9.2] - 2026-06-23
817

918
### Fixed

admin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ func (v *Verifier) onHelp(ctx *th.Context, update telego.Update) error {
152152
"/mute — 禁言(留群不能发言,到期自动解除);默认1h,可 /mute 30m\n" +
153153
"/unmute — 解除禁言\n" +
154154
"/ban — 封禁(踢出群,仅删该条消息)\n" +
155-
"/sb — 举报并封禁(踢出群 + 清除其全部消息)\n" +
155+
"/sb — 封禁并清空消息(踢出群 + 清除其全部消息)\n" +
156156
fmt.Sprintf("/warn — 警告(满 %d 次自动踢出);/clearwarn — 清除警告\n", v.cfg.WarnLimit) +
157157
"\n其它管理指令:\n" +
158158
"/bantime — 设定封禁时长(0=永久;如 7d/12h/30m)\n" +

commands.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func setupCommands(ctx context.Context, bot *telego.Bot, warnLimit int) {
3232
{Command: "stop", Description: "[管理] 关闭入群验证"},
3333
{Command: "mute", Description: "[管理] 回复:禁言(默认1h,可 /mute 30m)"},
3434
{Command: "unmute", Description: "[管理] 回复:解除禁言"},
35-
{Command: "sb", Description: "[管理] 回复:举报+封禁并清空其消息"},
35+
{Command: "sb", Description: "[管理] 回复:封禁并清空其消息"},
3636
{Command: "ban", Description: "[管理] 回复:封禁(踢出群)"},
3737
{Command: "warn", Description: fmt.Sprintf("[管理] 回复:警告(满 %d 次自动踢)", warnLimit)},
3838
{Command: "clearwarn", Description: "[管理] 回复:清除警告"},

moderate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ func (v *Verifier) onBan(ctx *th.Context, update telego.Update) error {
172172

173173
// moderate implements the two reply-to-a-message moderation commands; both ban the user for
174174
// the configured duration (banDuration / /bantime; 0 = permanent) and log to the admin chat:
175-
// - /sb = 举报并封禁 (report + ban): deletes ALL of the user's messages in the group
175+
// - /sb = 封禁并清空 (ban + purge): deletes ALL of the user's messages in the group
176176
// (revoke_messages) — for spam cleanup — then bans.
177177
// - /ban = 封禁 (ban): deletes only the replied-to message, then bans.
178178
//
@@ -208,7 +208,7 @@ func (v *Verifier) moderate(ctx *th.Context, update telego.Update, cmd string) e
208208
_ = bot.DeleteMessage(c, &telego.DeleteMessageParams{ChatID: tu.ID(gid), MessageID: msg.ReplyToMessage.MessageID})
209209
verb := "封禁"
210210
if cmd == "/sb" {
211-
verb = "举报并封禁(已清除其全部消息)" // /sb is the report-and-ban variant + message purge
211+
verb = "封禁并清空(已清除其全部消息)" // /sb is the ban-and-purge variant + message purge
212212
}
213213
action := fmt.Sprintf("已%s(%s)", verb, banDurationText(secs))
214214

verify.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ func (v *Verifier) onJoinRequest(ctx *th.Context, update telego.Update) error {
689689
}
690690
rows = append(rows, tu.InlineKeyboardRow(
691691
telego.InlineKeyboardButton{Text: "👮 管理员直接通过", CallbackData: adminPrefix + "pass:" + gidStr + ":" + uidStr},
692-
telego.InlineKeyboardButton{Text: "🚫 举报并封禁", CallbackData: adminPrefix + "ban:" + gidStr + ":" + uidStr},
692+
telego.InlineKeyboardButton{Text: "🚫 拒绝并封禁", CallbackData: adminPrefix + "ban:" + gidStr + ":" + uidStr},
693693
))
694694

695695
msgID := 0

0 commit comments

Comments
 (0)