Fix get_scheduled_messages

This commit is contained in:
KurimuzonAkuma 2024-04-01 18:11:11 +03:00
parent 76d5249daa
commit ed6891a4f4

View File

@ -55,7 +55,7 @@ class GetScheduledMessages:
ValueError: In case of invalid arguments.
"""
r = await self.invoke(
raw.functions.GetScheduledHistory(peer=await self.resolve_peer(chat_id), hash=0)
raw.functions.messages.GetScheduledHistory(peer=await self.resolve_peer(chat_id), hash=0)
)
return await utils.parse_messages(self, r, replies=0)