{"repo":"BoShurik/TelegramBotBundle","free":true,"listed":false,"github":"https://github.com/BoShurik/TelegramBotBundle","clone":"git clone https://github.com/BoShurik/TelegramBotBundle.git","description":"Symfony Telegram Bot Bundle","language":"PHP","stars":80,"topics":["php","symfony","symfony-bundle","telegram-bot-bundle","telegram-bot","telegram"],"license":"MIT","category":"chat-messaging","readme_excerpt":"TelegramBotBundle Telegram bot bundle on top of [ telegram-bot/api ][1] library Examples See [example project][5] Installation Composer If you are using [symfony/flex][6] all you need is to set TELEGRAM BOT TOKEN environment variable Register the bundle Add routing for webhook or for multiple bots: Configuration or for multiple bots: Usage API To get default bot api: For multiple bots: or use argument with type TelegramBot\\Api\\BotApi and name pattern /\\${name}(Bot BotApi Api)?$/ For more info see [Usage][2] section in [ telegram-bot/api ][1] library Getting updates For more information see [official documentation][3] Webhook Set If url-or-hostname is not set command will generate url based on request context Unset For more information see [official documentation][4] Async command processing To improve performance, you can leverage [Messenger][7] to process webhooks later via a Messenger transport. Adding commands Commands must implement \\BoShurik\\TelegramBotBundle\\Telegram\\Command\\CommandInterface There is \\BoShurik\\TelegramBotBundle\\Telegram\\Command\\AbstractCommand you can start with To register command: add tag boshurik telegram bot.command to service definition If you use autoconfigure tag will be added automatically For application with multiple bots you need to pass bot id: If you need to use same command for multiple bots you must add multiple tags for each bot: There is predefined \\BoShurik\\TelegramBotBundle\\Telegram\\Command\\HelpCommand . It displays commands which add","default_branch":null,"files":null,"tree":[],"storefront":"/r/BoShurik","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/BoShurik/TelegramBotBundle/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}