tg-bot/tipbot/commands/debug.py

14 lines
392 B
Python
Raw Permalink Normal View History

from tipbot.helpers.decorators import wallet_rpc_required, log_event, check_debug
2020-08-06 06:52:13 +01:00
from tipbot.helpers.utils import is_tg_admin
2021-05-08 07:50:39 +01:00
from tipbot.wownero import Wallet
2020-08-06 06:52:13 +01:00
@wallet_rpc_required
@log_event
@check_debug
2020-08-06 06:52:13 +01:00
def debug(update, context):
if is_tg_admin(update.message.from_user.id):
2021-05-08 07:50:39 +01:00
update.message.reply_text('ohai')
2020-08-06 06:52:13 +01:00
else:
update.message.reply_text('you cant do that.')