Beispiel #1
0
        private async Task <string> GetFileContent(FileChatMessageContent msgContent)
        {
            var url = await FetchToLocal(msgContent.FileName, msgContent.FileId);

            return($"[下载文件 {msgContent.FileName}]({url})");
        }
Beispiel #2
0
        private async Task <string> GetImageContent(FileChatMessageContent fileChatMessageContent)
        {
            var url = await FetchToLocal(fileChatMessageContent.FileName, fileChatMessageContent.FileId);

            return($"![{fileChatMessageContent.FileName}]({url}#middle)");
        }