Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $response = $bot->getProfile($event['source']['userId']);
- if ($response->isSucceeded()) {
- $profile = $response->getJSONDecodedBody();
- }
- if($userMessage == "halo"){
- $textMessageBuilder = new \LINE\LINEBot\MessageBuilder\TextMessageBuilder("halo" . $profile['displayName'] . ", salam kenal");
- $result = $bot->replyMessage($event['replyToken'], $textMessageBuilder);
- return $result->getHTTPStatus() . ' ' . $result->getRawBody();
- }
Advertisement
Add Comment
Please, Sign In to add comment