from telegram.ext import Updater
updater = Updater(token='281982543:AAEKqlx9YCaxh0xJvKTwE5UCCP7m8ExY910')
def start(bot, update):
bot.send_message(chat_id=update.message.chat_id, text="welcome:)")
def ping(bot, update):
bot.send_message(chat_id=update.message.chat_id, text="PONG")
def author(bot, update):
bot.send_message(chat_id=update.message.chat_id, text="author: BYSTARTW")
from telegram.ext import CommandHandler
dispatcher = updater.dispatcher
start_handler = CommandHandler('start', start)
dispatcher.add_handler(start_handler)
ping_handler = CommandHandler('ping', ping)
dispatcher.add_handler(start_handler)
dispatcher.add_handler(CommandHandler('author', author))
updater.start_polling()