Commit graph

85 commits

Author SHA1 Message Date
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
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
Abstract-X
d1452b1620
Add preparing thumb in send_document method (#391) 2020-07-26 19:43:56 +03:00
Alex Root Junior
7f4f037f3e Fix addStickerToSet method 2020-07-22 23:56:46 +03:00
Ramzan Bekbulatov
d2cf737919
new: add missed answer_poll and reply_poll (#384) 2020-07-13 15:28:38 +03:00
ixearth
3548d40eab
Add missing thumb parameter (#362) 2020-06-29 21:54:47 +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
8906609f0e i-AIOG-14: Add open_period and close_date in the method sendPoll 2020-04-25 17:39:35 +03:00
Alex Root Junior
b42ea0f2ce i-AIOG-12: Add default parse mode 2020-04-25 17:22:13 +03:00
Alex Root Junior
cc650047df i-AIOG-12: Add explanation and explanation_parse_mode in the sendPoll 2020-04-25 17:12:03 +03:00
Anton
4fafba17b9
Add emoji to send_dice method 2020-04-24 20:09:36 +02: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
9bbc7510f4 #289 Added the ability to change thumbnails of sticker sets created by the bot using the method setStickerSetThumb. 2020-04-05 19:04:48 +03:00
Oleg A
181f1f0e6d #289 Added the ability to add animated stickers to sets created by the bot by specifying the parameter tgs_sticker instead of png_sticker in the method addStickerToSet. 2020-04-05 18:48:37 +03:00
Oleg A
12faef50f8 #289 updated createNewStickerSet docs 2020-04-05 17:55:00 +03:00
Oleg A
3ab5b80caf #289 Added the ability to create animated sticker sets by specifying the parameter tgs_sticker instead of png_sticker in the method createNewStickerSet 2020-04-05 17:48:35 +03:00
Oleg A
93b60b6d75 #289 fixed getMyCommands output 2020-04-05 17:25:16 +03:00
Oleg A
c8f126b8ea #289 added getMyCommands method 2020-04-05 16:42:19 +03:00
Oleg A
b77ed1ad92 #289 added setMyCommands method; added BotCommand type 2020-04-05 16:35:56 +03:00
Oleg A
bd8e4fbb41 #289 Added sendDice method 2020-04-05 15:45:29 +03:00
Oleg A
d87ec767fb
Added default parse mode for send_animation method 2020-04-02 01:05:48 +03:00
2noik
b8311c034e add send_phone_number_to_provider and send_email_to_provider 2020-02-03 21:49:37 +03:00
gabbhack
ee803303aa Bot API 4.6 2020-01-23 20:23:08 +05:00
Alex Root Junior
778913d51f
Merge branch 'dev-2.x' into shortcut 2020-01-01 01:07:23 +02:00
Gabben
655554862d New Sticker shortcuts
- New delete_from_set shortcut
- Fix docs
2020-01-01 00:53:41 +05:00
Gabben
98d3f789d2 Add chat shortcast 2020-01-01 00:09:22 +05:00
Gabben
5ea0aa095d New method from Bot API 4.5
- setChatAdministratorCustomTitle
2019-12-31 23:00:37 +05:00
Alex Root Junior
cb4f459597 Fix typing for until_date argument (can be datetime or timedelta) 2019-10-29 21:19:55 +02:00
Vasiliy
f13a14c5ef
Fixed send_poll required params 2019-10-05 20:23:54 +04:00
Evgen
1e75f59f57
Fix error with set_chat_permissions
I think it should work (I haven't tested it)
2019-08-27 13:28:11 +05:00
Alex Root Junior
cbaf826be1 Add support for new chat permissions 2019-08-04 19:43:07 +03:00
WeatherControl
edfc74069e 2019-07-18 15:38:00 +03:00
Nikita
8a55b67715 Type hint and fix parse_mode parameter
Fix: t.me/aiogram_ru/54632
2019-04-28 23:33:34 +05:00
Alex RootJunior
71c49fd08b Small changes 2019-04-16 00:22:22 +03:00
Alex RootJunior
599e87ec13 Bump polls to latest API version (Naming and location) 2019-04-15 23:38:17 +03:00
Alex RootJunior
e2e2d9c9fe Implemented polls [From test API] 2019-04-11 00:32:46 +03:00
Alex Root Junior
c153fcfe8d Update captions length 2018-10-28 19:39:36 +02:00
Alex Root Junior
39c333251f Rewrite contextvar usage. Implemented ContextInstanceMixin and DataMixin 2018-10-20 15:55:57 +03:00
Alex Root Junior
afb73fdb5c Bad arguments 2018-09-22 21:51:01 +03:00
Alex Root Junior
7a55c040ee Write docs and small fixes. 2018-09-07 21:24:13 +03:00
Alex Root Junior
5466f0c342 Set requests timeout 2018-08-14 00:13:37 +03:00
Alex Root Junior
4d7555b1c3 Rewrite file uploading mechanism. Allow to send thumbs (Bot API 4.0). 2018-08-13 22:42:10 +03:00
Alex Root Junior
2c7a7dfce0 Fix docs warnings 2018-08-05 20:37:49 +03:00
Alex Root Junior
272cf155f2 Merge branch 'master' into dev-2.x
# Conflicts:
#	aiogram/__init__.py
#	aiogram/utils/json.py
2018-08-03 23:14:25 +03:00
Alex Root Junior
a43e196d6d Added the new field foursquare_type to the objects Venue, InlineQueryResultVenue and InputVenueMessageContent, and the parameter foursquare_type to the sendVenue method. 2018-07-29 03:08:33 +03:00
Alex Root Junior
8df8792f1c Added the method sendAnimation 2018-07-29 02:58:17 +03:00
Alex Root Junior
f006e53ddc Added support for attaching custom thumbnails to uploaded files.
Note: is not work properly and will be fixed in 2.0
2018-07-29 02:55:24 +03:00
Alex Root Junior
a8f6f3adf5 Added the method editMessageMedia and new types InputMediaAnimation, InputMediaAudio, and InputMediaDocument. 2018-07-29 02:36:27 +03:00
Alex Root Junior
f635b5c965 Added vCard support when sharing contacts 2018-07-29 02:17:17 +03:00
Alex Root Junior
6f3eda16e5 Telegram Passport 2018-07-28 19:16:54 +03:00