# danog\MadelineProto\CallNotAllowedException: Thrown when a call or group call cannot be started in a chat, because of our own permissions,

> the other party's privacy settings, or the kind of chat/account involved.

Use `canRequestCall()` on a message to check in advance whether a call can be started.


[Back to index](../../index.html)

> Author: Daniil Gentili <daniil@daniil.it>  
  

Thrown when a call or group call cannot be started in a chat, because of our own permissions,  

the other party's privacy settings, or the kind of chat/account involved.

Use `canRequestCall()` on a message to check in advance whether a call can be started.


## Properties
* `$reason`: `danog\MadelineProto\EventHandler\Calls\CallDenialReason` Why the call cannot be started.
* `$tlTrace`: `string` TL trace.

## Method list:
* [`extension(string $extensionName): \danog\MadelineProto\Exception`](#extension)
* [`getTLTrace(): string`](#getTLTrace)
* [`getMessage(): string`](#getMessage)
* [`getCode()`](#getCode)
* [`getFile(): string`](#getFile)
* [`getLine(): int`](#getLine)
* [`getTrace(): array`](#getTrace)
* [`getPrevious(): ?Throwable`](#getPrevious)
* [`getTraceAsString(): string`](#getTraceAsString)

## Methods:
### <a name="extension"></a> `extension(string $extensionName): \danog\MadelineProto\Exception`

Complain about missing extensions.


Parameters:

* `$extensionName`: `string` Extension name  



### <a name="getTLTrace"></a> `getTLTrace(): string`

Get TL trace.



### <a name="getMessage"></a> `getMessage(): string`





### <a name="getCode"></a> `getCode()`





### <a name="getFile"></a> `getFile(): string`





### <a name="getLine"></a> `getLine(): int`





### <a name="getTrace"></a> `getTrace(): array`





### <a name="getPrevious"></a> `getPrevious(): ?Throwable`




#### See also: 
* `Throwable`




### <a name="getTraceAsString"></a> `getTraceAsString(): string`





---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
