MadelineProto/docs/TD_docs/constructors/updateChatTopMessage.md

46 lines
912 B
Markdown
Raw Normal View History

---
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:
```
2017-07-23 16:33:46 +02:00
$updateChatTopMessage = ['_' => 'updateChatTopMessage', 'chat_id' => long, 'top_message' => message];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
2017-07-23 16:33:46 +02:00
{"_": "updateChatTopMessage", "chat_id": long, "top_message": message}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
updateChatTopMessage={_='updateChatTopMessage', chat_id=long, top_message=message}
```