Commit Graph

1279 Commits

Author SHA1 Message Date
jarriztg
d169b7f96f functions in bash added and colors (#19)
* functions in bash added and colors

* Update bashbot.sh

* Update bashbot.sh

* Update bashbot.sh

* Update bashbot.sh

* Update bashbot.sh
2016-06-05 12:41:49 +02:00
Pwrtelegram
b2c5793032 Fixed bug in inline query function. 2016-05-27 17:09:22 +02:00
Pwrtelegram
9b64c3fae6 Fixed typo, fixed download file name, fixed sending of gifs trhu inline queries. 2016-05-27 15:52:34 +02:00
Daniil Gentili
78a57d9d9c Added INLINE variable 2016-05-13 17:58:37 +02:00
Daniil Gentili
0efec7dce1 Fixed bugs 2016-05-13 17:45:56 +02:00
Daniil Gentili
bb768b4596 Merge pull request #16 from TiagoDanin/patch-2
README Update line of location
2016-05-06 14:18:59 +02:00
Tiago Danin
c5a89828fc Update README.md 2016-05-05 15:13:39 -03:00
Daniil Gentili
6c66639277 Fix typo 2016-05-05 15:40:56 +02:00
topkecleon
d30c87a44d Updated readme. 2016-04-19 15:01:01 -04:00
topkecleon
c840e3581e Main script will now download JSON.sh if the user did not clone recursively. 2016-04-19 05:59:37 -04:00
topkecleon
62c3d5eb84 Added a license for the unfortunate souls whose governments don't allow public domain.
Removed JSON.sh and added the project as a submodule. Modified code referencing it accordingly.

Added "attach" argument to attach to the tmux session and a default message if no argument is given.

Other minor changes.
2016-04-19 05:49:35 -04:00
Daniil Gentili
55bf7e35a9 Fix perms 2016-04-18 12:05:59 +02:00
Daniil Gentili
dfd4bc6fa6 Moved customizable settings into commands.sh 2016-04-18 12:05:31 +02:00
Drew
aebbff855c Merge pull request #14 from iicc1/patch-4
Updated readme with inline
2016-04-18 02:27:52 -04:00
Ignacio Iglesias
bd14114971 updated readme with inline 2016-04-18 00:50:50 +02:00
Daniil Gentili
c09ae5036e Merge pull request #13 from TiagoDanin/patch-1
Whoops :). Merged.
2016-04-17 21:31:15 +02:00
Tiago Danin
e053481a41 FIX README 2016-04-17 20:16:14 +02:00
Daniil Gentili
867180363c Fix perms 2016-04-17 20:01:05 +02:00
Daniil Gentili
fd1358b209 Added sendvenue method and moved command parsing section to commands.sh to ease upgrades. 2016-04-17 20:00:37 +02:00
Daniil Gentili
7f1d8cb8bf Added easy way to source script 2016-04-17 14:15:30 +02:00
Daniil Gentili
c13d45b37b Added easy way to start bot. 2016-04-17 14:13:28 +02:00
Daniil Gentili
d13b6e25eb Fixed smore bugs, tried to speed up bot. 2016-04-17 14:00:45 +02:00
Daniil Gentili
c33082e585 Fixed bugs (now you can run multiple background session in multiple bots), added option to count users, added option to parse markdown and html using send_message, updated documentation and decided to put the sending loop for interactive chats in the background using tmux so that if I have to update the bot interactive sessions will continue to send out messages. Also changed the file name and the location (/tmp/ of the fifos for interactive chats) and added option to broadcast messages to all users. 2016-04-16 20:50:05 +02:00
Drew
d95470e8a9 Merge pull request #11 from iicc1/patch-3
Added inline support and examples.
2016-04-16 05:48:19 -04:00
Ignacio Iglesias
9ffc3bf3c4 Added inline support and examples.
I have adapted inline mode to the bot:  InlineQuery, answerInlineQuery, the 19 types of InlineQueryResult and InputTextMessageContent from InputMessageContent. I also have added some examples.
2016-04-16 03:43:15 +02:00
Daniil Gentili
219bcd25d2 Added killproc function. 2016-04-15 19:37:44 +02:00
Daniil Gentili
c96cc8a4a7 Reduced interactive command timeout, added command to print last newline and made startproc call command in args 2016-04-15 19:32:21 +02:00
Daniil Gentili
495c23def4 Fixed bug when script prints content right before exiting 2016-04-15 19:25:43 +02:00
Drew
decd11ee0a Merge pull request #10 from iicc1/patch-2
Updated nested tmux and fixed username in groups
2016-03-26 18:57:22 -04:00
Ignacio Iglesias
6ad35f34d7 Updated nested tmux and fixed username in chats
With the: ''TMUX= tmux new-session -d -s ....'' addition,  now interactive chats work when you are running the bot inside a tmux session.

Before, USER[USERNAME] was not getting the username of the user in groups, now it is solved.
2016-03-26 23:31:47 +01:00
Drew
64f3cb5fc7 Merge pull request #9 from danog/patch-3
Fixed security issues
2016-03-23 13:59:40 -04:00
Daniil Gentili
86c11e9397 Fixed typo 2016-03-23 16:04:28 +01:00
Daniil Gentili
66b36cc62a Added description of new parameter. 2016-03-23 16:02:28 +01:00
Daniil Gentili
a7a495561e Fixed security issues
Added check in send_file function to prevent user from requesting any file on the server and added a third parameter check to send_message.
If send_message is called with text as third param it will send the message given as is, without checking for keyboards, files etc...
One could simply do a myfilelocationstartshere $PWD/bashbot.sh and get the whole bot with the token.
2016-03-23 15:56:22 +01:00
Drew
652be0893f Merge pull request #8 from danog/patch-2
Fixed bugs and added option to source functions from other script
2016-03-22 09:00:55 -04:00
Drew
7b38ed5389 Merge pull request #7 from iicc1/patch-1
Added Markdown support for telegram-bot-bash
2016-03-22 09:00:22 -04:00
Daniil Gentili
994bfa3100 Update README.md 2016-03-20 23:40:00 +01:00
Daniil Gentili
a7801823ce Fixed last bugs 2016-03-20 22:34:55 +01:00
Ignacio Iglesias
4d2a6a6de2 Separated markdown sendmessage 2016-03-19 02:08:25 +01:00
Ignacio Iglesias
76e96c05a1 Added Markdown support for telegram-bot-bash 2016-03-18 01:34:05 +01:00
Daniil Gentili
79a7a7ee4a Update question 2016-03-06 21:30:25 +01:00
Daniil Gentili
6e3e156f42 Fixed other bugs 2016-01-25 13:37:05 +01:00
Daniil Gentili
931cf51a7c Update bashbot.sh 2016-01-22 19:03:12 +01:00
Daniil Gentili
c1456a3119 Update bashbot.sh 2016-01-22 19:01:24 +01:00
Daniil Gentili
471819f934 Update README.md 2016-01-22 18:54:08 +01:00
Daniil Gentili
905d68a9f3 FIxing bugs 2016-01-22 18:52:37 +01:00
Daniil Gentili
43c468e336 Fix loop 2016-01-22 16:47:58 +01:00
Daniil Gentili
6eca34758f fixed some more bugs 2016-01-22 16:06:41 +01:00
Drew
fce86d0884 Merge pull request #5 from danog/patch-1
Added documentation
2016-01-19 15:01:09 -05:00
Daniil Gentili
2036217f74 Let script read urls 2016-01-19 20:59:15 +01:00