use crate::client::Bot;
use serde::Serialize;
#[derive(Clone, Debug, Serialize)]
pub struct GetWebhookInfo {}
impl GetWebhookInfo {
#[must_use]
pub const fn new() -> Self {
Self {}
}
}
impl Default for GetWebhookInfo {
fn default() -> Self {
Self::new()
}
}
impl super::TelegramMethod for GetWebhookInfo {
type Method = Self;
type Return = crate::types::WebhookInfo;
fn build_request<Client>(self, _bot: &Bot<Client>) -> super::Request<Self::Method> {
super::Request::new("getWebhookInfo", self, None)
}
}