Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

1 rat = 1bot ? #43

Open
Ubop0202 opened this issue Jun 5, 2018 · 5 comments
Open

1 rat = 1bot ? #43

Ubop0202 opened this issue Jun 5, 2018 · 5 comments
Labels

Comments

@Ubop0202
Copy link

Ubop0202 commented Jun 5, 2018

@mvrozanti hi! once again tnx for this wonderful rat.

for example: i have 2 victims: Do I need to compile for those victims 2 different rats? or I can use 1 rat, with same bot token?

@ghost
Copy link

ghost commented Jun 5, 2018 via email

@shuhrat02
Copy link

use 1 bot for different "victims".
and try comand:
"/to <COMPUTER_1_NAME>, <COMPUTER_2_NAME> /msg_box Hello HOME-PC and WORK-PC"

@mvrozanti
Copy link
Owner

@shuhrat02 thanks for pointing that out, is this working correctly? I haven't tested it enough I think

@falkaabi
Copy link

So, I tested this on multiple machines using the same Bot. When you send a message to the bot like /ping you get a reply from all three machines! which is good!
Also when you use the /to command, only the computer you specified replies with the answer you want.
However, I noticed that there's an issue. Sometimes only 1 of the 3 bots sees the command, thus you only get one reply.
In essence, if you send /capture_pc sometimes you get all 3 bot reply, sometimes just 2 of them, and usually you only get 1 reply.
My guess is that once one of the bots reads the message from the Telegram API, it is deleted from Telegram server thus the other bots using the same token can't see it. In the case where you get all bots replying, it is a special case where all 3 bots fetch the message from Telegram at the same exact time.

I think this could be fixed by setting an offset in getUpdates method or putting a delay between each getUpdates request. This way we are sure that all bots received the same message. I tried to implement this but with no luck. Could we use the relax parameter in bot.message_loop()?

@mvrozanti
Copy link
Owner

mvrozanti commented Jun 11, 2018

Thank you for testing these out!

Have you tried increasing the relax keyword? It apparently defaults to 0.1 already. Maybe each bot should have different values?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants