Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Telegram API Infiltrator to take down phishing sites

Edit API token and/or chat ID if you have one in source code found. Then just run the script

Code
import requests
import json

api_token = "123:123123"
chat_id = "-123123"

def get_bot_info(api_token):
    url = f"https://api.telegram.org/bot{api_token}/getMe"
    response = requests.get(url)
    return json.loads(response.content)

def get_chat_info(api_token, chat_id):
    url = f"https://api.telegram.org/bot{api_token}/getChat"
    params = {'chat_id': chat_id}
    response = requests.get(url, params=params)
    return json.loads(response.content)

def get_chat_admins(api_token, chat_id):
    url = f"https://api.telegram.org/bot{api_token}/getChatAdministrators"
    params = {'chat_id': chat_id}
    response = requests.get(url, params=params)
    return json.loads(response.content)

# Get Bot Information
bot_info = get_bot_info(api_token)
print("Bot Information:", json.dumps(bot_info, indent=4))

# Get Chat Information
chat_info = get_chat_info(api_token, chat_id)
print("Chat Information:", json.dumps(chat_info, indent=4))

# Get Chat Administrators
chat_admins = get_chat_admins(api_token, chat_id)
print("Chat Administrators:", json.dumps(chat_admins, indent=4))
[Image: brotherhood.gif]


Possibly Related Threads...
Thread / Author Replies Views Last Post
by x0d3Jan 29, 2025 11:08 AM 2 371 Jan 29, 2025 11:08 AM
Last Post: berryfill12