channeldb globalsettings class? easier access settings? - channelstatus - setchannel - clearqueue - lastbotcommands - lastbotexceptions - user - loadconfig - saveconfig - download channelmode: - i - ir - r autosyncmode: - 'true' - 'force' - 'false' disabledmode: - 'true' - 'updatedb' - 'false' tgapp: APIID: 23842281 # done APIHASH: 521b703db3b046b7785d475db410a87d #done setTimeout: 30 # done setRpcResendTimeout: 10 # done "; $globalsettings=yaml_parse($globalsettingsyaml); date_default_timezone_set('Europe/Berlin'); $date=gmdate("Y-m-d H:i:s", time()+date("Z")); $lastMessagePerChan=array(); $runtimeForwardCounter=0; $alltimeforwards=0; $runtimeForwardCalls=0; $recoverqueue=true; $toForward=array(); $maxforwards=1400; $forwardstopmsg=""; $floodchallange=array(); // floodtimer in floodchallange array ["floodtimer"] $floodchallange["floodtimer"]=time(); $floodwait=-1; $forwardMsg=array(); // fwd backstepper array... $bckStepArray=array(); $isJobRunning=array(); $usedPeakMemory="just wait"; $usedMemory="just wait"; $requestSilentMode=1; // -1 || 1 $floodwait=-1; ini_set('memory_limit', '64M');