vaegram 0.3.0

Telegram MTProto client library for users and bots
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::Client;
use crate::errors::Result;
use crate::types::Chat;

impl Client {
    /// Creates a supergroup and returns it as a [`Chat`].
    pub async fn create_supergroup(&self, title: impl Into<String>, description: impl Into<String>) -> Result<Chat> {
        super::create_channel::create(self, title.into(), description.into(), false).await
    }
}