Skip to content

Commit

Permalink
fix: Fix text not read when reply to bot
Browse files Browse the repository at this point in the history
  • Loading branch information
adolphnov committed Oct 14, 2024
1 parent f403937 commit e12f506
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export class EnvironmentConfig {
// 开发模式
DEV_MODE = false;
// 是否发送初始化消息
SEND_INIT_MESSAGE = false;
SEND_INIT_MESSAGE = true;
}

// -- 通用配置 --
Expand Down
1 change: 1 addition & 0 deletions src/telegram/handler/group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export class GroupMention implements MessageHandler {
// 处理回复消息, 如果回复的是当前机器人的消息交给下一个中间件处理
const replyMe = `${message.reply_to_message?.from?.id}` === `${context.SHARE_CONTEXT.botId}`;
if (replyMe) {
context.MIDDEL_CONTEXT.originalMessage.text = message.text || message.caption || '';
return null;
}

Expand Down

0 comments on commit e12f506

Please sign in to comment.