Diff
Logged in as anonymous

Differences From Artifact [d4786b06c7]:

To Artifact [2d290348b2]:


1
2
3
4
5
6
7
8
9

10



11
12
13
14
15
16
17


18
19

20
21
22
23
24
1
2
3
4
5
6
7
8
9
10

11
12
13
14
15
16
17
18
19

20
21
22

23
24
25
26
27
28









+
-
+
+
+






-
+
+

-
+





//! This is telegram bot to fetch RSS/ATOM feeds and post results on public
//! channels

#![warn(missing_docs)]

mod command;
mod core;
mod sql;

use stacked_errors::{
use anyhow::Result;
	Result,
	StackableErr,
};
use tgbot::handler::LongPoll;

#[async_std::main]
async fn main() -> Result<()> {
	let settings = config::Config::builder()
		.add_source(config::File::with_name("rsstg"))
		.build()?;
		.build()
		.stack()?;

	let core = core::Core::new(settings).await?;
	let core = core::Core::new(settings).await.stack()?;

	LongPoll::new(core.tg.clone(), core).run().await;

	Ok(())
}