parent
b8278ac455
commit
ad3e10190d
30
ReplyKeyboardMarkup.md
Normal file
30
ReplyKeyboardMarkup.md
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
> ReplyKeyboardMarkup($destination, $textMessage, $keyboard, $resize = false, $oneTime = false, $selective = false)
|
||||
|
||||
```
|
||||
<?php
|
||||
#
|
||||
# include class
|
||||
#
|
||||
require('Telegram.class.php');
|
||||
|
||||
#
|
||||
# instance
|
||||
#
|
||||
$bot = new TelegramBot('mytoken');
|
||||
|
||||
#
|
||||
# keyboard
|
||||
#
|
||||
$keyboard = [
|
||||
|
||||
TelegramBot::KeyboardButton('test 1'), TelegramBot::KeyboardButton('test 2')
|
||||
|
||||
];
|
||||
|
||||
#
|
||||
# Chat action method with keyboard
|
||||
#
|
||||
$bot->ReplyKeyboardMarkup('DestinationMsgId', 'this is a keyboard', $keyboard);
|
||||
|
||||
|
||||
?>
|
||||
Loading…
Reference in New Issue
Block a user