如何接收用户的附件

How to receive attachments from users

如何接收用户的附件?我尝试遍历附件对象以提取附件的内容,但它始终为空:

foreach(var item in message.Attachment) { var content = item.Content; }

我怎样才能从提示他们要附件的用户那里得到附件?

查看 Receive Attachment 样本。在那里您会找到访问用户发送的附件所需的代码。