mrmuminov/telegram-bot
Composer 安装命令:
composer require mrmuminov/telegram-bot
包简介
PHP template for telegram bot
README 文档
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)
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2021-12-23