tg-bot/tipbot/commands/debug.py

13 lines
332 B
Python
Raw Normal View History

from tipbot.helpers.decorators import wallet_rpc_required, log_event, check_debug
2020-08-06 05:52:13 +00:00
from tipbot.helpers.utils import is_tg_admin
@wallet_rpc_required
@log_event
@check_debug
2020-08-06 05:52:13 +00:00
def debug(update, context):
if is_tg_admin(update.message.from_user['id']):
pass
else:
update.message.reply_text('you cant do that.')