pub struct Service { /* private fields */ }Implementations§
Source§impl Service
impl Service
pub async fn send_cold_private_attachment( &self, telegram_user_id: i64, attachment: Attachment, ) -> Result<Value, Error>
pub async fn send_private_attachment( &self, telegram_user_id: i64, conversation_id: String, expected_conversation_id: Option<String>, attachment: Attachment, ) -> Result<Value, Error>
pub async fn send_group_attachment( &self, group_id: String, attachment: Attachment, ) -> Result<Value, Error>
pub async fn send_event_attachment( &self, event_id: String, conversation_id: String, attachment: Attachment, complete: bool, ) -> Result<Value, Error>
Source§impl Service
impl Service
pub fn status(&self) -> Status
pub async fn list_private_sessions(&self) -> Result<Vec<PrivateSession>, Error>
pub async fn send_private_message( &self, telegram_user_id: i64, conversation_id: String, expected_conversation_id: Option<String>, text: String, ) -> Result<Value, Error>
pub async fn send_cold_private_message( &self, telegram_user_id: i64, text: String, ) -> Result<Value, Error>
pub async fn send_group_message( &self, group_id: String, text: String, ) -> Result<Value, Error>
pub async fn list_group_ingress(&self) -> Result<Value, Error>
pub async fn complete_group_ingress( &self, batch_id: String, ) -> Result<Value, Error>
pub async fn list_group_session_updates(&self) -> Result<Value, Error>
pub async fn detach_group_session( &self, conversation_id: String, group_id: String, telegram_user_id: i64, ) -> Result<Value, Error>
pub async fn acknowledge_group_session_context( &self, conversation_id: String, through_message_id: i64, ) -> Result<Value, Error>
pub async fn complete_silent_group_reset( &self, conversation_id: String, ) -> Result<Value, Error>
pub async fn save_group_message_preparation( &self, chat_id: i64, message_id: i64, text: String, model: Option<String>, format: Option<String>, truncated: bool, ) -> Result<Value, Error>
pub async fn list_events(&self) -> Result<Value, Error>
pub async fn bind_event( &self, event_id: String, conversation_id: String, expected_conversation_id: Option<String>, ) -> Result<Value, Error>
pub async fn save_transcription( &self, event_id: String, text: String, transcription_model: String, ) -> Result<Value, Error>
pub async fn reply_event( &self, event_id: String, conversation_id: String, text: String, context_warning: Option<String>, ) -> Result<Value, Error>
pub async fn abort_event( &self, event_id: String, conversation_id: Option<String>, message: String, ) -> Result<Value, Error>
Sourcepub async fn interrupt_event(
&self,
event_id: String,
conversation_id: String,
) -> Result<Value, Error>
pub async fn interrupt_event( &self, event_id: String, conversation_id: String, ) -> Result<Value, Error>
Completes a user-interrupted event without clearing the conversation binding or sending a transport reply.
pub async fn complete_reset( &self, event_id: String, message: Option<String>, ) -> Result<Value, Error>
pub fn event_media(&self, event_id: &str) -> Result<Media, Error>
pub fn event_media_metadata( &self, event_id: &str, ) -> Result<MediaMetadata, Error>
pub fn group_message_media( &self, chat_id: i64, message_id: i64, ) -> Result<Media, Error>
pub fn group_message_media_metadata( &self, chat_id: i64, message_id: i64, ) -> Result<MediaMetadata, Error>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Service
impl !UnwindSafe for Service
impl Freeze for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl UnsafeUnpin for Service
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Erasable for T
impl<T> Erasable for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more