apid_telegram_bot/calls/misc/log_out.rs
1use apid::Call;
2use serde::{Deserialize, Serialize};
3
4/// Use this method to log out from the cloud Bot API server before launching the bot locally.
5/// You must log out the bot before running it locally, otherwise there is no guarantee that the bot will receive updates.
6/// After a successful call, you can immediately log in on a local server, but will not be able to log in back to the cloud Bot API server for 10 minutes.
7/// Returns *True* on success.
8/// Requires no parameters.
9#[derive(Debug, PartialEq, Serialize, Deserialize)]
10pub struct LogOut {}
11
12impl Call for LogOut {
13 type Response = bool;
14}