This is just for fun and not a proper way to develop Telegram bots.
First, install the python-telegram-bot
package:
python install -U python-telegram-bot
type("TelegramBot", (), {'__init__': lambda self: [setattr(self, 'app', __import__('telegram.ext').ext.ApplicationBuilder().token(TOKEN).build()), self.app.add_handler(__import__('telegram.ext').ext.CommandHandler('start', lambda update, context: update.message.reply_text("ONE LINE BOT!"))), None][-1], '__call__': lambda self: self.app.run_polling(drop_pending_updates=True)})()()
Make sure to get your bot's token from @BotFather and set it as TOKEN
.