mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 01:34:40 +01:00
Update bot
This commit is contained in:
parent
a3bfde1dea
commit
6c326305eb
2
docs
2
docs
@ -1 +1 @@
|
||||
Subproject commit 757d12fbdda97d22a20d565be8e0aea64ed34cad
|
||||
Subproject commit fb62113c6b73f49e6d84849731cbe3f705d03647
|
@ -80,7 +80,7 @@ class EventHandler extends \danog\MadelineProto\EventHandler
|
||||
if ($update['message']['message'] === '/start') {
|
||||
return $this->messages->sendMessage(['peer' => $peerId, 'message' => self::START, 'parse_mode' => 'Markdown', 'reply_to_msg_id' => $update['message']['id']]);
|
||||
}
|
||||
if (isset($update['message']['media'])) {
|
||||
if (isset($update['message']['media']['_']) && $update['message']['media']['_'] !== 'messageMediaWebPage') {
|
||||
$id = yield $this->messages->sendMessage(['peer' => $peerId, 'message' => 'Give me a new name for this file: ', 'reply_to_msg_id' => $messageId])['id'];
|
||||
$this->states[$peerId] = [$update['message']['media'], $id];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user