Last active
August 8, 2016 17:50
-
-
Save banghasan/10c401e0acce4dbdf7247c4f8f2500fe to your computer and use it in GitHub Desktop.
This file contains 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
/* | |
* setWebhook: | |
* curl -X POST https://api.telegram.org/botXXXXXXX/setWebhook -F url="SERVER_URL" -F certificate=@/etc/nginx/ssl/YOURPUBLIC.pem | |
* | |
* upload foto | |
* $postFields = array('chat_id' => $chatId, 'photo' => new CURLFile(realpath("image.png")), 'caption' => $text); | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment