Skip to content

Instantly share code, notes, and snippets.

@dideler
dideler / bot.rb
Last active Jun 27, 2022
Sending a notification message to Telegram using its HTTP API via cURL
View bot.rb
# Use this script to test that your Telegram bot works.
#
# Install the dependency
#
# $ gem install telegram_bot
#
# Run the bot
#
# $ ruby bot.rb
#
@thilinapiy
thilinapiy / my_send_mail.py
Created Jun 15, 2012
My Python e-mail script
View my_send_mail.py
#!/usr/bin/python
import smtplib
import getpass
import base64
import os
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.MIMEBase import MIMEBase