Exemple #1
0
 public function main()
 {
     if ($this->isParam()) {
         if ($this->updateTimeZone($this->Message->User, $this->getParam())) {
             $out = emoji(0x1f44d) . " Your timezone has been updated!\n\n";
             $out .= $this->printTimeZones();
         } else {
             $out = emoji(0x274c) . " Can't find that timezone. Try something like: \n<code>   /time {Continent}/{City}</code>.\n\nTake a look here for all the options available:\n http://php.net/manual/en/timezones.php";
         }
     } else {
         $out = $this->printTimeZones();
     }
     Telegram::talk_html($this->Message->Chat->id, $out);
 }