Skip to content

damianperez/telegramcommands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

telegram command standby

Standby on/off Put bot on maintenance mode.

/standby show current state

/standby on : Return message from db

/standby off : Return message OPERATIVO

in GenericMessage and Callbackquery: /* Mantenimiento */

	if ( Funciones::esta_en_standby( $this->getTelegram()->getBotId()	) )
	
		{
		
		$mensaje = Funciones::msjs_en_standby( $this->getTelegram()->getBotId() );
		$data['text']= $mensaje;
		return Request::sendMessage($data); 	
		}

needs a table:

CREATE TABLE stand_by ( id_bot bigint(12) NOT NULL, bot_name varchar(15) NOT NULL, stand_by tinyint(1) unsigned NOT NULL, message_on varchar(255) DEFAULT NULL, updated_at datetime DEFAULT NULL, PRIMARY KEY (id_bot) ) ENGINE=InnoDB DEFAULT CHARSET=utf8

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages