mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-02 17:55:35 +01:00
40 lines
2.8 KiB
Markdown
40 lines
2.8 KiB
Markdown
---
|
|
title: "messageReplyHeader"
|
|
description: "Message replies and thread information"
|
|
nav_exclude: true
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
---
|
|
# Constructor: messageReplyHeader
|
|
[Back to constructors index](/API_docs/constructors/index.html)
|
|
|
|
|
|
|
|
Message replies and [thread](https://core.telegram.org/api/threads) information
|
|
|
|
### Attributes:
|
|
|
|
| Name | Type | Required | Description |
|
|
|----------|---------------|----------|-------------|
|
|
|reply\_to\_scheduled|[Bool](/API_docs/types/Bool.html) | Optional|This is a reply to a scheduled message.|
|
|
|forum\_topic|[Bool](/API_docs/types/Bool.html) | Optional|Whether this message was sent in a [forum topic](https://core.telegram.org/api/forum#forum-topics) (except for the General topic).|
|
|
|quote|[Bool](/API_docs/types/Bool.html) | Optional|Whether this message is quoting a part of another message.|
|
|
|reply\_to\_msg\_id|[int](/API_docs/types/int.html) | Optional|ID of message to which this message is replying|
|
|
|reply\_to\_peer\_id|[Peer](/API_docs/types/Peer.html) | Optional|For replies sent in [channel discussion threads](https://core.telegram.org/api/threads) of which the current user is not a member, the discussion group ID|
|
|
|reply\_from|[MessageFwdHeader](/API_docs/types/MessageFwdHeader.html) | Optional|When replying to a message sent by a certain peer to another chat, contains info about the peer that originally sent the message to that other chat.|
|
|
|reply\_media|[MessageMedia](/API_docs/types/MessageMedia.html) | Optional|When replying to a media sent by a certain peer to another chat, contains the media of the replied-to message.|
|
|
|reply\_to\_top\_id|[int](/API_docs/types/int.html) | Optional|ID of the message that started this [message thread](https://core.telegram.org/api/threads)|
|
|
|quote\_text|[string](/API_docs/types/string.html) | Optional|Used to quote-reply to only a certain section (specified here) of the original message.|
|
|
|quote\_entities|Array of [MessageEntity](/API_docs/types/MessageEntity.html) | Optional|[Message entities for styled text](https://core.telegram.org/api/entities) from the `quote_text` field.|
|
|
|quote\_offset|[int](/API_docs/types/int.html) | Optional|Offset of the message `quote_text` within the original message (in [UTF-16 code units](https://core.telegram.org/api/entities#entity-length)).|
|
|
|
|
|
|
|
|
### Type: [MessageReplyHeader](/API_docs/types/MessageReplyHeader.html)
|
|
|
|
|
|
### Example:
|
|
|
|
```
|
|
$messageReplyHeader = ['_' => 'messageReplyHeader', 'reply_to_scheduled' => Bool, 'forum_topic' => Bool, 'quote' => Bool, 'reply_to_msg_id' => int, 'reply_to_peer_id' => Peer, 'reply_from' => MessageFwdHeader, 'reply_media' => MessageMedia, 'reply_to_top_id' => int, 'quote_text' => 'string', 'quote_entities' => [MessageEntity, MessageEntity], 'quote_offset' => int];
|
|
```
|