V
V
Veronika Stepanovna2017-05-17 23:04:31
Bots
Veronika Stepanovna, 2017-05-17 23:04:31

How webhook works in telegram api?

I created a telegram bot. Configured, installed webhook. On the server I have Laravel with the extension irazasyed/telegram-bot-sdk. When the webhook is active, I cannot use the getUpdates method and get messages from the bot. Question: do I need to install a webhook only once or does it need to be active in order to receive telegrams and send messages to my server?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2017-05-17
@sargss

The webhook is installed once, after that data will be received from the telegram at the specified url. If you change the token (Revoke), then setwebhook will need to be called again for the new token.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question