コード例 #1
0
ファイル: lib.php プロジェクト: Ronmi/phptelegoram
function send_message($uid, $msg, SendOptions $options = null)
{
    if ($options == null) {
        $options = new SendOptions();
    }
    raw_send_message($uid, $msg, $options->json());
}
コード例 #2
0
ファイル: example.php プロジェクト: Ronmi/phptelegoram
function processTask(array $data = null)
{
    send_message($data['uid'], $data['message'], SendOptions::fromJson($data['opt']));
}