mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-11 16:50:37 +01:00
30 lines
732 B
Markdown
30 lines
732 B
Markdown
---
|
|
title: "inputChatPhoto"
|
|
description: "Existing photo to be set as a chat profile photo."
|
|
nav_exclude: true
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
---
|
|
# Constructor: inputChatPhoto
|
|
[Back to constructors index](/API_docs/constructors/index.html)
|
|
|
|
|
|
|
|
Existing photo to be set as a chat profile photo.
|
|
|
|
### Attributes:
|
|
|
|
| Name | Type | Required | Description |
|
|
|----------|---------------|----------|-------------|
|
|
|id|[MessageMedia, Message, Update or InputPhoto](/API_docs/types/InputPhoto.html) | Optional|Existing photo|
|
|
|
|
|
|
|
|
### Type: [InputChatPhoto](/API_docs/types/InputChatPhoto.html)
|
|
|
|
|
|
### Example:
|
|
|
|
```
|
|
$inputChatPhoto = ['_' => 'inputChatPhoto', 'id' => InputPhoto];
|
|
```
|