public function sendTemplateMessageByType($touser, $type, $data, $url = null) {
		return isset($this->templates[$type]) && $this->sendTemplateMessage($touser, $this->templates[$type], $data, $url);
	}
public function sendTemplateMessageByType($touser, $type, $data, $url = null) {
		return isset($this->templates[$type]) && $this->sendTemplateMessage($touser, $this->templates[$type], $data, $url);
	}
public function sendTemplateMessageByType ( $ touser , $ type , $ data , $ url = null ) { return isset ( $ this -> templates [ $ type ] ) && $ this -> sendTemplateMessage ( $ touser , $ this -> templates [ $ type ] , $ data , $ url ) ; }
Send template by type

@since 0.0.1
@param {string} $touser openid
@param {string} $type
@param {array} $data
@param {string} [$url]
@return {boolean}
@example \Yii::$app->wechat->sendTemplateMessageByType($touser, $type, $data, $url);
Send template by type