MadelineProtoDocs/docs/API_docs/constructors/updateBotStopped.md

33 lines
985 B
Markdown
Raw Normal View History

2024-05-01 14:53:46 +02:00
---
title: "updateBotStopped"
description: "A bot was stopped or re-started."
nav_exclude: true
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: updateBotStopped
[Back to constructors index](/API_docs/constructors/index.html)
A bot was stopped or re-started.
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|user\_id|[long](/API_docs/types/long.html) | Yes|The user ID|
|date|[int](/API_docs/types/int.html) | Yes|When did this action occur|
|stopped|[Bool](/API_docs/types/Bool.html) | Yes|Whether the bot was stopped or started|
|qts|[int](/API_docs/types/int.html) | Yes|New **qts** value, see [updates »](https://core.telegram.org/api/updates) for more info.|
### Type: [Update](/API_docs/types/Update.html)
### Example:
```
$updateBotStopped = ['_' => 'updateBotStopped', 'user_id' => long, 'date' => int, 'stopped' => Bool, 'qts' => int];
```