def start(update, context): chatinfo.sender(update, 'command') reply_keyboard = [['About', 'Help'], ['Website']] markup = ReplyKeyboardMarkup(reply_keyboard, one_time_keyboard=True) update.message.reply_text( "Hi! I'm Shiromi's Assistant!\n" "Any question please contact @WhiteFish_Shiromi", reply_markup=markup) return HELP
def textMsg(update, context): content = chatinfo.sender(update, 'text') autoreply.flow(content)
def locationMsg(update, context): content = chatinfo.sender(update, 'location')
def documentMsg(update, context): content = chatinfo.sender(update, 'document')
def audioMsg(update, context): content = chatinfo.sender(update, 'audio')
def voiceMsg(update, context): content = chatinfo.sender(update, 'voice')
def videoMsg(update, context): content = chatinfo.sender(update, 'video')
def photoMsg(update, context): content = chatinfo.sender(update, 'photo')
def stickerMsg(update, context): content = chatinfo.sender(update, 'sticker')
def query(update, context): chatinfo.sender(update, 'command') query = pformat(str(update.message)) update.message.reply_text(query)