mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 21:10:29 +00:00
Update misleading error message
This commit is contained in:
@@ -574,8 +574,8 @@ class MessageMethods(UploadMethods, ButtonMethods, MessageParseMethods):
|
|||||||
)
|
)
|
||||||
except StopIteration:
|
except StopIteration:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
'from_chat must be given if integer IDs are used'
|
'from_peer must be given if integer IDs are used'
|
||||||
)
|
) from None
|
||||||
|
|
||||||
req = functions.messages.ForwardMessagesRequest(
|
req = functions.messages.ForwardMessagesRequest(
|
||||||
from_peer=from_peer,
|
from_peer=from_peer,
|
||||||
|
Reference in New Issue
Block a user