MadelineProtoDocs/docs/API_docs/constructors/inputAppEvent.md

33 lines
1.0 KiB
Markdown
Raw Normal View History

2024-05-01 14:53:46 +02:00
---
title: "inputAppEvent"
description: "Event that occurred in the application."
nav_exclude: true
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: inputAppEvent
[Back to constructors index](/API_docs/constructors/index.html)
Event that occurred in the application.
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|time|[double](/API_docs/types/double.html) | Yes|Client's exact timestamp for the event|
|type|[string](/API_docs/types/string.html) | Yes|Type of event|
|peer|[long](/API_docs/types/long.html) | Yes|Arbitrary numeric value for more convenient selection of certain event types, or events referring to a certain object|
|data|[JSONValue](/API_docs/types/JSONValue.html) | Yes|Details of the event|
### Type: [InputAppEvent](/API_docs/types/InputAppEvent.html)
### Example:
```
$inputAppEvent = ['_' => 'inputAppEvent', 'time' => double, 'type' => 'string', 'peer' => long, 'data' => JSONValue];
```