Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require './vendor/autoload.php';
- echo "online";
- $bot=new PhpBotFramework\Bot("351198470:AAHYTb9ZNTKNVuyKwNAaBON5fkOH8uFdi8s");
- $home=new PhpBotFramework\Commands\MessageCommand("start", function($bot,$message){
- $bot->keyboard->addLevelButtons(
- [
- 'text'=> "Guarda le emergenze",
- 'callback_data'=>'emergenze'
- ]
- );
- $bot->sendMessage("Hey", $bot->keyboard->get());
- });
- $bot->addCommand($home);
- $prova=new PhpBotFramework\Commands\CallbackCommand
- $bot->getUpdatesLocal();
- echo "online";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement