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
Noam Meltzer
3c889655c1
Allow http url as a file_id
...
N.B. test_send_video_mp4_file_url() is still failing, probably because
of telegram servers bug. Will contact telegram bot support about that.
2016-10-04 00:20:17 +03:00
Jacob Bom
c2b8c4bf95
Fix regexGroupHandlerCallbackQuery test
2016-10-03 21:29:30 +02:00
Jacob Bom
8234321a20
Fix tests for Inline Voice Queries
2016-10-03 21:28:35 +02:00
Jacob Bom
5e2d96b47d
Make tests actually run at all
2016-10-03 21:07:41 +02:00
Jacob Bom
551f6c556c
Add game parameters in various places
...
Also chat_instance in CallbackQuery which will break a lot of tests probably
2016-10-03 21:01:38 +02:00
Jacob Bom
ae17eb3272
Add InlineQueryResultGame
2016-10-03 20:55:21 +02:00
Jacob Bom
358dd795c7
Add the rest of game_ methods to bot.
2016-10-03 20:43:02 +02:00
Jacob Bom
151a441af7
Add send_game
2016-10-03 20:40:17 +02:00
Noam Meltzer
1f67623615
Fix import order
2016-10-03 21:34:08 +03:00
Noam Meltzer
8737b5de63
fix syntax error by some weird char
2016-10-03 21:17:04 +03:00
Jacob Bom
f3b8a3a5e9
Merge remote-tracking branch 'origin/october3' into october3
2016-10-03 20:10:14 +02:00
Jacob Bom
9e9309eb90
Add all new Game related classes
...
Missing docstrings for now though, wanna add everything first
2016-10-03 20:09:57 +02:00
Noam Meltzer
e8a34d8eef
cosmetic fixes and documentation for getWebhookInfo
2016-10-03 20:43:10 +03:00
Jacob Bom
34c62a633b
Add url to answerCallbackQuery
2016-10-03 15:25:07 +02:00
Jacob Bom
868d9217bc
Add WebhookInfo and getWebhookInfo
...
Still needs tests though
2016-10-03 15:16:43 +02:00
Jacob Bom
f7ede4baea
Add caption fields to voice and audio
...
Or at least the methods/classes for sending.
2016-10-03 15:05:49 +02:00
Jacob Bom
c3e07b1056
Add switch_inline_query_current_chat
2016-10-03 14:52:58 +02:00
Jacob Bom
79bdfe4c5d
Allow filters to be passed without list.
...
Also deprecates actually using a list.
2016-09-29 19:10:22 +02:00
Michael Elovskikh
46657afa95
Start additional threads only when necessary ( #415 )
...
* Start all additional threads only when necessary.
* Deprecate prevent_autostart in the c'tor of JobQueue.
2016-09-27 10:21:35 +03:00
Jacob Bom
79e065a730
Add __str__ and __repr__ to MergedFilter.
2016-09-25 16:31:06 +02:00
Jacob Bom
9928a1eefc
Add test for edit_text
2016-09-25 16:11:19 +02:00
Jacob Bom
0e2c3666c0
Add edit_* family of methods to CallbackQuery.
...
Either edits the message attribute, or the message associated with the inline_message_id.
2016-09-25 16:03:06 +02:00
Jacob Bom
a996e8873f
Add edit_* family of methods to Message.
2016-09-25 15:50:58 +02:00
Jacob Bom
3244417f61
Add docs for filters.
2016-09-25 00:30:04 +02:00