finish_sms_job()

async Client.finish_sms_job()

Finish an SMS job (official clients only).

Usable by Users Bots
Parameters:
  • job_id (str) – Job ID.

  • error (str, optional) – If failed, the error reason.

Returns:

bool – True on success.

Example

await app.finish_sms_job(job_id)