mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-04 11:47:49 +01:00
38 lines
686 B
Markdown
38 lines
686 B
Markdown
---
|
|
title: sendMessageUploadPhotoAction
|
|
description: User uploads a photo
|
|
---
|
|
## Constructor: sendMessageUploadPhotoAction
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
User uploads a photo
|
|
|
|
### Attributes:
|
|
|
|
| Name | Type | Required | Description |
|
|
|----------|:-------------:|:--------:|------------:|
|
|
|progress|[int](../types/int.md) | Yes|Upload progress in percents|
|
|
|
|
|
|
|
|
### Type: [SendMessageAction](../types/SendMessageAction.md)
|
|
|
|
|
|
### Example:
|
|
|
|
```
|
|
$sendMessageUploadPhotoAction = ['_' => 'sendMessageUploadPhotoAction', 'progress' => int, ];
|
|
```
|
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
```
|
|
sendMessageUploadPhotoAction={_='sendMessageUploadPhotoAction', progress=int, }
|
|
|
|
```
|
|
|
|
|