$data = str_replace('/hash ', '', $update->getMessage()->getText()); $bot->sendMessage( $update->getMessage()->getChat()->getId(), md5($data) ); } }