forwardMessage

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

Arguments
Name Type Description Required
chat_id int | string | array Unique identifier for the target chat or username of the target channel (in the format @channelusername) yes
message_thread_id int | null Unique identifier for the target message thread (topic) of the forum; for forum supergroups only no
from_chat_id int | string | null Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername) no
disable_notification bool | null Sends the message silently. Users will receive a notification with no sound. no
protect_content bool | null Protects the contents of the forwarded message from forwarding and saving no
message_id int | null Message identifier in the chat specified in from_chat_id no
token string | null You can use this method on another bot with specify this parameter no
forgot bool | null You can set to not receive request result, dont set it or pass null for turn it off no
answer bool | null You can set to answer to webhook, dont set it or pass null for turn it off no

Output : BPT\types\message | BPT\types\responseError | bool

Static or normal : Static

Examples :

request::forwardMessage(chat_id: int | string, message_thread_id: int | null, from_chat_id: int | string | null, disable_notification: bool | null, protect_content: bool | null, message_id: int | null, token: String | null, forgot: Boolean | null, answer: Boolean | null);
request::forwardMessage(['chat_id' => int | string, 'message_thread_id' => int | null, 'from_chat_id' => int | string | null, 'disable_notification' => bool | null, 'protect_content' => bool | null, 'message_id' => int | null, 'token' => String | null, 'forgot' => Boolean | null, 'answer' => Boolean | null]);
request::forwardMessage(chat_id: int | string);
request::forwardMessage(['chat_id' => int | string]);