Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fread(): Length parameter must be greater than 0 in TL problem #29

Closed
nimach opened this issue Dec 7, 2016 · 2 comments
Closed

fread(): Length parameter must be greater than 0 in TL problem #29

nimach opened this issue Dec 7, 2016 · 2 comments

Comments

@nimach
Copy link

nimach commented Dec 7, 2016

Hi, tanx for your great library.
I use code below to get channel's info:

$username = $MadelineProto->contacts->resolveUsername(['username' => "khooroosjangi"]);
$channelInfo = $MadelineProto->channels->getFullChannel(
	['channel' => [
		'_' => 'inputChannel',
		'channel_id' => $username['peer']['channel_id'],
		'access_hash' => $username['chats'][0]['access_hash'],
	]]
);
var_dump($channelInfo);

but the result is different for every channels. For most it works fine but for some like '@khooroosjangi' i will get error:

CallHandler: Calling method (try number 1 for channels.getFullChannel)...
CallHandler: Getting response (try number 1 for channels.getFullChannel)...
CallHandler: An error occurred while calling method channels.getFullChannel: fread(): Length parameter must be greater than 0 in TL on line 270. Recreating connection and retrying to call method...

Please help me. I'm using the last version.

@nimach nimach closed this as completed Dec 8, 2016
@nimach nimach changed the title bot_login usage? fread(): Length parameter must be greater than 0 in TL on line 270 problem Dec 8, 2016
@nimach nimach reopened this Dec 8, 2016
@nimach nimach changed the title fread(): Length parameter must be greater than 0 in TL on line 270 problem fread(): Length parameter must be greater than 0 in TL problem Dec 8, 2016
@danog
Copy link
Owner

danog commented Dec 26, 2016

Fixed in the last version.

@danog danog closed this as completed Dec 26, 2016
@nimach
Copy link
Author

nimach commented Dec 27, 2016

Thanks for your hard work. I appreciate it very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants