parent
eb61f063c6
commit
af1e149490
22
SendContact.md
Normal file
22
SendContact.md
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
> SendContact($destination, $number, $firstName, $lastName=null)
|
||||||
|
|
||||||
|
```
|
||||||
|
<?php
|
||||||
|
#
|
||||||
|
# include class
|
||||||
|
#
|
||||||
|
require('Telegram.class.php');
|
||||||
|
|
||||||
|
#
|
||||||
|
# instance
|
||||||
|
#
|
||||||
|
$bot = new TelegramBot('mytoken');
|
||||||
|
|
||||||
|
#
|
||||||
|
# Chat action method
|
||||||
|
#
|
||||||
|
$bot->SendContact('DestinationMsgId', '3480355977', 'Contact name');
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
```
|
||||||
Loading…
Reference in New Issue
Block a user