0.1.1
This commit is contained in:
@@ -1,9 +1,13 @@
|
|||||||
|
[build-system]
|
||||||
|
requires = ["setuptools>=61.0", "wheel"]
|
||||||
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "quickbot"
|
name = "quickbot"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
description = "quickbot - Rapid Application Development Framework for Telegram Bots"
|
description = "quickbot - Rapid Application Development Framework for Telegram Bots"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.12"
|
requires-python = ">=3.13"
|
||||||
classifiers = [
|
classifiers = [
|
||||||
"Programming Language :: Python :: 3",
|
"Programming Language :: Python :: 3",
|
||||||
"Operating System :: OS Independent",
|
"Operating System :: OS Independent",
|
||||||
@@ -16,13 +20,10 @@ license = { file = "LICENSE" }
|
|||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"aiogram>=3.17.0",
|
"aiogram>=3.17.0",
|
||||||
"babel>=2.17.0",
|
"asyncpg>=0.30.0",
|
||||||
"fastapi[standard]>=0.115.8",
|
"fastapi[standard]>=0.115.8",
|
||||||
"greenlet>=3.1.1",
|
"greenlet>=3.1.1",
|
||||||
"mkdocs-material>=9.6.5",
|
|
||||||
"pydantic-settings>=2.7.1",
|
"pydantic-settings>=2.7.1",
|
||||||
"pytest>=8.3.4",
|
"sqlmodel>=0.0.24",
|
||||||
"ruff>=0.9.6",
|
|
||||||
"sqlmodel>=0.0.22",
|
|
||||||
"ujson>=5.10.0",
|
"ujson>=5.10.0",
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ logger = getLogger(__name__)
|
|||||||
router = APIRouter()
|
router = APIRouter()
|
||||||
|
|
||||||
|
|
||||||
@router.post("/webhook")
|
@router.post("/webhook", name="telegram_webhook")
|
||||||
async def telegram_webhook(
|
async def telegram_webhook(
|
||||||
db_session: Annotated[AsyncSession, Depends(get_db)],
|
db_session: Annotated[AsyncSession, Depends(get_db)],
|
||||||
request: Request,
|
request: Request,
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ from ....utils.main import (
|
|||||||
get_callable_str,
|
get_callable_str,
|
||||||
get_entity_descriptor,
|
get_entity_descriptor,
|
||||||
build_field_sequence,
|
build_field_sequence,
|
||||||
get_user_permissions,
|
|
||||||
)
|
)
|
||||||
from ..context import ContextData, CallbackCommand, CommandContext
|
from ..context import ContextData, CallbackCommand, CommandContext
|
||||||
from ....utils.navigation import (
|
from ....utils.navigation import (
|
||||||
@@ -328,7 +327,7 @@ async def item_repr(entity_item: BotEntity, context: BotContext):
|
|||||||
|
|
||||||
item_text = f"<b><u><i>{entity_caption or entity_descriptor.name}:</i></u></b> <b>{entity_item_repr}</b>"
|
item_text = f"<b><u><i>{entity_caption or entity_descriptor.name}:</i></u></b> <b>{entity_item_repr}</b>"
|
||||||
|
|
||||||
user_permissions = get_user_permissions(user, entity_descriptor)
|
# user_permissions = get_user_permissions(user, entity_descriptor)
|
||||||
|
|
||||||
for field_descriptor in entity_descriptor.fields_descriptors.values():
|
for field_descriptor in entity_descriptor.fields_descriptors.values():
|
||||||
if (
|
if (
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ class Config(BaseSettings):
|
|||||||
env_file=".env", env_ignore_empty=True, extra="ignore"
|
env_file=".env", env_ignore_empty=True, extra="ignore"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
STACK_NAME: str = "quickbot"
|
||||||
|
|
||||||
SECRET_KEY: str = "changethis"
|
SECRET_KEY: str = "changethis"
|
||||||
|
|
||||||
ENVIRONMENT: Literal["local", "staging", "production"] = "local"
|
ENVIRONMENT: Literal["local", "staging", "production"] = "local"
|
||||||
|
|||||||
Reference in New Issue
Block a user