@@ -85,25 +85,32 @@ def start(self):
85
85
self .bot .set_my_commands (Commands , language_code = 'en' )
86
86
87
87
def sendPrint (update : Update , context : CallbackContext ) -> None :
88
- self .commandSendPrint (update )
88
+ if f'{ update .message .from_user .id } ' in self .telegramConfig ['chat_ids' ]:
89
+ self .commandSendPrint (update )
89
90
90
91
def sendChatId (update : Update , context : CallbackContext ) -> None :
91
- self .commandSendChatId (update )
92
+ if f'{ update .message .from_user .id } ' in self .telegramConfig ['chat_ids' ]:
93
+ self .commandSendChatId (update )
92
94
93
95
def sendMap (update : Update , context : CallbackContext ) -> None :
94
- self .commandSendMap (update )
96
+ if f'{ update .message .from_user .id } ' in self .telegramConfig ['chat_ids' ]:
97
+ self .commandSendMap (update )
95
98
96
99
def sendBcoin (update : Update , context : CallbackContext ) -> None :
97
- self .commandSendBcoin (update )
100
+ if f'{ update .message .from_user .id } ' in self .telegramConfig ['chat_ids' ]:
101
+ self .commandSendBcoin (update )
98
102
99
103
def sendDonation (update : Update , context : CallbackContext ) -> None :
100
- self .commandSendDonation (update )
104
+ if f'{ update .message .from_user .id } ' in self .telegramConfig ['chat_ids' ]:
105
+ self .commandSendDonation (update )
101
106
102
107
def sendAllHeroesToWork (update : Update , context : CallbackContext ) -> None :
103
- self .commandAllHeroesToWork (update )
108
+ if f'{ update .message .from_user .id } ' in self .telegramConfig ['chat_ids' ]:
109
+ self .commandAllHeroesToWork (update )
104
110
105
111
def sendAllHeroesToRest (update : Update , context : CallbackContext ) -> None :
106
- self .commandAllHeroesToRest (update )
112
+ if f'{ update .message .from_user .id } ' in self .telegramConfig ['chat_ids' ]:
113
+ self .commandAllHeroesToRest (update )
107
114
108
115
commands = [
109
116
['chat_id' , sendChatId ],
0 commit comments