Fix wrong location for getting reply_id
This commit is contained in:
parent
6e50489f35
commit
abb1e850c2
|
@ -214,7 +214,7 @@ function kys() {
|
||||||
$kys = file('kys.txt');
|
$kys = file('kys.txt');
|
||||||
$random_kys = $kys[rand(0,count($kys)-1)];
|
$random_kys = $kys[rand(0,count($kys)-1)];
|
||||||
if (isset($decoded->{'message'}->{'reply_to_message'})) {
|
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);
|
send_text($random_kys, $reply_id);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue