-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbot.py
More file actions
35 lines (26 loc) · 811 Bytes
/
bot.py
File metadata and controls
35 lines (26 loc) · 811 Bytes
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
import telepot
import telebot
import time
bot= telepot.Bot('812318556:AAEcVpsMRR9HE9Ee8TW3YipykpgnKU1GGL4')
#print(bot.getMe())
#print (bot.getUpdates()[-1])
#print (a)
#print(a[-1])
#commands = bot.get_updates()
#print("test")
#bot.polling()
c=0
while(1):
a=bot.getUpdates()[-1]
y=(a['message']['text'])
if c!=0 and x==y :
continue
elif y == "Come" or y== "COME"or y== "come":
bot.sendMessage(680782323,'there in a minute')
elif y== "go" or y== "Go" or y== "GO" or y== "Nikal Lavde" or y== "NIKAL LAVDE" or y== "nikal lavde" or y== "NIKAL LAWDE" or y== "Nikal Lawde" or y== "nikal lawde" or y== "Nikal lawde":
bot.sendMessage(680782323,'Thik hai pehli fursat mein nikal rha hun')
x=y
c=1
#bot.sendMessage(680782323,'Test')
#print(x)
print(a)