version: 2.1.3







unpinChatMessage

Use this method to remove a message from the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' administrator right in a supergroup or 'can_edit_messages' administrator right in a channel. Returns True on success.

Parameters

chat_id int | string Unique identifier for the target chat or username of the target channel (in the format @channelusername) Optional
message_id int Identifier of a message to unpin. If not specified, the most recent pinned message (by sending date) will be unpinned. Optional
token String You can use this method on another bot with specify this parameter Optional
return_array Boolean Specify the result type , if pass true results will be array otherwise will be object Optional
forgot Boolean You can set to not receive request result, dont set it or pass null for turn it off Optional
answer Boolean You can set to answer to webhook, dont set it or pass null for turn it off Optional

Method errors

ErrorNamedescription
required parameters not found required parameter for this method is not founded. you can see them in log
answer mode not allowed you can use answer mode only once for each webhook update and you already did
answer mode not allowed bc multi you can't use answer mode when multi is on

Method examples

$this->unpinChatMessage(['chat_id' => int | string, 'message_id' => int]);
$this->unpinChatMessage();

Method alices

Method output :

bool