Closed Nexusatko closed 1 year ago
Eh, zabudol som, že to je slovenský projekt. To je asi jedno, jak to napíšem. :D
We keep the issues in english, as there are also users that do not speak Slovak.
Does the message get sent?
No, it's not showing in the history of conversation with that person.
I think the issue is in EduAccount.get_id
.
I want you to compare the numbers from your and your classmate's userId:
Example:
You: Student971239
, your classmate Student971139
Is the positivity of both numbers the same? (Here, both numbers are positive, if one would be negative, that would be bad.) Is your number above zero? Is your classmate's number above zero?
Thank you for your cooperation.
All IDs are correct and non-negative. I copied them from Edupage.get_students method. Even if I use print(classmate) it prints the correct classmate and info about him/her.
Does it also match Edupage.get_user_id
?
It's Edupage.get_user_id() but yes, the ID matches. Even though it outputs as StudentID_HERE and not as ID_HERE when I use Edupage.get_user_id() but I assume that's correct.
Could we get on discord to resolve the issue?
The issue is in the difference in Student
and StudentOnly
. @Nexusatko cannot send messages to the Student
user (which includes the student's parents), only to the StudentOnly
one.
I will add a new account type - StudentOnly
.
Resolved in 0.10.3!
You can now send messages to students only (by default, parents also get the message), which was the issue here.
Here's some example code:
message_recipient = # ...
message_recipient.set_student_only(True) # !!!
edupage.send_message(message_recipient, "Hello World!")
Describe the bug When I try to send any message to any classmate/person, it gives me an error pasted below.
Your code
Error message
Expected behaviour Umm, no error? :D
Version