fix(telegram): honor the author emoji toggle

The author marker must obey the group emoji preference just like
formatter-added decoration.
This commit is contained in:
翅膀 committed 2026-10-23 23:23:10 +08:00
1 parent 7a76cac8a1
commit 8b10b98880
2 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -106,7 +106,7 @@ export function renderNeutralMessage(message: NeutralMessage): string {
if (message.author) {
const name = mdToHtml(message.author.name);
const author = message.author.url ? `<a href="${esc(message.author.url)}">${name}</a>` : name;
parts.push(`👤 ${author}`);
parts.push(message.emoji === false ? author : `👤 ${author}`);
}
if (message.description) {
+5
View File
@@ -338,6 +338,11 @@ export interface NeutralMessage {
* the route's `discordRoleIds`). Only used by the Discord driver.
*/
mentionRoleIds?: string[];
/**
* False when the group turned emoji off: drivers must not add decorative
* emoji of their own (e.g. Telegram's author marker). Defaults to true.
*/
emoji?: boolean;
}
export interface FormattedMessage {