MozIta MyUserId Bot icon

MozIta MyUserId Bot (@mozita_myuserid_bot) was a small utility for the Mozilla Italia community. It replied to /myuserid (or /start) with the sender's numeric Telegram user ID, in private chat or in a group where it was an admin. It also recorded the user IDs, usernames and group chat IDs it saw in JSON files and notified the developer about each new one. It was written in Python 3 with the telepot library.

Type Telegram bot
Platforms Telegram
License Open source
Latest version v1.0.7
Active 2018 – 2019 · 1 year

Changelog

v1.0.7 30 March 2019

The developer's notification about each new user ID now includes a clickable mention of the user.

v1.0.6 1 March 2019

The bot now saves each user's username along with the user ID, and no longer stores private chats as chat IDs.

v1.0.5 27 January 2019

Fixed the UTF-8 encoding of console output.

v1.0.4 27 January 2019

Fixed startup problems: f-strings were replaced with string concatenation and the earlier encoding change was reverted.

v1.0.3 27 January 2019

UTF-8 fix for console messages. The script was renamed to myuserid_mozita.py and now prints its version at startup.

v1.0.2 19 January 2019

The developer gets a notification for every new user ID and chat ID.

v1.0.1 18 January 2019

The bot token moved to a config.ini file, and the chat IDs where the command is used are now saved too.

v1 25 November 2018

First stable version: the bot replies to /myuserid (or /start) with the sender's Telegram user ID and saves it to userid_list.json.