mirror of
http://shenjack.top:5100/shenjack/icalingua-python-bot.git
synced 2024-11-23 12:41:05 +08:00
添加 sender_name api
This commit is contained in:
parent
585f0ca331
commit
8c52d898ff
|
@ -93,6 +93,8 @@ impl NewMessagePy {
|
||||||
#[getter]
|
#[getter]
|
||||||
pub fn get_sender_id(&self) -> i64 { self.msg.sender_id() }
|
pub fn get_sender_id(&self) -> i64 { self.msg.sender_id() }
|
||||||
#[getter]
|
#[getter]
|
||||||
|
pub fn get_sender_name(&self) -> String { self.msg.sender_name().clone() }
|
||||||
|
#[getter]
|
||||||
pub fn get_is_from_self(&self) -> bool { self.msg.is_from_self() }
|
pub fn get_is_from_self(&self) -> bool { self.msg.is_from_self() }
|
||||||
#[getter]
|
#[getter]
|
||||||
pub fn get_is_reply(&self) -> bool { self.msg.is_reply() }
|
pub fn get_is_reply(&self) -> bool { self.msg.is_reply() }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user