Jannes Höke
623863cee1
fix exception logging
2016-01-04 01:32:00 +01:00
Jannes Höke
aa125e59fb
Merge branch 'master' into jobqueue
2016-01-04 00:01:27 +01:00
Jannes Höke
68c844df0c
implement starting jobqueue in thread and fix errors
2016-01-04 00:01:00 +01:00
Noam Meltzer
bc2679f2ae
utils.request: provide HTTP error code with unknown errors
2016-01-04 00:32:17 +02:00
Noam Meltzer
17dae68654
gitignore: files generated by unitests
2016-01-04 00:32:17 +02:00
Noam Meltzer
7734c1d6a6
fix unitests to work with new token validator
2016-01-04 00:32:13 +02:00
Noam Meltzer
aeca3ca174
basic token validation
...
refs #134
2016-01-04 00:31:40 +02:00
Noam Meltzer
21fdaa4ff7
utils.request: decorate functions with general try... except...
...
refs #134
2016-01-04 00:31:40 +02:00
Noam Meltzer
79f29c4b9e
properly handle utf-8 server response & identify json parsing errors
...
refs #134
2016-01-04 00:31:40 +02:00
Noam Meltzer
a2d8ca3663
some errors are prefixed with '[Error]: ' - strip that down
...
use custom _lstrip_str() func instead of regex. a little performance
improvment and (IMO) a bit more readable.
2016-01-04 00:31:40 +02:00
Jannes Höke
6f76bfc2de
Merge branch 'master' into jobqueue
2015-12-31 15:45:19 +01:00
Jannes Höke
119743433d
merge Tengah-master into master
2015-12-31 15:41:37 +01:00
Bob Pasker
b0ad07f30f
remove traceback import
2015-12-31 09:29:02 -05:00
Jannes Höke
5d1ef673a3
flake8
2015-12-31 15:04:42 +01:00
Jannes Höke
3e1cb08567
flake8
2015-12-31 15:03:40 +01:00
Jannes Höke
29a4062945
properly lock updater and dispatcher start/stop methods
2015-12-31 14:58:01 +01:00
Jannes Höke
2ff6fe9901
initial commit for JobQueue by @franciscod
2015-12-31 14:56:48 +01:00
Jannes Höke
34b91f5062
properly lock updater and dispatcher start/stop methods
2015-12-31 14:52:28 +01:00
Bob Pasker
cc6c4a6eb9
Change a print statement to use logger instead
2015-12-31 08:33:42 -05:00
Jannes Höke
fc9456e1a8
release v3.1.2
2015-12-29 14:46:00 +01:00
Jannes Höke
41ba57f064
don't stop the dispatcher thread on uncaught errors
2015-12-29 14:28:39 +01:00
Jannes Höke
b205751aee
change default value for poll_interval to 0
2015-12-29 14:28:39 +01:00
Eduard Gomolyako
7d7397317e
Fix file.download with custom_path
2015-12-27 04:01:13 +03:00
Jannes Höke
f75e329225
fix docstring
2015-12-21 21:40:41 +01:00
Jannes Höke
ea7c54ba07
Release v3.1.1, change author email everywhere
2015-12-21 21:18:53 +01:00
Jannes Höke
3c7b037eaa
add additional arguments 'groups' and 'groupdict' for regex handlers
2015-12-21 20:25:31 +01:00
Jannes Höke
c15a1bc151
fix for #123
2015-12-21 19:36:17 +01:00
Jannes Höke
9e7314134e
fix docstring
2015-12-17 14:55:20 +01:00
Jannes Höke
0e78606d37
Release v3.1
2015-12-16 16:25:14 +01:00
Jannes Höke
e0233a59a0
fix docstrings for sphinx
2015-12-16 16:18:48 +01:00
Jannes Höke
6e158042e1
API updates Oct and Nov
2015-12-16 15:31:02 +01:00
leandrotoledo
5a3e142358
Updating one more ref to old repo
2015-12-14 21:51:17 -02:00
Jannes Höke
bcadfc5398
Release version 3.0.0
2015-12-07 23:49:19 +01:00
Jannes Höke
89ecb04a85
Catch URLError while getting updates
2015-12-07 23:45:21 +01:00
Jannes Höke
f5ac1ae067
debug message after processing update
2015-12-01 21:45:12 +01:00
Gerd Augsburg
9f07900d99
Added Balduro to AUTHORS.rst and fixed line length
2015-12-01 15:16:04 +01:00
Gerd Augsburg
8a4d5c5de7
Separate start_webhook and setWebhook
...
I think starting and setting the webhook should be two different tasks.
Because the internal webhook and the adress you see from outside can be
quite diffrent through apache etc. It provides more flexibility.
2015-12-01 14:11:27 +01:00
Jannes Höke
14b4c1ac62
Allow starting webhook without SSL (issue #112 )
2015-11-30 23:00:32 +01:00
Jannes Höke
ef569b68c6
update docs
2015-11-24 21:07:13 +01:00
Jannes Höke
8090658ab4
log warning
2015-11-24 19:33:41 +01:00
Jannes Höke
f49f592f0d
log warning
2015-11-24 19:33:03 +01:00
Jannes Höke
c2853fa1ef
WebhookServer: Lock serve_forever() and shutdown()
2015-11-24 15:39:00 +01:00
Jannes Höke
1005ad57ce
Improve signal handling
2015-11-23 17:40:39 +01:00
Jannes Höke
0b72acc7c8
handle SIGINT, SIGTERM and SIGABRT
2015-11-23 03:45:47 +01:00
Jannes Höke
83812f3af6
rename boteventhandler.py to updater.py
2015-11-22 19:20:05 +01:00
Jannes Höke
d91f210f7c
refactor BotEventHandler to Updater, improve documentation, add idle() method
2015-11-22 19:15:17 +01:00
Jannes Höke
65177e791f
raise error instead of quietly exiting on bad SSL cert
2015-11-22 16:46:17 +01:00
Jannes Höke
15501e185b
renamed broadcaster.py to dispatcher.py
2015-11-22 14:52:41 +01:00
Jannes Höke
1782d0d19b
refactor Broadcaster to Dispatcher
2015-11-22 14:47:38 +01:00
Jannes Höke
88fbf3b5cf
remove broadcaster argument from __init__
2015-11-22 14:27:05 +01:00
Jannes Höke
3e732a0736
fix multiple additional arguments
2015-11-22 14:07:20 +01:00
Jannes Höke
e4de3f00b8
Add optional handler argument 'args' and documentation on handlers
2015-11-22 13:57:59 +01:00
Jannes Höke
32c021fdd5
Don't create new bot when broadcaster is passed
2015-11-22 13:30:23 +01:00
Jannes Höke
a6e5a71e05
Check SSL-Certificate, if possible
2015-11-22 01:03:29 +01:00
Jannes Höke
fca8aee177
improve logging
2015-11-21 23:09:19 +01:00
Jannes Höke
7c9928c58f
Let shutdown return immediately if server is not running
2015-11-21 21:22:11 +01:00
Jannes Höke
0cd7aa92ae
more logging
2015-11-21 21:21:09 +01:00
Jannes Höke
618df51811
flake8
2015-11-21 16:04:06 +01:00
Masoud Naservand
ed6dd76ae8
Corrected trailing whitespaces
2015-11-17 18:27:22 +03:30
Jannes Höke
9defc41774
correct docstrings
2015-11-17 00:04:28 +01:00
Jannes Höke
ee8b78aa0d
pep8 and docs
2015-11-16 20:43:35 +01:00
Jannes Höke
0b8fd24771
fixed issues with python2
2015-11-16 20:35:27 +01:00
Jannes Höke
396dc6cd3c
Implement webhook listener server
2015-11-16 13:05:57 +01:00
Jannes Höke
f59efe0f4b
forward related update to errorhandlers
2015-11-15 19:12:42 +01:00
Jannes Höke
12201f392d
graceful stopping of threads, use logging, reuse of broadcaster
2015-11-15 17:36:38 +01:00
Jannes Höke
04050ca883
Merge branch 'master' of github.com:leandrotoledo/python-telegram-bot into boteventhandler
2015-11-13 11:05:26 +01:00
Jannes Höke
10451509f1
fix for issue #79
2015-11-12 19:15:39 +01:00
Jannes Höke
45712c52f1
Merge branch 'master' of github.com:leandrotoledo/python-telegram-bot into boteventhandler
2015-11-11 14:27:58 +01:00
Jannes Höke
0b4c23f50e
improve error handling on timeouts
2015-11-11 14:06:10 +01:00
Jannes Höke
63c895c0a0
run_async moved to broadcaster and uses a thread pool now
2015-11-11 13:33:03 +01:00
leandrotoledo
5eb4f8e5cd
Minor pep8 fix
2015-11-10 20:31:51 -02:00
Jannes Höke
af375eb402
improved code quality
2015-11-10 23:15:37 +01:00
Jannes Höke
bf356e124f
add run_async decorator
2015-11-10 23:15:37 +01:00
Jannes Höke
d7fd43ca79
Import BotEventHandler and Broadcaster
2015-11-10 23:15:37 +01:00
Jannes Höke
ef99bab435
initial commit for BotEventHandler and Broadcaster
2015-11-10 23:15:37 +01:00
Jannes Höke
93afd3eabe
remove check for network_delay
2015-11-10 23:12:20 +01:00
Jannes Höke
61dac76bee
don't send network_delay to telegram servers
2015-11-10 22:40:19 +01:00
Jannes Höke
4bc03ed56a
Add parameter network_delay for slow connections and increase default to 2 seconds
2015-11-10 19:47:21 +01:00
Leandro Toledo
6c13762c93
Fixes PEP8 and Lint minor issues
2015-11-10 12:10:50 -02:00
Leandro Toledo
8a5ec3b2a1
Merge pull request #92 from jh0ker/emoticons
...
Decode Emoji byte strings into unicode strings if using Python 3 (Alternative)
2015-11-10 11:58:57 -02:00
Leandro Toledo
5fe1481ae9
Revert 1879cff82d
2015-11-10 11:55:42 -02:00
Leandro Toledo
1879cff82d
Merge pull request #85 from jh0ker/master
...
Decode Emoji byte strings into unicode strings if using Python 3
2015-11-10 11:55:19 -02:00
Jannes Höke
cd5e805692
added documentation
2015-11-10 05:16:16 +01:00
Jannes Höke
3928e27cf4
Merge pull request #90 from rahiel/master
...
raise exception if telegram times out on long-polling
2015-11-10 04:56:18 +01:00
Jannes Höke
89015e5ecc
fix for sending into a channel
2015-11-03 13:46:23 +01:00
Jannes Höke
025d4c9a75
fix emojis for python3
2015-11-03 12:24:44 +01:00
Jannes Höke
d3bea4c3b4
make user_from optional, because of channels
2015-11-03 10:28:06 +01:00
Jannes Höke
a6c12adda2
make user_from optional, because of channels
2015-11-03 10:20:45 +01:00
Rahiel Kasim
dcb9129809
raise exception if telegram times out on long-polling
2015-11-02 20:30:37 +01:00
Jannes Höke
22b492762b
Decode Emoji byte strings into unicode strings if using Python 3 (missed something)
2015-10-23 00:32:10 +02:00
Jannes Höke
fea0c5cc2b
Decode Emoji byte strings into unicode strings if using Python 3
2015-10-23 00:29:26 +02:00
Leandro Toledo
688d6af541
Releasing v2.8.7
2015-10-08 11:31:48 -03:00
Leandro Toledo
3fa8b97ed2
Type as optional for GroupChat
2015-10-08 11:30:02 -03:00
Leandro Toledo
f2b0cb46a2
Releasing v2.8.6
2015-10-08 10:23:12 -03:00
Leandro Toledo
cf5d184766
Add type to User and GroupChat classes
2015-10-08 10:19:05 -03:00
Leandro Toledo
5738dc553f
Releasing v2.8.5
2015-09-24 09:29:23 -03:00
Leandro Toledo
386accab80
Merge pull request #74 from leandrotoledo/http_bad_gateway_as_except
...
Handles HTTP Bad Gateway error (503) on request module #63
2015-09-24 09:26:19 -03:00
Leandro Toledo
6c9490f2c6
Handles HTTP Bad Gateway error (503) on request module #63
2015-09-24 09:17:50 -03:00
Leandro Toledo
855ab19dea
Fixes regression on Audio and Document models for unicode fields #65
2015-09-24 09:10:33 -03:00
Sergio Oller
4e1597c614
[doc] fix "Telegram user" -> "telegram sticker"
2015-09-22 11:52:10 +02:00
Leandro Toledo
75e338d5df
Releasing v2.8.4
2015-09-20 12:52:40 -03:00
Leandro Toledo
a1f35355f6
Keep bleeding edge features on testing branch
2015-09-20 12:43:32 -03:00
Leandro Toledo
b79530b10c
Adding File and its tests
2015-09-20 12:28:10 -03:00
Leandro Toledo
f623db06ea
Revert "Feature/requests"
2015-09-16 00:21:45 -03:00
pecheny
d5a9c185f0
use requests instead of urllib if possible; add timeout and decorator to get and post
2015-09-14 19:13:22 +03:00
Leandro Toledo
cbdeacd22d
Releasing v2.8.3
2015-09-10 21:00:05 -03:00
Leandro Toledo
1e2fdedc45
Removing command_handler from master (under dev)
2015-09-10 20:44:23 -03:00
Leandro Toledo
eb557e0eba
Keeping features under development off this release
2015-09-10 20:37:25 -03:00
Leandro Toledo
a7ac4193fe
PEP8, lint and TelegramError class refactor
2015-09-10 20:08:24 -03:00
ErgoZ
c8a14bf34d
Merge branch 'testing' of https://github.com/leandrotoledo/python-telegram-bot into ISSUE-58
...
Conflicts:
telegram/__init__.py
2015-09-10 20:42:56 +03:00
ErgoZ
53c44f14bd
Add Markdown support for sendMessage method.
2015-09-10 20:15:20 +03:00
Leandro Toledo
e75deea25c
Merge pull request #59 from ergoz/PR57-Fix
...
Code cleanup for filename. Filename uses only for sendDocument.
2015-09-10 08:56:11 -03:00
ErgoZ
17b8bb4881
Code cleanup for filename. Filename uses only for sendDocument.
2015-09-10 14:46:49 +03:00
leandrotoledo
009862593b
Fix Py3
2015-09-09 09:34:45 -03:00
leandrotoledo
e2fa052f54
Send JSON requests over urlencoded post data
2015-09-09 09:29:23 -03:00
leandrotoledo
dcfe08dbda
Add sticker as an inputfile
2015-09-09 09:28:58 -03:00
Leandro Toledo
7059930b5d
Merge pull request #55 from njittam/testing
...
add a father command. and hide commands in help.
2015-09-09 09:08:39 -03:00
leandrotoledo
77977b99b1
Add tests to custom filename arg #56
2015-09-08 15:52:10 -03:00
ErgoZ Riftbit Vaper
c7f2add463
small pretty fix for self.data.pop('filename')
2015-09-08 21:17:54 +03:00
ErgoZ Riftbit Vaper
8a074fd719
Delete unused check (forget from previous local version)
2015-09-08 21:13:11 +03:00
ErgoZ Riftbit Vaper
6237bb636c
Fix InputFile class for python 3+ support
2015-09-08 20:54:50 +03:00
ErgoZ
4a761d0611
Add ability to set custom filename (fix InputFile class)
...
For commands that uses InputFile class
2015-09-08 20:43:28 +03:00
ErgoZ
714adc13ee
Add ability to set custom filename
...
For commands that uses InputFile class
2015-09-08 20:42:23 +03:00
leandrotoledo
e1edeb7bec
Improve design of this class
2015-09-07 15:54:12 -03:00
leandrotoledo
a409fc511d
Improve raise of empty chat_id
2015-09-07 15:53:43 -03:00
leandrotoledo
69d705a99f
strize raw String properties for Telegram Objects
2015-09-07 15:53:09 -03:00
mattijn
89bab207b6
pep8
2015-09-07 05:11:08 +02:00
mattijn
69aa1c252b
added an easier way to get frequent commands from message.
2015-09-07 04:55:00 +02:00
mattijn
5b8f41b3c1
pep 8 command_handler.py
2015-09-07 04:17:43 +02:00
mattijn
ea5c690e7a
add a help for extra commands.
2015-09-07 03:38:07 +02:00
mattijn
9145f24efa
added a father command. and some other a way to hide commands in the help.
2015-09-07 03:13:40 +02:00
leandrotoledo
c590d9c2fd
Moving _requestURL method to utils package
2015-09-05 11:56:06 -03:00
leandrotoledo
cfd401f22b
Moving _requestURL method to utils package
2015-09-05 11:55:55 -03:00
leandrotoledo
7f790c3cb2
Releasing v2.8.2
2015-09-04 23:23:41 -03:00
leandrotoledo
30749c3b66
Merging testing
2015-09-04 23:21:31 -03:00
leandrotoledo
df000f8086
Fix regression on ReplyMarkup and add certificate to is_inputfile method
2015-09-04 23:20:14 -03:00
leandrotoledo
f355af1d2b
Restoring new features after rebase
2015-09-04 19:11:31 -03:00
leandrotoledo
82f1d18f4b
Releasing v2.8.1
2015-09-04 19:00:54 -03:00
leandrotoledo
49ff02dcf4
Fix regression on Telegram objects with thumb properties
2015-09-04 18:50:26 -03:00
leandrotoledo
bb84113272
Releasing 2.8
2015-09-04 18:19:05 -03:00
leandrotoledo
245238b3a2
Keep off some features still in progress
2015-09-04 18:03:04 -03:00
leandrotoledo
05b7fda4a1
Add certificate arg to setWebhook function
2015-09-04 17:53:39 -03:00
leandrotoledo
910959b672
Raises error when chat_id is not set
2015-09-04 17:15:44 -03:00
njittam
256d219862
A command handler
...
I saw in the TODO list on pypi that you wanted a commandhandler.
I am not sure about the run and run_once commands.
and I didn't implement logging yet.
2015-09-02 16:17:57 +02:00
Leandro Toledo
98c489c44f
Fix Python 3
2015-08-28 17:53:31 -03:00
Leandro Toledo
a86fc6c2ac
Improving the design of existing Telegram classes
2015-08-28 17:45:44 -03:00
Leandro Toledo
b20f5af1e1
Improving the design of existing Telegram classes and adding docstrings
2015-08-28 12:19:30 -03:00
Leandro Toledo
ce58f72566
Merge branch 'testing' of https://github.com/leandrotoledo/python-telegram-bot into testing
2015-08-28 11:11:32 -03:00
Masoud Naservand
25f9eb7898
Extended the Bot class. Added a dispatching mechanism,
...
and decorators to add command to the bot the flask routing style, e.g:
>>> @bot.command('/start')
... def start(command, user_id):
... return ('Hello, there', None, None)
2015-08-28 18:08:03 +04:30
rahiel
ccdb999e37
add remaining chat actions
2015-08-25 13:45:02 +02:00