Skip to content

Commit 5d389c8

Browse files
committed
Fix setChatPhoto to upload file.
Closes #1045
1 parent 982f722 commit 5d389c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Methods/Chat.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public function declineChatJoinRequest(array $params): bool
227227
*/
228228
public function setChatPhoto(array $params): bool
229229
{
230-
return $this->post('setChatPhoto', $params)->getResult();
230+
return $this->uploadFile('setChatPhoto', $params, 'photo')->getResult();
231231
}
232232

233233
/**

0 commit comments

Comments
 (0)