Harshil
92ff6a8e2b
Add __slots__ ( #2345 )
...
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <hinrich.mahler@freenet.de>
2021-05-29 16:18:16 +02:00
Harshil
b20265819b
Stabilize CI ( #2480 )
...
* mark some occasionally failing tests as flaky
* fix test which was failing locally for some reason
* Don't fail tests if they've exceeded the timeout
* This reverts commit 1d0f982e95
.
* remove flaky on two tests as per review
* the end of timeout failures, hopefully.
* first run successful. Fixing pre-commit to trigger 2nd run.
2021-04-30 10:43:52 +02:00
starry69
91e0271e4c
Update copyright headers
...
Signed-off-by: starry69 <starry369126@outlook.com>
2021-01-03 10:40:24 +05:30
Bibo-Joshi
ae9ce60b55
API 5.0 ( #2181 )
...
Co-authored-by: poolitzer <25934244+Poolitzer@users.noreply.github.com>
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com>
2020-11-29 16:20:46 +01:00
Bibo-Joshi
264b2c9c72
Switch Code Formatting to Black ( #2122 )
...
* Swtich code formatting to Black
* Update docs
* Fix tests
* TRy fixing pre-commit
2020-10-09 17:22:07 +02:00
Bibo-Joshi
3930072659
Refactor handling of kwargs in Bot methods ( #1924 )
...
* Unify kwargs handling in Bot methods
* Remove Request.get, make api_kwargs an explicit argument, move note to head of Bot class
* Fix test_official
* Update get_file methods
2020-10-07 20:30:41 +02:00
Nils K
8406889179
Remove Python 2 Support ( #1715 )
...
* Remove usages of python-future lib
* Remove python2 datetime.timezone replacement
* Remove python2 workaround in InputFile.__init__
* Remove import of str necessary for python2
* Remove urllib2 import necessary for python2
* Remove a mention of python 2 in doc
* Remove python 2 from travis config file
* Remove python 2 from appveyor config
* Remove python2 from debian build rules
* Remove unnecessarry aliasing of time.perf_counter
* Remove python 2 from github workflow
* Remove mention of python 2 in descriptions/readme
* Remove version check for queue import
* Remove version checks in tests
* Adjust docs to correctly mention supported version
* Fix indentation
* Remove unused 'sys' imports
* Fix indentation
* Remove references to mq.curtime in tests
* Replace super calls by argumentsless version
* Remove future dependency
* Fix error in de_json declaration
* Use python3 metaclass syntax
* Use implicit inheriting from object
* Remove accidentally committed .vscode folder
* Use nameless f-string and raw string
* Fix regex string literal syntax
* Remove old style classes
* Run pyupgrade
* Fix leftover from automatic merge
* Fix lint errors
* Update telegram/files/sticker.py
Co-authored-by: Bibo-Joshi <hinrich.mahler@freenet.de>
2020-06-15 18:20:51 +02:00
Bibo-Joshi
1dc67dcbda
Remove builtin names where possible ( #1792 )
2020-02-23 23:03:58 +02:00
Noam Meltzer
43bfebb150
Update copyright date to 2020 ( #1746 )
2020-02-02 23:08:54 +02:00
Jasmin Bom
7fcbfc19f5
Mark location sending test as xfail as it seems to fail randomly
2019-02-08 20:22:44 +01:00
Jacob Bom
2ca7ff82ef
Update headers to 2018 ( #962 )
...
Also add two missing headers.
[ci skip]
2018-01-04 17:16:06 +02:00
Eldinnie
bfad2fa1f3
support 3.4 API ( #865 )
2017-10-14 21:03:02 +03:00
Jacob Bom
5d7c6ad541
Switch to pytest + required fixes to code ( #788 )
...
Required fixes:
- CallbackQuery is now comparable.
- Message.effective_attachment, Message.photo,
Message.new_chat_members, Message.new_chat_photo &
Game.text_entitties semantic fixes - when they are not defined,
return an empty list.
- Docstring fix to Update class.
2017-08-12 00:58:41 +03:00
Eldinnie
ae29620cd6
Remove duplicate test ( #748 )
2017-07-25 21:31:30 +03:00
Eldinnie
8d1d38cc4c
send_* now accepts tg-objects ( #742 )
...
Fixes #731
2017-07-25 01:35:22 +03:00
Jacob Bom
1b7f83625c
Update copyright notice to include 2017
...
Not strictly needed, but it helps show that the project is being actively
developed which I find important.
2017-05-15 00:36:49 +03:00
Jacob Bom
da01601ff9
Add equality rich comparision operators to telegram objects ( #604 )
...
fixes #587
2017-05-15 00:29:31 +03:00
Noam Meltzer
78088f4f6a
Fix grammer: 'a object' -> 'an object'
2016-10-17 01:22:40 +03: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
Rahiel Kasim
da87d4ba78
fix yapf
2016-08-26 11:17:05 +02:00
Leandro Toledo
880746baed
Column width to 90 #259
2016-05-14 21:52:35 -03:00
Leandro Toledo
8ad1f330ea
First run of yapf for tests/* #259
2016-05-14 21:39:11 -03:00
Jannes Höke
d940afa718
merge master into cr4.0
2016-04-29 18:37:41 +02:00
Noam Meltzer
e160355190
remove unused imports, use future for urllib imports
2016-04-28 01:41:32 +03:00
Leandro Toledo
35f6de326b
Add InlineKeyboardButtonTest and reformatting.
2016-04-26 18:23:15 -03:00
Leandro Toledo
ca1fff25f7
Some code reformat and minor fixes
2016-04-23 23:11:25 -03:00
Noam Meltzer
d5b35e7e1d
unitests: remove docstrings & prints - not needed with nosetests
2016-02-24 00:45:49 +02:00
Jannes Höke
aa8966832b
release 3.2 and update copyright notice to 2015-2016
2016-01-05 14:12:03 +01:00
Jannes Höke
ea7c54ba07
Release v3.1.1, change author email everywhere
2015-12-21 21:18:53 +01:00
Leandro Toledo
a1e12d424c
Fix inverted lat/long
2015-09-10 16:59:08 -03:00
leandrotoledo
5c4f0f152a
Much better, such wow Location tests
2015-09-07 14:31:08 -03:00