mirror of
https://github.com/FliegendeWurst/telegram_notes_bot.git
synced 2024-11-22 02:44:58 +00:00
Display scheduled reminder time
This commit is contained in:
parent
63aea33a9e
commit
b4fa0c2d24
@ -201,7 +201,7 @@ async fn process_one(update: Update, reminder_msg: &mut MessageId, reminder_text
|
|||||||
"time": remind_time.to_rfc3339(),
|
"time": remind_time.to_rfc3339(),
|
||||||
"task": *reminder_text
|
"task": *reminder_text
|
||||||
})).send().await?;
|
})).send().await?;
|
||||||
API.send(SendMessage::new(*OWNER, "Reminder saved :-)")).await?;
|
API.send(SendMessage::new(*OWNER, format!("Reminder scheduled for {} :-)", remind_time.format("%Y-%m-%d %H:%M")))).await?;
|
||||||
*reminder_text = String::new();
|
*reminder_text = String::new();
|
||||||
},
|
},
|
||||||
_ => {}
|
_ => {}
|
||||||
|
Loading…
Reference in New Issue
Block a user