add geting ip
This commit is contained in:
@@ -9,6 +9,7 @@ from . import stan
|
||||
from . import reminder
|
||||
from . import reloader
|
||||
from . import report
|
||||
from . import get
|
||||
from .helpers import get_me, search_it
|
||||
from .filters import *
|
||||
from .config import *
|
||||
@@ -224,6 +225,11 @@ def default_query(inline_query):
|
||||
"""
|
||||
|
||||
|
||||
@bot.message_handler(func=is_admin, commands=['ip'])
|
||||
def get_ip(message):
|
||||
bot.send_message(message.chat.id, get.my_ip())
|
||||
|
||||
|
||||
@bot.message_handler(func=is_admin, commands=['reload'])
|
||||
def send_stats(message):
|
||||
logging.warning('Reloading...')
|
||||
|
||||
Reference in New Issue
Block a user