new telegram bot

This commit is contained in:
Artem Tsyrulnikov
2025-12-28 15:50:06 +03:00
parent 69179c64be
commit 2fb8c83041
75 changed files with 3719 additions and 1046 deletions

View File

@@ -1,7 +1,9 @@
__all__ = (
'UpdateProjectInviteLinkTypeInput',
'UpdateProjectPermissionsInput',
'GetWorkspaceProjectsInput',
'GetWorkspaceProjectsOutput',
'GetProjectInput',
'DisconnectProjectByTgIdInput',
'ConnectProjectInput',
'ProjectOutput',
@@ -10,8 +12,10 @@ __all__ = (
'TelegramLoginInput',
'ChannelBotPermissions',
'ChannelOutput',
'GetChannelInput',
'GetChannelsInput',
'GetChannelsOutput',
'AttachChannelToWorkspaceInput',
'PurchasePlanChannelOutput',
'GetPurchasePlanChannelsInput',
'GetPurchasePlanChannelsOutput',
@@ -67,6 +71,8 @@ __all__ = (
'GetWorkspaceInvitesOutput',
)
from pydantic import BaseModel
from .analytics import (
ChannelAnalyticsOutput,
CreativeAnalyticsOutput,
@@ -82,7 +88,13 @@ from .analytics import (
PlacementAnalyticsOutput,
SpendingDataPoint,
)
from .channel import ChannelOutput, GetChannelsInput, GetChannelsOutput
from .channel import (
AttachChannelToWorkspaceInput,
ChannelOutput,
GetChannelInput,
GetChannelsInput,
GetChannelsOutput,
)
from .creative import (
CreateCreativeInput,
CreativeOutput,
@@ -105,9 +117,11 @@ from .project import (
ChannelBotPermissions,
ConnectProjectInput,
DisconnectProjectByTgIdInput,
GetProjectInput,
GetWorkspaceProjectsInput,
GetWorkspaceProjectsOutput,
ProjectOutput,
UpdateProjectInviteLinkTypeInput,
UpdateProjectPermissionsInput,
)
from .purchase_plan import (
@@ -144,3 +158,8 @@ from .workspace import (
WorkspacePermissionScopeInput,
WorkspacePermissionScopeOutput,
)
class CreateLoginTokenRequest(BaseModel):
telegram_id: int
username: str | None