N
N
Nikitumbapunk2282021-06-07 21:08:06
Bots
Nikitumbapunk228, 2021-06-07 21:08:06

How to make it so that when you add a bot to another conversation, it works everywhere?

You need to make the bot work in both conversations.
Here is the code:

import requests
import time
apiurl = 'https://api.vk.com/method/'
token = 'token'
chatid = 5
message_id = 2
forward_messages = 2
while True:
    one = requests.get(apiurl + 'messages.send', {'v': 5.67, 'access_token': token, 'chat_id':
            chatid, 'forward_messages': forward_messages})
    two = requests.get(apiurl + 'messages.edit', {'v': 5.67, 'access_token': token, 'peer_id':
            2000000000 + chatid, 'forward_messages': forward_messages})
    print(two.json())
    time.sleep(0

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MichaelMih, 2021-06-07
@MichaelMih

give the bot admin rights.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question