Created
September 14, 2020 18:32
-
-
Save Zobber/7253ee3ace95f260f9a9a18d07bac3e3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$apiToken = "854842803:AAEGwx06SX7DfiPTTfzqSOOdG11VdC9IDaY"; | |
$data = [ | |
'chat_id' => '1001934878', | |
'text' => 'Nuevo registro' | |
]; | |
$response = file_get_contents("https://api.telegram.org/bot$apiToken/sendMessage?" . http_build_query($data) ); | |
// Do what you want with result | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment