mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 05:58:58 +01:00
Bugfix
This commit is contained in:
parent
94f2727be2
commit
9bd1113b5b
2
docs
2
docs
@ -1 +1 @@
|
|||||||
Subproject commit d4a28b557679b8511aaae6ab61dd42c9ce9c7f11
|
Subproject commit 821000468d14f943496b8bbc7183360c83630d6b
|
@ -488,7 +488,7 @@ final class Connection
|
|||||||
if ($res['type'] !== 'chat') {
|
if ($res['type'] !== 'chat') {
|
||||||
throw new Exception('chat_id is not a chat id (only normal groups allowed, not supergroups)!');
|
throw new Exception('chat_id is not a chat id (only normal groups allowed, not supergroups)!');
|
||||||
}
|
}
|
||||||
$arguments['chat_id'] = $res['chat_id'];
|
$arguments['chat_id'] = -$res['chat_id'];
|
||||||
} elseif ($method === 'photos.updateProfilePhoto') {
|
} elseif ($method === 'photos.updateProfilePhoto') {
|
||||||
if (isset($arguments['id'])) {
|
if (isset($arguments['id'])) {
|
||||||
if (!\is_array($arguments['id'])) {
|
if (!\is_array($arguments['id'])) {
|
||||||
|
Loading…
Reference in New Issue
Block a user