refactor: separate function for media ids

This commit is contained in:
VC
2022-11-05 07:57:03 +01:00
parent df75520175
commit de758c7bda
5 changed files with 68 additions and 48 deletions

View File

@@ -35,7 +35,7 @@ pub async fn get_user_timeline(
) -> Result<Vec<Tweet>, Box<dyn Error>> {
// fix the page size to 200 as it is the maximum Twitter authorizes
let (_, feed) = user_timeline(UserID::from(screen_name.to_owned()), true, false, token)
.with_page_size(20)
.with_page_size(200)
.older(lid)
.await?;