parent
907c89a365
commit
f8a64f4ae2
20
SendImage.md
Normal file
20
SendImage.md
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
> SendImage($destination, $url)
|
||||||
|
|
||||||
|
```
|
||||||
|
<?php
|
||||||
|
#
|
||||||
|
# include class
|
||||||
|
#
|
||||||
|
require('Telegram.class.php');
|
||||||
|
|
||||||
|
#
|
||||||
|
# instance
|
||||||
|
#
|
||||||
|
$bot = new TelegramBot('mytoken');
|
||||||
|
|
||||||
|
#
|
||||||
|
# send an image: url or local path
|
||||||
|
#
|
||||||
|
$bot->SendImage('362870431', 'https://www.daxtech.net/media/site/www.daxtech.net/Daxtech/daxtech-logo-crop.png');
|
||||||
|
?>
|
||||||
|
```
|
||||||
Loading…
Reference in New Issue
Block a user