Struct teloxide_core::payloads::DeleteForumTopic
source · pub struct DeleteForumTopic {
pub chat_id: Recipient,
pub message_thread_id: i32,
}
Expand description
Use this method to delete a forum topic along with all its messages in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_delete_messages administrator rights. 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 DeleteForumTopic
impl Clone for DeleteForumTopic
source§impl Debug for DeleteForumTopic
impl Debug for DeleteForumTopic
source§impl Hash for DeleteForumTopic
impl Hash for DeleteForumTopic
source§impl PartialEq<DeleteForumTopic> for DeleteForumTopic
impl PartialEq<DeleteForumTopic> for DeleteForumTopic
source§fn eq(&self, other: &DeleteForumTopic) -> bool
fn eq(&self, other: &DeleteForumTopic) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Payload for DeleteForumTopic
impl Payload for DeleteForumTopic
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 DeleteForumTopic
impl Serialize for DeleteForumTopic
impl Eq for DeleteForumTopic
impl StructuralEq for DeleteForumTopic
impl StructuralPartialEq for DeleteForumTopic
Auto Trait Implementations§
impl RefUnwindSafe for DeleteForumTopic
impl Send for DeleteForumTopic
impl Sync for DeleteForumTopic
impl Unpin for DeleteForumTopic
impl UnwindSafe for DeleteForumTopic
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.