2016-06-30 3 views

答えて

1

image and file attachments

replyMessage.Attachments.Add(new Attachment() 
{ 
    ContentUrl = "https://upload.wikimedia.org/wikipedia/en/a/a6/Bender_Rodriguez.png", 
    ContentType = "image/png" 
}); 

やJSONなどのdocsセクションを見てください持っている:

{ 
    "attachments": [ 
     { 
      "contentType": "image/png", 
      "contentUrl": "https://upload.wikimedia.org/wikipedia/en/a/a6/Bender_Rodriguez.png" 
     } 
    ] 
} 

ます。また、豊富なカードを送ることができます。

replyMessage.Attachments = new List<Attachment>(); 

replyMessage.Attachments.Add(new Attachment() 
{ 
    Title = "Bender", 
    TitleLink = "https://en.wikipedia.org/wiki/Bender_(Futurama)", 
    ThumbnailUrl = "http://www.theoldrobots.com/images62/Bender-18.JPG", 
    Text = "Bender Bending Rodríguez, commonly known as Bender, is a main character in the animated television series Futurama.", 
    FallbackText = "Bender: http://www.theoldrobots.com/images62/Bender-18.JPG" 
}); 
関連する問題