From 4c06e6c5fe2d6a35c654203a338056df76573d90 Mon Sep 17 00:00:00 2001 From: PyMaster <59120866+pystorage@users.noreply.github.com> Date: Tue, 25 Jan 2022 18:06:37 +0300 Subject: [PATCH] Delete inline_query_results.py --- pykeyboard/inline_query_results.py | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 pykeyboard/inline_query_results.py diff --git a/pykeyboard/inline_query_results.py b/pykeyboard/inline_query_results.py deleted file mode 100644 index 1b695b5..0000000 --- a/pykeyboard/inline_query_results.py +++ /dev/null @@ -1,23 +0,0 @@ -from pyrogram.types import InlineQueryResultArticle,InputTextMessageContent -from uuid import uuid4 - -class InlineQueryResults(list): - def __init__(self): - self.results = list() - super().__init__(self.results) - - - def add(self,title,message_text,message_parse_mode = None,message_disable_web_page_preview = None, url = None, description = None, thumb_url = None,reply_markup = None): - self.results.append( - InlineQueryResultArticle( - id = uuid4(), - title = title, - input_message_content = InputTextMessageContent(message_text=message_text,parse_mode=message_parse_mode,disable_web_page_preview=message_disable_web_page_preview), - url = url, - description = description, - thumb_url = thumb_url, - reply_markup = reply_markup - ) - ) - - super().__init__(self.results)