mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-19 05:31:20 +01:00
17 lines
631 B
Rust
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],
|
|
}
|
|
}
|
|
}
|