Skip to content

Instantly share code, notes, and snippets.

@iNawaR1
Created December 17, 2021 16:39
Show Gist options
  • Save iNawaR1/76130b68332681d040cae2825952ba6f to your computer and use it in GitHub Desktop.
Save iNawaR1/76130b68332681d040cae2825952ba6f to your computer and use it in GitHub Desktop.
A simple Telegram API script
import time
import requests
import itertools
ID_tele=input("[?] Target Telegram ID : ")
token_bot=input("[?] your Bot Token : ")
num = 100000000
for _ in itertools.repeat(None, num):
tele = (
f'https://api.telegram.org/bot{token_bot}/sendMessage?chat_id={ID_tele}&text= \n Here You can put the Message ...!! ')
re = requests.post(tele)
time.sleep(0.1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment