def send_video_file(user_id, path, caption='', poster=None):
send_video_url = f'{API_DOMAIN_L}/bot{API_TOKEN}/sendVideo'
file_params = {
'chat_id': user_id,
'thumbnail': open(poster, 'rb'),
'caption': caption,
'supports_streaming': True
}
video_file = {
'video': open(path, 'rb'),
}
return requests.post(send_video_url, data=file_params, files=video_file)