Skip to main content

ronami_core/payloads/
replace_managed_bot_token.rs

1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::UserId;
6
7impl_payload! {
8    /// Use this method to revoke the current token of a managed bot and generate a new one. Returns the new token as String on success.
9    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
10    pub ReplaceManagedBotToken (ReplaceManagedBotTokenSetters) => String {
11        required {
12            /// Unique identifier of the target user
13            pub user_id: UserId,
14        }
15    }
16}