ref
This commit is contained in:
@@ -71,6 +71,14 @@ def CreativeNotFound(creative_id: uuid.UUID | None = None) -> HTTPException:
|
||||
return HTTPException(status.HTTP_404_NOT_FOUND, f'Creative {creative_id} not found')
|
||||
|
||||
|
||||
def CreativeInviteLinkNotFound() -> HTTPException:
|
||||
return HTTPException(status.HTTP_400_BAD_REQUEST, 'Creative text must contain one invite link (t.me/+xxx)')
|
||||
|
||||
|
||||
def CreativeMultipleInviteLinks() -> HTTPException:
|
||||
return HTTPException(status.HTTP_400_BAD_REQUEST, 'Creative text must contain only one invite link')
|
||||
|
||||
|
||||
def CreativeInUse(creative_id: uuid.UUID) -> HTTPException:
|
||||
return HTTPException(
|
||||
status.HTTP_400_BAD_REQUEST,
|
||||
|
||||
Reference in New Issue
Block a user