Lines of
src/main.rs
from check-in 42b29b744b
that are changed by the sequence of edits moving toward
check-in dc7c43b010:
1: //! This is telegram bot to fetch RSS/ATOM feeds and post results on public
2: //! channels
3:
4: #![warn(missing_docs)]
5:
6: mod command;
7: mod core;
8: mod sql;
9:
10: use stacked_errors::{
11: Result,
12: StackableErr,
13: };
14: use tgbot::handler::LongPoll;
15:
42b29b744b 2026-01-01 16: #[async_std::main]
42b29b744b 2026-01-01 17: async fn main() -> Result<()> {
18: let settings = config::Config::builder()
19: .set_default("api_gateway", "https://api.telegram.org").stack()?
20: .add_source(config::File::with_name("rsstg"))
21: .build()
22: .stack()?;
23:
24: let core = core::Core::new(settings).await.stack()?;
25:
26: LongPoll::new(core.tg.clone(), core).run().await;
27:
28: Ok(())
29: }