mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-23 18:37:26 +00:00
Replace "|" with "or"
This commit is contained in:
parent
44d1679108
commit
ead7573d33
@ -468,7 +468,7 @@ class Client:
|
|||||||
"""Use this method to send text messages.
|
"""Use this method to send text messages.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
chat_id (:obj:`int` | :obj:`str`):
|
chat_id (:obj:`int` or :obj:`str`):
|
||||||
Unique identifier for the target chat or username of the target channel/supergroup
|
Unique identifier for the target chat or username of the target channel/supergroup
|
||||||
(in the format @username). For your personal cloud storage (Saved Messages) you can
|
(in the format @username). For your personal cloud storage (Saved Messages) you can
|
||||||
simply use "me" or "self".
|
simply use "me" or "self".
|
||||||
@ -511,12 +511,12 @@ class Client:
|
|||||||
"""Use this method to forward messages of any kind.
|
"""Use this method to forward messages of any kind.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
chat_id (:obj:`int` | :obj:`str`):
|
chat_id (:obj:`int` or :obj:`str`):
|
||||||
Unique identifier for the target chat or username of the target channel/supergroup
|
Unique identifier for the target chat or username of the target channel/supergroup
|
||||||
(in the format @username). For your personal cloud storage (Saved Messages) you can
|
(in the format @username). For your personal cloud storage (Saved Messages) you can
|
||||||
simply use "me" or "self".
|
simply use "me" or "self".
|
||||||
|
|
||||||
from_chat_id (:obj:`int` | :obj:`str`):
|
from_chat_id (:obj:`int` or :obj:`str`):
|
||||||
Unique identifier for the chat where the original message was sent
|
Unique identifier for the chat where the original message was sent
|
||||||
(or channel/supergroup username in the format @username). For your personal cloud
|
(or channel/supergroup username in the format @username). For your personal cloud
|
||||||
storage (Saved Messages) you can simply use "me" or "self".
|
storage (Saved Messages) you can simply use "me" or "self".
|
||||||
@ -554,7 +554,7 @@ class Client:
|
|||||||
"""Use this method to send photos.
|
"""Use this method to send photos.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
chat_id (:obj:`int` | :obj:`str`):
|
chat_id (:obj:`int` or :obj:`str`):
|
||||||
Unique identifier for the target chat or username of the target channel/supergroup
|
Unique identifier for the target chat or username of the target channel/supergroup
|
||||||
(in the format @username). For your personal cloud storage (Saved Messages) you can
|
(in the format @username). For your personal cloud storage (Saved Messages) you can
|
||||||
simply use "me" or "self".
|
simply use "me" or "self".
|
||||||
@ -620,7 +620,7 @@ class Client:
|
|||||||
For sending voice messages, use the :obj:`send_voice` method instead.
|
For sending voice messages, use the :obj:`send_voice` method instead.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
chat_id (:obj:`int` | :obj:`str`):
|
chat_id (:obj:`int` or :obj:`str`):
|
||||||
Unique identifier for the target chat or username of the target channel/supergroup
|
Unique identifier for the target chat or username of the target channel/supergroup
|
||||||
(in the format @username). For your personal cloud storage (Saved Messages) you can
|
(in the format @username). For your personal cloud storage (Saved Messages) you can
|
||||||
simply use "me" or "self".
|
simply use "me" or "self".
|
||||||
@ -693,7 +693,7 @@ class Client:
|
|||||||
"""Use this method to send general files.
|
"""Use this method to send general files.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
chat_id (:obj:`int` | :obj:`str`):
|
chat_id (:obj:`int` or :obj:`str`):
|
||||||
Unique identifier for the target chat or username of the target channel/supergroup
|
Unique identifier for the target chat or username of the target channel/supergroup
|
||||||
(in the format @username). For your personal cloud storage (Saved Messages) you can
|
(in the format @username). For your personal cloud storage (Saved Messages) you can
|
||||||
simply use "me" or "self".
|
simply use "me" or "self".
|
||||||
@ -755,7 +755,7 @@ class Client:
|
|||||||
"""Use this method to send video files.
|
"""Use this method to send video files.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
chat_id (:obj:`int` | :obj:`str`):
|
chat_id (:obj:`int` or :obj:`str`):
|
||||||
Unique identifier for the target chat or username of the target channel/supergroup
|
Unique identifier for the target chat or username of the target channel/supergroup
|
||||||
(in the format @username). For your personal cloud storage (Saved Messages) you can
|
(in the format @username). For your personal cloud storage (Saved Messages) you can
|
||||||
simply use "me" or "self".
|
simply use "me" or "self".
|
||||||
@ -828,7 +828,7 @@ class Client:
|
|||||||
"""Use this method to send audio files.
|
"""Use this method to send audio files.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
chat_id (:obj:`int` | :obj:`str`):
|
chat_id (:obj:`int` or :obj:`str`):
|
||||||
Unique identifier for the target chat or username of the target channel/supergroup
|
Unique identifier for the target chat or username of the target channel/supergroup
|
||||||
(in the format @username). For your personal cloud storage (Saved Messages) you can
|
(in the format @username). For your personal cloud storage (Saved Messages) you can
|
||||||
simply use "me" or "self".
|
simply use "me" or "self".
|
||||||
@ -894,7 +894,7 @@ class Client:
|
|||||||
"""Use this method to send video messages.
|
"""Use this method to send video messages.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
chat_id (:obj:`int` | :obj:`str`):
|
chat_id (:obj:`int` or :obj:`str`):
|
||||||
Unique identifier for the target chat or username of the target channel/supergroup
|
Unique identifier for the target chat or username of the target channel/supergroup
|
||||||
(in the format @username). For your personal cloud storage (Saved Messages) you can
|
(in the format @username). For your personal cloud storage (Saved Messages) you can
|
||||||
simply use "me" or "self".
|
simply use "me" or "self".
|
||||||
@ -961,7 +961,7 @@ class Client:
|
|||||||
"""Use this method to send points on the map.
|
"""Use this method to send points on the map.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
chat_id (:obj:`int` | :obj:`str`):
|
chat_id (:obj:`int` or :obj:`str`):
|
||||||
Unique identifier for the target chat or username of the target channel/supergroup
|
Unique identifier for the target chat or username of the target channel/supergroup
|
||||||
(in the format @username). For your personal cloud storage (Saved Messages) you can
|
(in the format @username). For your personal cloud storage (Saved Messages) you can
|
||||||
simply use "me" or "self".
|
simply use "me" or "self".
|
||||||
@ -1012,7 +1012,7 @@ class Client:
|
|||||||
"""Use this method to send information about a venue.
|
"""Use this method to send information about a venue.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
chat_id (:obj:`int` | :obj:`str`):
|
chat_id (:obj:`int` or :obj:`str`):
|
||||||
Unique identifier for the target chat or username of the target channel/supergroup
|
Unique identifier for the target chat or username of the target channel/supergroup
|
||||||
(in the format @username). For your personal cloud storage (Saved Messages) you can
|
(in the format @username). For your personal cloud storage (Saved Messages) you can
|
||||||
simply use "me" or "self".
|
simply use "me" or "self".
|
||||||
@ -1075,7 +1075,7 @@ class Client:
|
|||||||
"""Use this method to send phone contacts.
|
"""Use this method to send phone contacts.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
chat_id (:obj:`int` | :obj:`str`):
|
chat_id (:obj:`int` or :obj:`str`):
|
||||||
Unique identifier for the target chat or username of the target channel/supergroup
|
Unique identifier for the target chat or username of the target channel/supergroup
|
||||||
(in the format @username). For your personal cloud storage (Saved Messages) you can
|
(in the format @username). For your personal cloud storage (Saved Messages) you can
|
||||||
simply use "me" or "self".
|
simply use "me" or "self".
|
||||||
@ -1123,7 +1123,7 @@ class Client:
|
|||||||
"""Use this method when you need to tell the other party that something is happening on your side.
|
"""Use this method when you need to tell the other party that something is happening on your side.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
chat_id (:obj:`int` | :obj:`str`):
|
chat_id (:obj:`int` or :obj:`str`):
|
||||||
Unique identifier for the target chat or username of the target channel/supergroup
|
Unique identifier for the target chat or username of the target channel/supergroup
|
||||||
(in the format @username). For your personal cloud storage (Saved Messages) you can
|
(in the format @username). For your personal cloud storage (Saved Messages) you can
|
||||||
simply use "me" or "self".
|
simply use "me" or "self".
|
||||||
@ -1153,7 +1153,7 @@ class Client:
|
|||||||
"""Use this method to get a list of profile pictures for a user.
|
"""Use this method to get a list of profile pictures for a user.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
user_id (:obj:`int` | :obj:`str`):
|
user_id (:obj:`int` or :obj:`str`):
|
||||||
Unique identifier of the target user.
|
Unique identifier of the target user.
|
||||||
|
|
||||||
offset (:obj:`int`, optional):
|
offset (:obj:`int`, optional):
|
||||||
@ -1184,7 +1184,7 @@ class Client:
|
|||||||
"""Use this method to edit text messages.
|
"""Use this method to edit text messages.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
chat_id (:obj:`int` | :obj:`str`):
|
chat_id (:obj:`int` or :obj:`str`):
|
||||||
Unique identifier for the target chat or username of the target channel/supergroup
|
Unique identifier for the target chat or username of the target channel/supergroup
|
||||||
(in the format @username). For your personal cloud storage (Saved Messages) you can
|
(in the format @username). For your personal cloud storage (Saved Messages) you can
|
||||||
simply use "me" or "self".
|
simply use "me" or "self".
|
||||||
@ -1217,7 +1217,7 @@ class Client:
|
|||||||
"""Use this method to edit captions of messages.
|
"""Use this method to edit captions of messages.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
chat_id (:obj:`int` | :obj:`str`):
|
chat_id (:obj:`int` or :obj:`str`):
|
||||||
Unique identifier for the target chat or username of the target channel/supergroup
|
Unique identifier for the target chat or username of the target channel/supergroup
|
||||||
(in the format @username). For your personal cloud storage (Saved Messages) you can
|
(in the format @username). For your personal cloud storage (Saved Messages) you can
|
||||||
simply use "me" or "self".
|
simply use "me" or "self".
|
||||||
@ -1510,7 +1510,7 @@ class Client:
|
|||||||
"""Use this method to leave a group chat or channel.
|
"""Use this method to leave a group chat or channel.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
chat_id (:obj:`int` | :obj:`str`):
|
chat_id (:obj:`int` or :obj:`str`):
|
||||||
Unique identifier for the target chat or username of the target channel/supergroup
|
Unique identifier for the target chat or username of the target channel/supergroup
|
||||||
(in the format @username).
|
(in the format @username).
|
||||||
|
|
||||||
@ -1552,7 +1552,7 @@ class Client:
|
|||||||
The user must be an administrator in the chat for this to work and must have the appropriate admin rights.
|
The user must be an administrator in the chat for this to work and must have the appropriate admin rights.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
chat_id (:obj:`int` | :obj:`str`):
|
chat_id (:obj:`int` or :obj:`str`):
|
||||||
Unique identifier for the target chat or username of the target channel/supergroup
|
Unique identifier for the target chat or username of the target channel/supergroup
|
||||||
(in the format @username).
|
(in the format @username).
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user