mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-03 09:49:07 +01:00
Update the docs of is_present()
method
This commit is contained in:
parent
c65996eb75
commit
1c6fc4aae0
1 changed files with 5 additions and 1 deletions
|
@ -260,10 +260,14 @@ impl ChatMemberKind {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns `true` if the user is currently present in the chat. i.e. if the
|
/// Returns `true` if the user is currently present in the chat. i.e. if the
|
||||||
/// user **hasn't** [left] or been [banned].
|
/// user **hasn't** [left] or been [banned]. It returns `false` if the user
|
||||||
|
/// left the chat, but was [restricted].
|
||||||
|
///
|
||||||
|
///
|
||||||
///
|
///
|
||||||
/// [left]: ChatMemberKind::Left
|
/// [left]: ChatMemberKind::Left
|
||||||
/// [banned]: ChatMemberKind::Banned
|
/// [banned]: ChatMemberKind::Banned
|
||||||
|
/// [restricted]: ChatMemberKind::Restricted
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn is_present(&self) -> bool {
|
pub fn is_present(&self) -> bool {
|
||||||
let is_restricted_non_member =
|
let is_restricted_non_member =
|
||||||
|
|
Loading…
Reference in a new issue