diff --git a/pgbotlib/response.py b/pgbotlib/response.py index f62d373..901ab48 100644 --- a/pgbotlib/response.py +++ b/pgbotlib/response.py @@ -99,6 +99,7 @@ class Responder: sender = await event.get_sender() case response if '' in response: template = '' + peer_id = event.message.peer_id users = await self.client.get_participants(entity=peer_id) sender = random.choice(users)[0] if template: