Karma commited on
Commit
dd073da
·
1 Parent(s): 9fc4711

ping cmd access

Browse files
Files changed (1) hide show
  1. Mikobot/plugins/ping.py +2 -0
Mikobot/plugins/ping.py CHANGED
@@ -7,11 +7,13 @@ from telegram.ext import CommandHandler, ContextTypes
7
 
8
  from Mikobot import StartTime, function
9
  from Mikobot.__main__ import get_readable_time
 
10
 
11
  # <=======================================================================================================>
12
 
13
 
14
  # <================================================ FUNCTION =======================================================>
 
15
  async def ptb_ping(update: Update, context: ContextTypes.DEFAULT_TYPE):
16
  msg = update.effective_message
17
 
 
7
 
8
  from Mikobot import StartTime, function
9
  from Mikobot.__main__ import get_readable_time
10
+ from Mikobot.plugins.helper_funcs.chat_status import check_admin
11
 
12
  # <=======================================================================================================>
13
 
14
 
15
  # <================================================ FUNCTION =======================================================>
16
+ @check_admin(only_dev=True)
17
  async def ptb_ping(update: Update, context: ContextTypes.DEFAULT_TYPE):
18
  msg = update.effective_message
19