Telegram API:获取文件ID

时间:2017-06-28 12:30:24

标签: telegram

我在电报API中获取的文件ID是这样的(消息是包含媒体文件的媒体消息,查找id和access_hash):

msg:  (message (ID: 0xc09be45f) = (out=True, mentioned=None, media_unread=None, silent=None, post=True, id=13, from_id=None, to_id=(peerChannel (ID: 0xbddde532) = (channel_id=123456)), fwd_from=(messageFwdHeader (ID: 0xc786ddcb) = (from_id=None, date=2017-06-19 12:36:06, channel_id=123456, channel_post=1234)), via_bot_id=None, reply_to_msg_id=None, date=2017-06-26 01:51:33, message=, media=(messageMediaDocument (ID: 0xf3e02ea8) = (document=(document (ID: 0x87232bc7) = (id=580320036828xxxxxx, access_hash=2107500923xxxxxx, date=2017-02-01 03:16:25, mime_type=video/mp4, size=988xxx, thumb=(photoSize (ID: 0x77bfb61b) = (type=s, location=(fileLocation (ID: 0x53d69076) = (dc_id=4, volume_id=42992xxxx, local_id=69xx, secret=89375067683695xxxxx)), w=90, h=90, size=2409)), dc_id=4, version=0, attributes=['(documentAttributeVideo (ID: 0xef02ce6) = (round_message=None, duration=10, w=480, h=480))'

然而,似乎是正确格式的file_id应该看起来像这样:

AgADBAADL6gxG06L8w0nhNO87UW3iZTKmxkABJtAM4jAZAfxxxxxx

所以我想知道我是否需要转换id和access_hash以获取file_id以及公式是什么,或者为什么我没有看到完整十六进制格式的file_id?

0 个答案:

没有答案