Layer 228
CommunitiesCreate
method
communities.create#a63859ec flags:# hidden:flags.1?true title:string about:flags.0?string peer:InputPeer = Updates;
Parameters
| Name | Type | Description |
|---|---|---|
| Hidden | flags.1?true | |
| Title | string | |
| About | flags.0?string | |
| Peer | InputPeer |
Returns
UpdatesGogram Example
// CommunitiesCreate - using Params struct result, err := client.CommunitiesCreate(&tg.CommunitiesCreateParams{ Title: "Example", Peer: &tg.InputPeerUser{UserID: int64(777000)}, // Optional fields: // Hidden: true, // About: "Example description", }) if err != nil { // handle error } // result is *tg.Updates