def info(bot, update, args): gh = GitHub() for user in args: bot.send_message(chat_id=update.message.chat_id, text='{2} User Information ' + '[{0}](https://github.com/{0}) {1}'.format( user, Emoji.WHITE_DOWN_POINTING_BACKHAND_INDEX, Emoji.INFORMATION_SOURCE), parse_mode=ParseMode.MARKDOWN) bot.send_message(chat_id=update.message.chat_id, text=gh.get_info(user))
def listing(bot, update, args): gh = GitHub() for user in args: bot.send_message(chat_id=update.message.chat_id, text='{0} Listing the user repositories ' .format('\U0001F5C4') + '[{0}](https://github.com/{0}) {1}'.format( user, Emoji.WHITE_DOWN_POINTING_BACKHAND_INDEX), parse_mode=ParseMode.MARKDOWN) bot.send_message(chat_id=update.message.chat_id, text=gh.get_repos(user))