zomboy7/telegram-bot-bundle

Telegram bot bundle

Installs: 1 550

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 18

Type:symfony-bundle

3.0.4 2019-10-04 08:55 UTC

This package is auto-updated.

Last update: 2022-06-04 16:05:32 UTC


README

Composer

$ composer require zomboy7/telegram-bot-bundle

Install

  1. Create boshurik_telegram_bot.yaml in config/packages/ and insert
boshurik_telegram_bot:
    api:
        token: "telegrab_bot_token"
        proxy: "socks5://127.0.0.1:8888"
    name: "username_bot"
  1. Install package
$ composer require zomboy7/telegram-bot-bundle
  1. Create new route in routes.yaml
BoShurikTelegramBotBundle:
    resource: "@BoShurikTelegramBotBundle/Resources/config/routing.yml"
    prefix: /_telegram/<secret_path>
  1. Use getUpdates:
$ php bin/console telegram:update
  1. Use webHooks
$ php bin/console telegram:webhook:set <url from the new route>

Bundle creator: BoShurik forked from TelegramBotBundle