2
0
mirror of https://github.com/Nick80835/microbot synced 2025-08-31 06:26:04 +00:00

implement kinda quirky inline stuff

This commit is contained in:
Nick80835
2020-05-16 17:52:29 -04:00
parent 024624e48f
commit 6a819878ea
5 changed files with 127 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ class Loader():
def reload_all_modules(self):
self.command_handler.incoming_commands = {}
self.command_handler.inline_photo_commands = {}
self.help_dict = {}
errors = ""
@@ -67,6 +68,16 @@ class Loader():
return decorator
def add_inline_photo(self, **args):
def decorator(func):
self.command_handler.inline_photo_commands[func.__name__] = {
"function": func
}
return func
return decorator
async def get_text(self, event, with_reply=True, return_msg=False, default=None):
if event.args:
if return_msg: