Commit dfb16007 authored by Nicolas Lenz's avatar Nicolas Lenz
Browse files

Add new file

parent 26b511e6
#!/usr/bin/python3
# benötigt python-telegram-bot
from telegram.ext import Updater, RegexHandler
import time
TOKEN_FILE = "token"
def delete(bot, update):
time.sleep(1)
print("Answering")
bot.send_sticker(chat_id=update.message.chat.id, reply_to_message_id=update.message.message_id, sticker='CAADBAAD5QADfkZFAAGPqgEddkSmkgI')
token = open(TOKEN_FILE, "r").read().rstrip()
updater = Updater(token=token)
updater.dispatcher.add_handler(RegexHandler('.*\\b[uU]\s*([wWωɯ]|[vV]\s*[vV])\s*[uU]\\b.*', delete))
updater.start_polling()
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment