-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtelebot.py
27 lines (18 loc) · 966 Bytes
/
telebot.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
from html.parser import HTMLParser
import telegram.ext
import telegram
with open("token.txt","r") as f:
TOKEN = f.read()
def start(update,source):
update.message.reply_text("<b>Merhaba, Hoşgeldiniz.\nWeb Sitesi:/site\nYoutube:/youtube</b>",parse_mode = telegram.ParseMode.HTML)
def site(update,source):
update.message.reply_text("<b>Kusha Mühendislik Web Sitesi : https://kushaengineering.com </b>",parse_mode = telegram.ParseMode.HTML)
def video(update,source):
update.message.reply_text("<b>Kusha Mühendislik Youtube : https://www.youtube.com/watch?v=Gt_cwST1Nhg </b>",parse_mode = telegram.ParseMode.HTML,disable_web_page_preview=True)
update = telegram.ext.Updater(TOKEN,use_context=True)
disp = update.dispatcher
disp.add_handler(telegram.ext.CommandHandler("start",start))
disp.add_handler(telegram.ext.CommandHandler("site",site))
disp.add_handler(telegram.ext.CommandHandler("youtube",video))
update.start_polling()
update.idle()