-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
invalidThis doesn't seem rightThis doesn't seem right
Description
Description
During teleview.getChannel via telegram provider last 20 posts become cached. Found in telegram.py:106 and telegram.py:113
Issue
New posts cannot be loaded via channel.getPosts because of caching (telegram.py:117)
For example
import teleview
teleview.setProvider(teleview.provider.telegram)
channel = await teleview.getChannel('@durov')
oldPost = [posts async for posts in channel.getPosts(limit = 1)][0]
oldPost._iternal['id']
# -> some integerThen @durov post new message
newPost = [posts async for posts in channel.getPosts(limit = 1)][0]
newPost._iternal['id']
# -> SAME integer as beforeReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
invalidThis doesn't seem rightThis doesn't seem right