Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mrDoctorWho/vk4xmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Smith <mrdoctorwho@helldev.net>2020-10-13 15:00:52 +0300
committerJohn Smith <mrdoctorwho@helldev.net>2020-10-13 15:00:52 +0300
commitc3f00be3142d8d485b9e5ec033718e66cdecf591 (patch)
tree23bab49c97e963bf52290773eaf979cecfd12b11
parentbf2a3db0697124bd7e2620a501a7181523f03c5e (diff)
Add explicit "online" field to friends requests
-rw-r--r--gateway.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gateway.py b/gateway.py
index 26eb488..507e351 100644
--- a/gateway.py
+++ b/gateway.py
@@ -442,7 +442,7 @@ class VK(object):
del data["last_name"]
return name
- def getFriends(self, fields=None, limit=MAX_FRIENDS):
+ def getFriends(self, fields=["online"], limit=MAX_FRIENDS):
"""
Executes the friends.get method and formats it in the key-value style
Example: