Fix wrong location for getting reply_id

This commit is contained in:
Ceda EI 2018-04-02 16:46:26 +05:30
parent 6e50489f35
commit abb1e850c2
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ function kys() {
$kys = file('kys.txt');
$random_kys = $kys[rand(0,count($kys)-1)];
if (isset($decoded->{'message'}->{'reply_to_message'})) {
$reply_id = $decoded->{'message'}->{'reply_to_message'}->{'message'}->{'message_id'};
$reply_id = $decoded->{'message'}->{'reply_to_message'}->{'message_id'};
send_text($random_kys, $reply_id);
}
else {