W
W
Wearant2021-12-21 05:23:49
Python
Wearant, 2021-12-21 05:23:49

Why am I getting BaseBoolInt.yes instead of True or False?

user_gets = await bp.api.messages.get_conversation_members(peer_id=message.peer_id, fields="can_write_private_message")
user_gets1 = user_gets.profiles

for member in user_gets1:
  if member.id == user_id:
  first_name = member.first_name
  last_name = member.last_name
  wpm = member.can_write_private_message

We
get wpm = BaseBoolInt.yes
or
wpm = BaseBoolInt.no

VKbottle

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question