fix: TS compilation errors from #283 squash merge (#286)

This commit is contained in:
Cameron
2026-02-11 15:24:48 -08:00
committed by GitHub
parent c405c96c9d
commit de216ea3ff
2 changed files with 2 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ import { isGroupAllowed, isGroupUserAllowed, resolveGroupMode, type GroupMode }
export interface SignalGroupConfig {
mode?: GroupMode;
allowedUsers?: string[];
requireMention?: boolean; // @deprecated legacy alias
}

View File

@@ -58,7 +58,7 @@ export class TelegramAdapter implements ChannelAdapter {
* Apply group gating for a message context.
* Returns null if the message should be dropped, or message metadata if it should proceed.
*/
private applyGroupGating(ctx: { chat: { type: string; id: number; title?: string }; message?: { text?: string; entities?: { type: string; offset: number; length: number }[] } }): { isGroup: boolean; groupName?: string; wasMentioned: boolean; isListeningMode?: boolean } | null {
private applyGroupGating(ctx: { chat: { type: string; id: number; title?: string }; from?: { id: number }; message?: { text?: string; entities?: { type: string; offset: number; length: number }[] } }): { isGroup: boolean; groupName?: string; wasMentioned: boolean; isListeningMode?: boolean } | null {
const chatType = ctx.chat.type;
const isGroup = chatType === 'group' || chatType === 'supergroup';
const groupName = isGroup && 'title' in ctx.chat ? ctx.chat.title : undefined;