BoShurik / telegram-bot-example

BoShurikTelegramBotBundle usage example
MIT License
17 stars 13 forks source link

Commands did not work #13

Open shubaivan opened 3 months ago

shubaivan commented 3 months ago

I created a bot, setup domain, and riched success with login through Telegram but don't understand how commands work, when wrote /help or /hello in debug I saw a redirect to the public area, that's why did not face with anything in bot, debug was not entered in commands class, what I did wrong? How to make commands useful what do I miss?

shubaivan commented 3 months ago

If someone faced with that behaviour that's my explanation: The problem was with incorrect webhook URL and missing firewal

need to add firewall

        telegram_bot:
            pattern: ^/_telegram/%telegram_route_secret%$
            security: false

and URL should be like that format

"url": "https://toy_domain/_telegram/your_token/",