2016-06-30 7 views

Antwort

1

einen Blick auf den Abschnitt docs Nehmen auf image and file attachments

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

Oder als JSON:

:

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

Sie können auch Rich-Cards senden

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" 
});