Expand description
Use this method to get the current default administrator rights of the bot. Returns ChatAdministratorRights on success.
Fields
for_channels: Option<bool>
Pass True to get default administrator rights of the bot in channels. Otherwise, default administrator rights of the bot for groups and supergroups will be returned.
Implementations
Trait Implementations
sourceimpl Clone for GetMyDefaultAdministratorRights
impl Clone for GetMyDefaultAdministratorRights
sourcefn clone(&self) -> GetMyDefaultAdministratorRights
fn clone(&self) -> GetMyDefaultAdministratorRights
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'de> Deserialize<'de> for GetMyDefaultAdministratorRights
impl<'de> Deserialize<'de> for GetMyDefaultAdministratorRights
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 GetMyDefaultAdministratorRights
impl Send for GetMyDefaultAdministratorRights
impl Sync for GetMyDefaultAdministratorRights
impl Unpin for GetMyDefaultAdministratorRights
impl UnwindSafe for GetMyDefaultAdministratorRights
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