version: 2.1.3


Use this method to forward messages of any kind. Service messages can't be forwarded. On success, the sent Message is returned.


chat_id int | string Unique identifier for the target chat or username of the target channel (in the format @channelusername) Yes
from_chat_id int | string Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername) Optional
disable_notification bool Sends the message silently. Users will receive a notification with no sound. Optional
protect_content bool Protects the contents of the forwarded message from forwarding and saving Optional
message_id int Message identifier in the chat specified in from_chat_id 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

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->forwardMessage(['chat_id' => int | string, 'from_chat_id' => int | string, 'disable_notification' => bool, 'protect_content' => bool, 'message_id' => int]);
$this->forwardMessage(['chat_id' => int | string]);

Method alices

Method output :