import telebot
from telebot import custom_filters
bot = telebot.TeleBot('token')
@bot.message_handler(chat_id=[''], content_types=['text'])
def admin_rep(message):
bot.send_message('', message.text)
@bot.message_handler(content_types=['text'])
def not_admin(message):
bot.send_message(message.chat.id, "You are not allowed to use this command")
bot.add_custom_filter(custom_filters.ChatFilter())
bot.infinity_polling()