Skip to content

Commit ad42ab9

Browse files
authored
Update config.php
1 parent d0e32e8 commit ad42ab9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ function ip_in_range($ip, $range){
159159
$update = json_decode(file_get_contents("php://input"));
160160
if(isset($update->message)){
161161
$from_id = $update->message->from->id;
162-
$text = htmlspecialchars($update->message->text);
162+
$text = $update->message->text;
163163
$first_name = htmlspecialchars($update->message->from->first_name);
164-
$caption = htmlspecialchars($update->message->caption);
164+
$caption = $update->message->caption;
165165
$chat_id = $update->message->chat->id;
166166
$last_name = htmlspecialchars($update->message->from->last_name);
167167
$username = $update->message->from->username?? " ندارد ";
@@ -173,7 +173,7 @@ function ip_in_range($ip, $range){
173173
if(isset($update->callback_query)){
174174
$callbackId = $update->callback_query->id;
175175
$data = $update->callback_query->data;
176-
$text = htmlspecialchars($update->callback_query->message->text);
176+
$text = $update->callback_query->message->text;
177177
$message_id = $update->callback_query->message->message_id;
178178
$chat_id = $update->callback_query->message->chat->id;
179179
$chat_type = $update->callback_query->message->chat->type;

0 commit comments

Comments
 (0)