mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Clarify get_messages error messages
This commit is contained in:
parent
776557f60b
commit
b2886c21ca
@ -66,6 +66,7 @@ class GetMessages(BaseClient):
|
|||||||
|
|
||||||
Raises:
|
Raises:
|
||||||
RPCError: In case of a Telegram RPC error.
|
RPCError: In case of a Telegram RPC error.
|
||||||
|
ValueError: In case of invalid arguments.
|
||||||
"""
|
"""
|
||||||
ids, ids_type = (
|
ids, ids_type = (
|
||||||
(message_ids, types.InputMessageID) if message_ids
|
(message_ids, types.InputMessageID) if message_ids
|
||||||
@ -74,7 +75,7 @@ class GetMessages(BaseClient):
|
|||||||
)
|
)
|
||||||
|
|
||||||
if ids is None:
|
if ids is None:
|
||||||
raise ValueError("No argument supplied")
|
raise ValueError("No argument supplied. Either pass message_ids or reply_to_message_ids")
|
||||||
|
|
||||||
peer = self.resolve_peer(chat_id)
|
peer = self.resolve_peer(chat_id)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user