SafeW|API文档
  • 🤖Bot API
    • Introduction
    • getMe
    • getUpdates
    • sendMessage
    • sendPhoto
    • sendVideo
    • sendDocument
    • forwardMessage
    • editMessageText
    • deleteMessage
    • getChat
    • leaveChat
    • getChatMemberCount
    • banChatMember
    • sendVoice
    • sendMediaGroup
    • sendAudio
  • setWebhook
  • deleteWebhook
  • getWebhookInfo
  • deleteMessages
  • editMessageReplyMarkup
  • copyMessage
  • promoteChatMember
  • setChatPermissions
  • restrictChatMember
  • setMyDefaultAdministratorRights
  • setChatAdministratorCustomTitle
  • getChatMember
  • setChatTitle
  • getChatAdministrators
  • getMyCommands
  • setMyCommands
  • createChatInviteLink
  • editChatInviteLink
  • revokeChatInviteLink
  • approveChatJoinRequest
  • declineChatJoinRequest
  • answerCallbackQuery
Powered by GitBook
On this page
  1. Bot API

forwardMessage

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

Parameter
Type
Required
Description

chat_id

Integer or String

Yes

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

message_thread_id

Integer

Optional

Unique identifier for the target message thread (topic) of the forum; for forum supergroups only

from_chat_id

Integer or String

Yes

Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername)

disable_notification

Boolean

Optional

Sends the message silently. Users will receive a notification with no sound.

protect_content

Boolean

Optional

Protects the contents of the forwarded message from forwarding and saving

message_id

Integer

Yes

Message identifier in the chat specified in from_chat_id

PrevioussendDocumentNexteditMessageText
🤖