Struct teloxide_core::payloads::CloseForumTopic
source · pub struct CloseForumTopic {
pub chat_id: Recipient,
pub message_thread_id: i32,
}
Expand description
Use this method to close an open 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, unless it is the creator of the topic. Returns True on success.
Fields§
§chat_id: Recipient
Unique identifier for the target chat or username of the target channel (in the format @channelusername
)
message_thread_id: i32
Unique identifier for the target message thread of the forum topic
Implementations§
Trait Implementations§
source§impl Clone for CloseForumTopic
impl Clone for CloseForumTopic
source§impl Debug for CloseForumTopic
impl Debug for CloseForumTopic
source§impl Hash for CloseForumTopic
impl Hash for CloseForumTopic
source§impl PartialEq<CloseForumTopic> for CloseForumTopic
impl PartialEq<CloseForumTopic> for CloseForumTopic
source§fn eq(&self, other: &CloseForumTopic) -> bool
fn eq(&self, other: &CloseForumTopic) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Payload for CloseForumTopic
impl Payload for CloseForumTopic
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 CloseForumTopic
impl Serialize for CloseForumTopic
impl Eq for CloseForumTopic
impl StructuralEq for CloseForumTopic
impl StructuralPartialEq for CloseForumTopic
Auto Trait Implementations§
impl RefUnwindSafe for CloseForumTopic
impl Send for CloseForumTopic
impl Sync for CloseForumTopic
impl Unpin for CloseForumTopic
impl UnwindSafe for CloseForumTopic
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.