url: [/]')
glasschat = re.findall (r'(?<=https://t\.me/).*?(?=/)', link_post)[0]
forwardmess = re.findall (r'(?<='+glasschat+'/).*', link_post)[0]
numbers = re.findall(r'\d+', forwardmess)
glassid = int(numbers[-1]) if numbers else None
await client(functions.messages.GetMessagesViewsRequest(
peer=glasschat,
id=glassid,
increment=True
))
error:
object of type 'int' has no len()
a person should enter the link like this:
https://t.me/username/id
id messages - id
channel user - username
id=[glassid]
Обсуждают сегодня