feat: add instagram session file

This commit is contained in:
2025-09-28 01:26:04 +03:00
parent fd389020c8
commit 85f7b9d2fb
3 changed files with 21 additions and 4 deletions

View File

@@ -26,8 +26,8 @@ pub enum Error {
#[error("join error: {0}")]
Join(#[from] tokio::task::JoinError),
#[error("rate limit exceeded")]
RateLimit,
#[error("environment variable `{0}` not found")]
EnvNotFound(String),
#[error("other: {0}")]
Other(String),
@@ -53,6 +53,11 @@ impl Error {
pub fn validation_falied(text: impl Into<String>) -> Self {
Self::ValidationFailed(text.into())
}
#[inline]
pub fn env(text: impl Into<String>) -> Self {
Self::EnvNotFound(text.into())
}
}
pub type Result<T> = std::result::Result<T, Error>;