pub struct EditForumTopic {
pub chat_id: Recipient,
pub message_thread_id: ThreadId,
pub name: Option<String>,
pub icon_custom_emoji_id: Option<CustomEmojiId>,
}Expand description
Use this method to edit name and icon of a topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have can_manage_topics administrator rights, unless it is the creator of the topic. Returns True on success.
Fields§
§chat_id: RecipientUnique identifier for the target chat or username of the target channel (in the format @channelusername)
message_thread_id: ThreadIdUnique identifier for the target message thread of the forum topic
name: Option<String>Topic name, 0-128 characters. If not specified or empty, the current name of the topic will be kept
icon_custom_emoji_id: Option<CustomEmojiId>Unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to get all allowed custom emoji identifiers. Pass an empty string to remove the icon. If not specified, the current icon will be kept
Implementations§
Trait Implementations§
Source§impl Clone for EditForumTopic
impl Clone for EditForumTopic
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EditForumTopic
impl Debug for EditForumTopic
Source§impl Hash for EditForumTopic
impl Hash for EditForumTopic
Source§impl PartialEq for EditForumTopic
impl PartialEq for EditForumTopic
Source§impl Payload for EditForumTopic
impl Payload for EditForumTopic
Source§fn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
GetUpdates with
big timeout), the minimum timeout that should be used.Source§impl Serialize for EditForumTopic
impl Serialize for EditForumTopic
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Eq for EditForumTopic
impl StructuralPartialEq for EditForumTopic
Auto Trait Implementations§
impl Freeze for EditForumTopic
impl RefUnwindSafe for EditForumTopic
impl Send for EditForumTopic
impl Sync for EditForumTopic
impl Unpin for EditForumTopic
impl UnwindSafe for EditForumTopic
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<P> EditForumTopicSetters for Pwhere
P: HasPayload<Payload = EditForumTopic>,
impl<P> EditForumTopicSetters for Pwhere
P: HasPayload<Payload = EditForumTopic>,
Source§fn message_thread_id(self, value: ThreadId) -> Self
fn message_thread_id(self, value: ThreadId) -> Self
message_thread_id field.Source§fn icon_custom_emoji_id(self, value: CustomEmojiId) -> Self
fn icon_custom_emoji_id(self, value: CustomEmojiId) -> Self
icon_custom_emoji_id field.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Erasable for T
impl<T> Erasable for T
Source§impl<P> HasPayload for Pwhere
P: Payload,
impl<P> HasPayload for Pwhere
P: Payload,
Source§fn payload_mut(&mut self) -> &mut <P as HasPayload>::Payload
fn payload_mut(&mut self) -> &mut <P as HasPayload>::Payload
Source§fn payload_ref(&self) -> &<P as HasPayload>::Payload
fn payload_ref(&self) -> &<P as HasPayload>::Payload
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more