/**
* @return void
*/
public function processUpdates()
{
$updates = $this->api->getUpdates();
$lastUpdateId = null;
foreach ($updates as $update) {
$lastUpdateId = $update->getUpdateId();
$this->processUpdate($update);
}
if ($lastUpdateId) {
$this->api->getUpdates($lastUpdateId + 1, 1);
}
}