Fix some missing raw API references in docs

This commit is contained in:
Dan 2020-11-28 15:52:47 +01:00
parent 9f77fed181
commit a6f8827433

View File

@ -37,8 +37,8 @@ class RawUpdateHandler(Handler):
The Client itself, useful when you want to call other API methods inside the update handler. The Client itself, useful when you want to call other API methods inside the update handler.
update (``Update``): update (``Update``):
The received update, which can be one of the many single Updates listed in the *updates* The received update, which can be one of the many single Updates listed in the
field you see in the :obj:`~pyrogram.types.Update` type. :obj:`~pyrogram.raw.base.Update` base type.
users (``dict``): users (``dict``):
Dictionary of all :obj:`~pyrogram.types.User` mentioned in the update. Dictionary of all :obj:`~pyrogram.types.User` mentioned in the update.
@ -47,7 +47,7 @@ class RawUpdateHandler(Handler):
chats (``dict``): chats (``dict``):
Dictionary of all :obj:`~pyrogram.types.Chat` and Dictionary of all :obj:`~pyrogram.types.Chat` and
:obj:`Channel <pyrogram.api.types.Channel>` mentioned in the update. :obj:`~pyrogram.raw.types.Channel` mentioned in the update.
You can access extra info about the chat (such as *title*, *participants_count*, etc...) You can access extra info about the chat (such as *title*, *participants_count*, etc...)
by using the IDs you find in the *update* argument (e.g.: *chats[1701277281]*). by using the IDs you find in the *update* argument (e.g.: *chats[1701277281]*).
@ -55,10 +55,10 @@ class RawUpdateHandler(Handler):
The following Empty or Forbidden types may exist inside the *users* and *chats* dictionaries. The following Empty or Forbidden types may exist inside the *users* and *chats* dictionaries.
They mean you have been blocked by the user or banned from the group/channel. They mean you have been blocked by the user or banned from the group/channel.
- :obj:`UserEmpty <pyrogram.api.types.UserEmpty>` - :obj:`~pyrogram.raw.types.UserEmpty`
- :obj:`ChatEmpty <pyrogram.api.types.ChatEmpty>` - :obj:`~pyrogram.raw.types.ChatEmpty`
- :obj:`ChatForbidden <pyrogram.api.types.ChatForbidden>` - :obj:`~pyrogram.raw.types.ChatForbidden`
- :obj:`ChannelForbidden <pyrogram.api.types.ChannelForbidden>` - :obj:`~pyrogram.raw.types.ChannelForbidden`
""" """
def __init__(self, callback: callable): def __init__(self, callback: callable):