Struct teloxide_core::payloads::ReopenForumTopic
source · pub struct ReopenForumTopic {
pub chat_id: Recipient,
pub message_thread_id: i32,
}
Expand description
Use this method to reopen a closed 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 ReopenForumTopic
impl Clone for ReopenForumTopic
source§impl Debug for ReopenForumTopic
impl Debug for ReopenForumTopic
source§impl Hash for ReopenForumTopic
impl Hash for ReopenForumTopic
source§impl PartialEq<ReopenForumTopic> for ReopenForumTopic
impl PartialEq<ReopenForumTopic> for ReopenForumTopic
source§fn eq(&self, other: &ReopenForumTopic) -> bool
fn eq(&self, other: &ReopenForumTopic) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Payload for ReopenForumTopic
impl Payload for ReopenForumTopic
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 ReopenForumTopic
impl Serialize for ReopenForumTopic
impl Eq for ReopenForumTopic
impl StructuralEq for ReopenForumTopic
impl StructuralPartialEq for ReopenForumTopic
Auto Trait Implementations§
impl RefUnwindSafe for ReopenForumTopic
impl Send for ReopenForumTopic
impl Sync for ReopenForumTopic
impl Unpin for ReopenForumTopic
impl UnwindSafe for ReopenForumTopic
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.