Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Longman\TelegramBot\Commands\UserCommands;
- use Longman\TelegramBot\Commands\UserCommand;
- use Longman\TelegramBot\Entities\Contact;
- use Longman\TelegramBot\Entities\Keyboard;
- use Longman\TelegramBot\Request;
- class BalanceCommand extends UserCommand {
- protected $name = 'balance';
- protected $description = 'Баланс лицевого счета по номеру телефона';
- protected $usage = '/balance';
- protected $version = '1.0.0';
- public function execute()
- {
- $chat_id = $this->getMessage()->getChat()->getId();
- $contact = $this->getMessage()->getContact();
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement