1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 01:34:40 +01:00

Support http-client

This commit is contained in:
Daniil Gentili 2019-12-27 15:08:24 +01:00
parent 6a67dda109
commit 7b6c3690d3
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -183,7 +183,7 @@ class MyTelegramOrgWrapper
$request = new Request(self::MY_TELEGRAM_URL.'/apps/create', 'POST');
$request->setHeaders($this->getHeaders('app'));
$request = $request->setBody(\http_build_query(['hash' => $this->creation_hash, 'app_title' => $settings['app_title'], 'app_shortname' => $settings['app_shortname'], 'app_url' => $settings['app_url'], 'app_platform' => $settings['app_platform'], 'app_desc' => $settings['app_desc']]));
$request->setBody(\http_build_query(['hash' => $this->creation_hash, 'app_title' => $settings['app_title'], 'app_shortname' => $settings['app_shortname'], 'app_url' => $settings['app_url'], 'app_platform' => $settings['app_platform'], 'app_desc' => $settings['app_desc']]));
$response = yield $this->datacenter->getHTTPClient()->request($request);
$result = yield $response->getBody()->buffer();