isdaviddong
12/26/2016 - 3:20 AM

testLineSDK.aspx.cs

string Token = "你自己的LineBot Channel Access Token";
string toUserId = "傳送對象的UserId";

//建立LineBot物件實體
isRock.LineBot.Bot LineBot = new isRock.LineBot.Bot(Token);
//發送圖片訊息
LineBot.PushMessage(toUserId,
    new Uri("https://圖片位置/22-124303-d8b2c4de-9a8c-48da-83f1-7c0d36de3ab6.png"));