From e6a0726b0b9ffeda177dc1429cbd31a4310db9a2 Mon Sep 17 00:00:00 2001 From: Von Random Date: Thu, 21 Nov 2024 15:37:06 +0200 Subject: [PATCH] fix randomname functionality --- pgbotlib/response.py | 1 + 1 file changed, 1 insertion(+) 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: