Skip to main content

ronami_core/payloads/
get_chat.rs

1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::ChatFullInfo;
6use crate::types::Recipient;
7
8impl_payload! {
9    /// Use this method to get up to date information about the chat (current name of the user for one-on-one conversations, current username of a user, group or channel, etc.). Returns a [`ChatFullInfo`] object on success.
10    ///
11    /// [`ChatFullInfo`]: crate::types::ChatFullInfo
12    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
13    pub GetChat (GetChatSetters) => ChatFullInfo {
14        required {
15            /// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`)
16            pub chat_id: Recipient [into],
17        }
18    }
19}