Compare commits

...

4 Commits

Author SHA1 Message Date
57d9035afb 0.8.6 2025-06-30 17:07:18 +03:00
5f2beb7e07 Поправлена модель для обработки Геолокации 2025-06-30 17:06:48 +03:00
e8ad92c3c3 Немного TYPE_CHECKING 2025-06-30 12:23:43 +03:00
1be05dea83 Немного TYPE_CHECKING 2025-06-30 12:23:28 +03:00
4 changed files with 10 additions and 7 deletions

View File

@@ -1,10 +1,11 @@
from __future__ import annotations
import asyncio
from typing import Any, Callable, Dict, List
from typing import Any, Callable, Dict, List, TYPE_CHECKING
from fastapi import FastAPI, Request
from fastapi.responses import JSONResponse
from magic_filter import MagicFilter
from uvicorn import Config, Server
from aiohttp import ClientConnectorError
@@ -23,6 +24,9 @@ from .bot import Bot
from .enums.update import UpdateType
from .loggers import logger_dp
if TYPE_CHECKING:
from magic_filter import MagicFilter
webhook_app = FastAPI()
CONNECTION_RETRY_DELAY = 30

View File

@@ -1,7 +1,4 @@
from magic_filter import MagicFilter
from magic_filter.operations.call import CallOperation as mf_call
from magic_filter.operations.function import FunctionOperation as mf_func
from magic_filter.operations.comparator import ComparatorOperation as mf_comparator
F = MagicFilter()

View File

@@ -16,6 +16,7 @@ from .attachments.file import File
from .attachments.image import Image
from .attachments.video import Video
from .attachments.audio import Audio
from .attachments.location import Location
from .users import User
@@ -97,7 +98,8 @@ class MessageBody(BaseModel):
File,
Image,
Sticker,
Share
Share,
Location
]
]
] = []

View File

@@ -1,6 +1,6 @@
[project]
name = "maxapi"
version = "0.8.5"
version = "0.8.6"
description = "Библиотека для разработки чат-ботов с помощью API мессенджера MAX"
readme = "README.md"
requires-python = ">=3.10"