-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
66 lines (55 loc) · 2.54 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import telebot
from telebot.types import ReplyKeyboardMarkup
from telebot.types import InlineKeyboardMarkup
import func.reclaims as reclaims
import settings.settings as settings
from telebot.types import ReplyKeyboardMarkup
from telebot.types import ForceReply
bot = telebot.TeleBot(settings.TOKEN)
@bot.message_handler(commands=["start"])
def start_function(message):
reclaims.home(message)
@bot.message_handler(commands=["try"])
def try_command(message):
bot.send_chat_action(message.chat.id,"typing")
bot.send_message(message.chat.id,f"Gracias por escribirme {message.chat.first_name}")
bot.send_message(841744845,f"Usuario: {message.chat.username}\nID es: {message.chat.id}")
@bot.message_handler(commands=["contact"])
def reclamacion_function(message):
reclaims.private_reclaims(message)
@bot.message_handler(commands=['links'])
def links(message):
bot.send_message(message.chat.id,'''
Esta es la Lista de nuestros Sitios
<b><a href="www.ipvcecubavirtual.wordpress.com">Pagina Web</a> 🌐
<a href="https://t.me/ipvcecubagrupo">Grupo de Telegram</a> 👥
<a href="https://t.me/virtualipvcecuba">Canal de Telegram</a> 📺
<a href="https://instagram.com/_ipvce?igshid=YmMyMTA2M2Y=">Instagram</a> 📷
<a href="https://www.facebook.com/ipvcecuba?mibextid=ZbWKwL">Facebook</a> 📘
</b>
''',parse_mode="html")
@bot.message_handler(content_types=['text'])
def mensaje(message):
if message.text == "Queja 🚫":
msg = reclaims.private_reclaims(message)
bot.register_next_step_handler(msg,reclaims.reclaim)
elif message.text == "Sugerencia 🆗":
msg = reclaims.private_sujest(message)
bot.register_next_step_handler(msg,reclaims.sugerencia)
elif message.text == "Dudas ❓":
msg = reclaims.private_sujest(message)
bot.register_next_step_handler(msg,reclaims.sugerencia)
elif message.text == "Home 🏘":
reclaims.home(message)
else:
bot.send_message(message.chat.id,"Lo siento, no entiendo a que te refieres")
if __name__ == "__main__":
mensaje = bot.send_message(841744845,"Hola?")
bot.set_my_commands([
telebot.types.BotCommand("/start","Inicia El Bot"),
telebot.types.BotCommand("/ayuda","Mensaje de Ayuda"),
telebot.types.BotCommand("/links","Muestra los enlaces a nuestros sitios"),
telebot.types.BotCommand("/contact","Contactanos")
])
print("Todos los sistemas operativos")
bot.infinity_polling()