zored / telegram-bundle
PHP Telegram API Symfony Bundle
0.0.4
2018-03-27 14:46 UTC
Requires
- php: >=7.1
- ocramius/proxy-manager: ^2.1
- symfony/console: ^4.0
- symfony/dependency-injection: ^4.0
- symfony/dotenv: ^4.0
- symfony/framework-bundle: ^4.0
- symfony/http-kernel: ^4.0
- zored/telegram: ^0.2.4.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.10
- php-coveralls/php-coveralls: ^2.0
- phpunit/phpunit: ^7.0
- vlucas/phpdotenv: ^2.4
This package is not auto-updated.
Last update: 2024-11-04 07:53:58 UTC
README
Symfony 4 bundle for Telegram API.
Install
composer require zored/telegram-bundle
CLI usage
- Install bundle globally.
composer global require zored/telegram-bundle
- Ensure that your
PATH
looks at composer bin root (seecomposer global --help
for details). - Set-up environment variables:
export TELEGRAM_PHONE='' TELEGRAM_API_ID='' TELEGRAM_API_HASH=''
- Run:
- Message to your contact:
telegram tg:client:message 'Ivan' '**Hello there!**'
- Start bot and react to
/ping example
commands:telegram tg:bot:listen
- Message to your contact: