mirror of
https://gitlab.com/Anson-Projects/wiki-location-bot.git
synced 2025-06-16 07:06:42 +00:00
forgot start command
This commit is contained in:
parent
0ecb2d0ebd
commit
bc1f45895e
@ -47,7 +47,7 @@ async fn main() {
|
|||||||
}
|
}
|
||||||
MediaKind::Text(media_text) => {
|
MediaKind::Text(media_text) => {
|
||||||
let text = &media_text.text;
|
let text = &media_text.text;
|
||||||
if text.contains("/help") {
|
if text.contains("/help") || text.contains("/start") {
|
||||||
bot.send_message(msg.chat.id, help_text())
|
bot.send_message(msg.chat.id, help_text())
|
||||||
.parse_mode(teloxide::types::ParseMode::MarkdownV2)
|
.parse_mode(teloxide::types::ParseMode::MarkdownV2)
|
||||||
.await?;
|
.await?;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user