Skip to content

Commit

Permalink
Fixes in giveaways (#104)
Browse files Browse the repository at this point in the history
Co-authored-by: shh <shh@git.com>
  • Loading branch information
shhimmery and shh authored Nov 24, 2024
1 parent 37ed1f2 commit 008e2aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pyrogram/types/messages_and_media/giveaway_winners.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ def __init__(
@staticmethod
async def _parse(
client,
chats: dict,
giveaway_media: "raw.types.MessageMediaGiveawayResults",
users: dict,
giveaway_media: "raw.types.MessageMediaGiveawayResults"
chats: dict
) -> "GiveawayWinners":
if not isinstance(giveaway_media, raw.types.MessageMediaGiveawayResults):
return
Expand Down
2 changes: 1 addition & 1 deletion pyrogram/types/messages_and_media/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ async def _parse(
web_app_data = types.WebAppData._parse(action)
service_type = enums.MessageServiceType.WEB_APP_DATA
elif isinstance(action, raw.types.MessageActionGiveawayLaunch):
giveaway_created = await types.GiveawayCreated._parse(client, action)
giveaway_created = types.GiveawayCreated._parse(client, action)
service_type = enums.MessageServiceType.GIVEAWAY_CREATED
elif isinstance(action, raw.types.MessageActionGiveawayResults):
service_type = enums.MessageServiceType.GIVEAWAY_COMPLETED
Expand Down

0 comments on commit 008e2aa

Please sign in to comment.