MadelineProtoDocs/docs/API_docs/constructors/inputChatPhoto.md
2024-05-01 14:53:46 +02:00

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];
```