31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
};
},
None => {
core.send(&format!("🛑 None error."), None, None)?;
}
};
}
//Ok(())
}
async fn handle(update: telegram_bot::Update, core: &core::Core, mut _reply_to: &Option<telegram_bot::UserId>) -> Result<()> {
match update.kind {
telegram_bot::UpdateKind::Message(message) => {
match message.kind {
telegram_bot::MessageKind::Text { ref data, .. } => {
|
<
<
|
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
};
},
None => {
core.send(&format!("🛑 None error."), None, None)?;
}
};
}
}
async fn handle(update: telegram_bot::Update, core: &core::Core, mut _reply_to: &Option<telegram_bot::UserId>) -> Result<()> {
match update.kind {
telegram_bot::UpdateKind::Message(message) => {
match message.kind {
telegram_bot::MessageKind::Text { ref data, .. } => {
|