fix imports
This commit is contained in:
parent
0dd5719169
commit
5bc8ff4c70
3 changed files with 21 additions and 3 deletions
|
|
@ -2,4 +2,8 @@
|
||||||
Telegram Bridge.
|
Telegram Bridge.
|
||||||
|
|
||||||
Provides a bridge between Telegram API and HTTP API for sending and receiving messages.
|
Provides a bridge between Telegram API and HTTP API for sending and receiving messages.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from api import TelegramApiClient
|
||||||
|
from database import init_db
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,14 @@
|
||||||
API module for Telegram interaction.
|
API module for Telegram interaction.
|
||||||
|
|
||||||
Provides client, middleware, and models for interacting with the Telegram API.
|
Provides client, middleware, and models for interacting with the Telegram API.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from api.client import TelegramApiClient
|
||||||
|
from api.middleware import TelegramMiddleware, handle_telegram_errors
|
||||||
|
from api.models import (
|
||||||
|
ChatModel,
|
||||||
|
MessageModel,
|
||||||
|
MessageContextModel,
|
||||||
|
SendMessageRequest,
|
||||||
|
SendMessageResponse
|
||||||
|
)
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,8 @@
|
||||||
Database module for the Telegram bridge.
|
Database module for the Telegram bridge.
|
||||||
|
|
||||||
Provides ORM models, connection management, and repositories for data access.
|
Provides ORM models, connection management, and repositories for data access.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from database.base import init_db, get_session
|
||||||
|
from database.models import Chat, Message
|
||||||
|
from database.repositories import ChatRepository, MessageRepository
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue