Closed ghost closed 11 years ago
From the docs:
notification.send([to_user], "friends_invite", {"from_user": from_user}) users is an iterable of User objects to send the notification to.
I'm not sure to understand, a list [] in python is an iterable right? If I pass a list of users to the send function I get:
TypeError: int() argument must be a string or a number, not 'list'
but if I pass only one user the function keeps going.
Is it a bug or did I miss something?
From the docs:
notification.send([to_user], "friends_invite", {"from_user": from_user}) users is an iterable of User objects to send the notification to.
I'm not sure to understand, a list [] in python is an iterable right? If I pass a list of users to the send function I get:
TypeError: int() argument must be a string or a number, not 'list'
but if I pass only one user the function keeps going.
Is it a bug or did I miss something?