Giter Club home page Giter Club logo

Comments (1)

iyear avatar iyear commented on May 25, 2024 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.