EdupageAPI / edupage-api

A python library for accessing your Edupage account
https://edupageapi.github.io/edupage-api/
GNU General Public License v3.0
67 stars 13 forks source link

Eduapage-api doesn't detect news #27

Closed ghost closed 3 years ago

ghost commented 3 years ago
    news = edupage.get_news()
    channel_edu = client.get_channel(766574810376568832)
    print(news)
    for message in news:
        await channel_edu.send(str(message))
        print(str(message))

homework system works but news sadly returns blank list, image does it detect news that are read?

**Version**
- Edupage API version: **(e.g. 0.9.81)**
- Python version: **(e.g. 3.9.7)**

jejda ja som idiot ja som to vypisoval po anglicky

ivanhrabcak commented 3 years ago

Ahoj, píš prosím po anglicky, tieto thready často čítajú aj iný (anglicky hovoriaci) ľudia, ktorý majú rovnaký problém. Ďakujem.

The problem could be, that the type of notification you are trying to fetch, is not news. News are only the notifications that look like this: image

You can check out Edupage.get_notifications(), maybe that's what you are looking for.

Please reply if this was the issue, or there is an issue with news fetching.

ghost commented 3 years ago

Hi, it works but i cannot get description of notification, it shows this string

("NotificationType.MESSAGE, Dôležitá správa, pre zobrazenie obsahu ju prosím otvorte [Prosím stiahnite si najnovšiu verziu mobilnej aplikácie]")
ivanhrabcak commented 3 years ago

Unfortunately I cannot reproduce this issue, but it looks like it is an issue with the code. If you want to, we can hop on a call on this discord server, and find out why this is happening.

BelKed commented 3 years ago

I fixed it around two months ago in 9fdafdd, but it's not published on the PyPI...

ivanhrabcak commented 3 years ago

Closing as this issue was fixed in 0.9.82.