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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user