fix: recognize @botfather as bot peer (special case, not pattern change)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Siavash Sameni
2026-03-29 11:11:28 +04:00
parent 362e7a765b
commit 878847ce89
2 changed files with 2 additions and 2 deletions

View File

@@ -1210,7 +1210,7 @@ async function doSend() {
try {
const wr = await fetch(SERVER + '/v1/alias/whois/' + normFP(peer));
const wd = await wr.json();
if (wd.alias && (wd.alias.endsWith('bot') || wd.alias.endsWith('Bot') || wd.alias.endsWith('_bot'))) isBotPeer = true;
if (wd.alias && (wd.alias.endsWith('bot') || wd.alias.endsWith('Bot') || wd.alias.endsWith('_bot') || wd.alias === 'botfather')) isBotPeer = true;
} catch(e) {}
if (isBotPeer) {