MadelineProtoDocs/old_docs/API_docs_v95/constructors/inputAppEvent.md

42 lines
1.1 KiB
Markdown
Raw Normal View History

2019-03-29 21:12:30 +01:00
---
title: inputAppEvent
2019-12-27 17:48:04 +01:00
description: Event that occured in the application.
2019-03-29 21:12:30 +01:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: inputAppEvent
[Back to constructors index](index.md)
2019-12-27 17:48:04 +01:00
Event that occured in the application.
2019-03-29 21:12:30 +01:00
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
2019-12-27 17:48:04 +01:00
|time|[double](../types/double.md) | Yes|Client's exact timestamp for the event|
|type|[string](../types/string.md) | Yes|Type of event|
|peer|[long](../types/long.md) | Yes|Arbitrary numeric value for more convenient selection of certain event types, or events referring to a certain object|
|data|[JSONValue](../types/JSONValue.md) | Yes|Details of the event|
2019-03-29 21:12:30 +01:00
### Type: [InputAppEvent](../types/InputAppEvent.md)
### Example:
```php
$inputAppEvent = ['_' => 'inputAppEvent', 'time' => double, 'type' => 'string', 'peer' => long, 'data' => JSONValue];
```
Or, if you're into Lua:
```lua
inputAppEvent={_='inputAppEvent', time=double, type='string', peer=long, data=JSONValue}
```