Good time of day!
Here is the code and for some reason does not want to give out or added the user ID.
users_id = [] @bot.message_handler(commands=['start']) def begin(message): for id in users_id: if id != message.from_user.id : users_id.append(message.from_user.id) print(users_id)