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:
parent
548cf714e8
commit
3cfce76ba1
1 changed files with 6 additions and 3 deletions
|
@ -210,10 +210,13 @@ pub(crate) mod telegram_ext {
|
||||||
let text = Self::text(&event, &replies);
|
let text = Self::text(&event, &replies);
|
||||||
|
|
||||||
let mut request = bot.send_message(chat_id, text)
|
let mut request = bot.send_message(chat_id, text)
|
||||||
.parse_mode(ParseMode::Html)
|
.parse_mode(ParseMode::Html);
|
||||||
.reply_markup(
|
|
||||||
|
if !event.has_started() {
|
||||||
|
request = request.reply_markup(
|
||||||
Self::reply_markup(matchmaking_id)
|
Self::reply_markup(matchmaking_id)
|
||||||
);
|
)
|
||||||
|
}
|
||||||
|
|
||||||
if let Some(reply_to) = reply_to {
|
if let Some(reply_to) = reply_to {
|
||||||
request = request.reply_parameters(
|
request = request.reply_parameters(
|
||||||
|
|
Loading…
Reference in a new issue