Answer the question
In order to leave comments, you need to log in
How to get a link to a file uploaded by a user to a bot?
Hello! There is a bot that goes into machine state and receives a video file from the user.
await FSMLoadvid.videoinfo.set()
await message.reply('Отправьте свой видео файл', reply_markup=cancel_kb)
async def load_video(message: types.Message, state=FSMContext):
async with state.proxy() as data:
data['video'] = message.video.file_id
data['videoPath'] = message.video.file_path
print(data['videoPath'])
data['usId'] = message.from_user.id
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question