Skip to content

kalexhaym/laravel-telegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

composer require kalexhaym/laravel-telegram-bot

Publish config

php artisan vendor:publish --tag=telegram-config

Make Commands and Callbacks

php artisan make:telegram-command Test
php artisan make:telegram-callback Test

Make Text Handler

php artisan make:telegram-text-handler Text

Setup

After creating a Command or Callback, it must be registered in config/telegram.php

commands-registration.png

Add Telegram Bot token in .env

TELEGRAM_TOKEN=

Getting updates

There are two mutually exclusive ways of receiving updates for your bot - the getUpdates method

php artisan telegram:poll-updates

and webhooks

php artisan telegram:set-hook

About

Telegram Bot package for Laravel

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages