614456ed35 2025-02-22 1: //! This is telegram bot to fetch RSS/ATOM feeds and post results on public
614456ed35 2025-02-22 2: //! channels
614456ed35 2025-02-22 3:
614456ed35 2025-02-22 4: #![warn(missing_docs)]
614456ed35 2025-02-22 5:
9171c791eb 2021-11-13 6: mod command;
9171c791eb 2021-11-13 7: mod core;
0340541002 2025-04-24 8: mod sql;
9171c791eb 2021-11-13 9:
9171c791eb 2021-11-13 10: use anyhow::Result;
bb89b6fab8 2025-06-15 11: use tgbot::handler::LongPoll;
9171c791eb 2021-11-13 12:
1c444d34ff 2024-08-28 13: #[async_std::main]
1c444d34ff 2024-08-28 14: async fn main() -> Result<()> {
28da2e2a00 2022-03-12 15: let settings = config::Config::builder()
28da2e2a00 2022-03-12 16: .add_source(config::File::with_name("rsstg"))
28da2e2a00 2022-03-12 17: .build()?;
9171c791eb 2021-11-13 18:
bb89b6fab8 2025-06-15 19: let core = core::Core::new(settings).await?;
e624ef9d66 2025-04-20 20:
bb89b6fab8 2025-06-15 21: LongPoll::new(core.tg.clone(), core).run().await;
61df933942 2020-11-18 22:
61df933942 2020-11-18 23: Ok(())
61df933942 2020-11-18 24: }