P
P
Persotr272019-03-04 18:40:50
Telegram
Persotr27, 2019-03-04 18:40:50

Where can I get a webhook for a hosted telegram bot?

Hello. I want to organize the work of the telegram bot using the WebHook method, so they say less load. However, there is a problem, I do not understand where to get it, this link. The bot is written in Node.js (I think it doesn't matter) and runs on a VPS. In general, tell me please, who is in the know. Or maybe it's not needed at all?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
makag, 2019-03-26
@Persotr27

You do not need to take it, but install it.
I don’t know what node.js is, but when hosting a bot in php, you just need to follow a link like this in your browser:
The essence of telegram webhooks is that you once specify the telegram url address to which to send notifications and that's it. Then the cart sends everything there, and you parse the requests according to your personal wishes.
Compared to getting updates via getupdates - single-click webhooks are better - no need for cron, instant response and all that.
PS This is my first experience with php webhooks - maybe it will be useful - click

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question