@bot.message_handler(commands=['users'])
def send_text(message):
if message.chat.id == config.owner:
with open(chat_ids_file, "rb") as ids_file:
ids_file.seek(0)
bot.send_message(message.chat.id, "Список user_id пользователей: \n", str(ids_file))
else:
bot.send_message(message.chat.id, 'Вы не разработчик!')
chat_ids_file = 'chat_ids.txt'