setBotCode($sBotCode) ->setChatCode($sChatCode) ->setBotToken($sBotToken) ->setChatId($iChatId) ->setPhotoUrl($sPhotoUrl, $iPhotoWidth, $iPhotoHeight) ->setType($sType) ->send($sMsg); echo json_encode($r->getResult()); exit; } }