fixed git import
This commit is contained in:
+1
-3
@@ -3,8 +3,6 @@ import logging
|
||||
import sys
|
||||
import asyncio
|
||||
import time
|
||||
# Note: You need to install the GitPython package: pip install GitPython
|
||||
from git import Repo
|
||||
from telegram import Update, InlineKeyboardButton, InlineKeyboardMarkup
|
||||
from telegram.ext import Application, CommandHandler, MessageHandler, filters, ContextTypes, CallbackQueryHandler
|
||||
|
||||
@@ -12,7 +10,7 @@ class TelegramHelper:
|
||||
def __init__(self, bot):
|
||||
self.bot = bot
|
||||
self.telegram_bot_token = os.getenv('TELEGRAM_BOT_TOKEN')
|
||||
self.repo = Repo(os.getcwd())
|
||||
self.repo = os.getenv("GITHUB_REPOSITORY")
|
||||
self.start_time = time.time()
|
||||
|
||||
async def start(self, update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
|
||||
|
||||
Reference in New Issue
Block a user