Closed malik-telegram closed 1 year ago
Is this the correct ?
@xtrime-ru 🌹
Well, this probably will work. But you must not use blocking IO in async app. Please use https://github.com/amphp/http-client to send async requests. Also better to wrap http request in async() function. So you dont block main thread, because you dont need result of this request.
Also you dont need TelegramApiServer for this. You can do same this bare madelineProto and regular eventHandler. There is even new type of eventHandler which made exactly for webhooks. Its not yet described in docs: \danog\MadelineProto\InternalDoc::setWebhook.
How can I receive incoming messages to webhook link?