All Projects → php-telegram-bot → Laravel

php-telegram-bot / Laravel

Licence: other
Laravel package for PHP Telegram Bot Library

Projects that are alternatives of or similar to Laravel

Telegram Bot Sdk
🤖 Telegram Bot API PHP SDK. Lets you build Telegram Bots easily! Supports Laravel out of the box.
Stars: ✭ 2,212 (+3780.7%)
Mutual labels:  telegram-bot, laravel, telegram
Laravel Social Auto Posting
🌈Laravel social auto posting
Stars: ✭ 306 (+436.84%)
Mutual labels:  telegram-bot, laravel, telegram
Telegram
✈️ Telegram Notifications Channel for Laravel
Stars: ✭ 450 (+689.47%)
Mutual labels:  telegram-bot, laravel, telegram
Spytrojan keylogger
[Solo para programadores] Troyano espía | Keylogger solo para Windows, se replica en el sistema y se inicia automaticamente al iniciar sesión. | Envío de registro mediante [Base de Datos], [Gmail] o [BotTelegram].
Stars: ✭ 32 (-43.86%)
Mutual labels:  telegram-bot, telegram
Tikvidbot
🎵🤖 TikTok Any Video Downloader Telegram Bot
Stars: ✭ 20 (-64.91%)
Mutual labels:  telegram-bot, telegram
Rssbot
Lightweight Telegram RSS bot for notifications only. 用于消息通知的轻量级 Telegram RSS 机器人
Stars: ✭ 952 (+1570.18%)
Mutual labels:  telegram-bot, telegram
Micha
Client lib for Telegram bot api
Stars: ✭ 18 (-68.42%)
Mutual labels:  telegram-bot, telegram
Telegram Bot Ruby
Ruby wrapper for Telegram's Bot API
Stars: ✭ 1,039 (+1722.81%)
Mutual labels:  telegram-bot, telegram
Moviemagnetbot
🤖 telegram bot for movies
Stars: ✭ 39 (-31.58%)
Mutual labels:  telegram-bot, telegram
Marvin
The paranoid bot (framework)
Stars: ✭ 51 (-10.53%)
Mutual labels:  telegram-bot, telegram
Telegramgroup
Telegram群合集,如果有更多好玩的telegram群,欢迎在 issue 提出或者pull requests
Stars: ✭ 1,073 (+1782.46%)
Mutual labels:  telegram-bot, telegram
Pytelbot
A playful bot in telegram
Stars: ✭ 12 (-78.95%)
Mutual labels:  telegram-bot, telegram
Xye Bot
Бот Хуификатор
Stars: ✭ 26 (-54.39%)
Mutual labels:  telegram-bot, telegram
Telegram Php
Stars: ✭ 31 (-45.61%)
Mutual labels:  telegram-bot, telegram
Torpedo
Pluggable, multi-network asynchronous chat bot written in Go
Stars: ✭ 19 (-66.67%)
Mutual labels:  telegram-bot, telegram
Planetpython telegrambot
Django App Planet Python Telegram Bot
Stars: ✭ 42 (-26.32%)
Mutual labels:  telegram-bot, telegram
Teletor
Telegram Torrents Bot
Stars: ✭ 54 (-5.26%)
Mutual labels:  telegram-bot, telegram
Pockebot
Read It Later for Telegram
Stars: ✭ 56 (-1.75%)
Mutual labels:  telegram-bot, telegram
Bot Telegram
Exemplo de como criar um BOT para o melhor app de mensagens do mundo: Telegram.
Stars: ✭ 53 (-7.02%)
Mutual labels:  telegram-bot, telegram
Java Telegram Bot Api
Telegram Bot API for Java
Stars: ✭ 819 (+1336.84%)
Mutual labels:  telegram-bot, telegram

Telegram Bot Package for Laravel 6.x

Build Status Code Coverage Code Quality Latest Stable Version Total Downloads Downloads Month Minimum PHP Version License

This package helps easily integrate PHP Telegram Bot library in Laravel application.

Table of Contents

Installation

Install this package through Composer.

Edit your project's composer.json file to require php-telegram-bot/laravel

Create composer.json file:

{
    "name": "yourproject/yourproject",
    "type": "project",
    "require": {
        "php-telegram-bot/laravel": "^1.0"
    }
}

And run composer update

Or run a command in your command line:

composer require php-telegram-bot/laravel

Copy the package config and migrations to your project with the publish command:

php artisan vendor:publish --provider="PhpTelegramBot\Laravel\ServiceProvider"

After run migration command

php artisan migrate

In the config you have to specify Telegram API KEY

Usage

You can inject PhpTelegramBot\Laravel\PhpTelegramBotContract in anywhere and use bot instance

For example:

<?php
namespace App\Http\Controllers;

use PhpTelegramBot\Laravel\PhpTelegramBotContract;

class CustomController extends Controller
{
    public function handle(PhpTelegramBotContract $telegramBot)
    {
        // Call handle method
        $telegramBot->handle();
        
        // Or set webhook 
        $hookUrl = 'https://hook.url';
        $telegramBot->setWebhook($hookUrl);
        
        // Or handle telegram getUpdates request
        $telegramBot->handleGetUpdates();
    }
}

More details about usage you can see on the PHP Telegram Bot docs: https://github.com/php-telegram-bot/core#instructions

TODO

write more tests

Troubleshooting

If you like living on the edge, please report any bugs you find on the php-telegram-bot/laravel issues page.

Contributing

Pull requests are welcome. See CONTRIBUTING.md for information.

License

Please see the LICENSE included in this repository for a full copy of the MIT license, which this project is licensed under.

Credits

Full credit list in CREDITS

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].