Struct teloxide_core::payloads::HideGeneralForumTopic
source · pub struct HideGeneralForumTopic {
pub chat_id: Recipient,
}
Expand description
Use this method to hide the ‘General’ topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights. The topic will be automatically closed if it was open. Returns True on success.
Fields§
§chat_id: Recipient
Unique identifier for the target chat or username of the target channel (in the format @channelusername
)
Implementations§
Trait Implementations§
source§impl Clone for HideGeneralForumTopic
impl Clone for HideGeneralForumTopic
source§impl Debug for HideGeneralForumTopic
impl Debug for HideGeneralForumTopic
source§impl Hash for HideGeneralForumTopic
impl Hash for HideGeneralForumTopic
source§impl PartialEq<HideGeneralForumTopic> for HideGeneralForumTopic
impl PartialEq<HideGeneralForumTopic> for HideGeneralForumTopic
source§fn eq(&self, other: &HideGeneralForumTopic) -> bool
fn eq(&self, other: &HideGeneralForumTopic) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Payload for HideGeneralForumTopic
impl Payload for HideGeneralForumTopic
source§fn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
If this payload may take long time to execute (e.g.
GetUpdates
with
big timeout
), the minimum timeout that should be used.source§impl Serialize for HideGeneralForumTopic
impl Serialize for HideGeneralForumTopic
impl Eq for HideGeneralForumTopic
impl StructuralEq for HideGeneralForumTopic
impl StructuralPartialEq for HideGeneralForumTopic
Auto Trait Implementations§
impl RefUnwindSafe for HideGeneralForumTopic
impl Send for HideGeneralForumTopic
impl Sync for HideGeneralForumTopic
impl Unpin for HideGeneralForumTopic
impl UnwindSafe for HideGeneralForumTopic
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.