mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-10 20:12:25 +01:00
Make {Json,Multipart}Request
clonable
This is required for the new `Throttle` design
This commit is contained in:
parent
43802a5c41
commit
0a03431653
2 changed files with 2 additions and 0 deletions
|
@ -10,6 +10,7 @@ use crate::{
|
|||
///
|
||||
/// [JSON]: https://core.telegram.org/bots/api#making-requests
|
||||
#[must_use = "Requests are lazy and do nothing unless sent"]
|
||||
#[derive(Clone)]
|
||||
pub struct JsonRequest<P> {
|
||||
bot: Bot,
|
||||
payload: P,
|
||||
|
|
|
@ -11,6 +11,7 @@ use crate::{
|
|||
///
|
||||
/// [multipart/form-data]: https://core.telegram.org/bots/api#making-requests
|
||||
#[must_use = "Requests are lazy and do nothing unless sent"]
|
||||
#[derive(Clone)]
|
||||
pub struct MultipartRequest<P> {
|
||||
bot: Bot,
|
||||
payload: P,
|
||||
|
|
Loading…
Reference in a new issue