chore: refactor message sending (#172)

* refactor send message

* refactor resend

* fix

* refactor

* clean up
This commit is contained in:
reya
2025-09-30 08:59:38 +07:00
committed by GitHub
parent 880ba30d20
commit 0db48bc003
6 changed files with 337 additions and 322 deletions
+2 -2
View File
@@ -14,8 +14,8 @@ impl Message {
Self::User(user.into())
}
pub fn warning(content: String) -> Self {
Self::Warning(content, Timestamp::now())
pub fn warning(content: impl Into<String>) -> Self {
Self::Warning(content.into(), Timestamp::now())
}
pub fn system() -> Self {