pub struct Group {
pub raw: Chat,
}Expand description
Wrapper around a basic Telegram group (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, or a channel).
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more