Struct telegram_bot_api::methods::GetChat
source · [−]pub struct GetChat {
pub chat_id: ChatId,
}
Expand description
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 Chat object on success.
Fields
chat_id: ChatId
Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for GetChat
impl<'de> Deserialize<'de> for GetChat
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for GetChat
impl Send for GetChat
impl Sync for GetChat
impl Unpin for GetChat
impl UnwindSafe for GetChat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more