MadelineProtoDocs/old_docs/API_docs_v21/constructors/inputChatUploadedPhoto.md

39 lines
854 B
Markdown
Raw Permalink Normal View History

2020-06-16 17:50:25 +02:00
---
title: inputChatUploadedPhoto
description: New photo to be set as group profile photo.
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: inputChatUploadedPhoto
[Back to constructors index](index.md)
New photo to be set as group profile photo.
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|file|[File path or InputFile](../types/InputFile.md) | Yes|File saved in parts using the method [upload.saveFilePart](../methods/upload.saveFilePart.md)|
### Type: [InputChatPhoto](../types/InputChatPhoto.md)
### Example:
```php
$inputChatUploadedPhoto = ['_' => 'inputChatUploadedPhoto', 'file' => InputFile];
```
Or, if you're into Lua:
```lua
inputChatUploadedPhoto={_='inputChatUploadedPhoto', file=InputFile}
```