mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-18 11:06:39 +00:00
Update misleading error message
This commit is contained in:
parent
fc2977fc0d
commit
abd26af0ad
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user