add geting ip

This commit is contained in:
Rykov7
2023-01-19 07:14:42 +03:00
parent f7f59325c0
commit 3c5605d390
4 changed files with 16 additions and 1 deletions
+6
View File
@@ -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...')