import telebot
import ayeconfig
bot = telebot.TeleBot(ayeconfig.TOKEN)
@bot.message_handler(content_types=['text'])
def get_text(message):
bot.send_message(айди чата, "{}: {}".format("@{}".format(message.from_user.username), message.text))
while True:
try:
bot.polling(none_stop=True)
except Exception:
pass
Если он не реагирует на сообщение в чате, то вали в BotFather, там настроить надо