def process_message_from_authorised_user(update, context): logger.debug(update.message) if update.message.caption: text_urled = update.message.caption_html_urled else: text_urled = update.message.text_html_urled if parse_folder_id_from_url(text_urled): process_drive_links(update, context) return
def process_message(update, context): if not update.message: return if update.message.chat_id == config.USER_IDS[0]: pass else: logger.debug(update.message) if update.message.caption: text_urled = update.message.caption_html_urled else: text_urled = update.message.text_html_urled if parse_folder_id_from_url(text_urled): process_drive_links(update, context) return