Commit graph

1512 commits

Author SHA1 Message Date
deepsource-autofix[bot]
af4ceef153
Format code with black, autopep8 and isort
This commit fixes the style issues introduced in dd50a9b according to the output
from black, autopep8 and isort.

Details: 4e472085-2e87-4f61-b7a1-ed208506962f/
2020-11-08 21:49:34 +00:00
deepsource-autofix[bot]
dd50a9b13e
Remove assert statement from non-test files 2020-11-08 21:48:49 +00:00
M.Furkan
44cd1fd974
Merge pull request #9 from muhammedfurkan/deepsource-transform-b0141be3
Format code with black, autopep8 and isort
2020-11-09 00:46:19 +03:00
M.Furkan
5b89a000c9
Merge pull request #10 from muhammedfurkan/deepsource-fix-3ea5c33a
Remove methods with unnecessary super delegation.
2020-11-09 00:46:04 +03:00
deepsource-autofix[bot]
acfb740975
Format code with black, autopep8 and isort
This commit fixes the style issues introduced in 6cb84a3 according to the output
from black, autopep8 and isort.

Details: 540b6127-1630-4d18-8f8e-9f082590df9e/
2020-11-08 21:45:53 +00:00
deepsource-autofix[bot]
6cb84a3d3e
Remove methods with unnecessary super delegation. 2020-11-08 21:45:39 +00:00
deepsource-autofix[bot]
f5c1fd8d36
Format code with black, autopep8 and isort
This commit fixes the style issues introduced in b8cd2b6 according to the output
from black, autopep8 and isort.

Details: 8bd8f95c-12e5-4b22-94da-4d44c3c3adfb/
2020-11-08 21:43:17 +00:00
M.Furkan
b8cd2b61c7
Merge pull request #4 from muhammedfurkan/sourcery/dev-2.x
Sourcery refactored dev-2.x branch
2020-11-09 00:43:03 +03:00
M.Furkan
bceacb14ff
Merge pull request #6 from muhammedfurkan/deepsource-transform-9c2dff22
Format code with black, autopep8 and isort
2020-11-09 00:42:48 +03:00
M.Furkan
6bff264f11
Merge pull request #8 from muhammedfurkan/deepsource-fix-81da3f6f
Refactor unnecessary `else` / `elif` when `if` block has a `return` statement
2020-11-09 00:42:27 +03:00
deepsource-autofix[bot]
9b50116e58
Refactor unnecessary else / elif when if block has a return statement 2020-11-08 21:42:10 +00:00
M.Furkan
46e33f9dd8
Merge pull request #7 from muhammedfurkan/deepsource-fix-0d9e6f69
Change `NotImplemented` to `NotImplementedError`
2020-11-09 00:40:34 +03:00
deepsource-autofix[bot]
044f38ce36
Format code with black, autopep8 and isort
This commit fixes the style issues introduced in 6224a23 according to the output
from black, autopep8 and isort.

Details: d34ab172-6018-42f2-a268-59f8d3b78f55/
2020-11-08 21:39:35 +00:00
deepsource-autofix[bot]
6224a232ea
Change NotImplemented to NotImplementedError 2020-11-08 21:39:21 +00:00
deepsource-autofix[bot]
c6ac763b6d
Format code with black, autopep8 and isort
This commit fixes the style issues introduced in e498a66 according to the output
from black, autopep8 and isort.

