From cbd325bc4789026303c9a7f0b3e53e208cb8b802 Mon Sep 17 00:00:00 2001 From: MaxNadeev Date: Thu, 28 Mar 2024 01:02:32 +0300 Subject: [PATCH] send form data to email and telegram bot --- consts.txt.example | 3 +++ sender - Copy.php | 61 ---------------------------------------------- 2 files changed, 3 insertions(+), 61 deletions(-) create mode 100644 consts.txt.example delete mode 100644 sender - Copy.php diff --git a/consts.txt.example b/consts.txt.example new file mode 100644 index 0000000..0dcec70 --- /dev/null +++ b/consts.txt.example @@ -0,0 +1,3 @@ +your_telegram_token_from_bot_father +your_telegram_id +developer_telegram_id \ No newline at end of file diff --git a/sender - Copy.php b/sender - Copy.php deleted file mode 100644 index 43031ad..0000000 --- a/sender - Copy.php +++ /dev/null @@ -1,61 +0,0 @@ - $chat_id, - 'text' => $message, - 'parse_mode' => 'HTML' - ]; - $response = file_get_contents("https://api.telegram.org/bot$apiToken/sendMessage?".http_build_query($data)); -}; - -sendToTelegram($apiToken, $owner, $message); -sendToTelegram($apiToken, $dev, $message); - -?> \ No newline at end of file