Body

Request body for CopyMessagesApi.

Note: Can only be used for serialization, not deserialization.

Properties

Link copied to clipboard
@SerialName(value = "chat_id")
val chatId: ChatId

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

Link copied to clipboard
@SerialName(value = "disable_notification")
val disableNotification: Boolean? = null

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

Link copied to clipboard
@SerialName(value = "from_chat_id")
val fromChatId: ChatId

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

Link copied to clipboard
@SerialName(value = "message_ids")
val messageIds: Collection<Int>

Required. A JSON-serialized list of 1-100 identifiers of messages in the chat from_chat_id to copy. The identifiers must be specified in a strictly increasing order.

Link copied to clipboard
@SerialName(value = "message_thread_id")
val messageThreadId: Int? = null

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

Link copied to clipboard
@SerialName(value = "protect_content")
val protectContent: Boolean? = null

Optional. Protects the contents of the sent message from forwarding and saving

Link copied to clipboard
@SerialName(value = "remove_caption")
val removeCaption: Boolean? = null

Optional. Pass True to copy the messages without their captions