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):