byStarTW says to YSITD
def say(bot, update): msg = str(update[4:]) bot.send_message(chat_id=update.message.chat_id, text=msg) from telegram.ext import CommandHandler dispatcher = updater.dispatcher dispatcher.add_handler(CommandHandler('say', say))