changed to stop running

pull/231/head
Yariv Menachem 2025-01-01 16:36:40 +02:00
parent d23f05902c
commit 259304d6eb
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
import os import os
from telegram import Update from telegram import Update
from telegram.ext import Application, CommandHandler, CallbackQueryHandler from telegram.ext import Application, CommandHandler, CallbackQueryHandler, Updater
from jobspy.scrapers.site import Site from jobspy.scrapers.site import Site
from jobspy.scrapers.utils import create_logger from jobspy.scrapers.utils import create_logger
@ -19,7 +19,7 @@ title_filters: list[str] = ["test", "qa", "Lead", "Full-Stack", "Full Stack", "F
async def stop(update, context): async def stop(update, context):
logger.info("Stop polling from telegram") logger.info("Stop polling from telegram")
await application.stop() await application.stop_running()
if __name__ == "__main__": if __name__ == "__main__":
logger.info("Starting initialize ") logger.info("Starting initialize ")