diff --git a/get_users_list.py b/get_users_list.py index 2643a37..aab4251 100755 --- a/get_users_list.py +++ b/get_users_list.py @@ -15,7 +15,7 @@ subs = Subscriber.select() messages = [] for sub in subs: chat = bot.send_message(sub.user_id, '.').chat - chat_name = escape(f'{chat.first_name or ""} {chat.last_name or ""} {chat.title or ""}'.rstrip()) + chat_name = escape(f'{chat.first_name or ""} {chat.last_name or ""} {chat.title or ""}'.strip()) messages.append(f'#{sub.id:<4} {sub.user_id:>14} {chat_name}')