Noam Meltzer
78088f4f6a
Fix grammer: 'a object' -> 'an object'
2016-10-17 01:22:40 +03: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
Noam Meltzer
a68cf8d464
Respect RetryAfter with polling Updater
2016-10-15 23:39:50 +03: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
32a78722ae
yapf fixes
2016-10-12 23:33:52 +03: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
b7c7612b3f
Add game filter
2016-10-07 22:37:29 +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
01a5a1c5b3
small documentation fix
2016-10-05 23:22:55 +03: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
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
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
Jannes Höke
c49058dbb4
Bump version to v5.1
2016-09-24 15:29:23 +02:00
Jacob Bom
1b99caa2f9
Merge remote-tracking branch 'origin/master' into entities-filter
2016-09-24 13:46:55 +02:00
Jacob Bom
e16c1da6b1
Change entities filter to be singular.
...
Also remove the faulty example completely since it should be no longer needed.
2016-09-24 13:38:56 +02:00
Jannes Höke
e1242b3b4a
message.py: add quote keyword argument to reply_x methods ( #420 )
2016-09-23 17:44:09 +02:00
Eli Gao
a91fe5f8f6
Properly split and handle arguments in CommandHandler ( #414 )
...
* Properly split and handle arguments in CommandHandler
* Update the docstring for pass_args in CommandHandler
* Properly split and handle arguments in StringCommandHandler
2016-09-20 06:38:49 +02:00
Jannes Höke
5116a77221
Class methods ( #362 )
...
* bot.py: add create_references method
* create bot reference in webhook handler, use create_references on new updates
* message.py: implement reply_text
* echobot2.py: use Message.reply_text
* fix create_references in webhook handler
* add some more instance methods
* Chat.kick_member and unban_member
* bot.py: Create bot references in outgoing messages
* add tests for everything testable
* test_updater.py: add create_references method to MockBot
* remove Bot.create_references and refactor TelegramObject.de_json to take the additional parameter bot
* List bot as named kwarg where used
* file.py: Use Bot.request property instead of Bot._request attr
2016-09-20 06:36:55 +02:00
Jannes Höke
1efd330e59
ConversationHandler: Fix #373
2016-09-20 05:00:39 +02:00
Jannes Höke
af3e8c6440
Merge branch 'master' of https://github.com/LiaungYip/python-telegram-bot into LiaungYip-master
2016-09-20 04:10:39 +02:00
Jacob Bom
97bb04cd38
Faulty example was faulty.
2016-09-13 20:50:25 +02:00
Jacob Bom
f7b497c1b4
Fix in keyword ordering
...
We're testing for a string in list, not the other way around :P
2016-09-13 20:45:42 +02:00