Automatically upload files to @me with uploadMedia
This commit is contained in:
parent
ad85b0a6c0
commit
8445455e64
@ -652,6 +652,10 @@ class TL
|
|||||||
} elseif (isset($arguments['id'])) {
|
} elseif (isset($arguments['id'])) {
|
||||||
$method = 'photos.updateProfilePhoto';
|
$method = 'photos.updateProfilePhoto';
|
||||||
}
|
}
|
||||||
|
} else if ($method === 'messages.uploadMedia') {
|
||||||
|
if (!isset($arguments['peer']) && !$this->API->getSelf()['bot']) {
|
||||||
|
$arguments['peer'] = 'me';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$tl = $this->methods->findByMethod($method);
|
$tl = $this->methods->findByMethod($method);
|
||||||
if ($tl === false) {
|
if ($tl === false) {
|
||||||
|
Loading…
Reference in New Issue
Block a user