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
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
message_thread_id int | null Unique identifier for the target message thread (topic) of the forum; for forum supergroups only no

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

Static or normal : Static

Examples :

request::forwardMessage(['chat_id' => int | string, 'from_chat_id' => int | string, 'disable_notification' => bool, 'protect_content' => bool, 'message_id' => int]);
request::forwardMessage(['chat_id' => int | string]);