Layer 220
UsersGetUsers
Returns basic user info according to their identifiers.
method
Users
Bots
users.getUsers#d91a548 id:Vector<InputUser> = Vector<User>;
Parameters
| Name | Type | Description |
|---|---|---|
| Id | Vector<InputUser> | List of user identifiers |
Returns
VectorPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 400 | CHANNEL_PRIVATE | You haven't joined this channel/supergroup. |
| 400 | FROM_MESSAGE_BOT_DISABLED | Bots can't use from Message min constructors. |
| 400 | MSG_ID_INVALID | Invalid message ID provided. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
| 400 | USER_BANNED_IN_CHANNEL | You're banned from sending messages in supergroups/channels. |
Gogram Example
// UsersGetUsers - positional arguments result, err := client.UsersGetUsers([]tg.InputUser{&tg.InputUserSelf{}}) if err != nil { // handle error } // result is *tg.Vector