-
I have code that upload my file to Telegram to Saved Messages using OpenFileDialog openFileDialog = new();
openFileDialog.Multiselect = false;
openFileDialog.Title = "Choose a file";
if (openFileDialog.ShowDialog() == DialogResult.OK)
{
await client.ExecuteAsync(new TdApi.SendMessage()
{
ChatId = <chat_id>,
InputMessageContent = new TdApi.InputMessageContent.InputMessageDocument()
{
Caption = new TdApi.FormattedText()
{
Text = openFileDialog.SafeFileName
},
Document = new TdApi.InputFile.InputFileLocal()
{
Path = openFileDialog.FileName
}
}
});
} How do I get the remote file id to download it ? |
Beta Was this translation helpful? Give feedback.
Answered by
ForNeVeR
Nov 14, 2022
Replies: 1 comment
-
This is a question to be asked from the Telegram core developers: https://github.com/tdlib/td/issues |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
arpefly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a question to be asked from the Telegram core developers: https://github.com/tdlib/td/issues