{"id":3234,"date":"2018-03-16T00:00:00","date_gmt":"2018-03-16T06:00:00","guid":{"rendered":"http:\/\/yyc.ninja\/index.php\/2018\/03\/16\/99-seconds-to-make-bitcoin-send-you-telegram-messages-d61ad44afd5b\/"},"modified":"2022-02-24T12:14:43","modified_gmt":"2022-02-24T19:14:43","slug":"99-seconds-to-make-bitcoin-send-you-telegram-messages-d61ad44afd5b","status":"publish","type":"post","link":"https:\/\/yyc.ninja\/index.php\/2018\/03\/16\/99-seconds-to-make-bitcoin-send-you-telegram-messages-d61ad44afd5b\/","title":{"rendered":"99 seconds to make bitcoin send you Telegram\u00a0messages"},"content":{"rendered":"<h3 id=\"d8ac\" class=\"graf graf--h3 graf--leading graf--title\">99 seconds to make bitcoin send you Telegram\u00a0messages<\/h3>\n<h3 id=\"85c3\" class=\"graf graf--h3 graf-after--h3\">Using Gitlab-CI with Telegram (Illustrated step by\u00a0step)<\/h3>\n<figure><img decoding=\"async\" src=\"https:\/\/cdn-images-1.medium.com\/max\/1200\/1*-lWyemVocCV6RNb5chdCrw.png\" alt=\"\" \/><figcaption>type \/help to get a list of available commands, we want to create a new bot using the command\u00a0\/newbot<\/figcaption><\/figure>\n<blockquote id=\"196a\" class=\"graf graf--blockquote graf-after--figure\"><p>Level\u00a0: All levels<\/p><\/blockquote>\n<blockquote id=\"b98c\" class=\"graf graf--blockquote graf-after--blockquote\"><p>Requirements\u00a0: Any web browser + your phone<\/p><\/blockquote>\n<p><strong>[Unedited]<\/strong><\/p>\n<p id=\"811b\" class=\"graf graf--p graf-after--blockquote\">Here is the final instalment in this series,<em class=\"markup--em markup--p-em\"> it\u2019s written in away so that you don\u2019t need to read the previous tutorials to complete this one.<\/em><\/p>\n<p id=\"4ab9\" class=\"graf graf--p graf-after--p\">Previously we\u2019ve discussed how to <a class=\"markup--anchor markup--p-anchor\" href=\"https:\/\/medium.freecodecamp.org\/56-seconds-to-get-gitlab-to-do-periodic-jobs-for-you-6a731b977559\" target=\"_blank\" rel=\"noopener\" data-href=\"https:\/\/medium.freecodecamp.org\/56-seconds-to-get-gitlab-to-do-periodic-jobs-for-you-6a731b977559\">create periodic jobs<\/a>, then how to <a class=\"markup--anchor markup--p-anchor\" href=\"https:\/\/hackernoon.com\/71-seconds-to-build-your-free-custom-webhook-illustrated-step-by-step-7a09b9e240ba\" target=\"_blank\" rel=\"noopener\" data-href=\"https:\/\/hackernoon.com\/71-seconds-to-build-your-free-custom-webhook-illustrated-step-by-step-7a09b9e240ba\">create a webhook<\/a> using Gitlab-CI, we\u2019ve also <a class=\"markup--anchor markup--p-anchor\" href=\"https:\/\/medium.com\/@YYC_Ninja\/99-seconds-to-make-bitcoin-call-your-phone-number-a8cbd9740f76\" target=\"_blank\" rel=\"noopener\" data-href=\"https:\/\/medium.com\/@YYC_Ninja\/99-seconds-to-make-bitcoin-call-your-phone-number-a8cbd9740f76\">connected our bitcoin price webhook to IFTTT<\/a>; the well known automation service.<\/p>\n<p id=\"2f09\" class=\"graf graf--p graf-after--p\">But who needs IFTTT when we can send bitcoin price messages directly from Gitlab-CI to Telegram, chat, group or channel.<\/p>\n<p id=\"bfd3\" class=\"graf graf--p graf-after--p\">This is almost the same path you might want to take to have Gitlab-CI create and send messages to Facebook, Twitter etc.<\/p>\n<p id=\"8362\" class=\"graf graf--p graf-after--p\">Gitlab will GET the price of bitcoin\u00a0, in Canadian dollars, when the price of bitcoin is between certain price levels, an alert will be generated in gitlab and sent as a Telegram message.<\/p>\n<blockquote id=\"e378\" class=\"graf graf--pullquote graf-after--p\"><p>Let\u2019s get you\u00a0started<\/p><\/blockquote>\n<p id=\"2700\" class=\"graf graf--p graf-after--pullquote\">Here is what\u2019re going to do at Telegram side:<\/p>\n<ul class=\"postList\">\n<li id=\"e50d\" class=\"graf graf--li graf-after--p\">We will create a Telgram bot and get it\u2019s ID, the bot will relay the messages coming from Gitlab-CI<\/li>\n<li id=\"bf9b\" class=\"graf graf--li graf-after--li\">We will get your chat ID, so Telegram can send you messages<\/li>\n<\/ul>\n<p id=\"76ff\" class=\"graf graf--p graf-after--li\">At Gitlab side\u00a0:<\/p>\n<ul class=\"postList\">\n<li id=\"2187\" class=\"graf graf--li graf-after--p\">Create a gitlab project with 2 files to retrieve bitcoin price, check if it\u2019s at a certain price level, if so it will post it to Telegram<\/li>\n<li id=\"e6d2\" class=\"graf graf--li graf-after--li\">Select a daily schedule to run this on Gitlab-CI<\/li>\n<\/ul>\n<ol class=\"postList\">\n<li id=\"ecde\" class=\"graf graf--li graf-after--li\"><strong class=\"markup--strong markup--li-strong\">Create a free Telegram account<\/strong>\u00a0: Signup for a <a class=\"markup--anchor markup--li-anchor\" href=\"https:\/\/telegram.org\/\" target=\"_blank\" rel=\"noopener\" data-href=\"https:\/\/telegram.org\/\">Telegram account<\/a> if you don\u2019t already have one, you will need to confirm your phone number <em class=\"markup--em markup--li-em\">(15 seconds)<\/em><\/li>\n<li id=\"d9db\" class=\"graf graf--li graf-after--li\"><strong class=\"markup--strong markup--li-strong\">Create a free Telegram bot and save its access token<\/strong>\u00a0: (23 seconds)<\/li>\n<\/ol>\n<p id=\"9f6c\" class=\"graf graf--p graf-after--li\">You have 2 options here\u00a0:<\/p>\n<ul class=\"postList\">\n<li id=\"7e6f\" class=\"graf graf--li graf-after--p\">Either visit this link in your phone (or desktop Telegram app) <a class=\"markup--anchor markup--li-anchor\" href=\"https:\/\/telegram.me\/botfather\" target=\"_blank\" rel=\"nofollow noopener\" data-href=\"https:\/\/telegram.me\/botfather\">https:\/\/telegram.me\/botfather<\/a><\/li>\n<li id=\"4ea0\" class=\"graf graf--li graf-after--li\">Or search for BotFather in telegram application<\/li>\n<\/ul>\n<blockquote id=\"6af1\" class=\"graf graf--blockquote graf-after--li\"><p>the following Telegram mobile app images are taken from a <a class=\"markup--anchor markup--blockquote-anchor\" href=\"https:\/\/www.sohamkamani.com\/blog\/2016\/09\/21\/making-a-telegram-bot\/\" target=\"_blank\" rel=\"noopener\" data-href=\"https:\/\/www.sohamkamani.com\/blog\/2016\/09\/21\/making-a-telegram-bot\/\">tutorial by Soham Kamani<\/a><\/p><\/blockquote>\n<figure><img decoding=\"async\" src=\"https:\/\/cdn-images-1.medium.com\/max\/1200\/1*-lWyemVocCV6RNb5chdCrw.png\" alt=\"\" \/><figcaption>type \/help to get a list of available commands, we want to create a new bot using the command\u00a0\/newbot<\/figcaption><\/figure>\n<figure><img decoding=\"async\" src=\"https:\/\/cdn-images-1.medium.com\/max\/1200\/1*-lWyemVocCV6RNb5chdCrw.png\" alt=\"\" \/><figcaption>type \/help to get a list of available commands, we want to create a new bot using the command\u00a0\/newbot<\/figcaption><\/figure>\n<figure><img decoding=\"async\" src=\"https:\/\/cdn-images-1.medium.com\/max\/1200\/1*-lWyemVocCV6RNb5chdCrw.png\" alt=\"\" \/><figcaption>type \/help to get a list of available commands, we want to create a new bot using the command\u00a0\/newbot<\/figcaption><\/figure>\n<figure><img decoding=\"async\" src=\"https:\/\/cdn-images-1.medium.com\/max\/1200\/1*-lWyemVocCV6RNb5chdCrw.png\" alt=\"\" \/><figcaption>type \/help to get a list of available commands, we want to create a new bot using the command\u00a0\/newbot<\/figcaption><\/figure>\n<figure><img decoding=\"async\" src=\"https:\/\/cdn-images-1.medium.com\/max\/1200\/1*-lWyemVocCV6RNb5chdCrw.png\" alt=\"\" \/><figcaption>type \/help to get a list of available commands, we want to create a new bot using the command\u00a0\/newbot<\/figcaption><\/figure>\n<p id=\"1815\" class=\"graf graf--p graf-after--figure\">3. <strong class=\"markup--strong markup--p-strong\">Get your chat ID<\/strong>\u00a0: for the bot to send messages to you, we need to get your chat ID (20 seconds)<\/p>\n<p id=\"e8b8\" class=\"graf graf--p graf-after--p\">Visit <a class=\"markup--anchor markup--p-anchor\" href=\"https:\/\/www.hurl.it\/\" target=\"_blank\" rel=\"nofollow noopener\" data-href=\"https:\/\/www.hurl.it\/\">https:\/\/www.hurl.it<\/a> (or use your favourite HTTP client)<\/p>\n<p id=\"1924\" class=\"graf graf--p graf-after--p\">in the box next to GET add the following URL, replacing MY_TELEGRAM_BOT_ACCESS_TOKEN with your actual bot access token we generated above in <strong class=\"markup--strong markup--p-strong\">step 2<\/strong><\/p>\n<blockquote id=\"a25e\" class=\"graf graf--pullquote graf-after--p\"><p><a class=\"markup--anchor markup--pullquote-anchor\" href=\"https:\/\/api.telegram.org\/MY_TELEGRAM_BOT_ACCESS_TOKEN\/getUpdates\" target=\"_blank\" rel=\"nofollow noopener\" data-href=\"https:\/\/api.telegram.org\/MY_TELEGRAM_BOT_ACCESS_TOKEN\/getUpdates\">https:\/\/api.telegram.org\/MY_TELEGRAM_BOT_ACCESS_TOKEN\/getUpdates<\/a><\/p><\/blockquote>\n<figure><img decoding=\"async\" src=\"https:\/\/cdn-images-1.medium.com\/max\/1200\/1*-lWyemVocCV6RNb5chdCrw.png\" alt=\"\" \/><figcaption>type \/help to get a list of available commands, we want to create a new bot using the command\u00a0\/newbot<\/figcaption><\/figure>\n<p id=\"5b81\" class=\"graf graf--p graf-after--figure\">If all went well, you should receive a response that contains private chat ID (between you and the bot) as follows<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/cdn-images-1.medium.com\/max\/1200\/1*-lWyemVocCV6RNb5chdCrw.png\" alt=\"\" \/><figcaption>type \/help to get a list of available commands, we want to create a new bot using the command\u00a0\/newbot<\/figcaption><\/figure>\n<figure><img decoding=\"async\" src=\"https:\/\/cdn-images-1.medium.com\/max\/1200\/1*-lWyemVocCV6RNb5chdCrw.png\" alt=\"\" \/><figcaption>type \/help to get a list of available commands, we want to create a new bot using the command\u00a0\/newbot<\/figcaption><\/figure>\n<p id=\"ee21\" class=\"graf graf--p graf-after--figure\">Great now that we have the access token, and the chat ID, let\u2019s test them:<\/p>\n<ul class=\"postList\">\n<li id=\"5ae7\" class=\"graf graf--li graf-after--p\">Go back to<\/li>\n<li id=\"c3b6\" class=\"graf graf--li graf-after--li\">Change the GET command in the drop down menu to POST<\/li>\n<\/ul>\n<blockquote id=\"3032\" class=\"graf graf--pullquote graf-after--li\"><p>Paste the following URL in the text\u00a0field<\/p><\/blockquote>\n<blockquote id=\"e4d2\" class=\"graf graf--pullquote graf-after--pullquote\"><p><a class=\"markup--anchor markup--pullquote-anchor\" href=\"https:\/\/api.telegram.org\/MY_TELEGRAM_BOT_ACCESS_TOKEN\/sendMessage?chat_id=MY_CHAT_ID&amp;text=hello\" target=\"_blank\" rel=\"nofollow noopener\" data-href=\"https:\/\/api.telegram.org\/MY_TELEGRAM_BOT_ACCESS_TOKEN\/sendMessage?chat_id=MY_CHAT_ID&amp;text=hello\">https:\/\/api.telegram.org\/MY_TELEGRAM_BOT_ACCESS_TOKEN\/sendMessage?chat_id=MY_CHAT_ID&amp;text=hello<\/a><\/p><\/blockquote>\n<p id=\"3f2f\" class=\"graf graf--p graf-after--pullquote\">again replacing MY_TELEGRAM_BOT_ACCESS_TOKEN with your actually bot access token.<\/p>\n<p id=\"1a29\" class=\"graf graf--p graf-after--p\">And replacing MY_CHAT_ID with your actually chat id described above.<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/cdn-images-1.medium.com\/max\/1200\/1*-lWyemVocCV6RNb5chdCrw.png\" alt=\"\" \/><figcaption>type \/help to get a list of available commands, we want to create a new bot using the command\u00a0\/newbot<\/figcaption><\/figure>\n<p id=\"21af\" class=\"graf graf--p graf-after--figure\">If all goes as planned, you should receive your first message from your bot into your Telegram app with the world \u201chello\u201d. Good job!<\/p>\n<p id=\"4334\" class=\"graf graf--p graf-after--p\">If the test was successful, move on to the next step, otherwise go through the above steps again and make sure that you followed each step.<\/p>\n<p id=\"d559\" class=\"graf graf--p graf-after--p\">If you have followed the instructions in one of these <a class=\"markup--anchor markup--p-anchor\" href=\"https:\/\/medium.freecodecamp.org\/56-seconds-to-get-gitlab-to-do-periodic-jobs-for-you-6a731b977559\" target=\"_blank\" rel=\"noopener\" data-href=\"https:\/\/medium.freecodecamp.org\/56-seconds-to-get-gitlab-to-do-periodic-jobs-for-you-6a731b977559\">previous tutorials<\/a> or <a class=\"markup--anchor markup--p-anchor\" href=\"https:\/\/hackernoon.com\/71-seconds-to-build-your-free-custom-webhook-illustrated-step-by-step-7a09b9e240ba\" target=\"_blank\" rel=\"noopener\" data-href=\"https:\/\/hackernoon.com\/71-seconds-to-build-your-free-custom-webhook-illustrated-step-by-step-7a09b9e240ba\">the other<\/a> and have created a project in gitlab, then you just need to go back to your project in Gitlab and take alook at <strong class=\"markup--strong markup--p-strong\">step 6<\/strong> below to edit the <em class=\"markup--em markup--p-em\">btc-price-alert.sh<\/em> file, and look at <strong class=\"markup--strong markup--p-strong\">step 7<\/strong> to save your bot access token &amp; chat id key as a Secret Variables at Gitlab\u00a0, if this is your first run, no worries, we will go through the gitlab part again step by step.<\/p>\n<blockquote id=\"4f2d\" class=\"graf graf--pullquote graf-after--p\"><p>here we\u00a0go:<\/p><\/blockquote>\n<p id=\"5e19\" class=\"graf graf--p graf-after--pullquote\">4.<strong class=\"markup--strong markup--p-strong\"> Sign in<\/strong> (or create a new account) at <a class=\"markup--anchor markup--p-anchor\" href=\"https:\/\/gitlab.com\/users\/sign_in\" target=\"_blank\" rel=\"noopener\" data-href=\"https:\/\/gitlab.com\/users\/sign_in\">Gitlab.com<\/a> (10 seconds)<\/p>\n<p id=\"a990\" class=\"graf graf--p graf-after--p\">5\u00a0. <strong class=\"markup--strong markup--p-strong\">Create a new Project\u00a0:<\/strong> Click on <strong class=\"markup--strong markup--p-strong\"><em class=\"markup--em markup--p-em\">New Project<\/em><\/strong> button to create a new repo, in the name field type <em class=\"markup--em markup--p-em\">btc-webhook<\/em> or any other name. (9 seconds)<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/cdn-images-1.medium.com\/max\/1200\/1*-lWyemVocCV6RNb5chdCrw.png\" alt=\"\" \/><figcaption>type \/help to get a list of available commands, we want to create a new bot using the command\u00a0\/newbot<\/figcaption><\/figure>\n<p id=\"fda9\" class=\"graf graf--p graf-after--figure\">Then save it By clicking on <strong class=\"markup--strong markup--p-strong\"><em class=\"markup--em markup--p-em\">Create Project<\/em><\/strong> (1 second)<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/cdn-images-1.medium.com\/max\/1200\/1*-lWyemVocCV6RNb5chdCrw.png\" alt=\"\" \/><figcaption>type \/help to get a list of available commands, we want to create a new bot using the command\u00a0\/newbot<\/figcaption><\/figure>\n<figure><img decoding=\"async\" src=\"https:\/\/cdn-images-1.medium.com\/max\/1200\/1*-lWyemVocCV6RNb5chdCrw.png\" alt=\"\" \/><figcaption>type \/help to get a list of available commands, we want to create a new bot using the command\u00a0\/newbot<\/figcaption><\/figure>\n<p id=\"6343\" class=\"graf graf--p graf-after--figure\">6. <strong class=\"markup--strong markup--p-strong\">Create a<\/strong><em class=\"markup--em markup--p-em\"> btc-price-alert.sh<\/em><strong class=\"markup--strong markup--p-strong\"> file in this new project\u00a0: <\/strong>Click on <strong class=\"markup--strong markup--p-strong\"><em class=\"markup--em markup--p-em\">New File<\/em><\/strong>, copy and paste the following snippet into the <em class=\"markup--em markup--p-em\">btc-price-alert.sh<\/em> file then click save (10 seconds)<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/cdn-images-1.medium.com\/max\/1200\/1*-lWyemVocCV6RNb5chdCrw.png\" alt=\"\" \/><figcaption>type \/help to get a list of available commands, we want to create a new bot using the command\u00a0\/newbot<\/figcaption><\/figure>\n<pre id=\"bed4\" class=\"graf graf--pre graf-after--figure\">#!\/bin\/bash\necho 'request Bitcoin price';\nbtc=$(curl <a class=\"markup--anchor markup--pre-anchor\" href=\"https:\/\/min-api.cryptocompare.com\/data\/price?fsym=BTC%5C&amp;tsyms=CAD\" target=\"_blank\" rel=\"nofollow noopener\" data-href=\"https:\/\/min-api.cryptocompare.com\/data\/price?fsym=BTC\\&amp;tsyms=CAD\">https:\/\/min-api.cryptocompare.com\/data\/price?fsym=BTC\\&amp;tsyms=CAD<\/a>)<\/pre>\n<pre id=\"dbd7\" class=\"graf graf--pre graf-after--pre\">echo 'removing all non digit from the response'\nbtc=${btc\/\/[^0-9\\.]\/}<\/pre>\n<pre id=\"6094\" class=\"graf graf--pre graf-after--pre\">echo 'Bitcoin price is CA$ '\"$btc\"<\/pre>\n<pre id=\"5b6d\" class=\"graf graf--pre graf-after--pre\">echo 'removing decimals from the price'\nbtc=${btc%.*}<\/pre>\n<pre id=\"264a\" class=\"graf graf--pre graf-after--pre\">echo 'checking if the price within the defined range'<\/pre>\n<pre id=\"df90\" class=\"graf graf--pre graf-after--pre\">if [ \"$btc\" -ge 10000 -a \"$btc\" -lt 14000 ]; then \n        echo 'price is within range, will post to Telegram'\n        curl -X POST \\\n        <a class=\"markup--anchor markup--pre-anchor\" href=\"https:\/\/api.telegram.org\/\" target=\"_blank\" rel=\"nofollow noopener\" data-href=\"https:\/\/api.telegram.org\/\">https:\/\/api.telegram.org\/<\/a>\"$BOT_ACCESS_TOKEN\"\/sendMessage \\\n         -H 'Content-Type: application\/json' \\\n         -d '{ \n         \"chat_id\": \"'\"$CHAT_ID\"'\", \n         \"text\": \"Bitcoin price is CA$ '\"$btc\"'\"\n         }'\n  \nelse echo 'Price is not within range, no alert posted this time'<\/pre>\n<pre id=\"f066\" class=\"graf graf--pre graf-after--pre\">fi<\/pre>\n<blockquote id=\"a02c\" class=\"graf graf--blockquote graf-after--pre\"><p>This will check if the price of bitcoin above CA$ 10,000 and less than CA$ 14,000\u00a0. feel free to customize it.<\/p><\/blockquote>\n<p id=\"152f\" class=\"graf graf--p graf-after--blockquote\">7. <strong class=\"markup--strong markup--p-strong\">Save your access token and chat id as Secret Variables in Gitlab<\/strong>\u00a0: now you will need the access token that you copied from <strong class=\"markup--strong markup--p-strong\">step 2<\/strong> and <strong class=\"markup--strong markup--p-strong\">3<\/strong> above. (5 seconds)<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/cdn-images-1.medium.com\/max\/1200\/1*-lWyemVocCV6RNb5chdCrw.png\" alt=\"\" \/><figcaption>type \/help to get a list of available commands, we want to create a new bot using the command\u00a0\/newbot<\/figcaption><\/figure>\n<figure><img decoding=\"async\" src=\"https:\/\/cdn-images-1.medium.com\/max\/1200\/1*-lWyemVocCV6RNb5chdCrw.png\" alt=\"\" \/><figcaption>type \/help to get a list of available commands, we want to create a new bot using the command\u00a0\/newbot<\/figcaption><\/figure>\n<p id=\"9a96\" class=\"graf graf--p graf-after--figure\">8. <strong class=\"markup--strong markup--p-strong\">Create another file, call it\u00a0.gitlab-ci.yml file\u00a0: <\/strong>(10 seconds) Click on the home menu icon (top left-) to go back to your project\u2019s home page.<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/cdn-images-1.medium.com\/max\/1200\/1*-lWyemVocCV6RNb5chdCrw.png\" alt=\"\" \/><figcaption>type \/help to get a list of available commands, we want to create a new bot using the command\u00a0\/newbot<\/figcaption><\/figure>\n<figure><img decoding=\"async\" src=\"https:\/\/cdn-images-1.medium.com\/max\/1200\/1*-lWyemVocCV6RNb5chdCrw.png\" alt=\"\" \/><figcaption>type \/help to get a list of available commands, we want to create a new bot using the command\u00a0\/newbot<\/figcaption><\/figure>\n<figure><img decoding=\"async\" src=\"https:\/\/cdn-images-1.medium.com\/max\/1200\/1*-lWyemVocCV6RNb5chdCrw.png\" alt=\"\" \/><figcaption>type \/help to get a list of available commands, we want to create a new bot using the command\u00a0\/newbot<\/figcaption><\/figure>\n<pre id=\"e7a1\" class=\"graf graf--pre graf-after--figure\">test:<\/pre>\n<pre id=\"fc23\" class=\"graf graf--pre graf-after--pre\">script:<\/pre>\n<pre id=\"1b46\" class=\"graf graf--pre graf-after--pre\">- bash btc-price-alert.sh<\/pre>\n<blockquote id=\"3ade\" class=\"graf graf--blockquote graf-after--pre\"><p>this is a simple commands, to run the bash file that we\u2019ve created<\/p><\/blockquote>\n<p id=\"b6ad\" class=\"graf graf--p graf-after--blockquote\">Click on the <strong class=\"markup--strong markup--p-strong\"><em class=\"markup--em markup--p-em\">Commite changes<\/em><\/strong> button, this will trigger it to build and run.<\/p>\n<p id=\"da92\" class=\"graf graf--p graf-after--p\">9. <strong class=\"markup--strong markup--p-strong\">Schedule it to check price everyday\u00a0:<\/strong> click on the CI\/CD icon to expand the menu, select Schedules to set up a name and a timer for your webhook to trigger. (11 seconds)<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/cdn-images-1.medium.com\/max\/1200\/1*-lWyemVocCV6RNb5chdCrw.png\" alt=\"\" \/><figcaption>type \/help to get a list of available commands, we want to create a new bot using the command\u00a0\/newbot<\/figcaption><\/figure>\n<figure><img decoding=\"async\" src=\"https:\/\/cdn-images-1.medium.com\/max\/1200\/1*-lWyemVocCV6RNb5chdCrw.png\" alt=\"\" \/><figcaption>type \/help to get a list of available commands, we want to create a new bot using the command\u00a0\/newbot<\/figcaption><\/figure>\n<figure><img decoding=\"async\" src=\"https:\/\/cdn-images-1.medium.com\/max\/1200\/1*-lWyemVocCV6RNb5chdCrw.png\" alt=\"\" \/><figcaption>type \/help to get a list of available commands, we want to create a new bot using the command\u00a0\/newbot<\/figcaption><\/figure>\n<figure><img decoding=\"async\" src=\"https:\/\/cdn-images-1.medium.com\/max\/1200\/1*-lWyemVocCV6RNb5chdCrw.png\" alt=\"\" \/><figcaption>type \/help to get a list of available commands, we want to create a new bot using the command\u00a0\/newbot<\/figcaption><\/figure>\n<p id=\"24ef\" class=\"graf graf--p graf-after--figure\"><strong class=\"markup--strong markup--p-strong\">Congrats! you\u2019re done<\/strong>. if the price within the range you\u2019ve specified, this webhook will post to trigger your Telegram bot to send you a Telegram message\u00a0.<\/p>\n<p id=\"ba98\" class=\"graf graf--p graf-after--p\">This job will run everyday as long as your free 2000\/month build minutes do not run out.<\/p>\n<p id=\"c359\" class=\"graf graf--p graf-after--p graf--trailing\">I hope you have found this series of tutorials useful.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>99 seconds to make bitcoin send you Telegram\u00a0messages Using Gitlab-CI with Telegram (Illustrated step by\u00a0step) type \/help to get a list of available commands, we want to create a new bot using the command\u00a0\/newbot Level\u00a0: All levels Requirements\u00a0: Any web browser + your phone [Unedited] Here is the final instalment in this series, it\u2019s written [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,13],"tags":[],"class_list":["post-3234","post","type-post","status-publish","format-standard","hentry","category-how-to","category-medium"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":8}},"featured_image_urls_v2":{"full":"","thumbnail":"","medium":"","medium_large":"","large":"","RoboGalleryMansoryImagesCenter":"","RoboGalleryPreload":"","1536x1536":"","2048x2048":""},"post_excerpt_stackable_v2":"<p>99 seconds to make bitcoin send you Telegram\u00a0messages Using Gitlab-CI with Telegram (Illustrated step by\u00a0step) type \/help to get a list of available commands, we want to create a new bot using the command\u00a0\/newbot Level\u00a0: All levels Requirements\u00a0: Any web browser + your phone [Unedited] Here is the final instalment in this series, it\u2019s written in away so that you don\u2019t need to read the previous tutorials to complete this one. Previously we\u2019ve discussed how to create periodic jobs, then how to create a webhook using Gitlab-CI, we\u2019ve also connected our bitcoin price webhook to IFTTT; the well known automation&hellip;<\/p>\n","category_list_v2":"<a href=\"https:\/\/yyc.ninja\/index.php\/category\/how-to\/\" rel=\"category tag\">How To Ninja<\/a>, <a href=\"https:\/\/yyc.ninja\/index.php\/category\/how-to\/medium\/\" rel=\"category tag\">Medium Articles<\/a>","author_info_v2":{"name":"YYC Ninja","url":"https:\/\/yyc.ninja\/index.php\/author\/admin\/"},"comments_num_v2":"0 comments","_links":{"self":[{"href":"https:\/\/yyc.ninja\/index.php\/wp-json\/wp\/v2\/posts\/3234","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yyc.ninja\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yyc.ninja\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yyc.ninja\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yyc.ninja\/index.php\/wp-json\/wp\/v2\/comments?post=3234"}],"version-history":[{"count":2,"href":"https:\/\/yyc.ninja\/index.php\/wp-json\/wp\/v2\/posts\/3234\/revisions"}],"predecessor-version":[{"id":3289,"href":"https:\/\/yyc.ninja\/index.php\/wp-json\/wp\/v2\/posts\/3234\/revisions\/3289"}],"wp:attachment":[{"href":"https:\/\/yyc.ninja\/index.php\/wp-json\/wp\/v2\/media?parent=3234"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yyc.ninja\/index.php\/wp-json\/wp\/v2\/categories?post=3234"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yyc.ninja\/index.php\/wp-json\/wp\/v2\/tags?post=3234"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}