ТА
Size: a a a
А
AG
@bot.message_handler(content_types=["document"])
def start_doc(message):
AG
AG
ㅤ
@bot.message_handler(content_types=["audio"])
def handle_docs_document(message):
audio_id = message.audio.file_id
file_info = bot.get_file(audio_id)
urllib.request.urlretrieve(f'https://api.telegram.org/file/bot{config.token}/{file_info.file_path}', file_info.file_path)
БГ
БГ
KV
KV
AG
@bot.message_handler(content_types=["audio"])
def handle_docs_document(message):
audio_id = message.audio.file_id
file_info = bot.get_file(audio_id)
urllib.request.urlretrieve(f'https://api.telegram.org/file/bot{config.token}/{file_info.file_path}', file_info.file_path)
ㅤ
ㅤ
J
J
А
AT
БГ
А
А