smsjobs.finishJob
Finish an SMS job (official clients only).
func (c *Client) SMSJobsFinishJob(ctx context.Context, request *SMSJobsFinishJobRequest) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.SMSJobsFinishJob(ctx, &tg.SMSJobsFinishJobRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
JobID | string | yes | Job ID. |
Error | string | — | If failed, the error. |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | SMSJOB_ID_INVALID | The specified job ID is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
smsjobs.finishJob#4f1ebf24