{ token, writers, python3Packages, ... }: writers.writePython3 "nachtischsatan-bot" { libraries = [ python3Packages.python-telegram-bot ]; } '' from telegram.ext import Updater, MessageHandler from telegram.ext.filters import Filters def flubber(bot, update): update.message.reply_text("*flubberflubber*") updater = Updater( '${token}' ) updater.dispatcher.add_handler(MessageHandler(Filters.all, flubber)) updater.start_polling() updater.idle() ''