fix ping links text

This commit is contained in:
bakatrouble 2020-02-13 01:29:11 +03:00
parent 5e920255d3
commit fb38e00776

View File

@ -59,8 +59,8 @@ class PingBotModuleConfig(TelegramBotModuleConfig):
mentions = [] mentions = []
for uid in cat.user_ids: for uid in cat.user_ids:
member = ctx.bot.get_chat_member(update.effective_chat.id, uid) member = ctx.bot.get_chat_member(update.effective_chat.id, uid)
mentions.append(mention_html(uid, member.user.full_name + '\u200b\u200b')) mentions.append(mention_html(uid, '#{} [{}]'.format(uid, member.user.full_name)))
update.effective_message.reply_html(self.message_template.format(mentions=' '.join(mentions))) update.effective_message.reply_html(self.message_template.format(mentions='; '.join(mentions)))
def categories_handler(self, update: Update, ctx: CallbackContext): def categories_handler(self, update: Update, ctx: CallbackContext):
categories = [] categories = []