Skip to content

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

Notifications You must be signed in to change notification settings

Dodo33/telegram-chatid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages