users.suggestBirthday
Suggest a birthday to another user, see here » for more info on birthdays in the API.
func (c *Client) UsersSuggestBirthday(ctx context.Context, request *UsersSuggestBirthdayRequest) (UpdatesClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.UsersSuggestBirthday(ctx, &tg.UsersSuggestBirthdayRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // UpdatesClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ID | InputUserClass | yes | The user that will receive the suggested birthday date. |
Birthday | Birthday | yes | The birthday to suggest. |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | USER_ID_INVALID | The provided user ID is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
users.suggestBirthday#fc533372