Linux Spain at
Contestador automático para Telegram.
Copia y pega esto:
---
our_id = 0
function on_msg_receive (msg)
if msg.out then
return
end
if msg.text == nil then
return
end
if msg.unread == 0 then
return
end
send_msg(msg.from.print_name, "I'm busy right now. Text you back later.")
end
function on_our_id (id)
our_id = id
end
function on_secret_chat_created (peer)
end
function on_user_update (user)
end
function on_chat_update (user)
end
function on_get_difference_end ()
end
function on_binlog_replay_end ()
end
---
... en un archivo de texto y llámalo "busy.lua". Ejecuta telegram desde la línea de comandos con
---
telegram -s busy.lua
---
y todos los mensajes que recibas se contestarán con "I'm busy right now. Text you back later."
Copia y pega esto:
---
our_id = 0
function on_msg_receive (msg)
if msg.out then
return
end
if msg.text == nil then
return
end
if msg.unread == 0 then
return
end
send_msg(msg.from.print_name, "I'm busy right now. Text you back later.")
end
function on_our_id (id)
our_id = id
end
function on_secret_chat_created (peer)
end
function on_user_update (user)
end
function on_chat_update (user)
end
function on_get_difference_end ()
end
function on_binlog_replay_end ()
end
---
... en un archivo de texto y llámalo "busy.lua". Ejecuta telegram desde la línea de comandos con
---
telegram -s busy.lua
---
y todos los mensajes que recibas se contestarán con "I'm busy right now. Text you back later."
send_msg(msg.from.print_name, "I'm busy right now. Text you back later. You can find me at Jabber/XMPP")
end
EVAnaRkISTO likes this.
el ingles no es lo mio y lo odio, pero al ir a translate google me di cuenta que...
¿podrías ser que en vez de "text" fuera "test"? insisto, soy un pikinglish fatal...
xikufrancesc, puedes cambiar el texto que hay entre comillas por:
"Ahora mismo no te puedo atender. Te mando un mensaje luego."
"Ahora mismo no te puedo atender. Te mando un mensaje luego."
>> No_2nd Troy:
“send_msg(msg.from.print_name, "I'm busy right now. Text you back later. You can find me at Jabber/XMPP")
end”
Ahi ahi!
Jabber/XMPP FTW!
JanKusanagi at 2014-02-17T21:13:46Z
juancuyo likes this.