mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-28 20:33:45 +03:00
Fix typos and add the URL_INVALID error
This commit is contained in:
parent
dc3d281274
commit
5017a9d1da
|
@ -78,7 +78,7 @@ class Draft:
|
|||
if not self.entity and await self.get_input_entity():
|
||||
try:
|
||||
self._entity =\
|
||||
self._client.get_entity(self._input_entity)
|
||||
await self._client.get_entity(self._input_entity)
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
|
|
|
@ -180,7 +180,7 @@ async def handler(event):
|
|||
reply_to=event.reply_to_msg_id
|
||||
)
|
||||
|
||||
# We have two @client.on, both could fire, stop stop that
|
||||
# We have two @client.on, both could fire, stop that
|
||||
raise events.StopPropagation
|
||||
|
||||
|
||||
|
|
|
@ -66,3 +66,4 @@ FLOOD_WAIT_X=A wait of {} seconds is required
|
|||
FLOOD_TEST_PHONE_WAIT_X=A wait of {} seconds is required in the test servers
|
||||
TAKEOUT_INIT_DELAY_X=A wait of {} seconds is required before being able to initiate the takeout
|
||||
CHAT_NOT_MODIFIED=The chat or channel wasn't modified (title, invites, username, admins, etc. are the same)
|
||||
URL_INVALID=The URL used was invalid (e.g. when answering a callback with an URL that's not t.me/yourbot or your game's URL)
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user