apid_telegram_bot/calls/misc/
close.rs

1use apid::Call;
2use serde::{Deserialize, Serialize};
3
4/// Use this method to close the bot instance before moving it from one local server to another.
5/// You need to delete the webhook before calling this method to ensure that the bot isn't launched again after server restart.
6/// The method will return error 429 in the first 10 minutes after the bot is launched.
7/// Returns *True* on success.
8/// Requires no parameters.
9#[derive(Debug, PartialEq, Serialize, Deserialize)]
10pub struct Close {}
11
12impl Call for Close {
13    type Response = bool;
14}