From 3b6af18318d316c3ea1118003114ff56ca4fa95d Mon Sep 17 00:00:00 2001 From: AdriDevelopsThings Date: Thu, 4 Jan 2024 17:10:47 +0100 Subject: [PATCH] fix: message entity hashtag and cashtag name (#36) Co-authored-by: Calli --- src/model/message_entity.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/model/message_entity.rs b/src/model/message_entity.rs index 862daec..4589ad6 100644 --- a/src/model/message_entity.rs +++ b/src/model/message_entity.rs @@ -11,10 +11,10 @@ pub enum MessageEntity { #[serde(rename = "mention")] Mention(TextBlock), /// A hashtag (`#hashtag`) - #[serde(rename = "hash_tag")] + #[serde(rename = "hashtag")] HashTag(TextBlock), /// A cashtag (`$USD`) - #[serde(rename = "cash_tag")] + #[serde(rename = "cashtag")] CashTag(TextBlock), /// A bot command (`/start@bot_name`) #[serde(rename = "bot_command")]