What can bot:
* Send / receive SMS
* Automatically send incoming SMS / USSD messages to Telegram and notify about missed calls.
* Send notifications to Telegram from bar status for selected applications
* Call the specified numbers
* View call history
* View contact list
* Perform tasks
Tasker and send messages from Tasker / Macrodroid to Telegram
via plugin for Tasker * Locate device
*
Detect movement using a computer vision system
* Determine device shaking by accelerometer
* Translate text to speech (TTS)
* Search for a device by giving a loud signal.
* Download files to / from device
* Install applications (requires root)
* Play recorded voice or media file on device
* Show battery info
* Save text to clipboard or read from it
* Manage volume and ringer mode
* View photos from the gallery
* Manage your music player
* Run favorite apps
* Close running applications
* Take photos from the front / rear camera
* Record video from front / rear camera
* Record sound
* Record video from the screen and take screenshots
* Turn on / off the flashlight
* Show device information
* Reboot, disconnect device (requires root)
* Make screenshots (requires root)
* Run timer commands
* Run scripts (read more remote-bot.com/script)
* Execute shell commands (root required)
And much more, more on
reference SMS commands rb start - start the bot
rb stop - stop bot
rb polling - change the way messages are received (push notifications / long polling)
rb polling push / long - select the method of receiving messages
rb info - information about the device and bot.
rb help
How to create Telegram bot manually Create a bot manually through
Botfather 1. Open Telegram
2. Find in the search "botfather", select it and click Start
3. Send / newbot to create a new bot.
4. Come up and enter a name for the bot
5. Invent and enter the username for the bot (username). It must be unique and end with `bot`. For example TetrisBot or tetris_bot.
6. Copy Token, it will be required when setting up the bot in the application
7. Next, go to the application and insert Token, then enter your username. To protect your data, you need to bind the bot to your Telegram account by entering the username of your account in the Telegram. It can be installed or viewed in the Telegram settings.
8. Go to Telegram and find your created bot in the search by username bot and click Start
Tasker Tasks You can read about Tasker’s features here:
Tasker In Tasker, there is a restriction on the execution of Tasker tasks by an unauthorized program if the task can be potentially dangerous (sending SMS, HTTP requests, etc.), but there are no restrictions on sending messages from Tasker to Telegram.
You can pass parameters when calling a Tasker task, for example:
When calling from the command: "TaskName" "Parameter1" "Parameter2"
When called on the same line with the command: / tasker "TaskName" "Parameter1" "Parameter2"
The parameters in Tasker can be accessed as follows:% par [index], where [index] is a parameter number starting with 1, example:% par1
Sending messages to Telegram from other applications 7 types of messages are supported (Message, Location, Photo, Document, Voice, Video, Audio)
To send messages from Tasker / Macrodroid you can use the plugin for Tasker
It is also possible to send messages through Intents.
An example of a task in Tasker with sending a photo from the front camera to the Telegram:
photo.tsk.xml(1.36 KB)
MacroDroid macro with sending changes to the clipboard:
Clipboard.macro.zip(629 bytes)
How to send messages from Tasker
Messages from Tasker to Telegram are sent using the Send Intent command.
Create a task:
1) Open Tasker, go to the Tasks tab, then click on "+"
2) We invent the name of the task and click on the check mark
3) Add a new action by clicking on "+"
4) In the dialog that opens, select System (System) ->Send intent
Next you need to fill in the following fields:
Action: com.alexandershtanko.androidtelegrambot.ACTION_TASKER
Package: com.alexandershtanko.androidtelegrambot
Class: com.alexandershtanko.androidtelegrambot.receivers.TaskerMessageReceiver
Target: Broadcast Receiver
Depending on the type of message, fill in Extra
Extra: bot_state: true / false - control the status of the bot (on / off)
Extra: password: Password - specify the password for external access, if it is set in the bot settings
Message
Extra: tasker_message_type: message
Extra: text: There must be some text
Location
Extra: tasker_message_type: location
Extra: cords: 0.123,0.123 - (latitude, longitude)
Photo
Extra: tasker_message_type: photo
Extra: path: /storage/emulated/0/photo.jpg
Document
Extra: tasker_message_type: document
Extra: path: /storage/emulated/0/document.pdf
Video
Extra: tasker_message_type: video
Extra: path: /storage/emulated/0/file.avi
Audio
Extra: tasker_message_type: audio
Extra: path: /storage/emulated/0/music.mp3
Voice
Extra: tasker_message_type: voice
Extra: path: /storage/emulated/0/voice.wav
The message is sent to all associated users.
To send a message from a tasker to a specific user, just add Extra: chat_id or user_id or username.
Send messages from Automate It
1. Open the application
2. Go to my rules
3. Click on the "+"
4. Choose a trigger Location
5. Choose the right place and proximity radius ->Further
6. Choose an action: "Run an Intent Action"
7. Then choose "Broadcast" and go to Advanced Settings
8. Next you need to fill in:
Action Name: com.alexandershtanko.androidtelegrambot.ACTION_TASKER
Package name: com.alexandershtanko.androidtelegrambot
Component name: com.alexandershtanko.androidtelegrambot.receivers.TaskerMessageReceiver
Next, click "Add more"
Extra name: tasker_message_type
Value: message
Once again "Add more"
Extra name: text
Value: "Message text"
(Message types are the same as in Tasker)
9. Then click Next, enter the name of the rule and click on the Diskette in the upper right corner.
Posting Messages from AutoMagic
Action Send Broadcast
Next you need to add:
Action: com.alexandershtanko.androidtelegrambot.ACTION_TASKER
Package Name: com.alexandershtanko.androidtelegrambot
Component name: com.alexandershtanko.androidtelegrambot.receivers.TaskerMessageReceiver
Text
Extras:
putString ("tasker_message_type", "message"); // (Message types are the same as in Tasker)
putString ("text", "There should be a message text");
Document
Extras:
putString ("tasker_message_type", "document");
putString ("path", "storage / sdcard0 / test.txt");
Video
Extras:
putString ("tasker_message_type", "video");
putString ("path", "storage / sdcard0 / move.avi");
Other types of messages can be seen in the example for Tasker.
Run scripts in real time More on the link: (
https://remote-bot.com/script/).
Example of use:
1. You need to start the application, enter the password, then click enter.
The script for these actions will look like this:
rc.startApp ('com.example.package');
if (rc.isPackageInstalled ('com.example.package')) {
rc.click (500, 230);
rc.sleep (500);
rc.shell ('input text 123');
rc.sleep (500);
if (rc.isKeyboardVisible ()) rc.pressBack ();
rc.sleep (500);
rc.click (150, 310);
rc.sleep (500);
rc.click (500, 230);
}
2. You need to check whether the screen is on, installed and running the application
var isScreenOn = rc.isScreenOn ();
var isPackageInstalled = rc.isPackageInstalled ('com.example.package');
var isAppRunning = rc.isAppRunning ('com.example.package');
var response = {'isScreenOn': isScreenOn, 'isPackageInstalled': isPackageInstalled, 'isAppRunning': isAppRunning};
JSON.stringify (response);
By default, running scripts is disabled and must be enabled in the application settings.
Scripts can also be run using one command, for example: / script "rc.click (500, 230);"
In order to disable sending the script execution result, add 2 silent parameter to the / script command, example: / script 'rc.click (100,100);' silent
External API Now you can develop your applications and send messages to Telegram via RBT
Remote Bot External API:
https://github.com/Ale...-Telegram-External-Api Example of use:
https://github.com/Ale..m-External-Api-Example Read more
How to add a library to your project:
Gradle
Add to dependencies
compile 'com.alexandershtanko.remotebotexternalapi: remotebotexternalapi: 1.0.2'
1. Send Location
RemoteBotExternalAPI.sendLocation (Context context, float lat, float lng)
2. Send Audio
RemoteBotExternalAPI.sendAudio (Context context, String path)
3. Send Document
RemoteBotExternalAPI.sendDocument (Context context, String path)
4. Send Video
RemoteBotExternalAPI.sendVideo (Context context, String path)
5. Send Photo
RemoteBotExternalAPI.sendPhoto (Context context, String path)
6. Send Voice
RemoteBotExternalAPI.sendVoice (Context context, String path)
7. Send Message
RemoteBotExternalAPI.sendMessage (Context context, String text)
F.A.Q
How to use one premium version on multiple devices
Premium version is tied to the Google account through which you bought it. If you want to use the purchased premium version on another device, you need to add this Google account to your device, select it on Google Play and install Remote Bot for Telegram via Google Play. Premium version is activated automatically after launching the application.
How to configure a proxy
You can configure the proxy through the Remote Bot application, using the bot / proxy command, or using the SMS command. Supported Proxy Types: HTTP / HTTPS with authorization and Socks proxy without authorization and without ip address support (you must use the domain name of the proxy server)