mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
Fix get_history in chats with less than 100 messages
This commit is contained in:
parent
ad36e1e0d1
commit
5dff2fe604
1 changed files with 1 additions and 1 deletions
|
|
@ -106,6 +106,6 @@ class GetHistory(BaseClient):
|
|||
messages[i].reply_to_message = reply_to_messages[r.messages[i].reply_to_msg_id]
|
||||
|
||||
return pyrogram.Messages(
|
||||
total_count=r.count,
|
||||
total_count=getattr(r, "count", len(r.messages)),
|
||||
messages=messages
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue