Abdelrahman Elkheir
5b6cd3a33b
Update Copyright to 2024 ( #4121 )
2024-02-19 20:06:25 +01:00
Harshil
9997a9f47e
Empower ruff
( #3594 )
2023-03-25 19:18:04 +01:00
Bibo-Joshi
22d0dd1301
Tidy Up Tests Directory ( #3553 )
2023-02-22 20:19:46 +01:00
Harshil
963edbf191
Refactor and Overhaul the Test Suite ( #3426 )
2023-02-11 10:45:17 +01:00
Aditya
359232e6c7
Check for 3D Arrays in check_keyboard_type
( #3514 )
2023-01-22 12:11:52 +01:00
Bibo-Joshi
51ad4d76d0
Update Copyright to 2023 ( #3459 )
2023-01-01 21:31:29 +01:00
Harshil
606773d8f0
API 6.4 ( #3449 )
...
Co-authored-by: poolitzer <github@poolitzer.eu>
Co-authored-by: Dmitry Kolomatskiy <58207913+lemontree210@users.noreply.github.com>
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com>
2023-01-01 17:00:49 +01:00
Bibo-Joshi
b11a0c7778
Make TelegramObject
Immutable ( #3249 )
2022-12-15 15:00:36 +01:00
Harshil
1d1d774d9f
Flaky Unit Tests: Use pytest
Marker ( #3354 )
2022-11-09 20:43:27 +01:00
Bibo-Joshi
950d9a0751
Extend Code Formatting With Black ( #2972 )
2022-05-06 18:22:35 +02:00
Harshil
335772568f
Update and Expand Tests & pre-commit Settings and Improve Code Quality ( #2925 )
...
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com>
2022-05-06 18:22:34 +02:00
Bibo-Joshi
42eaa67fd5
Switch to asyncio
( #2731 )
...
Co-authored-by: tsnoam <tsnoam@gmail.com>
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com>
Co-authored-by: Poolitzer <25934244+Poolitzer@users.noreply.github.com>
2022-05-06 18:19:15 +02:00
Harshil
afcff83ebc
Add User Friendly Type Check For Init Of {Inline, Reply}KeyboardMarkup ( #2657 )
2022-05-06 18:19:10 +02:00
Harshil
b4ea5557ac
Remove __dict__
from __slots__
and drop Python 3.6 ( #2619 , #2636 )
2022-05-06 18:19:10 +02:00
Harshil
e6d9f3d057
Update Copyright to 2022 ( #2836 )
2022-01-03 08:15:18 +01:00
Bibo-Joshi
ed147813ab
API 5.3 ( #2572 )
...
* BotCommandScopes
* pre-commit
* typo
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com>
* rename kickChatMember & getChatMembersCount method
Signed-off-by: starry69 <starry369126@outlook.com>
* add `language_code` and `scope` to `get/set_my_commands`
and add `delete_my_commands()`
* add `input_field_placeholder` to replykeyboardmarkup.py and forcereply.py
also improved/fixed docs along the way
* showcase `input_field_placeholder` in conversationbot.py
* review 1
'i will not go away' has gone away 😢
* deprecate `Bot.commands` and make sure its only used for default scope
* review 2 (use constants for scope)
* Review
Signed-off-by: starry69 <starry369126@outlook.com>
* doc updates
* New ChatMember classes
Signed-off-by: starry69 <starry369126@outlook.com>
* Address review
Signed-off-by: starry69 <starry369126@outlook.com>
* add versionadded tags again
Signed-off-by: starry69 <starry369126@outlook.com>
* Improve tests & add a deprecation note to ChatMember
* test_official
* Documentation tweaks
* Bump bot api version number
* but bot
* Rename chat shortcuts
Signed-off-by: starry69 <starry369126@outlook.com>
* deepsource
Signed-off-by: starry69 <starry369126@outlook.com>
* add missing slot in botcommandscope & missing slot tests
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com>
Co-authored-by: starry69 <starry369126@outlook.com>
Co-authored-by: Harshil <ilovebhagwan@gmail.com>
2021-07-01 17:45:19 +02:00
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
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
2d4d48b89d
Extend rich comparison of objects ( #1724 )
...
* Make most objects comparable
* ID attrs for PollAnswer
* fix test_game
* fix test_userprofilephotos
* update for API 4.7
* Warn on meaningless comparisons
* Update for API 4.8
* Address review
* Get started on docs, update Message._id_attrs
* Change PollOption & InputLocation
* Some more changes
* Even more changes
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
Noam Meltzer
43bfebb150
Update copyright date to 2020 ( #1746 )
2020-02-02 23:08:54 +02:00
Tanuj
c03160c07f
Add convenience classmethods for InlineKeyboardMarkup ( fixes #1186 ) ( #1260 )
...
* Add convenience classmethods for InlineKeyboardMarkup (#1186 )
* Switch to row and column methods
* Also add convenience classmethods for ReplyKeyboardMarkup
* Add some simple tests
2019-01-04 21:04:45 +01:00
Noam Meltzer
9596343efd
pep8 fixes
2018-11-01 11:18:07 +02:00
Noam Meltzer
baec1bb554
flake8 revamp
...
- Use pre-commit v1.2.0 flake8
- Make sure we're running flake8 on examples and tests
- Fix what had to be fixed
2018-02-19 12:41:38 +02:00
Jacob Bom
2ca7ff82ef
Update headers to 2018 ( #962 )
...
Also add two missing headers.
[ci skip]
2018-01-04 17:16:06 +02: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
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
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
Leandro Toledo
880746baed
Column width to 90 #259
2016-05-14 21:52:35 -03:00
Leandro Toledo
d80e0b4b8c
Add more test cases
2016-04-26 22:48:02 -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
leandrotoledo
5dd95f1968
Renaming some tests
2016-04-23 10:39:52 -03:00