Comments (1)
Use tdl chat export --raw
to export raw Telegram MTProto messages. And there is a video duration field. Unit: seconds
Like:
{
"id": -1,
"type": "message",
"file": "X",
"raw": {
"Flags": -1,
"Out": false,
"Mentioned": false,
"MediaUnread": false,
"Silent": false,
"Post": false,
"FromScheduled": false,
"Legacy": false,
"EditHide": false,
"Pinned": false,
"Noforwards": false,
"InvertMedia": false,
"ID": -1,
"FromID": null,
"FromBoostsApplied": 0,
"PeerID": {
"UserID": -1
},
"SavedPeerID": {
"ChannelID": -1
},
"FwdFrom": {
"Flags": 21,
"Imported": false,
"SavedOut": false,
"FromID": {
"ChannelID": -1
},
"FromName": "",
"Date": -1,
"ChannelPost": -1,
"PostAuthor": "",
"SavedFromPeer": {
"ChannelID": -1
},
"SavedFromMsgID": -1,
"SavedFromID": null,
"SavedFromName": "",
"SavedDate": 0,
"PsaType": ""
},
"ViaBotID": 0,
"ReplyTo": null,
"Date": 1713804899,
"Message": "",
"Media": {
"Flags": 65,
"Nopremium": false,
"Spoiler": false,
"Video": true,
"Round": false,
"Voice": false,
"Document": {
"Flags": 1,
"ID": -1,
"AccessHash": -1,
"FileReference": "X",
"Date": -1,
"MimeType": "video/mp4",
"Size": 218444362,
"Thumbs": [
{
"Type": "i",
"Bytes": "X"
},
{
"Type": "m",
"W": 320,
"H": 180,
"Size": 8661
}
],
"VideoThumbs": null,
"DCID": 5,
"Attributes": [
{
"Flags": 2,
"RoundMessage": false,
"SupportsStreaming": true,
"Nosound": false,
"Duration": 839.266,
"W": 1920,
"H": 1080,
"PreloadPrefixSize": 0
},
{
"FileName": "X"
}
]
},
"AltDocument": null,
"TTLSeconds": 0
},
"ReplyMarkup": null,
"Entities": null,
"Views": -1,
"Forwards": -1,
"Replies": {
"Flags": 0,
"Comments": false,
"Replies": 0,
"RepliesPts": 0,
"RecentRepliers": null,
"ChannelID": 0,
"MaxID": 0,
"ReadMaxID": 0
},
"EditDate": 0,
"PostAuthor": "",
"GroupedID": -1,
"Reactions": {
"Flags": 0,
"Min": false,
"CanSeeList": false,
"ReactionsAsTags": false,
"Results": null,
"RecentReactions": null
},
"RestrictionReason": null,
"TTLPeriod": 0,
"QuickReplyShortcutID": 0
}
}
from tdl.
Related Issues (20)
- 22
- [Bug] Error with protected and closed groups/channels HOT 2
- [Feat] save login for easy login
- [Bug] tmp file not getting saved while using -f exported_file.json
- [Feat] Supports Telegram bot conversations HOT 3
- [Bug] Download Speed stuck HOT 3
- [Bug] if the video i upload larger than 2gb ,will it be split? HOT 4
- Ability to add text while using upload function HOT 1
- [Bug] Try To download media And getting error HOT 1
- [Bug] Small problem with customizing Telegram installation path HOT 1
- [Bug] can not download HOT 5
- [Bug] can not setting proxy HOT 6
- [Bug] download and chat ls bug HOT 3
- Is there, will there be a savename or output name option?[Feat] HOT 1
- [Bug] Download not Getting Started HOT 1
- [Bug] not authorized. please login first
- How to get the new message link or ID after forwarding?
- [Bug] MP4 Video, no thumbnail HOT 3
- [Feat]Join tg channel
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tdl.