Skip to content

Commit

Permalink
#6 Change iterator name for webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
facundopadilla committed Sep 27, 2024
1 parent 620616d commit 6d538d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6d538d6

Please sign in to comment.