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

46 lines
1.2 KiB
Markdown
Raw Normal View History

---
title: updateChatReplyMarkup
description: Default chat reply markup has changed. It can happen because new message with reply markup has come or old reply markup was hidden by user
---
## Constructor: updateChatReplyMarkup
[Back to constructors index](index.md)
Default chat reply markup has changed. It can happen because new message with reply markup has come or old reply markup was hidden by user
### Attributes:
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
|chat\_id|[long](../types/long.md) | Yes|Chat identifier|
|reply\_markup\_message\_id|[long](../types/long.md) | Yes|Identifier of the message from which reply markup need to be used or 0 if there is no default custom reply markup in the chat|
### Type: [Update](../types/Update.md)
### Example:
```
2017-07-23 16:33:46 +02:00
$updateChatReplyMarkup = ['_' => 'updateChatReplyMarkup', 'chat_id' => long, 'reply_markup_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
{"_": "updateChatReplyMarkup", "chat_id": long, "reply_markup_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
updateChatReplyMarkup={_='updateChatReplyMarkup', chat_id=long, reply_markup_message_id=long}
```