Skip to content

Commit

Permalink
Update 4.9
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdiMGF2 committed Sep 6, 2024
1 parent eff7526 commit 9441407
Show file tree
Hide file tree
Showing 5 changed files with 127 additions and 155 deletions.
3 changes: 2 additions & 1 deletion botapi.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ function deletemessage($chat_id, $message_id){
$update = json_decode(file_get_contents("php://input"), true);
$from_id = $update['message']['from']['id'] ?? $update['callback_query']['from']['id'] ?? 0;
$Chat_type = $update["message"]["chat"]["type"] ?? '';
$text = $update["message"]["text"] ?? $update["callback_query"]["message"]["text"] ?? '';
$text = $update["message"]["text"] ?? '';
$text_callback = $update["callback_query"]["message"]["text"] ?? '';
$message_id = $update["message"]["message_id"] ?? $update["callback_query"]["message"]["message_id"] ?? 0;
$photo = $update["message"]["photo"] ?? 0;
$photoid = $photo ? end($photo)["file_id"] : '';
Expand Down
Loading

0 comments on commit 9441407

Please sign in to comment.