1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-25 04:24:20 +00:00

Only send matchmaking keyboard if the event hasn't started yet

This commit is contained in:
Steffo 2024-08-19 04:12:08 +02:00
parent 548cf714e8
commit 3cfce76ba1
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -210,10 +210,13 @@ pub(crate) mod telegram_ext {
let text = Self::text(&event, &replies);
let mut request = bot.send_message(chat_id, text)
.parse_mode(ParseMode::Html)
.reply_markup(
.parse_mode(ParseMode::Html);
if !event.has_started() {
request = request.reply_markup(
Self::reply_markup(matchmaking_id)
);
)
}
if let Some(reply_to) = reply_to {
request = request.reply_parameters(