From 6d538d6cb4c0ff2d9a6761d4ec1b79288bb03aea Mon Sep 17 00:00:00 2001 From: f4qn2 Date: Fri, 27 Sep 2024 01:17:13 -0300 Subject: [PATCH] #6 Change iterator name for webhook --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index e088cb3..6340529 100644 --- a/main.py +++ b/main.py @@ -69,8 +69,8 @@ async def new_message(event: events.NewMessage.Event): logger.warning( f"File {filename} exceeds maximum size of {TelegramSettings.IMAGE_MAX_SIZE / 1024 / 1024} MB" ) - for target in config.webhooks: - async with session.post(target, data=data) as r: + for webhook in config.webhooks: + async with session.post(webhook, data=data) as r: if r.status in (200, 204): logger.info(f"Forwarded message from {d_username}") else: