Struct telers::methods::edit_forum_topic::EditForumTopic
source · pub struct EditForumTopic {
pub chat_id: ChatIdKind,
pub message_thread_id: i64,
pub name: Option<String>,
pub icon_custom_emoji_id: Option<String>,
}
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.
§Documentation
https://core.telegram.org/bots/api#editforumtopic
§Returns
Returns true
on success
Fields§
§chat_id: ChatIdKind
Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername
)
message_thread_id: i64
Unique identifier for the target message thread of the forum topic
name: Option<String>
New topic name, 0-128 characters. If not specified or empty, the current name of the topic will be kept
icon_custom_emoji_id: Option<String>
New 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§
source§impl EditForumTopic
impl EditForumTopic
pub fn new(chat_id: impl Into<ChatIdKind>, message_thread_id: i64) -> Self
pub fn chat_id(self, val: impl Into<ChatIdKind>) -> Self
pub fn message_thread_id(self, val: i64) -> Self
pub fn name(self, val: impl Into<String>) -> Self
pub fn icon_custom_emoji_id(self, val: impl Into<String>) -> Self
source§impl EditForumTopic
impl EditForumTopic
pub fn icon_custom_emoji_id_option(self, val: Option<impl Into<String>>) -> Self
Trait Implementations§
source§impl AsRef<EditForumTopic> for EditForumTopic
impl AsRef<EditForumTopic> for EditForumTopic
source§impl Clone for EditForumTopic
impl Clone for EditForumTopic
source§fn clone(&self) -> EditForumTopic
fn clone(&self) -> 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 Serialize for EditForumTopic
impl Serialize for EditForumTopic
source§impl TelegramMethod for EditForumTopic
impl TelegramMethod for EditForumTopic
§type Method = EditForumTopic
type Method = EditForumTopic
§type Return = bool
type Return = bool
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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.