teloxide/src/payloads/leave_chat.rs
Waffle 7600a88312 Fix SetWebhook
Make `GetUpdates::allowed_updates` optional
2021-03-06 00:48:06 +03:00

17 lines
631 B
Rust

// This file is auto generated by `cg` <https://github.com/teloxide/cg> (24572cd + local changes).
// **DO NOT EDIT THIS FILE**,
// edit `cg` instead.
use serde::Serialize;
use crate::types::ChatId;
impl_payload! {
/// Use this method for your bot to leave a group, supergroup or channel. Returns _True_ on success.
#[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
pub LeaveChat (LeaveChatSetters) => String {
required {
/// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`)
pub chat_id: ChatId [into],
}
}
}