Answer the question
In order to leave comments, you need to log in
How to find out information about a telegram bot through a Python token?
Yo, I would like to find out how you can find out information about the bot only by the token through python, the desired modules are telebot//aiogram
Answer the question
In order to leave comments, you need to log in
import requests
TOKEN = ""
get_bot = requests.get(f'https://api.telegram.org/bot{TOKEN}/getMe')
print(get_bot.json())
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question