fix: message id in MessageForward should be i32
This commit is contained in:
parent
2acda3087b
commit
091a42bf31
@ -9,18 +9,18 @@ use crate::CallDB;
|
|||||||
pub struct MessageForward {
|
pub struct MessageForward {
|
||||||
pub _id: bson::oid::ObjectId,
|
pub _id: bson::oid::ObjectId,
|
||||||
pub chat_id: i64,
|
pub chat_id: i64,
|
||||||
pub message_id: i64,
|
pub message_id: i32,
|
||||||
pub source_chat_id: i64,
|
pub source_chat_id: i64,
|
||||||
pub source_message_id: i64,
|
pub source_message_id: i32,
|
||||||
pub reply: bool,
|
pub reply: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl MessageForward {
|
impl MessageForward {
|
||||||
pub fn new(
|
pub fn new(
|
||||||
chat_id: i64,
|
chat_id: i64,
|
||||||
message_id: i64,
|
message_id: i32,
|
||||||
source_chat_id: i64,
|
source_chat_id: i64,
|
||||||
source_message_id: i64,
|
source_message_id: i32,
|
||||||
reply: bool,
|
reply: bool,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
Self {
|
Self {
|
||||||
@ -45,7 +45,7 @@ impl MessageForward {
|
|||||||
pub async fn get<D: CallDB>(
|
pub async fn get<D: CallDB>(
|
||||||
db: &mut D,
|
db: &mut D,
|
||||||
chat_id: i64,
|
chat_id: i64,
|
||||||
message_id: i64,
|
message_id: i32,
|
||||||
) -> DbResult<Option<Self>> {
|
) -> DbResult<Option<Self>> {
|
||||||
let db = db.get_database().await;
|
let db = db.get_database().await;
|
||||||
let ci = db.collection::<Self>("message_forward");
|
let ci = db.collection::<Self>("message_forward");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user