@@ -33,9 +33,10 @@ class FrozenBot:
3333 """A frozen version of botogram.Bot"""
3434
3535 def __init__ (self , api , about , owner , hide_commands , before_help ,
36- after_help , link_preview_in_help , process_backlog , lang ,
37- itself , commands_re , commands , chains , scheduler ,
38- main_component_id , bot_id , shared_memory , update_processors ):
36+ after_help , link_preview_in_help ,
37+ validate_callback_signatures , process_backlog , lang , itself ,
38+ commands_re , commands , chains , scheduler , main_component_id ,
39+ bot_id , shared_memory , update_processors ):
3940 # This attribute should be added with the default setattr, because is
4041 # needed by the custom setattr
4142 object .__setattr__ (self , "_frozen" , False )
@@ -48,6 +49,7 @@ def __init__(self, api, about, owner, hide_commands, before_help,
4849 self .before_help = before_help
4950 self .after_help = after_help
5051 self .link_preview_in_help = link_preview_in_help
52+ self .validate_callback_signatures = validate_callback_signatures
5153 self .process_backlog = process_backlog
5254 self .lang = lang
5355 self ._commands_re = commands_re
@@ -77,10 +79,10 @@ def __reduce__(self):
7779 args = (
7880 self .api , self .about , self .owner , self ._hide_commands ,
7981 self .before_help , self .after_help , self .link_preview_in_help ,
80- self .process_backlog , self .lang , self .itself , self . _commands_re ,
81- self ._commands , self ._chains , self ._scheduler ,
82- self ._main_component_id , self ._bot_id , self ._shared_memory ,
83- self ._update_processors ,
82+ self .validate_callback_signatures , self .process_backlog , self .lang ,
83+ self .itself , self ._commands_re , self ._commands , self . _chains ,
84+ self ._scheduler , self ._main_component_id , self ._bot_id ,
85+ self ._shared_memory , self . _update_processors ,
8486 )
8587 return restore , args
8688
0 commit comments