telexide 0.1.17

An async Rust library for the telegram bot API.
Documentation
1
2
3
4
5
6
use super::types::CommandResult;
use crate::{client::Context, model::Message};
use std::{future::Future, pin::Pin};

pub(crate) type CommandOutcome = Pin<Box<dyn Future<Output = CommandResult> + Send>>;
pub(crate) type CommandHandlerFunc = fn(Context, Message) -> CommandOutcome;