Hi @ria
I am getting a video file as a telegram attachment. It comes in a form of a message json and the video is within the video object.
Here is an example message input:
[
{
"update_id":
REDACTED,
"message":
{
"message_id":
6,
"from":
{
"id":
REDACTED,
"is_bot":
false,
"first_name":
"REDACTED",
"username":
"REDACTED",
"language_code":
"en",
"is_premium":
true
},
"chat":
{
"id":
-REDACTED,
"title":
"REDACTED",
"type":
"supergroup"
},
"date":
1714354844,
"forward_origin":
{
"type":
"user",
"sender_user":
{
"id":
REDACTED,
"is_bot":
false,
"first_name":
"REDACTED",
"username":
"REDACTED",
"language_code":
"en",
"is_premium":
true
},
"date":
1714354794
},
"forward_from":
{
"id":
REDACTED,
"is_bot":
false,
"first_name":
"REDACTED",
"username":
"REDACTED",
"language_code":
"en",
"is_premium":
true
},
"forward_date":
1714354794,
"video":
{
"duration":
8,
"width":
464,
"height":
848,
"file_name":
"2024-04-28 21.07.10.mp4",
"mime_type":
"video/mp4",
"thumbnail":
{
"file_id":
"AAMCAQADHQJ4nIoyAAMGZi76nSmcd7WlkzoTnkc8IgXPSKYAAhcEAALAIXlFCu4dWA0VjPIBAAdtAAM0BA",
"file_unique_id":
"AQADFwQAAsAheUVy",
"file_size":
11478,
"width":
175,
"height":
320
},
"thumb":
{
"file_id":
"AAMCAQADHQJ4nIoyAAMGZi76nSmcd7WlkzoTnkc8IgXPSKYAAhcEAALAIXlFCu4dWA0VjPIBAAdtAAM0BA",
"file_unique_id":
"AQADFwQAAsAheUVy",
"file_size":
11478,
"width":
175,
"height":
320
},
"file_id":
"BAACAgEAAx0CeJyKMgADBmYu-p0pnHe1pZM6E55HPCIFz0imAAIXBAACwCF5RQruHVgNFYzyNAQ",
"file_unique_id":
"AgADFwQAAsAheUU",
"file_size":
1640891
}
}
}
]
I am not able to upload this video object to the Google Drive without converting it to Binary Data first and there is no node to convert to binary data. I think I may need to code some sort of algorithm that will do this.
Thanks