smsjobs.updateSettings
Update SMS job settings (official clients only).
func (c *Client) SMSJobsUpdateSettings(ctx context.Context, request *SMSJobsUpdateSettingsRequest) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.SMSJobsUpdateSettings(ctx, &tg.SMSJobsUpdateSettingsRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
AllowInternational | bool | — | Allow international numbers? |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | NOT_JOINED | The current user hasn't joined the Peer-to-Peer Login Program. |
References
- Official documentation
- Generated Go reference
- TL definition:
smsjobs.updateSettings#93fa0bf