fix(telegram): honor session activation overrides
This commit is contained in:
@@ -860,7 +860,7 @@ export function createTelegramBot(opts: TelegramBotOptions) {
|
||||
kind: isGroup ? "group" : "dm",
|
||||
id: isGroup
|
||||
? buildTelegramGroupPeerId(chatId, messageThreadId)
|
||||
: buildTelegramDmPeerId(chatId, messageThreadId),
|
||||
: String(chatId),
|
||||
},
|
||||
});
|
||||
const skillFilter = firstDefined(
|
||||
@@ -1251,15 +1251,6 @@ function buildTelegramGroupPeerId(
|
||||
: String(chatId);
|
||||
}
|
||||
|
||||
function buildTelegramDmPeerId(
|
||||
chatId: number | string,
|
||||
messageThreadId?: number,
|
||||
) {
|
||||
return messageThreadId != null
|
||||
? `${chatId}:topic:${messageThreadId}`
|
||||
: String(chatId);
|
||||
}
|
||||
|
||||
function buildTelegramGroupFrom(
|
||||
chatId: number | string,
|
||||
messageThreadId?: number,
|
||||
|
||||
Reference in New Issue
Block a user