You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 25, 2023. It is now read-only.
Forwards a message to the chat and returns a promise that resolves to a :doc:`Message` object representing what has
79
-
been sent.
63
+
:param string from_chat_id:
64
+
:param string message_id:
65
+
:param object options: *Optional*
66
+
:returns: A promise that resolves to a :doc:`Message` object representing what has been sent.
80
67
81
-
=============================
82
-
sendFile(type, path, options)
83
-
=============================
84
68
85
-
* ``type`` <String> Must be one of the following: ``photo``, ``audio``, ``sticker``, ``document``, ``video``, ``voice``
86
-
* ``path`` <String> File's path for local files or file's id for uploaded files
87
-
* ``options`` <Object> *Optional*
69
+
Forwards a message to the chat.
88
70
89
-
Sends the specified file to the chat and returns a promise that resolves to a :doc:`Message` object representing
90
-
what has been sent.
71
+
.. js:function::sendFile(type, path[, options])
91
72
92
-
===================
93
-
getAdministrators()
94
-
===================
73
+
:param string type: <String> Must be one of the following: ``photo``, ``audio``, ``sticker``, ``document``, ``video``, ``voice``
74
+
:param string path: File's path for local files or file's id for uploaded files
75
+
:param object options: *Optional*
76
+
:returns: A promise that resolves to a :doc:`Message` object representing what has been sent.
95
77
96
-
* ``chat_id`` <String>|<Chat>
78
+
Sends the specified file to the chat.
97
79
98
-
Returns a promise that resolves to an array of :doc:`ChatMember` objects.
80
+
.. js:function::getAdministrators()
99
81
100
-
==================
101
-
getMember(user_id)
102
-
==================
82
+
Returns a promise that resolves to an array of :doc:`ChatMember` objects.
103
83
104
-
* ``user_id`` <String>|<User>
84
+
.. js:function::getMember(user_id)
105
85
106
-
Returns a promise that resolves to a :doc:`ChatMember` object.
86
+
:param string user_id: Can also be a :doc:`User` object
107
87
108
-
===================
109
-
kickMember(user_id)
110
-
===================
88
+
Returns a promise that resolves to a :doc:`ChatMember` object.
111
89
112
-
* ``user_id`` <String>|<User>
90
+
.. js:function::kickMember(user_id)
113
91
114
-
Kicks the specified user from the chat and returns a promise that resolves to the response (according to
115
-
Telegram, true on success).
92
+
:param string user_id: Can also be a :doc:`User` object
93
+
:returns: A promise that resolves to the response (according to Telegram, true on success).
116
94
117
-
====================
118
-
unbanMember(user_id)
119
-
====================
95
+
Kicks the specified user from the chat.
120
96
121
-
* ``user_id`` <String>|<User>
97
+
.. js:function::unbanMember(user_id)
122
98
123
-
Unbans the specified user from the chat and returns a promise that resolves to the response (according to
124
-
Telegram, true on success).
99
+
:param string user_id: Can also be a :doc:`User` object
100
+
:returns: A promise that resolves to the response (according to Telegram, true on success).
125
101
126
-
=================
127
-
getMembersCount()
128
-
=================
102
+
Unbans the specified user from the chat.
129
103
130
-
Returns a promise that resolves to the response.
104
+
.. js:function::getMembersCount()
131
105
132
-
==================
133
-
sendAction(action)
134
-
==================
106
+
:returns: A promise that resolves to the response.
135
107
136
-
* ``action`` <String> Must be one of the following: ``typing``, ``upload_photo``, ``record_video``, ``upload_video``, ``record_audio``, ``upload_audio``, ``upload_document``, ``find_location``
108
+
.. js:function::sendAction(action)
137
109
138
-
Returns a promise that resolves to the response (true on success).
110
+
:param string action: <String> Must be one of the following: ``typing``, ``upload_photo``, ``record_video``, ``upload_video``, ``record_audio``, ``upload_audio``, ``upload_document``, ``find_location``
111
+
:returns: A promise that resolves to the response (true on success).
139
112
140
-
====
141
-
name
142
-
====
113
+
.. js:attribute::Chat.name
143
114
144
-
<String> *Optional*. The full name of the chat (first name + last name) if available
115
+
*Optional*. The full name of the chat (first name + last name) if available
0 commit comments