P
P
pivazik2020-06-13 17:34:29
Python
pivazik, 2020-06-13 17:34:29

How to get the ID of the user who was invited to the conversation?

I found a script to make the bot react to the user when joining, now you need to get the ID of the invited user.
Here is the script itself;

for event in longpoll.listen():
  try:
    if event.type_id == 6:
      print("New User!")

I hope for your help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2020-06-13
@pivazik

Print the event and see where the ID is
print(event)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question