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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user