forked from Claudio/integracao
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
812 B
27 lines
812 B
<?php |
|
|
|
require_once 'Telegram.php'; |
|
|
|
$registros = array( |
|
"id" => '', |
|
"reg_ura" => $ura, |
|
"reg_tronco" => $tronco, |
|
"reg_uniqueid" => $uid, |
|
"reg_id_metodo" => $idMetodo, |
|
"reg_uniqueid" => $uid, |
|
"reg_uniqueid_old" => $uidOld, |
|
"reg_fone" => $numero, |
|
"reg_status_exec" => '1', |
|
"reg_inicio" => date()); |
|
|
|
$telegram = new Telegram(CONF_ID_CREDENCIAIS); |
|
|
|
$breakline = urlencode("\n"); |
|
$alert = urlencode("\xF0\x9F\x93\x9E") . "<b>CLIENTE ENTROU EM CONTATO</b>" . urlencode("\xF0\x9F\x93\x9E") . $breakline; |
|
|
|
$telegram->sendMessage($alert . " Telefone: $numero"); |
|
|
|
$telegram->agi()->exec_goto($telegram->db()->getAnuncio('INT_AGRADECIMENTO_PROVEDORES')); |
|
|
|
$telegram->db()->atualizaIntegracao(); |
|
|
|
|