Skip to content

Instantly share code, notes, and snippets.

View sarangrahan's full-sized avatar

Rahan Sarang sarangrahan

  • kerala
View GitHub Profile
@sarangrahan
sarangrahan / bot.rb
Created May 29, 2022 16:37 — forked from dideler/bot.rb
Sending a notification message to Telegram using its HTTP API via cURL
# Use this script to test that your Telegram bot works.
#
# Install the dependency
#
# $ gem install telegram_bot
#
# Run the bot
#
# $ ruby bot.rb
#
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width'>
<title>Privacy Policy</title>
<style> body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; padding:1em; } </style>
</head>
<body>
<strong>Privacy Policy</strong> <p>
{
"The White Stripes": {
"year": 1999,
"US_peak_chart_post": "-"
},
"De Stijl": {
"year": 2000,
"US_peak_chart_post": "-"
},
"White Blood Cells": {