Bugfix that fixes stuff (#779)

This commit is contained in:
iDavidef 2020-03-20 16:24:20 +01:00 committed by GitHub
parent 68e3f99757
commit ae00a307a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ trait CallHandler
*/
public function methodCallAsyncWrite(string $method, $args = [], array $aargs = ['msg_id' => null]): \Generator
{
if (\is_array($args) && isset($args['id']['_']) && isset($args['id']['dc_id']) && $args['id']['_'] === 'inputBotInlineMessageID' && $this->datacenter !== $args['id']['dc_id']) {
if (\is_array($args) && isset($args['id']['_']) && isset($args['id']['dc_id']) && $args['id']['_'] === 'inputBotInlineMessageID' && $this->datacenter != $args['id']['dc_id']) {
$aargs['datacenter'] = $args['id']['dc_id'];
return yield from $this->API->methodCallAsyncWrite($method, $args, $aargs);
}