bot rafactor and bugfix

This commit is contained in:
2025-08-19 04:45:16 +09:00
parent 43dda889f8
commit a8d860ed87
31 changed files with 4396 additions and 613 deletions

View File

@@ -26,8 +26,8 @@ class Post(Base):
bot_id: Mapped[Optional[int]] = mapped_column(ForeignKey("bots.id", ondelete="SET NULL"), nullable=True)
channel_id: Mapped[int] = mapped_column(ForeignKey("channels.id", ondelete="CASCADE"))
type: Mapped[PostType] = mapped_column(Enum(PostType))
text: Mapped[Optional[str]] = mapped_column(String(4096))
type: Mapped[PostType] = mapped_column()
text: Mapped[str | None] = mapped_column(String(4096))
media_file_id: Mapped[Optional[str]] = mapped_column(String(512))
parse_mode: Mapped[Optional[str]] = mapped_column(String(16))
keyboard_id: Mapped[Optional[int]] = mapped_column(ForeignKey("keyboards.id", ondelete="SET NULL"))