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