Details: d0f1430e-470a-4e16-8f12-d3cecec05bdd/
2020-11-08 21:39:08 +00:00
M.Furkan
e498a661b9
Merge pull request #5 from muhammedfurkan/deepsource-fix-9aa45342
Remove unnecessary use of comprehension
2020-11-09 00:38:53 +03:00
deepsource-autofix[bot]
2be008397f
Remove unnecessary use of comprehension 2020-11-08 21:38:40 +00:00
DeepSource Bot
ea15a39118 Add .deepsource.toml 2020-11-08 21:36:08 +00:00
Sourcery AI
d468016a90 'Refactored by Sourcery' 2020-11-08 21:35:40 +00:00
unknown
f589a1269a sort imports 2020-11-09 00:34:51 +03:00
M.Furkan
57c6766514
Merge pull request #3 from muhammedfurkan/sourcery/pull-2
merge last change (Sourcery refactored)
2020-11-09 00:32:52 +03:00
M.Furkan
7d723a1083
Merge branch 'dev-2.x' into sourcery/pull-2 2020-11-09 00:32:42 +03:00
Sourcery AI
76507afd3c 'Refactored by Sourcery' 2020-11-08 21:30:43 +00:00
Oleg A
9a2e60b0fb
super() call prettify 2020-11-08 23:27:23 +03:00
Daniil Kovalenko
c6a43c89c4
Add missing parameter to promoteChatMember alias (#458)
is_anonymous exists in the full method but is missing in its shortcut.
2020-11-08 20:35:09 +02:00
Alex Root Junior
d0bfa8a13b Fix MessageEntity serialization for API calls #457 2020-11-08 18:58:06 +02:00
Alex Root Junior
b170bbc5f6 Fix tests 2020-11-08 17:57:02 +02:00
Alex Root Junior
9a27b79d40 Bump version 2020-11-08 17:54:22 +02:00
Oleg A
2b060d9ad4
Bot API 5.0 (#454)
* increased Telegram Bot API version

* AIOG-T-64 added logOut method

* AIOG-T-64 added logOut method test

* AIOG-T-64 logOut type annotation fix

* AIOG-T-65 added close (close_bot) method

* AIOG-T-65 old `close` method deprecation warn

* AIOG-T-65 `close_bot` test added

* AIOG-T-67 added ip_address param to set_webhook, updated docs

* updated deprecation text

Co-authored-by: Martin Winks <mpa@snejugal.ru>

* AIOG-T-69 param `drop_pending_updates` added in methods `setWebhook` and `deleteWebhook`

* AIOG-T-71 new `ChatLocation` class

* AIOG-T-70 updated `Chat` class: bio, linked chats, location

* AIOG-T-68 field `ip_address` added to class `WebhookInfo`

* AIOG-T-72 param `only_if_banned` added to `unbanChatMember` method

* AIOG-T-72 updated Chat.unban shortcut

* AIOG-T-73 field `file_name` added to `Audio` and `Video` classes

* AIOG-T-74 param `disable_content_type_detection` added in `sendDocument` method and `InputMediaDocument` class

* AIOG-T-75 Added the ability to pin messages in private chats (docs update)

* AIOG-T-76 Added the parameter message_id to the method unpinChatMessage to allow unpinning of the specific pinned message

* AIOG-T-77 Added the method unpinAllChatMessages, which can be used to unpin all pinned messages in a chat.

* AIOG-T-78 updated send_media_group description; added media qty check

* AIOG-T-80 field `live_period` added to `Location` class

* AIOG-T-81 Added support for live location heading

* AIOG-T-82 added the field proximity_alert_distance to the classes Location, InlineQueryResultLocation, InputLocationMessageContent; fixed heading in InputLocationMessageContent

* AIOG-T-82 added parameter proximity_alert_distance to the methods sendLocation and editMessageLiveLocation

* AIOG-T-83 Added the type ProximityAlertTriggered

* AIOG-T-83 Added field proximity_alert_triggered to the class Message

* AIOG-T-84 Added the field horizontal_accuracy to the classes Location, InlineQueryResultLocation, InputLocationMessageContent

* AIOG-T-84 Added the parameter horizontal_accuracy to the methods sendLocation and editMessageLiveLocation.

* Added live_period to InputLocationMessageContent (missed?)

* AIOG-T-85 Added the field sender_chat to the class Message

* AIOG-T-86 Added `is_anonymous` field to `chatMember` class

* AIOG-T-87 Added the parameter is_anonymous to the method promoteChatMember

* AIOG-T-89 Added the method `copyMessage`

* AIOG-T-90 Poll docs update

* AIOG-T-91 ability to manually specify text entities

* AIOG-T-92 Google Places as a venue API provider

* AIOG-T-93 Added the field allow_sending_without_reply to the methods

* AIOG-T-94 football and slot machine dice

* removed Optional

Co-authored-by: Ramzan Bekbulatov <bekbulatov.ramzan@ya.ru>

* Apply suggestions from code review

removed Optional

Co-authored-by: Ramzan Bekbulatov <bekbulatov.ramzan@ya.ru>

* Don't use deprecated Bot.close method from dispatcher (Replaced by session.close)

* Fix copyMessage method, update alias (with deprecation)
Fix imports

* AIOG-T-79: Easy way to use custom API server

* Update docs

* Bump requirements

* Rollback email

* AIOG-T-93 allow_sending_without_reply to send_message shortcuts

* AIOG-T-93 added allow_sending_without_reply to send_photo shortcuts

* AIOG-T-93 added allow_sending_without_reply to send_video shortcuts

* Union[type, None] -> Optional[type] refactoring

* AIOG-T-93 added allow_sending_without_reply to send_animation shortcuts

* added type hint to reply field

* AIOG-T-93 added allow_sending_without_reply to send_audio shortcuts

* AIOG-T-93 added allow_sending_without_reply to send_document shortcuts

* AIOG-T-93 added allow_sending_without_reply to send_sticker shortcuts

* AIOG-T-93 added allow_sending_without_reply to send_video_note shortcuts

* AIOG-T-93 added allow_sending_without_reply to send_voice shortcuts

* AIOG-T-93 added allow_sending_without_reply to send_location shortcuts

* AIOG-T-93 added allow_sending_without_reply to send_venue shortcuts

* AIOG-T-93 added allow_sending_without_reply to send_contact shortcuts

* AIOG-T-93 added allow_sending_without_reply to send_poll shortcuts

* AIOG-T-93 added allow_sending_without_reply to send_dice shortcuts

* AIOG-T-93 added allow_sending_without_reply to send_media_group shortcuts

* AIOG-T-92 added google_place_ to send_venue shortcuts

* AIOG-T-91 added entities to send_message shortcuts

* AIOG-T-91 added caption_entities to send_photo shortcuts

* AIOG-T-91 added caption_entities to send_video shortcuts

* AIOG-T-91 added caption_entities to send_animation shortcuts

* AIOG-T-91 added caption_entities to send_audio shortcuts

* AIOG-T-91 added caption_entities to send_document shortcuts

* AIOG-T-91 added caption_entities to send_voice shortcuts

* AIOG-T-91 added explanation_parse_mode to send_poll shortcuts

* AIOG-T-91 added entities to edit_message_text shortcuts

* AIOG-T-91 added caption_entities to edit_message_caption shortcuts

* fixed types.MessageEntity -> MessageEntity in docs

Co-authored-by: Martin Winks <mpa@snejugal.ru>
Co-authored-by: Ramzan Bekbulatov <bekbulatov.ramzan@ya.ru>
Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2020-11-08 17:51:39 +02:00
Groosha
8c43c209e0
Added SUPERGROUP chat type (#438)
* Added SUPERGROUP chat type, because SUPER_GROUP is incorrect and confusing.

* Added deprecation warning to SUPER_GROUP value
2020-11-08 17:46:28 +02:00
Lamroy95
fc177b567f
Update quick_start.rst (#439)
Handler without filters catches only text messages
2020-11-08 17:45:39 +02:00
khamidov
4783c4f268
feat(InputFile): adding Pathlib to supporting types for files (#442)
* feat(InputFile): adding Pathlib to supporting types for files

* Resolve filename via pathlib

Co-authored-by: Khamidov Amal <rutettel@gmail.com>
Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2020-11-07 23:22:36 +02:00
M.Furkan
49efa25664
Merge pull request #1 from muhammedfurkan/sourcery/dev-2.x
Sourcery refactored dev-2.x branch
2020-11-04 18:57:05 +03:00
Sourcery AI
e5a5f4c5c5 'Refactored by Sourcery' 2020-11-04 15:55:25 +00:00
Oleg A
ae67814abb
fixed BotKicked match (#445) 2020-10-28 18:11:43 +02:00
Oleg A
bd5e4d8149
MessageToReplyNotFound new text (#447) 2020-10-28 18:11:20 +02:00
Oleg A
1e2fe72aca
#429 added disable_web_page_preview for Message.send_copy(...) (#430) 2020-09-26 15:22:52 +03:00
Ramzan Bekbulatov
41c104bb57
new: add exceptions (#427)
* new: add FileIsTooBig exception

* new: add MessageCantBeForwarded exception
2020-09-26 15:22:23 +03:00
Alex Root Junior
7b33e5c68a Update docs 2020-09-14 22:56:11 +03:00
Martin Winks
7c65344dcd
hotfix(dispatcher): prop DP.loop may be None, executor and webhook view should respect that (#424) 2020-09-14 14:44:18 +03:00
Alex Root Junior
369bff422a Bump version 2020-09-13 23:13:27 +03:00
Alex Root Junior
ff654c014c Merge remote-tracking branch 'origin/dev-2.x' into dev-2.x 2020-09-13 22:56:51 +03:00
Alex Root Junior
84785e4880 Fix italic and underline decorations 2020-09-13 22:56:32 +03:00
Martin Winks
c99b165668
fix(bot,dispatcher): do not use _MainThread event loop (#397)
* fix(bot,dispatcher): do not use _MainThread event loop on ::Bot, ::Dispatcher initializations

* fix: use more generic get approach

* docs: comments

* chore(task): asyncio.create_task comes with py3.7

* fix(dispatcher): todo
2020-09-13 22:42:21 +03:00
Alex Root Junior
7d1c8c42d3 Fix syntax error 2020-09-13 22:27:50 +03:00
Ramzan Bekbulatov
0cc6a2c8f6
Add is_forward method to Message (#390)
* new: add is_forward method to Message

* enh: add return types to Message methods

* fix: docs typo

* ref: make command methods closer
2020-09-13 22:15:07 +03:00
Ramzan Bekbulatov
5b40a2b8cf
Add missed ChatPermissions to __all__ (#393)
* new: add missed ChatPermissions to __all__

* ref: standardize all __all__
2020-09-13 22:14:33 +03:00
Ramzan Bekbulatov
7f053412bf
Add is_chat_creator method to ChatMemberStatus (#394)
* new: add is_chat_creator method to ChatMemberStatus

* enh: use tuples instead of lists for some checks
2020-09-13 22:14:01 +03:00
Ramzan Bekbulatov
f926d80ba2
Add missed emoji argument to reply_dice (#395)
* fix: add missed emoji argument to reply_dice

* ref: order arguments for send_dice
2020-09-13 22:13:15 +03:00
Martin Winks
60fe0931a7
docs(readme): prettify readme, update downloads stats badge (#406)
* docs(readme): prettify readme, update downloads stats badge

* chore(readme): describe steps for minimal code

* chore(rme): remove comma etc

Co-authored-by: evgfilim1 <evgfilim1@yandex.ru>

* chore(rme): add heading for details/summary blocks

* Update README.md

Co-authored-by: evgfilim1 <evgfilim1@yandex.ru>
Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2020-09-13 22:11:27 +03:00