1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 06:36:55 +01:00
MadelineProto/docs/TD_docs/constructors/updateChatTopMessage.md
2017-07-23 16:11:02 +02:00

46 lines
915 B
Markdown

---
title: updateChatTopMessage
description: Top message of the chat has changed
---
## Constructor: updateChatTopMessage
[Back to constructors index](index.md)
Top message of the chat has changed
### Attributes:
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
|chat\_id|[long](../types/long.md) | Yes|Chat identifier|
|top\_message|[message](../types/message.md) | Yes|New top message of the chat, nullable|
### Type: [Update](../types/Update.md)
### Example:
```
$updateChatTopMessage = ['_' => 'updateChatTopMessage', 'chat_id' => long, 'top_message' => message, ];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_":"updateChatTopMessage","chat_id":"long","top_message":"message"}
```
Or, if you're into Lua:
```
updateChatTopMessage={_='updateChatTopMessage', chat_id=long, top_message=message, }
```