Skip to main content

teloxide_core_ng/payloads/
close.rs

1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::True;
6
7impl_payload! {
8    /// Use this method to close the bot instance before moving it from one local server to another. You need to delete the webhook before calling this method to ensure that the bot isn't launched again after server restart. The method will return error 429 in the first 10 minutes after the bot is launched. Returns _True_ on success. Requires no parameters.
9    #[derive(Debug, PartialEq, Eq, Hash, Default, Clone, Serialize)]
10    pub Close (CloseSetters) => True {
11
12    }
13}