This commit is contained in:
Daniil Gentili 2017-04-24 15:26:33 +02:00
parent 87cc6e88e3
commit a26ed35b65
2 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ trait PeerHandler
break;
}
}
if (is_string($id) && strpos('#', $id) !== false) {
if (is_string($id) && strpos($id, '#') !== false) {
if (preg_match('/^channel#/', $id)) {
$id = $this->to_supergroup(preg_replace('|\D+|', '', $id));
}

View File

@ -46,7 +46,7 @@ trait UpdateHandler
}
}
if (isset($this->settings['pwr']['update_handler'])) {
$this->settings['pwr']['update_handler']($update);
$this->settings['pwr']['update_handler'] === 'get_updates_update_handler' ? $this->get_updates_update_handler($update) : $this->settings['pwr']['update_handler']($update);
}
}