Advertisement
kirush80

balanceCommand.php

Aug 6th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.63 KB | None | 0 0
  1. <?php
  2.  
  3. namespace Longman\TelegramBot\Commands\UserCommands;
  4.  
  5. use Longman\TelegramBot\Commands\UserCommand;
  6. use Longman\TelegramBot\Entities\Contact;
  7. use Longman\TelegramBot\Entities\Keyboard;
  8. use Longman\TelegramBot\Request;
  9.  
  10.  class BalanceCommand extends UserCommand {
  11.     protected $name = 'balance';
  12.     protected $description = 'Баланс лицевого счета по номеру телефона';
  13.     protected $usage = '/balance';
  14.     protected $version = '1.0.0';
  15.  
  16.     public function execute()
  17.     {
  18. $chat_id = $this->getMessage()->getChat()->getId();
  19. $contact = $this->getMessage()->getContact();
  20.  
  21. }
  22. }
  23. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement