Commit graph

326 commits

Author SHA1 Message Date
Alex Root Junior
75222b8af0 #516: Fix updating chat 2021-03-07 15:27:41 +02:00
Mykola Solodukha
cd5a772110 Logically order args 2021-01-23 19:04:30 +02:00
Mykola Solodukha
8656c6bc24 Fix args order in .reply_* and .answer_location() 2021-01-15 05:12:32 +02:00
Mykola Solodukha
ad4b215e71 Add ability to .answer_* and .reply_* live location 2021-01-15 05:07:14 +02:00
SvineruS
ca45b248a8
Fixed optionality of some properties, add vcard argument to InputContactMessageContent constructor (#473) 2020-12-05 15:28:34 +02:00
Oleg A
b3103183d7
#467 Uncommented attach_document and attach_audio MediaGroup methods (#468) 2020-11-18 02:06:59 +02:00
Forden
2cf6b22a69
Update message.py (#466)
Added DICE to ContentTypes
2020-11-15 20:19:08 +02:00
Oleg A
ae7b250e33
fixed: Cannot send playlist of audio files (#465)
* fixed: Cannot send playlist of audio files #464

* #463 removed document and audio from check

* #463 style fix
2020-11-13 21:58:00 +02:00
Groosha
9c2c652df5
Added missing "supports_streaming" argument to answer_video method (#462) 2020-11-10 01:03:06 +02:00
Igor
44c1cc1f61
Add parameter supports_streaming to reply_video, remove redundant docstrings (#459) 2020-11-08 23:59:16 +02: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
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
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
Oleg A
1e2fe72aca
#429 added disable_web_page_preview for Message.send_copy(...) (#430) 2020-09-26 15:22:52 +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
lyteloli
51547f9745
Fixed usage of deprecated is_private function (#421)
Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2020-09-13 22:08:55 +03:00
Gabben
a936465f42
add missing attributes (#422)
https://core.telegram.org/bots/api#animation
2020-09-13 22:07:29 +03:00
Martin Winks
a529619d79
hotfix(updates): CHOSEN_INLINE_RESULT is a correct API-term (#415)
* hotfix(updates): CHOSEN_INLINE_RESULT is a correct API-term

* feat(utils): deprecated descriptor

deprecate CHOSEN_INLINE_QUERY and always return CHOSEN_INLINE_RESULT instead of incorrect value

* fix(tests): remove example from test

* fix(utils): use stacklevel=3

level on which descriptor is being called
2020-09-10 22:34:20 +03:00
Oleg A
9ab2945267
fixed CallbackQuery.answer() returns nothing (#420) 2020-09-10 22:31:54 +03:00
Ramzan Bekbulatov
d2cf737919
new: add missed answer_poll and reply_poll (#384) 2020-07-13 15:28:38 +03:00
Fenicu
caa0fe69d0
A little documentation revision (#381) 2020-07-09 14:27:19 +03:00
Egor
81b36bd192
feat: add ChatType builtin filter (#356)
* feat: ChatTypesFilter

* feat: add example of usage

* feat: docs

* fix: add import in filters/__init__

* fix: remove some of event_handlers

* fix

* fix imports

* fix: rename to ChatTypeFilter

* fix: rename argument to chat_type

fix: rename example file name

fix: str is container also lol. example fixed also

* fix: respect type hints

* fix: add warning with respect to type hint

* fix: use warnings instead of logging
2020-07-02 14:17:48 +03:00
ixearth
3548d40eab
Add missing thumb parameter (#362) 2020-06-29 21:54:47 +03:00
Yyonging
b004c8af19
fix the #307 (#371) 2020-06-27 16:10:09 +03:00
Alex Root Junior
09f3c35aec Hotfix get_full_command 2020-06-13 21:53:31 +03:00
Egor Dementyev
8d30c1dc1b
Fix message.get_full_command() (#352)
* Fix message.get_full_command()

* Fix message.get_full_command() by JrooTJunior

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>

* fix typos

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
2020-06-13 19:18:30 +03:00
Denis Belavin
1389ca5874
#320 - Fix: Class InputMediaAudio contains some fields from other class. (#354)
Co-authored-by: Belavin Denis <belavin.d.andreevich@yandex.ru>
2020-06-10 23:08:44 +03:00
George Imedashvili
027139f1b2
fix get_full_command (#348)
The reason is that .partition() doesn't have a default param as .split has, and default split param gives possibility to split not only by whitespaces, but also whitespace consequences (so the .strip() in get_args() not needed) and newlines.
It's called "fix", because without it, commands like this:
'''/command
arg
arg1'''
are resulting with ('/command\narg\narg1', '', '')
2020-06-08 20:21:15 +03:00
Alex Root Junior
de13dbf454 AIOG-T-61 Telegram Bot API 4.9 2020-06-08 20:19:05 +03:00
Egor
70767111c4
fix: add support init fields from parent object in KeyboardButton (#344)
* fix: add support init fields from parent object in KeyboardButton

* fix: add tests
2020-05-31 17:49:33 +03:00
Igor Sereda
15861960f5 Fix missing InlineQueryResultPhoto parse_mode field 2020-05-12 00:32:45 +03:00
Kostiantyn Kriuchkov
689a6cef65
Bug fix
There is no method `delete_chat_description`
2020-05-09 08:59:41 +03:00
Alex Root Junior
b0870b3f93 i-AIOG-16 update send dice aliases 2020-04-25 23:11:52 +03:00
Alex Root Junior
f2c7236ec1 i-AIOG-17: Rename dart constant 2020-04-25 22:52:48 +03:00
Alex Root Junior
233c676755 i-AIOG-17 Add emoji to the Dice object 2020-04-25 17:54:15 +03:00
Alex Root Junior
f5e4016bf8 i-AIOG-15: Add open_period and close_date to the Poll object 2020-04-25 17:48:23 +03:00
Alex Root Junior
7e3f83ebfe i-AIOG-13: Add explanation and explanation_entities to the Poll object 2020-04-25 17:30:44 +03:00
LimiO
e50f9e5269 Change False to True at reply_dice 2020-04-18 17:47:03 +03:00
LimiO
a7a06b7301 Add reply_dice method 2020-04-18 17:40:26 +03:00
LimiO
2ff880bb5f add answer_dice method 2020-04-18 16:09:45 +03:00
Alex Root Junior
a565251d4e
Merge pull request #294 from aiogram/dev-2.x-api-4.7
Updated API 4.7 for dev-2.x branch
2020-04-07 00:41:27 +03:00
Oleg A
97bda44718 #289 BotCommand type init fix 2020-04-06 23:59:37 +03:00
Oleg A
683e2befb5 #289 Added BotCammand and Dice to __all__ types 2020-04-05 19:55:53 +03:00
Oleg A
3d632fea1c #289 Added the field thumb to the StickerSet object. 2020-04-05 18:54:10 +03:00