Skip to content

Commit a5574ee

Browse files
Igorpython273
authored andcommitted
Add ability to pass list/tuple to VkApiMethod
1 parent 4d84ab4 commit a5574ee

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

vk_api/vk_api.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,4 +663,8 @@ def __getattr__(self, method):
663663
)
664664

665665
def __call__(self, **kwargs):
666+
for k, v in six.iteritems(kwargs):
667+
if isinstance(v, (list, tuple)):
668+
kwargs[k] = ','.join(str(x) for x in v)
669+
666670
return self._vk.method(self._method, kwargs)

0 commit comments

Comments
 (0)