404

[ Avaa Bypassed ]




Upload:

Command:

botdev@13.59.84.60: ~ $
<?php
class DeFaText extends Intent {
    public $hasOtherIntents = true;
    public $name = "germanToPersian"; 
    function init(){
        $pattern = new Pattern("longGermanText");
        $pattern->addAndRule("/[A-Za-z0-9]/");
        $pattern->addAndRule("/.{15,2000}/");
        $pattern->addAndRule("/^(?!\/start).*/");
        $this->patterns[] = $pattern;
    }
    
    function getIntentID(){
        return 7;
    }
    function act(){
        $message = $this->getIS()->getTG()->message;
        // $this->getIS()->getTG()->sendMessage($message,$this->getIS()->getTG()->chat_id);
        $this->getIS()->getTG()->getButtonService()->addKeyboardMarkup("برگردان به فارسی",DeFaTextTranslate::$key. ":tr");
        $this->getIS()->getTG()->getButtonService()->addKeyboardMarkup("بازسازی متن",DeDeTextTranslate::$key. ":tr");
        $this->getIS()->getTG()->sendMarkedupMessage(
            $message['text'],
            $this->getIS()->getTG()->getButtonService()->getKeyboardMarkedup()
        );
    }
}

Filemanager

Name Type Size Permission Actions
DeFa.intent.class.php File 121 B 0755
DeFaText.intent.class.php File 1.01 KB 0755