From ed21b2c6fce7809f12238f149b5959f0541f0abf Mon Sep 17 00:00:00 2001 From: Kaizhe Huang Date: Thu, 31 Mar 2016 20:27:44 +1100 Subject: [PATCH] Do not show name of other sync bots --- fishroom/telegram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fishroom/telegram.py b/fishroom/telegram.py index b6819a2..b101e0a 100644 --- a/fishroom/telegram.py +++ b/fishroom/telegram.py @@ -586,7 +586,7 @@ def send_msg(self, peer, content, sender=None, escape=True, rich_text=None, self._must_post(api, json=data) def msg_tmpl(self, sender=None): - return "{content}" if sender is None else "[{sender}] {content}" + return "{content}" if sender in [None, "toxsync", "xmppbot"] else "[{sender}] {content}" @classmethod def formatRichText(cls, rich_text: RichText, escape=True):