chatForSend
import { VK } from "vk-io" import { HearManager } from "@vk-io/hear" const vk = new VK ( { token : "token" } ) const bot = new HearManager ( ) const chatForSend = 1 vk . updates . on ( "message_new" , bot . middleware ) bot . hear ( "/sendToAnotherChat" , async message => { message . reply ( `send to chat${chatForSend}` ) const msg = await message . send ( { message : "отправлено из shiruwatch" , peer_ids : 2e9 + chatForSend } ) setTimeout ( ( ) => { msg . editMessage ( { message : "root???????????" } ) } , 1500 ) } ) vk . updates . start ( ) . then ( ( ) => console . log ( "updates started" ) ) . catch ( console . error )
const msg = await vk.api.messages.send({