Last active
February 12, 2018 04:40
-
-
Save NaokiStark/d77cdcb7677aece0a4833068f1dedfa6 to your computer and use it in GitHub Desktop.
Ejemplo de comando de Nikubot de Telegram
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Comando ping / Ping Command | |
if(!defined("RUNNED")) die('not allowed'); | |
class Plugin{ | |
var $Sender; | |
public function Plugin(){ | |
global $sender; | |
$this->Sender=$sender; | |
} | |
public function launch(){ | |
global $text; //$text es el mensaje | |
//send("texto a enviar", $canal, respuesta); | |
//$this->Sender = id del canal | |
//Si querés que responda el mensaje, agregar true como parametro final, por ejemplo: | |
//send('pong! xd',$this->Sender, true); | |
send('pong! xd',$this->Sender); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment