@@ 378-388 (lines=11) @@ | ||
375 | * @param null $reply_to_message_id |
|
376 | * @param null $reply_markup |
|
377 | */ |
|
378 | public function sendPhoto($photo, $chat_id = null, $caption = null, $reply_to_message_id = null, $reply_markup = null) { |
|
379 | $res = $this->exec('sendPhoto', [ |
|
380 | 'chat_id' => $this->getChatId($chat_id), |
|
381 | 'photo' => $photo, |
|
382 | 'caption' => $caption, |
|
383 | 'reply_to_message_id' => $reply_to_message_id, |
|
384 | 'reply_markup' => json_encode($reply_markup) |
|
385 | ]); |
|
386 | ||
387 | return $res; |
|
388 | } |
|
389 | ||
390 | /** |
|
391 | * @param $video video file path |
|
@@ 433-443 (lines=11) @@ | ||
430 | * @param null $reply_to_message_id |
|
431 | * @param null $reply_markup |
|
432 | */ |
|
433 | public function sendLocation($latitude, $longitude, $chat_id = null, $reply_to_message_id = null, $reply_markup = null) { |
|
434 | $res = $this->exec('sendLocation', [ |
|
435 | 'chat_id' => $this->getChatId($chat_id), |
|
436 | 'latitude' => $latitude, |
|
437 | 'longitude' => $longitude, |
|
438 | 'reply_to_message_id' => $reply_to_message_id, |
|
439 | 'reply_markup' => json_encode($reply_markup) |
|
440 | ]); |
|
441 | ||
442 | return $res; |
|
443 | } |
|
444 | ||
445 | /** |
|
446 | * @param $document |