feat: Refactor configuration handling and enhance logging setup; update imports and improve error handling in API methods

This commit is contained in:
bohd4nx
2026-01-18 06:41:08 +02:00
parent 76473993e2
commit d299a1f804
13 changed files with 164 additions and 132 deletions
+3 -2
View File
@@ -1,9 +1,9 @@
import asyncio
import logging
from app.methods import FragmentTon, FragmentPremium, FragmentStars
from app.methods import FragmentPremium, FragmentStars, FragmentTon
from app.core import setup_logging
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
logger = logging.getLogger(__name__)
@@ -53,6 +53,7 @@ async def buy_stars_example():
async def main():
setup_logging()
logger.info("Starting Fragment API by @bohd4nx - examples")
await topup_ton_example()