{"id":4966,"date":"2023-04-06T23:54:00","date_gmt":"2023-04-07T04:54:00","guid":{"rendered":"https:\/\/www.incredigeek.com\/home\/?p=4966"},"modified":"2023-04-06T23:51:32","modified_gmt":"2023-04-07T04:51:32","slug":"how-to-post-a-message-to-a-telegram-channel","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/how-to-post-a-message-to-a-telegram-channel\/","title":{"rendered":"How to POST a message to a Telegram Channel"},"content":{"rendered":"\n<p>It&#8217;s fairly easy to send a message to a Telegram Channel using curl.  Copy and paste the following command in, replacing the API_TOKEN, chat_id, and test_message, with the appropriate items.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">curl -s -o \/dev\/null -X POST -H \"Content-Type: application\/json\" -d \"{\\\"chat_id\\\": \\\"-100XXXXXXXXXX\\\", \\\"text\\\": \\\"test_message\\\", \\\"disable_notification\\\": true}\" https:\/\/api.telegram.org\/bot{API_TOKEN}\/sendMessage<\/pre>\n\n\n\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/68213124\/telegram-example-of-how-to-use-curl-for-windows-10-to-message-myself-with-a-bot\">https:\/\/stackoverflow.com\/questions\/68213124\/telegram-example-of-how-to-use-curl-for-windows-10-to-message-myself-with-a-bot<\/a><\/p>\n\n\n\n<p>Need to send a message to Teams?  Check out the following post.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.incredigeek.com\/home\/bash-script-to-send-messages-to-microsoft-teams\/\" data-type=\"post\" data-id=\"2342\">Bash script to send messages to Microsoft Teams<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s fairly easy to send a message to a Telegram Channel using curl. Copy and paste the following command in, replacing the API_TOKEN, chat_id, and test_message, with the appropriate items. curl -s -o \/dev\/null -X POST -H &#8220;Content-Type: application\/json&#8221; -d &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/how-to-post-a-message-to-a-telegram-channel\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[225,1420,752,1449],"class_list":["post-4966","post","type-post","status-publish","format-standard","hentry","category-linux","tag-curl","tag-post","tag-random","tag-webhook"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/4966","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=4966"}],"version-history":[{"count":2,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/4966\/revisions"}],"predecessor-version":[{"id":4969,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/4966\/revisions\/4969"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=4966"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=4966"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=4966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}