micro-spaceless / telegram-bot
Telegram Bot Package for Laravel 7.x
dev-main
2022-07-07 13:39 UTC
Requires
- php: ^7.4
- illuminate/support: ^8.83
This package is auto-updated.
Last update: 2024-05-07 17:16:47 UTC
README
Table of Contents
Installation
Install this package through Composer.
Edit your project's composer.json
file to require micro-spaceless/telegram-bot
Create composer.json file:
{ "name": "yourproject/yourproject", "type": "project", "require": { "micro-spaceless/telegram-bot": "^1.0" } }
And run composer update
Or run a command in your command line:
composer require micro-spaceless/telegram-bot
Copy the package config and migrations to your project with the publish command:
php artisan vendor:publish --provider="MicroSpaceless\TelegramBot\Providers\BaseServiceProvider"
In Laravel find the providers
key in your config/app.php
and register the Base Service Provider.
'providers' => [ // ... 'MicroSpaceless\TelegramBot\Providers\BaseServiceProvider', ]
Find the aliases
key in your config/app.php
and add the Telegram facade alias.
'aliases' => [ // ... 'Telegram' => 'MicroSpaceless\TelegramBot\Telegram', ]
Usage
$telegram = new Telegram(); $telegram->sendMessage('Hi!');
Security
If you discover any security related issues, please email ed.arm.2000@gmail.com instead of using the issue tracker.