mrmuminov / telegram-bot
PHP template for telegram bot
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
pkg:composer/mrmuminov/telegram-bot
Requires
- ext-curl: *
- ext-json: *
- ext-pdo: *
- gabordemooij/redbean: dev-master
- mrmuminov/php-i18n: ^1.0
- telegram-bot/api: ^2.3
This package is auto-updated.
Last update: 2025-10-18 01:19:12 UTC
README
Get start
- Create a new repo using this template or clone this repo
- Install required packages via composer.
composer install - Copy the
config/example.params.phpfile and save it asconfig/params.php config/params.phpis a configuration file- Configure the database data from
db->sqlite - Configure the default language from
defaultLanguage - Configure the default languages list from
languages. To use multiple languages, I used themrmuminov/php-i18npackage - Type the telgram bot token in the
telegram->tokenfield. You need to get the token via @BotFather
- Configure the database data from
- To use the bot, configure webhook via
setWebhookmthod.DocssetWebhook doc - Log in to Telegram and send the
/startcommand. Finish
Requirements
- PHP version 7.0 or higher
- https://github.com/TelegramBot/Api for telegram bot methods. (
telegram-bot/api) - https://github.com/gabordemooij/redbean for woking database (
gabordemooij/redbean) - https://github.com/mrmuminov/php-i18n for internationalization (
mrmuminov/php-i18n)