mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-28 17:09:05 +00:00
10 lines
468 B
ReStructuredText
10 lines
468 B
ReStructuredText
How to use webhooks?
|
|
====================
|
|
|
|
There is no webhook in Pyrogram, simply because there is no HTTP involved. However, a similar technique is
|
|
being used to make receiving updates efficient.
|
|
|
|
Pyrogram uses persistent connections via TCP sockets to interact with the server and instead of actively asking for
|
|
updates every time (polling), Pyrogram will sit down and wait for the server to send updates by itself the very moment
|
|
they are available (server push).
|