mirror of
https://github.com/house-of-vanity/desubot.git
synced 2025-07-06 20:24:08 +00:00
Fix /markov in private chats
This commit is contained in:
@ -140,13 +140,23 @@ pub async fn handler(
|
||||
.await?
|
||||
}
|
||||
"/markov" => {
|
||||
Markov {
|
||||
data: "".to_string(),
|
||||
if title != "PRIVATE" {
|
||||
Markov {
|
||||
data: "".to_string(),
|
||||
}
|
||||
.exec(&api, &message)
|
||||
.await?
|
||||
} else {
|
||||
let _ = api
|
||||
.send(
|
||||
message
|
||||
.text_reply("Allowed in groups only")
|
||||
.parse_mode(ParseMode::Html),
|
||||
)
|
||||
.await?;
|
||||
}
|
||||
.exec(&api, &message)
|
||||
.await?
|
||||
}
|
||||
s if s == "/scheme" || s == "/schema" => {
|
||||
"/scheme" | "/schema" => {
|
||||
Scheme {
|
||||
data: "".to_string(),
|
||||
}
|
||||
|
Reference in New Issue
Block a user