fix double serialization

This commit is contained in:
p0lunin 2020-01-09 20:35:10 +02:00
parent a183494ea3
commit 1743c24026
53 changed files with 53 additions and 53 deletions

View file

@ -49,7 +49,7 @@ impl Request for AnswerCallbackQuery<'_> {
self.bot.client(),
self.bot.token(),
"answerCallbackQuery",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -58,7 +58,7 @@ impl Request for AnswerInlineQuery<'_> {
self.bot.client(),
self.bot.token(),
"answerInlineQuery",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -42,7 +42,7 @@ impl Request for AnswerPreCheckoutQuery<'_> {
self.bot.client(),
self.bot.token(),
"answerPreCheckoutQuery",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -42,7 +42,7 @@ impl Request for AnswerShippingQuery<'_> {
self.bot.client(),
self.bot.token(),
"answerShippingQuery",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -30,7 +30,7 @@ impl Request for DeleteChatPhoto<'_> {
self.bot.client(),
self.bot.token(),
"deleteChatPhoto",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -32,7 +32,7 @@ impl Request for DeleteChatStickerSet<'_> {
self.bot.client(),
self.bot.token(),
"deleteChatStickerSet",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -38,7 +38,7 @@ impl Request for DeleteMessage<'_> {
self.bot.client(),
self.bot.token(),
"deleteMessage",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -28,7 +28,7 @@ impl Request for DeleteStickerFromSet<'_> {
self.bot.client(),
self.bot.token(),
"deleteStickerFromSet",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -25,7 +25,7 @@ impl Request for DeleteWebhook<'_> {
self.bot.client(),
self.bot.token(),
"deleteWebhook",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -37,7 +37,7 @@ impl Request for EditMessageCaption<'_> {
self.bot.client(),
self.bot.token(),
"editMessageCaption",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -37,7 +37,7 @@ impl Request for EditMessageLiveLocation<'_> {
self.bot.client(),
self.bot.token(),
"editMessageLiveLocation",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -32,7 +32,7 @@ impl Request for EditMessageReplyMarkup<'_> {
self.bot.client(),
self.bot.token(),
"editMessageReplyMarkup",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -39,7 +39,7 @@ impl Request for EditMessageText<'_> {
self.bot.client(),
self.bot.token(),
"editMessageText",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -37,7 +37,7 @@ impl Request for ExportChatInviteLink<'_> {
self.bot.client(),
self.bot.token(),
"exportChatInviteLink",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -37,7 +37,7 @@ impl Request for ForwardMessage<'_> {
self.bot.client(),
self.bot.token(),
"forwardMessage",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -30,7 +30,7 @@ impl Request for GetChat<'_> {
self.bot.client(),
self.bot.token(),
"getChat",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -32,7 +32,7 @@ impl Request for GetChatAdministrators<'_> {
self.bot.client(),
self.bot.token(),
"getChatAdministrators",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -31,7 +31,7 @@ impl Request for GetChatMember<'_> {
self.bot.client(),
self.bot.token(),
"getChatMember",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -29,7 +29,7 @@ impl Request for GetChatMembersCount<'_> {
self.bot.client(),
self.bot.token(),
"getChatMembersCount",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -45,7 +45,7 @@ impl Request for GetFile<'_> {
self.bot.client(),
self.bot.token(),
"getFile",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -35,7 +35,7 @@ impl Request for GetGameHighScores<'_> {
self.bot.client(),
self.bot.token(),
"getGameHighScores",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -26,7 +26,7 @@ impl Request for GetMe<'_> {
self.bot.client(),
self.bot.token(),
"getMe",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -28,7 +28,7 @@ impl Request for GetStickerSet<'_> {
self.bot.client(),
self.bot.token(),
"getStickerSet",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -74,7 +74,7 @@ impl Request for GetUpdates<'_> {
self.bot.client(),
self.bot.token(),
"getUpdates",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -34,7 +34,7 @@ impl Request for GetUserProfilePhotos<'_> {
self.bot.client(),
self.bot.token(),
"getUserProfilePhotos",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -25,7 +25,7 @@ impl Request for GetWebhookInfo<'_> {
self.bot.client(),
self.bot.token(),
"getWebhookInfo",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -38,7 +38,7 @@ impl Request for KickChatMember<'_> {
self.bot.client(),
self.bot.token(),
"kickChatMember",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -29,7 +29,7 @@ impl Request for LeaveChat<'_> {
self.bot.client(),
self.bot.token(),
"leaveChat",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -37,7 +37,7 @@ impl Request for PinChatMessage<'_> {
self.bot.client(),
self.bot.token(),
"pinChatMessage",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -54,7 +54,7 @@ impl Request for PromoteChatMember<'_> {
self.bot.client(),
self.bot.token(),
"promoteChatMember",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -39,7 +39,7 @@ impl Request for RestrictChatMember<'_> {
self.bot.client(),
self.bot.token(),
"restrictChatMember",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -76,7 +76,7 @@ impl Request for SendChatAction<'_> {
self.bot.client(),
self.bot.token(),
"sendChatAction",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -46,7 +46,7 @@ impl Request for SendContact<'_> {
self.bot.client(),
self.bot.token(),
"sendContact",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -39,7 +39,7 @@ impl Request for SendGame<'_> {
self.bot.client(),
self.bot.token(),
"sendGame",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -83,7 +83,7 @@ impl Request for SendInvoice<'_> {
self.bot.client(),
self.bot.token(),
"sendInvoice",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -45,7 +45,7 @@ impl Request for SendLocation<'_> {
self.bot.client(),
self.bot.token(),
"sendLocation",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -53,7 +53,7 @@ impl Request for SendMessage<'_> {
self.bot.client(),
self.bot.token(),
"sendMessage",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -43,7 +43,7 @@ impl Request for SendPoll<'_> {
self.bot.client(),
self.bot.token(),
"sendPoll",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -52,7 +52,7 @@ impl Request for SendVenue<'_> {
self.bot.client(),
self.bot.token(),
"sendVenue",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -36,7 +36,7 @@ impl Request for SetChatAdministratorCustomTitle<'_> {
self.bot.client(),
self.bot.token(),
"setChatAdministratorCustomTitle",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -32,7 +32,7 @@ impl Request for SetChatDescription<'_> {
self.bot.client(),
self.bot.token(),
"setChatDescription",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -32,7 +32,7 @@ impl Request for SetChatPermissions<'_> {
self.bot.client(),
self.bot.token(),
"sendChatPermissions",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -33,7 +33,7 @@ impl Request for SetChatPhoto<'_> {
self.bot.client(),
self.bot.token(),
"setChatPhoto",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -34,7 +34,7 @@ impl Request for SetChatStickerSet<'_> {
self.bot.client(),
self.bot.token(),
"setChatStickerSet",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -32,7 +32,7 @@ impl Request for SetChatTitle<'_> {
self.bot.client(),
self.bot.token(),
"setChatTitle",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -41,7 +41,7 @@ impl Request for SetGameScore<'_> {
self.bot.client(),
self.bot.token(),
"setGameScore",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -30,7 +30,7 @@ impl Request for SetStickerPositionInSet<'_> {
self.bot.client(),
self.bot.token(),
"setStickerPositionInSet",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -57,7 +57,7 @@ impl Request for SetWebhook<'_> {
self.bot.client(),
self.bot.token(),
"setWebhook",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -32,7 +32,7 @@ impl Request for StopMessageLiveLocation<'_> {
self.bot.client(),
self.bot.token(),
"stopMessageLiveLocation",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -33,7 +33,7 @@ impl Request for StopPoll<'_> {
self.bot.client(),
self.bot.token(),
"stopPoll",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -33,7 +33,7 @@ impl Request for UnbanChatMember<'_> {
self.bot.client(),
self.bot.token(),
"unbanChatMember",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -31,7 +31,7 @@ impl Request for UnpinChatMessage<'_> {
self.bot.client(),
self.bot.token(),
"unpinChatMessage",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}

View file

@ -32,7 +32,7 @@ impl Request for UploadStickerFile<'_> {
self.bot.client(),
self.bot.token(),
"uploadStickerFile",
&serde_json::to_string(self).unwrap(),
&self,
)
.await
}