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

How can i increase views count in channel #233

Closed
petrucci89 opened this issue Sep 6, 2017 · 8 comments
Closed

How can i increase views count in channel #233

petrucci89 opened this issue Sep 6, 2017 · 8 comments
Labels
question Question about strange Telegram's API

Comments

@petrucci89
Copy link

petrucci89 commented Sep 6, 2017

I use methods
from telethon.tl.functions.channels import ReadHistoryRequest
and
from telethon.tl.functions.channels import ReadMessageContentsRequest

unread messages disappear, but views doesnt increase. Only if i open channel in real telegram client.

Please help me with this task.

Thx!

@Lonami
Copy link
Member

Lonami commented Sep 6, 2017

I think you have to use the new channels.readMessageContents#eab5dc38 channel:InputChannel id:Vector<int> = Bool; introduced with layer 71. Give that a shot. Telethon docs.

@petrucci89
Copy link
Author

petrucci89 commented Sep 6, 2017

from telethon.utils import InputPeerChannel
from telethon.tl.functions.channels import ReadMessageContentsRequest
channel = InputPeerChannel(channel_id=1141761553, access_hash=3027812134982130789)
print(client.invoke(ReadMessageContentsRequest(channel ,[23,24,25]) ) )
return True

23.24.25 ids messages in channel i must to view

But views don't increase

Maybe there is another ways to solve it.

p.s.in telegram docs https://core.telegram.org/method/messages.readMessageContents this metod means a little another sense that icrease views.

@Lonami
Copy link
Member

Lonami commented Sep 6, 2017

GetMessagesViewsRequest, set increment=True.

@Lonami Lonami closed this as completed Sep 6, 2017
@Lonami Lonami added the question Question about strange Telegram's API label Sep 6, 2017
@petrucci89
Copy link
Author

Great!!!
It works, thx a lot!

I would not have found it myself

@doctoralpha
Copy link

Did you create that app?

@mirshod1257
Copy link

Please help me to increase the number of telegram views via python codes. Thank you in advance

@rex101
Copy link

rex101 commented Jan 10, 2022 via email

@mirshod1257
Copy link

mirshod1257 commented Jan 10, 2022

username @ rex01?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question about strange Telegram's API
Projects
None yet
Development

No branches or pull requests

5 participants