Skip to main content

rustigram_types/
managed_bot.rs

1use serde::{Deserialize, Serialize};
2
3use crate::user::User;
4
5/// Service message: a new bot was created to be managed by the current bot.
6///
7/// Delivered inside [`Message`](crate::message::Message) via the
8/// `managed_bot_created` field. The bot's token can be fetched with
9/// `getManagedBotToken`.
10#[derive(Debug, Clone, Serialize, Deserialize)]
11pub struct ManagedBotCreated {
12    /// Information about the newly created managed bot.
13    pub bot: User,
14}