rustigram-types 0.9.9

Telegram Bot API type definitions for rustigram
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::{Deserialize, Serialize};

use crate::user::User;

/// Service message: a new bot was created to be managed by the current bot.
///
/// Delivered inside [`Message`](crate::message::Message) via the
/// `managed_bot_created` field. The bot's token can be fetched with
/// `getManagedBotToken`.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ManagedBotCreated {
    /// Information about the newly created managed bot.
    pub bot: User,
}