1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-15 06:36:55 +01:00
MadelineProto/docs/TD_docs/methods/setProfilePhoto.md

23 lines
909 B
Markdown
Raw Normal View History

---
title: setProfilePhoto
description: Uploads new profile photo for logged in user. Photo will not change until change will be synchronized with the server. Photo will not be changed if application is killed before it can send request to the server. If something changes, updateUser will be sent
---
## Method: setProfilePhoto
[Back to methods index](index.md)
2017-06-06 18:39:21 +02:00
YOU CANNOT USE THIS METHOD IN MADELINEPROTO
Uploads new profile photo for logged in user. Photo will not change until change will be synchronized with the server. Photo will not be changed if application is killed before it can send request to the server. If something changes, updateUser will be sent
### Params:
| Name | Type | Required | Description |
2017-08-20 11:05:56 +02:00
|----------|---------------|----------|-------------|
|photo\_path|[string](../types/string.md) | Yes|Path to new profile photo|
### Return type: [Ok](../types/Ok.md)