zored/telegram-bundle

PHP Telegram API Symfony Bundle

0.0.4 2018-03-27 14:46 UTC

This package is not auto-updated.

Last update: 2020-09-13 12:11:25 UTC


README

Latest Stable Version Build Status Coverage Status Code Quality Status AppVeyor Status

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 (see composer 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