Merge pull request #42 from bucolucas/fix-status-function
Fix status function to use telegram library version
This commit is contained in:
@@ -3,7 +3,7 @@ import os
|
|||||||
import importlib
|
import importlib
|
||||||
import inspect
|
import inspect
|
||||||
import logging
|
import logging
|
||||||
from telegram import Update
|
from telegram import Update, __version__ as telegram_version
|
||||||
from telegram.ext import Application, CommandHandler, MessageHandler, filters, ContextTypes
|
from telegram.ext import Application, CommandHandler, MessageHandler, filters, ContextTypes
|
||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
from tools.base_tool import BaseTool
|
from tools.base_tool import BaseTool
|
||||||
@@ -161,7 +161,7 @@ Current Model: {model}
|
|||||||
|
|
||||||
🔧 System Info:
|
🔧 System Info:
|
||||||
• Python version: {os.sys.version.split()[0]}
|
• Python version: {os.sys.version.split()[0]}
|
||||||
• Telegram Bot API version: {Application.VERSION}
|
• Telegram Bot API version: {telegram_version}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
logging.info("Status command executed")
|
logging.info("Status command executed")
|
||||||
|
|||||||
Reference in New Issue
Block a user