Fix typos and add the URL_INVALID error

This commit is contained in:
Lonami Exo 2018-07-14 10:43:24 +02:00
parent dc3d281274
commit 5017a9d1da
4 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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