В
Size: a a a
В
В
B
B
B
В
В
B
B
Б
bot.send_message(message.chat.id, "test", reply_markup={"inline_keyboard": [[{"text": "text", "url": "https://google.com"}]]})
l
S
Б
Б
О
sendAudio
, на компе сохраняются без расширения? Как решить эту проблему?О
S
sendAudio
, на компе сохраняются без расширения? Как решить эту проблему?S
l
О
the_file = requests.post("https://api.telegram.org/bot{TOKEN}/sendAudio?chat_id={TEMP_CHAT_ID}".format(TOKEN=TOKEN, TEMP_CHAT_ID = TEMP_CHAT_ID), files=single_file)
file_id = json.loads(the_file.text)['result']['audio']['file_id']
message_id = json.loads(the_file.text)['result']['message_id']
file_path = bot.get_file(file_id).file_path
file_itself = requests.get('https://api.telegram.org/file/bot{TOKEN}/{file_path}'.format(TOKEN=TOKEN, file_path=file_path))
bot.send_audio(CHAT_ID, audio=file_itself.content, caption=final(description_file.read()), performer=artist(file_name), duration=str(MP3(audio_file).info.length), title=title(file_name))