Skip to content

Instantly share code, notes, and snippets.

@banghasan
Last active August 8, 2016 17:50
Show Gist options
  • Save banghasan/10c401e0acce4dbdf7247c4f8f2500fe to your computer and use it in GitHub Desktop.
Save banghasan/10c401e0acce4dbdf7247c4f8f2500fe to your computer and use it in GitHub Desktop.
/*
* 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