bakatrouble 5 years ago
parent f4c739a964
commit bb9fc2208a

@ -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()

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

Loading…
Cancel
Save