Commit e9084a3c authored by Aljaž Srebrnič's avatar Aljaž Srebrnič

tg_user_repr can be made static

parent 5e584868
......@@ -75,7 +75,8 @@ class TelegramBridge(callbacks.Plugin):
self.log.debug("feeding back to supybot: %s", new_msg)
self._tgIrc.feedMsg(new_msg)
def _tg_user_repr(self, user):
@staticmethod
def _tg_user_repr(user):
user_id = user.get("id", "??")
last_name = user.get("last_name", "")
name = user.get("first_name", str(user_id)) + last_name
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment