parent
30c9f29efe
commit
85e6b622d2
20
SendMessage.md
Normal file
20
SendMessage.md
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
> SendMessage($destination, $textMessage)
|
||||||
|
|
||||||
|
```
|
||||||
|
<?php
|
||||||
|
#
|
||||||
|
# include class
|
||||||
|
#
|
||||||
|
require('Telegram.class.php');
|
||||||
|
|
||||||
|
#
|
||||||
|
# instance
|
||||||
|
#
|
||||||
|
$bot = new TelegramBot('mytoken');
|
||||||
|
|
||||||
|
#
|
||||||
|
# SendMessage method
|
||||||
|
#
|
||||||
|
$bot->SendMessage('DestinationMsgId', 'Hello mom');
|
||||||
|
?>
|
||||||
|
```****
|
||||||
Loading…
Reference in New Issue
Block a user