1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 14:27:00 +01:00
MadelineProto/docs/TD_docs/constructors/messagePinMessage.md

45 lines
793 B
Markdown
Raw Normal View History

---
title: messagePinMessage
description: Some message was pinned
---
## Constructor: messagePinMessage
[Back to constructors index](index.md)
Some message was pinned
### Attributes:
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
|message\_id|[long](../types/long.md) | Yes|Identifier of the pinned message, can be identifier of the deleted message|
### Type: [MessageContent](../types/MessageContent.md)
### Example:
```
2017-07-23 16:33:46 +02:00
$messagePinMessage = ['_' => 'messagePinMessage', 'message_id' => long];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
2017-07-23 16:33:46 +02:00
{"_": "messagePinMessage", "message_id": long}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
messagePinMessage={_='messagePinMessage', message_id=long}
```