Fix several broken links in the docs

This commit is contained in:
Lonami Exo 2018-10-17 11:47:51 +02:00
parent a9a2401e44
commit e5fc9d8674
4 changed files with 12 additions and 11 deletions

View File

@ -204,7 +204,7 @@ class CallbackQuery(EventBuilder):
async def respond(self, *args, **kwargs): async def respond(self, *args, **kwargs):
""" """
Responds to the message (not as a reply). Shorthand for Responds to the message (not as a reply). Shorthand for
`telethon.telegram_client.TelegramClient.send_message` with `telethon.client.messages.MessageMethods.send_message` with
``entity`` already set. ``entity`` already set.
This method also creates a task to `answer` the callback. This method also creates a task to `answer` the callback.
@ -216,7 +216,7 @@ class CallbackQuery(EventBuilder):
async def reply(self, *args, **kwargs): async def reply(self, *args, **kwargs):
""" """
Replies to the message (as a reply). Shorthand for Replies to the message (as a reply). Shorthand for
`telethon.telegram_client.TelegramClient.send_message` with `telethon.client.messages.MessageMethods.send_message` with
both ``entity`` and ``reply_to`` already set. both ``entity`` and ``reply_to`` already set.
This method also creates a task to `answer` the callback. This method also creates a task to `answer` the callback.
@ -229,7 +229,7 @@ class CallbackQuery(EventBuilder):
async def edit(self, *args, **kwargs): async def edit(self, *args, **kwargs):
""" """
Edits the message iff it's outgoing. Shorthand for Edits the message iff it's outgoing. Shorthand for
`telethon.telegram_client.TelegramClient.edit_message` with `telethon.client.messages.MessageMethods.edit_message` with
both ``entity`` and ``message`` already set. both ``entity`` and ``message`` already set.
Returns the edited :tl:`Message`. Returns the edited :tl:`Message`.
@ -245,12 +245,12 @@ class CallbackQuery(EventBuilder):
async def delete(self, *args, **kwargs): async def delete(self, *args, **kwargs):
""" """
Deletes the message. Shorthand for Deletes the message. Shorthand for
`telethon.telegram_client.TelegramClient.delete_messages` with `telethon.client.messages.MessageMethods.delete_messages` with
``entity`` and ``message_ids`` already set. ``entity`` and ``message_ids`` already set.
If you need to delete more than one message at once, don't use If you need to delete more than one message at once, don't use
this `delete` method. Use a this `delete` method. Use a
`telethon.telegram_client.TelegramClient` instance directly. `telethon.client.telegramclient.TelegramClient` instance directly.
This method also creates a task to `answer` the callback. This method also creates a task to `answer` the callback.
""" """

View File

@ -169,7 +169,7 @@ class ChatAction(EventBuilder):
async def respond(self, *args, **kwargs): async def respond(self, *args, **kwargs):
""" """
Responds to the chat action message (not as a reply). Shorthand for Responds to the chat action message (not as a reply). Shorthand for
`telethon.telegram_client.TelegramClient.send_message` with `telethon.client.messages.MessageMethods.send_message` with
``entity`` already set. ``entity`` already set.
""" """
return await self._client.send_message( return await self._client.send_message(
@ -178,7 +178,7 @@ class ChatAction(EventBuilder):
async def reply(self, *args, **kwargs): async def reply(self, *args, **kwargs):
""" """
Replies to the chat action message (as a reply). Shorthand for Replies to the chat action message (as a reply). Shorthand for
`telethon.telegram_client.TelegramClient.send_message` with `telethon.client.messages.MessageMethods.send_message` with
both ``entity`` and ``reply_to`` already set. both ``entity`` and ``reply_to`` already set.
Has the same effect as `respond` if there is no message. Has the same effect as `respond` if there is no message.
@ -195,7 +195,7 @@ class ChatAction(EventBuilder):
Deletes the chat action message. You're responsible for checking Deletes the chat action message. You're responsible for checking
whether you have the permission to do so, or to except the error whether you have the permission to do so, or to except the error
otherwise. Shorthand for otherwise. Shorthand for
`telethon.telegram_client.TelegramClient.delete_messages` with `telethon.client.messages.MessageMethods.delete_messages` with
``entity`` and ``message_ids`` already set. ``entity`` and ``message_ids`` already set.
Does nothing if no message action triggered this event. Does nothing if no message action triggered this event.

View File

@ -104,7 +104,8 @@ class InlineQuery(EventBuilder):
@property @property
def offset(self): def offset(self):
""" """
??? The string the user's client used as an offset for the query.
This will either be empty or equal to offsets passed to `answer`.
""" """
return self.query.offset return self.query.offset

View File

@ -31,8 +31,8 @@ class MessageButton:
@property @property
def client(self): def client(self):
""" """
Returns the `telethon.telegram_client.TelegramClient` instance that Returns the `telethon.client.telegramclient.TelegramClient`
created this instance. instance that created this instance.
""" """
return self._client return self._client