Noam Meltzer
a5f9aa3171
more documentation
2016-10-17 23:44:40 +03:00
Noam Meltzer
78088f4f6a
Fix grammer: 'a object' -> 'an object'
2016-10-17 01:22:40 +03:00
Noam Meltzer
59fa717023
Documentation improvements + small style fixes
2016-10-17 01:11:20 +03:00
Noam Meltzer
31cab0d1b4
editMessageCaption & editMessageReplyMarkup: more validation on input
2016-10-17 01:09:44 +03:00
Jacob Bom
7fafaa1ea3
Update support date in readme.
2016-10-16 16:54:08 +02:00
Jacob Bom
e367b8519d
Use explicit kwargs for all class inits in pure api.
...
While not stickily necessary for most classes (since user isn't directly creating them) it still unifies our approach.
However for some like ReplyKeyboardHide where users are making the classes themselves it should improve IDE autocomplete support.
2016-10-16 16:24:13 +02:00
Jacob Bom
b610316667
Use explicit kwargs for all bot methods.
...
This improves support for many IDEs' autocompletion.
2016-10-16 15:54:48 +02:00
Jacob Bom
39832d2f6b
__str__ behaves differntly on py2 apparently.
2016-10-16 13:19:42 +02:00
Jacob Bom
5408c23e33
assertRegexMatches still exists for now. Use it.
2016-10-16 12:48:45 +02:00
Jacob Bom
62dd3a33e6
Better kwargs defaults.
2016-10-16 12:41:12 +02:00
Jacob Bom
3754cdafb2
send_game has differnt kwargs.
2016-10-16 12:41:12 +02:00
Jacob Bom
305ff93018
set_game_score might return True
2016-10-16 12:41:12 +02:00
Jacob Bom
29e0cc64e9
Fix py2 compat
2016-10-15 23:29:46 +02:00
Jacob Bom
a5671a8fb1
Merge pull request #423 from python-telegram-bot/edit-class-method
...
Add edit_* class methods
2016-10-15 23:03:43 +02:00
Jacob Bom
f99b2f8f3b
Inprove coverage
2016-10-15 22:59:41 +02:00
Jacob Bom
c626044a30
Add "all" filter
...
Since and empty list cannot (in the future, currently only deprecated) be used.
2016-10-15 22:58:55 +02:00
Noam Meltzer
a68cf8d464
Respect RetryAfter with polling Updater
2016-10-15 23:39:50 +03:00
Jacob Bom
de96cc87ea
Only build master branch and PRs on travis. Yapf only on py3.5.
2016-10-14 11:24:00 +02:00
Jacob Bom
ca5e3146c6
Fix docstring according to Jannes' commentns.
2016-10-14 10:32:12 +02:00
Noam Meltzer
53a574bbbb
Improve unitests coverage
2016-10-13 22:52:53 +03:00
Noam Meltzer
5b8efe0c14
upgrade yapf to ver 0.12.2
2016-10-12 23:56:57 +03:00
Noam Meltzer
d07a1c3f67
yapf: use our own mirror of yapf & update to version 0.12.2
2016-10-12 23:51:46 +03:00
Noam Meltzer
32a78722ae
yapf fixes
2016-10-12 23:33:52 +03:00
Jacob Bom
04feeeff55
Update test cases
...
Needs proper animation file_id and size.
Also assertEqual can't test if two objects have the same data, so we just check the file_id instead.
2016-10-12 20:30:34 +02:00
Jannes Höke
a1495956aa
temporary fix for documentation builds on readthedocs
2016-10-10 12:51:12 +02:00
Patrick Hofmann
8dc10fc7b2
fixes broken test cases with PhotoSize, Game and Animation classes ( #435 )
...
* fixes broken test with PhotoSize, Game and Animation
However:
testSendGame and test_set_game_score both produces *BadRequest: u'Wrong file identifier/HTTP URL specified'*.
* fixes test_set_game_score
* adds to_dict method to Game to prevent extra collection type checks in base.TelegramObject
2016-10-10 11:44:40 +02:00
Jacob Bom
7ad92dcc65
Add test for set_game_score
2016-10-09 12:39:05 +02:00
Jacob Bom
d1ddfaddf0
Add tests for Game, Animation and sendGame.
...
Still need setGameScore (I'm thinking we can set it to the ever increasing
envvar 'TRAVIS_BUILD_NUMBER') and getGameHighScores.
The tests currently don't work... Since I don't really understand how
PhotoSize works... Please halp :P
2016-10-07 23:57:10 +02:00
Jacob Bom
b7c7612b3f
Add game filter
2016-10-07 22:37:29 +02:00
Jacob Bom
ade89772f4
Fix tests
...
Data is an optional kwargs in CallbackQuery according to Telegram
2016-10-07 22:32:54 +02:00
Jacob Bom
67b98e3190
Merge pull request #433 from PH89/october3
...
small fix for game related parts
2016-10-07 22:25:52 +02:00
Patrick Hofmann
e672625a41
add myself to AUTHORS.rst
2016-10-06 18:17:42 +02:00
Patrick Hofmann
8cab735342
small fix for game related parts
...
* bot.py fix copy paste error in url
* callbackquery.py make data field optional
* message.py introduce optional game field
2016-10-06 17:52:53 +02:00
Noam Meltzer
bfb4c63d60
add unitest for getWebhookInfo
2016-10-06 00:11:28 +03:00
Noam Meltzer
01a5a1c5b3
small documentation fix
2016-10-05 23:22:55 +03:00
Noam Meltzer
1db1b76a7c
fix test_video unitest
2016-10-05 23:19:17 +03:00
Jacob Bom
976f34082f
Add possibly good-enough test for all_members_are_admin
...
Should be good enough... If we /really/ wanted to we could get two different chats from telegram and check them, but it really shouldn't be necessary.
2016-10-05 17:55:00 +02:00
Jacob Bom
6b7788570c
Add tests for captions in audio and voice
2016-10-05 17:50:48 +02:00
Noam Meltzer
1f9d3163dd
Game: use explicit keyword args + added docmentation
2016-10-04 02:17:12 +03:00
Noam Meltzer
837e9d2964
Animation: use explicit keyword args + added documentation
2016-10-04 02:16:33 +03:00
Noam Meltzer
fab97df58a
GameHighScore: added attributes documentation
2016-10-04 02:06:22 +03:00
Noam Meltzer
d70fc48e94
getGameHighScores(): added documentation + fixed copy-paste errors
2016-10-04 01:57:19 +03:00
Noam Meltzer
36192912c2
setGameScore: fixes
...
- fix copy/paste errors
- return Message object
2016-10-04 01:56:05 +03:00
Noam Meltzer
34748ec228
callbackgame: small documentation fix
2016-10-04 01:50:34 +03:00
Noam Meltzer
d5567cd9cd
sendGame(): mall fixes
2016-10-04 01:37:44 +03:00
Noam Meltzer
2463b4b9c8
New exception: RetryAfter
...
Also, small fix to the description text of ChatMigrated
2016-10-04 01:27:45 +03:00
Noam Meltzer
7cf5009517
small documentation fixes
2016-10-04 01:10:30 +03:00
Noam Meltzer
9b74625d4a
answerCallbackQuery: fix copy/paste: show_alert -> url
2016-10-04 00:55:29 +03:00
Noam Meltzer
4180c069b3
InputFile: use self instead of explicit class name
2016-10-04 00:25:32 +03:00
Noam Meltzer
3a0f219783
inputfile: define the file types as constant and use iterator
2016-10-04 00:25:05 +03:00