Skip to content

Instantly share code, notes, and snippets.

View tgme.py
#!/usr/bin/env python3
import urllib.request as ur
import urllib.parse as up
from sys import argv
WEBHOOK_URL = "https://api.telegram.org"
BOT_API = "HERE_YORS_BOT_TOKEN_FROM_BOTFATHER"
DATA = up.urlencode({
'text': ' '.join(argv[1:]),