Struct teloxide_core::payloads::CreateForumTopic
source · pub struct CreateForumTopic {
pub chat_id: Recipient,
pub name: String,
pub icon_color: u32,
pub icon_custom_emoji_id: String,
}
Expand description
Use this method to create a 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. Returns information about the created topic as a ForumTopic
object.
Fields§
§chat_id: Recipient
Unique identifier for the target chat or username of the target channel (in the format @channelusername
)
name: String
Topic name, 1-128 characters
icon_color: u32
Color of the topic icon in RGB format. Currently, must be one of 7322096 (0x6FB9F0), 16766590 (0xFFD67E), 13338331 (0xCB86DB), 9367192 (0x8EEE98), 16749490 (0xFF93B2), or 16478047 (0xFB6F5F)
icon_custom_emoji_id: String
Unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers
to get all allowed custom emoji identifiers.
Implementations§
Trait Implementations§
source§impl Clone for CreateForumTopic
impl Clone for CreateForumTopic
source§impl Debug for CreateForumTopic
impl Debug for CreateForumTopic
source§impl Hash for CreateForumTopic
impl Hash for CreateForumTopic
source§impl PartialEq<CreateForumTopic> for CreateForumTopic
impl PartialEq<CreateForumTopic> for CreateForumTopic
source§fn eq(&self, other: &CreateForumTopic) -> bool
fn eq(&self, other: &CreateForumTopic) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Payload for CreateForumTopic
impl Payload for CreateForumTopic
§type Output = ForumTopic
type Output = ForumTopic
The return type of a Telegram method. Read more
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 CreateForumTopic
impl Serialize for CreateForumTopic
impl Eq for CreateForumTopic
impl StructuralEq for CreateForumTopic
impl StructuralPartialEq for CreateForumTopic
Auto Trait Implementations§
impl RefUnwindSafe for CreateForumTopic
impl Send for CreateForumTopic
impl Sync for CreateForumTopic
impl Unpin for CreateForumTopic
impl UnwindSafe for CreateForumTopic
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.