diff --git a/main.py b/main.py index f374f7b..802bb66 100755 --- a/main.py +++ b/main.py @@ -147,7 +147,7 @@ def _sign_text(text, m: Message, limit): # sign = f'\n\n____________\n' \ # f'by {escape(m.from_user.full_name)}' subs = conn.root.subscribers - random_user = subs[random.choice(subs.keys())] + random_user = subs[random.choice(list(subs.keys()))] sign = f'\n\n____________\n' \ f'by {escape(random_user.name)}'