minor improvements
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-05-01 22:49:31 +02:00
parent ba3845496e
commit dec12b5576
5 changed files with 100 additions and 23 deletions

View File

@@ -2,14 +2,15 @@ import os
from telegram.ext import Application
import logging
import models
from commands import journal, status
from commands.list import list
import models
from cronjob import chat_photo
logging.basicConfig(
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
level=logging.INFO
)
import asyncio
logger = logging.getLogger(__name__)
@@ -30,6 +31,10 @@ def main() -> None:
# on non command i.e message - echo the message on Telegram
# application.add_handler(InlineQueryHandler(inline_query))
# on every start set a new chat photo
# loop = asyncio.get_event_loop()
asyncio.ensure_future(chat_photo.set_random(application.bot))
# Run the bot until the user presses Ctrl-C
application.run_polling()