This commit is contained in:
bakatrouble 2019-03-04 02:25:10 +03:00
parent f4c739a964
commit bb9fc2208a
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ from config import BOT_TOKEN
if __name__ == '__main__':
bot = Bot(BOT_TOKEN)
conn = get_conn()
uids = input('Please input user ids split by spaces')
uids = input('Please input user ids split by spaces: ')
for uid in uids.split():
conn.root.subscribers[uid] = Subscriber.from_chat(bot.get_chat(uid))
commit()

View File

@ -14,7 +14,7 @@ def send_users_list(bot: Bot = None):
subs = conn.root.subscribers.values()
messages = [f'Count: {subs.count()}\n']
messages = [f'Count: {len(subs)}\n']
for sub in subs: # type: Subscriber
msg = f'<code>#{sub.id:<4} {sub.uid:>14} </code>'
if sub.uid < 0: