You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import telebot
import time
from telebot import types
bot = telebot.TeleBot("163780046:AAHDFjMFS6FKyzgxQjlfEm0w3s8b9aP5IEo")
tiempo = time.strftime("%H horas %M minutos y %S segundos exactamente")
def recibe(messages):
for m in messages:
if m.content_type == "text":
if m.text == "Hola Marlin":
bot.send_message(m.chat.id,"Hola amo")
bot.send_message(m.chat.id,"\n¿Que desea?")
elif m.text == "Quiero un helado":
bot.send_message(m.chat.id,"¿De que sabor le gustaria?")
elif m.text == "Chocolate":
bot.send_message(m.chat.id,"Excelente elecion amo. Le recomiendo ir a los italianos")
elif m.text == "Vainilla":
bot.send_message(m.chat.id,"Una buena elecion sin duda amo. ¿Quizas lo quiera acompañar con una tarde de lectura?")
bot.send_message(m.chat.id,"En ese caso le recomiendo que le pida informacion a raul sobre ese sitio que usted sabe")
elif m.text == "Fresa":
bot.send_message(m.chat.id,"Una rara elecion viniendo de usted amo. No tengo ahora mimo informacion sobre donde conseguir un buen helado de fresa")
bot.send_message(m.chat.id,"hmmm... Quizas en los italianos. Al fin y al cabo hacen muy buenos helados")
elif m.text == "Gracias Marlin":
bot.send_message(m.chat.id,"Para servirle mi gran amo Enrique")
elif m.text == "Deja de imitarme":
bot.send_message(m.chat.id,"Es para lo que me programaron amo")
elif m.text == "Estoy depre":
bot.send_message(m.chat.id,"Una autentica desgracia mi amo y señor. ¿He de recordarle que fue usted el que me dio vida?")
bot.send_message(m.chat.id,"Una vida que amo y aprecio y que estoy muy orgulloso de tener. Asi que amo. No este depre")
elif m.text == "Que hora es Marlin?":
bot.send_message(m.chat.id,"Son las "+tiempo+" mi amo")
else:
bot.send_message(m.chat.id,m.text)
bot.set_update_listener(recibe)
bot.polling()
The text was updated successfully, but these errors were encountered:
!/usr/bin/python3 -u
import telebot
import time
from telebot import types
bot = telebot.TeleBot("163780046:AAHDFjMFS6FKyzgxQjlfEm0w3s8b9aP5IEo")
tiempo = time.strftime("%H horas %M minutos y %S segundos exactamente")
def recibe(messages):
for m in messages:
if m.content_type == "text":
if m.text == "Hola Marlin":
bot.send_message(m.chat.id,"Hola amo")
bot.send_message(m.chat.id,"\n¿Que desea?")
elif m.text == "Quiero un helado":
bot.send_message(m.chat.id,"¿De que sabor le gustaria?")
elif m.text == "Chocolate":
bot.send_message(m.chat.id,"Excelente elecion amo. Le recomiendo ir a los italianos")
elif m.text == "Vainilla":
bot.send_message(m.chat.id,"Una buena elecion sin duda amo. ¿Quizas lo quiera acompañar con una tarde de lectura?")
bot.send_message(m.chat.id,"En ese caso le recomiendo que le pida informacion a raul sobre ese sitio que usted sabe")
elif m.text == "Fresa":
bot.send_message(m.chat.id,"Una rara elecion viniendo de usted amo. No tengo ahora mimo informacion sobre donde conseguir un buen helado de fresa")
bot.send_message(m.chat.id,"hmmm... Quizas en los italianos. Al fin y al cabo hacen muy buenos helados")
elif m.text == "Gracias Marlin":
bot.send_message(m.chat.id,"Para servirle mi gran amo Enrique")
elif m.text == "Deja de imitarme":
bot.send_message(m.chat.id,"Es para lo que me programaron amo")
elif m.text == "Estoy depre":
bot.send_message(m.chat.id,"Una autentica desgracia mi amo y señor. ¿He de recordarle que fue usted el que me dio vida?")
bot.send_message(m.chat.id,"Una vida que amo y aprecio y que estoy muy orgulloso de tener. Asi que amo. No este depre")
elif m.text == "Que hora es Marlin?":
bot.send_message(m.chat.id,"Son las "+tiempo+" mi amo")
else:
bot.send_message(m.chat.id,m.text)
bot.set_update_listener(recibe)
bot.polling()
The text was updated successfully, but these errors were encountered: