If I run script with browser, it works good.
But an error comes out through the scheduler.
$tg->photo2(-1001216648524 , \'/banners/\'.$a.\'.jpg\');