12345678910111213141516 |
- from config import BOT_TOKEN, CHANNEL_ID, AGENT_ID, CUSTOM_DESCRIPTION
- import telebot
- bot = telebot.TeleBot(BOT_TOKEN)
- @bot.message_handler(content_types=['audio'])
- def get_audio(message):
- # if message.from_user.id == AGENT_ID:
- if True:
- audio_id = message.audio.file_id
- bot.send_audio(CHANNEL_ID, audio_id, CUSTOM_DESCRIPTION)
- bot.polling(none_stop=True, interval=0)
|