-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add a command to show the list of headquarters
- Loading branch information
1 parent
24229d2
commit f0bb406
Showing
3 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
use teloxide::payloads::SendMessageSetters; | ||
use teloxide::{requests::Requester, types::Message, Bot}; | ||
use teloxide::types::ParseMode::MarkdownV2; | ||
|
||
use crate::models::errors::BotErrors; | ||
|
||
const MESSAGE: &'static str = r#" | ||
*Sede Rectorado* | ||
Tel: \(0220\) 483 4150 | ||
[Belgrano 369 \- San Antonio de Padua](https://maps.app.goo.gl/6Yz6BKtcaTdcnxaz7) | ||
Lunes a viernes de 9 a 16 hs | ||
*CAMPUS UNIVERSITARIO* | ||
[Av\. Dr\. Ricardo Balbín 2048\-2098, Merlo](https://maps.app.goo.gl/XpKfohxjGXmSu8dP9) | ||
Lunes a viernes de 9 a 20 hs | ||
*Sede Centenario* | ||
[Centenario 1399 y Lavallol de Acosta \- San Antonio de Padua](https://maps.app.goo.gl/qMegZX6vxGE4bubr9) | ||
Tel: \(0220\) 483 5390 | ||
Lunes a viernes de 9 a 20 hs | ||
*Sede Córdoba* | ||
[Córdoba 1055 \- Merlo](https://maps.app.goo.gl/mFQ4Wo8pmbHb8RJr5) | ||
Tel: \(0220\) 482 0799 | ||
Lunes a viernes de 8 a 18 hs | ||
*Hospital Odontológico* | ||
[Moreno y pte\. Perón \- Merlo](https://maps.app.goo.gl/mVqNtUY9H1uDJZbWA) | ||
"#; | ||
|
||
|
||
pub async fn sedes(msg: &Message, bot: &Bot) -> Result<(), BotErrors> { | ||
bot.send_message(msg.chat.id, MESSAGE).parse_mode(MarkdownV2).await?; | ||
|
||
Ok(()) | ||
} |