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
* Use this method to change the title of a chat. Titles can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns True on success. Note: In regular groups (non-supergroups), this method will only work if the ‘All Members Are Admins’ setting is off in the target group.
2232
+
* <table>
2233
+
* <tr>
2234
+
* <td><strong>Parameters</strong></td>
2235
+
* <td><strong>Type</strong></td>
2236
+
* <td><strong>Required</strong></td>
2237
+
* <td><strong>Description</strong></td>
2238
+
* </tr>
2239
+
* <tr>
2240
+
* <td>chat_id</td>
2241
+
* <td>Integer or String</td>
2242
+
* <td>Yes</td>
2243
+
* <td>Unique identifier for the target chat or username of the target channel (in the format <code>@channelusername</code>)</td>
2244
+
* </tr>
2245
+
* <tr>
2246
+
* <td>title</td>
2247
+
* <td>String</td>
2248
+
* <td>Yes</td>
2249
+
* <td>New chat title, 1-255 characters</td>
2250
+
* </tr>
2251
+
* </table>
2252
+
* \param $content the request parameters as array
2253
+
* \return the JSON Telegram's reply.
2254
+
*/
2255
+
publicfunctionsetChatTitle(array$content)
2256
+
{
2257
+
return$this->endpoint('setChatTitle', $content);
2258
+
}
2259
+
2260
+
// Set Chat Description
2261
+
2262
+
/**
2263
+
* Use this method to change the description of a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns True on success.
2264
+
* <table>
2265
+
* <tr>
2266
+
* <td><strong>Parameters</strong></td>
2267
+
* <td><strong>Type</strong></td>
2268
+
* <td><strong>Required</strong></td>
2269
+
* <td><strong>Description</strong></td>
2270
+
* </tr>
2271
+
* <tr>
2272
+
* <td>chat_id</td>
2273
+
* <td>Integer or String</td>
2274
+
* <td>Yes</td>
2275
+
* <td>Unique identifier for the target chat or username of the target channel (in the format <code>@channelusername</code>)</td>
* Use this method to pin a message in a supergroup. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns True on success.
2296
+
* <table>
2297
+
* <tr>
2298
+
* <td><strong>Parameters</strong></td>
2299
+
* <td><strong>Type</strong></td>
2300
+
* <td><strong>Required</strong></td>
2301
+
* <td><strong>Description</strong></td>
2302
+
* </tr>
2303
+
* <tr>
2304
+
* <td>chat_id</td>
2305
+
* <td>Integer or String</td>
2306
+
* <td>Yes</td>
2307
+
* <td>Unique identifier for the target chat or username of the target supergroup (in the format <code>@supergroupusername</code>)</td>
2308
+
* </tr>
2309
+
* <tr>
2310
+
* <td>message_id</td>
2311
+
* <td>Integer</td>
2312
+
* <td>Yes</td>
2313
+
* <td>Identifier of a message to pin</td>
2314
+
* </tr>
2315
+
* <tr>
2316
+
* <td>disable_notification</td>
2317
+
* <td>Boolean</td>
2318
+
* <td>No</td>
2319
+
* <td>Pass <em>True</em>, if it is not necessary to send a notification to all group members about the new pinned message</td>
* Use this method to unpin a message in a supergroup chat. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns True on success.
2334
+
* <table>
2335
+
* <tr>
2336
+
* <td><strong>Parameters</strong></td>
2337
+
* <td><strong>Type</strong></td>
2338
+
* <td><strong>Required</strong></td>
2339
+
* <td><strong>Description</strong></td>
2340
+
* </tr>
2341
+
* <tr>
2342
+
* <td>chat_id</td>
2343
+
* <td>Integer or String</td>
2344
+
* <td>Yes</td>
2345
+
* <td>Unique identifier for the target chat or username of the target supergroup (in the format <code>@supergroupusername</code>)</td>
0 commit comments