I am getting messages from a telegram channel via messages.getHistory. The result is messages.channelMessages which contains a list(Vector) of message. Each message can have a messageMedia attached to it which mainly are messageMediaDocument. The document also has a unique document id that is referring to a file such as a video or audio. I am wondering if there is any way to get the file id or file URL of that document on the telegram server. If that is not possible, how can I access that document (which can be video, audio and etc.) somehow?
Asked
Active
Viewed 66 times
0
-
1Whats your question? Getting the file is the same for channels. – 0stone0 Jun 21 '23 at 15:33
-
The question is how to get the file via the document. Does it clarify? – Soheil Jun 21 '23 at 18:10