I try get and increase view a post channel but get this error:
File ~/.../venv/lib/python3.10/site-packages/pyrogram/raw/core/primitives/vector.py:57, in Vector.__new__(cls, value, t)
55 def __new__(cls, value: list, t: Any = None) -> bytes: # type: ignore
56 return b"".join(
---> 57 [Int(cls.ID, False), Int(len(value))]
58 + [cast(bytes, t(i)) if t else i.write() for i in value]
59 )
TypeError: object of type 'int' has no len()`
I am using this code:
from pyrogram.raw.functions.messages import GetMessagesViews
from pyrogram import Client
app = Client('account',1234,'XXXXXXXX')
app.start()
await app.invoke(GetMessagesViews(peer=await app.resolve_peer('CHANNLE_ID'), id=7, increment=True))`