Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import telebot
- import random
- import os
- file = open("token.txt","r")
- token = file.readline()
- bot = telebot.TeleBot(token)
- yes_or_no = ["heri","yox"]
- istOfRandomPhrases = ["мать,чеферни на мобилу", "как вы братва?","Как же ты меня заебал",'какие-то проблемы?',"лол","ну что молодые, нарушаем?"
- ,"тебе нечего делать?","иди уроки делай","завтра на торговую или гм????","teze tema var? ", "nә var nә yox?"]
- random_message = lambda: random.choice(yes_or_no)
- random_phrase = lambda: random.choice(istOfRandomPhrases)
- path="meyxanalar"
- files=os.listdir(path)
- d=random.choice(files)
- # Handles all sent documents and audio files
- @bot.message_handler(content_types=['audio'])
- def handle_docs_audio(message):
- bot.reply_to(message,"Обааа это трек такой???")
- @bot.message_handler(commands=['help'])
- def send_welcome(message):
- bot.reply_to(message, "sikim,ver yatimda ala")
- @bot.message_handler(commands=['am_i_gisdallax'])
- def am_i_gisdallax(message,):
- bot.reply_to(message, random_message())
- @bot.message_handler(commands=['am_i_beautiful'])
- def am_i_beautiful(message,):
- bot.reply_to(message, random_message())
- @bot.message_handler(content_types=['location'])
- def location(message,):
- bot.reply_to(message, "мы уже выехали")
- @bot.message_handler(content_types=['new_chat_title'])
- def new_chat_title(message,):
- bot.reply_to(message, "пере обуваемся?")
- @bot.message_handler(content_types=['new_chat_participant'])
- def new_chat_participian(message,):
- bot.reply_to(message, "Cалам,веди себя достойно")
- @bot.message_handler(commands=['soz_at'])
- def phrases(message):
- bot.reply_to(message, random_phrase())
- @bot.message_handler(commands=['meyxana'])
- def meyxana(m):
- bot.send_audio(m.chat.id,d,timeout=60)
- bot.polling(none_stop=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement