pub struct Group {
pub raw: Chat,
}Expand description
Typed wrapper over tl::types::Chat.
Fields§
§raw: ChatImplementations§
Source§impl Group
impl Group
Sourcepub fn from_raw(raw: Chat) -> Option<Self>
pub fn from_raw(raw: Chat) -> Option<Self>
Wrap from a raw tl::enums::Chat, returning None if it is not a
basic group (i.e. empty, forbidden, a channel, or a community).
Sourcepub fn participants_count(&self) -> i32
pub fn participants_count(&self) -> i32
Member count.
Sourcepub fn migrated_to(&self) -> Option<&InputChannel>
pub fn migrated_to(&self) -> Option<&InputChannel>
true if the group has been migrated to a supergroup.
Sourcepub fn as_input_peer(&self) -> InputPeer
pub fn as_input_peer(&self) -> InputPeer
Convert to an InputPeer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Group
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnsafeUnpin for Group
impl UnwindSafe for Group
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more