Lines of
src/main.rs
from check-in bb89b6fab8
that are changed by the sequence of edits moving toward
check-in 44575a91d3:
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:
bb89b6fab8 2025-06-15 10: use anyhow::Result;
11: use tgbot::handler::LongPoll;
12:
13: #[async_std::main]
14: async fn main() -> Result<()> {
15: let settings = config::Config::builder()
16: .add_source(config::File::with_name("rsstg"))
bb89b6fab8 2025-06-15 17: .build()?;
18:
bb89b6fab8 2025-06-15 19: let core = core::Core::new(settings).await?;
20:
21: LongPoll::new(core.tg.clone(), core).run().await;
22:
23: Ok(())
24: }