How to send a file into the telegram api in C# and getting a file_id to reference?
the question is how can I upload a file to the telegram server through a C# code?
I found this in telegram api, but I cannot understand the syntax.
How to send a file into the telegram api in C# and getting a file_id to reference?
the question is how can I upload a file to the telegram server through a C# code?
I found this in telegram api, but I cannot understand the syntax.
3
Answers
The referenced link is in TL language. I have implemented a sample to find file_id and send it to a specified user in C# using TLSharp:
you have two options
sendDocument
which is all explained here and this method gives you file_id after uploaded. But there is some limitations about how long the file will last or what kind of files you can send and what size is acceptable.this is list of all telegram open source app (not bot api)
Use “mtproto telegram c#” for google to get repository for c# mtproto library.
The good library that can handle easy your need is TLShorp (wich needs phone number to work obviously)