mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-23 06:51:01 +01:00
Merge pull request #46 from async-telegram-bot/remove_reqwest_rasync_imports
Remove uses of deprecated `reqwest::r#async`
This commit is contained in:
commit
7ec0a69fb8
3 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
use reqwest::r#async::Client;
|
use reqwest::Client;
|
||||||
|
|
||||||
use crate::requests::RequestContext;
|
use crate::requests::RequestContext;
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|
||||||
use reqwest::r#async::multipart::Form;
|
use reqwest::multipart::Form;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
requests::utils,
|
requests::utils,
|
||||||
types::{InputMedia, ParseMode, ChatId},
|
types::{InputMedia, ParseMode, ChatId},
|
||||||
};
|
};
|
||||||
|
|
||||||
/// This is a convenient struct that builds `reqwest::r#async::multipart::Form`
|
/// This is a convenient struct that builds `reqwest::multipart::Form`
|
||||||
/// from scratch.
|
/// from scratch.
|
||||||
pub struct FormBuilder {
|
pub struct FormBuilder {
|
||||||
form: Form,
|
form: Form,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
use async_trait::async_trait;
|
use async_trait::async_trait;
|
||||||
use reqwest::r#async::Client;
|
use reqwest::Client;
|
||||||
use serde::de::DeserializeOwned;
|
use serde::de::DeserializeOwned;
|
||||||
|
|
||||||
use crate::RequestError;
|
use crate::RequestError;
|
||||||
|
|
Loading…
Reference in a new issue