parent
1f17c572d9
commit
eb61f063c6
28
SendChatAction.md
Normal file
28
SendChatAction.md
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
> SendChatAction($destination, $action)
|
||||||
|
|
||||||
|
* typing
|
||||||
|
* upload_photo
|
||||||
|
* record_audio
|
||||||
|
* upload_document
|
||||||
|
* find_location
|
||||||
|
* record_video_note
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
<?php
|
||||||
|
#
|
||||||
|
# include class
|
||||||
|
#
|
||||||
|
require('Telegram.class.php');
|
||||||
|
|
||||||
|
#
|
||||||
|
# instance
|
||||||
|
#
|
||||||
|
$bot = new TelegramBot('mytoken');
|
||||||
|
|
||||||
|
#
|
||||||
|
# Chat action method
|
||||||
|
#
|
||||||
|
$bot->SendChatAction('DestinationMsgId', 'typing');
|
||||||
|
?>
|
||||||
|
```
|
||||||
Loading…
Reference in New Issue
Block a user