Telegram bot to get ID of some chats (including your own ID)
Give it a try: @my_id_bot.
This is a simple bot written with aiogram 3.x framework to show some IDs, like:
cd
to cloned directory and initialize Python virtual environment (venv);requirements.txt
file;env_example
to .env
(with the leading dot), open .env
and edit the variables;python -m bot
my-id-bot.example.service
to my-id-bot.service
(or whatever your prefer), open it and edit WorkingDirectory
and ExecStart
directives;/etc/systemd/system/
directory;sudo systemctl enable my-id-bot --now
;systemctcl status my-id-bot
(can be used without root privileges).docker-compose.example.yml
file and rename it as docker-compose.yml
;env_example
file, rename it as .env
(with the leading dot), open it and edit the variables;docker compose up -d
;docker compose ps