Temp: Removed animation support
This commit is contained in:
@@ -4,5 +4,5 @@ from enum import Enum
|
||||
class SubmissionType(Enum):
|
||||
DOCUMENT = "document"
|
||||
VIDEO = "video"
|
||||
ANIMATION = "animation"
|
||||
# ANIMATION = "animation"
|
||||
PHOTO = "photo"
|
||||
|
@@ -199,15 +199,15 @@ class PyroClient(PyroClient):
|
||||
),
|
||||
caption="queue",
|
||||
)
|
||||
elif db_entry["type"] == SubmissionType.ANIMATION.value:
|
||||
response = await video_upload(
|
||||
self.config["posting"]["api"]["album"],
|
||||
client=client,
|
||||
multipart_data=BodyVideoUpload(
|
||||
File(media_bytes, filepath.name, "video/*")
|
||||
),
|
||||
caption="queue",
|
||||
)
|
||||
# elif db_entry["type"] == SubmissionType.ANIMATION.value:
|
||||
# response = await video_upload(
|
||||
# self.config["posting"]["api"]["album"],
|
||||
# client=client,
|
||||
# multipart_data=BodyVideoUpload(
|
||||
# File(media_bytes, filepath.name, "video/*")
|
||||
# ),
|
||||
# caption="queue",
|
||||
# )
|
||||
except UnexpectedStatus as exp:
|
||||
raise SubmissionUnsupportedError(str(filepath)) from exp
|
||||
|
||||
|
Reference in New Issue
Block a user