Dodo33 / telegram-chatid

Report the chat id of a conversation with a telegram bot.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Telegram ChatId

Running this script you will get the chat_id of the telegram conversation with your bot.
Python3 required.

python3 chatid.py <BotId>

Or, if your python path is /usr/bin/env python3, just:

./chatid.py <BotId>

The <BotId> is the token that BotFather give you when the bot is created.

Output example:

./chatid.py XX:YYY-YYY

botId: XX:YYY-YYY
HTTP response code: 200
ChatId: 372472551

About

Report the chat id of a conversation with a telegram bot.


Languages

Language:Python 100.0%