irazasyed/telegram-bot-sdk

Token contstructor required

orloffv opened this issue · 2 comments

public function __construct($token, $async = false, $http_client_handler = null)
$this->accessToken = isset($token) ? $token : getenv(static::BOT_TOKEN_ENV_NAME);

maybe use
public function __construct($token = null, $async = false, $http_client_handler = null)?

Thanks for pointing out. Seems like i missed that. Pushing changes now 👍

Pushed a patch release - v0.2.1 and credited!