enable reply (hacking method)
This commit is contained in:
parent
515aacbccb
commit
bef765e318
@ -19,6 +19,6 @@ class Base
|
||||
}
|
||||
public function msg($id, $msg)
|
||||
{
|
||||
return $this->exec('sendMessage', array('chat_id' => $id, 'text' => $msg, 'disable_web_page_preview' => 1));
|
||||
return $this->exec('sendMessage', array('chat_id' => $id, 'text' => $msg, 'reply_to_message_id' => MSGID, 'disable_web_page_preview' => 1));
|
||||
}
|
||||
}
|
@ -1,6 +1,7 @@
|
||||
<?php
|
||||
$BOT = new Base;
|
||||
$GET = json_decode(file_get_contents("php://input"),true);
|
||||
$debug = file_get_contents("php://input");
|
||||
|
||||
//is group?
|
||||
if ($GET['message']['chat']['id'] > 0) {
|
||||
@ -9,6 +10,8 @@ if ($GET['message']['chat']['id'] > 0) {
|
||||
$isgroup = true;
|
||||
}
|
||||
//reply to...
|
||||
|
||||
$msgid = $GET['message']['message_id'];
|
||||
$from = $GET['message']['chat']['id'];
|
||||
$text = $GET['message']['text'];
|
||||
$text = $GET['message']['text'];
|
||||
|
||||
define('MSGID',$msgid);
|
Loading…
Reference in New Issue
Block a user