Commit graph

192 commits

Author SHA1 Message Date
Alex Root Junior
f18f538b6f Hotfix: Default parse mode 2020-11-10 09:57:41 +02:00
Oleg A
89e52ae18b
when entities are set, default parse_mode become disabled (#461)
* when entities are set, default parse_mode become disabled

* check entities is not None
2020-11-09 23:54:23 +02:00
Alex Root Junior
7f448b4d8e Fix files URL template 2020-11-09 11:39:19 +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
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
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
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
50b5768759 AIOG-T-61 Bump version 2020-06-08 20:20:43 +03:00
mpa
6508235d16 fix(BaseBot): remove __del__ method from BaseBot
implement "lazy" session property getter and new get_new_session for BaseBot
2020-05-10 01:13:00 +04:00
Alex Root Junior
61cfb8e99a
Merge pull request #297 from aiogram/feature/bot_id
#296 Get bot's user_id without get_me
2020-04-26 00:24:50 +03:00
Alex Root Junior
f1f65d2e77 i-AIOG-18 Update versions (readme, setup, etc.) 2020-04-25 22:54:44 +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
Oleg A
8cd781048a #296 Get bot's user_id without get_me 2020-04-07 09:36:16 +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
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
Alex Root Junior
8f07b1248e More safe bot deleter 2020-04-05 18:22:52 +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
Alex Root Junior
6c0f6888fa
Merge pull request #287 from crazyuploader/patch-1
Fix some typos and grammatical mistakes
2020-03-29 15:05:08 +03:00
2noik
b8311c034e add send_phone_number_to_provider and send_email_to_provider 2020-02-03 21:49:37 +03:00
Alex Root Junior
ad2bf96eb7 Bump API and framework versions 2020-01-23 23:21:49 +02:00
gabbhack
ee803303aa Bot API 4.6 2020-01-23 20:23:08 +05:00
Alex Root Junior
2323771cb9 Bump versions and URL's 2020-01-01 16:55:33 +02:00
Alex Root Junior
c19e2a0d42
Merge pull request #248 from a6a3uh/fix_socks_login
Latest version of aiohttp_socks changed interface
2020-01-01 16:41:25 +02:00
Alex Root Junior
9115a44be6 Backport of text decoration utils from 3.0 2020-01-01 16:39:31 +02: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
Ali Tlisov
c0353b802d fixed socks proxy usage 2019-12-29 18:49:46 +03:00
Oleg A
4523a1cab3 #239 added token type validation 2019-11-23 12:45:47 +03:00
Oleg A
f5d008938f #239 added check for right part of token exists; removed check for left part length 2019-11-23 11:46:50 +03:00
Alex Root Junior
cb4f459597 Fix typing for until_date argument (can be datetime or timedelta) 2019-10-29 21:19:55 +02:00
Alex Root Junior
bd90c726b5 Fix Bot.__del__ for cases when event loop is closed 2019-10-14 14:53:12 +03:00
Vasiliy
f13a14c5ef
Fixed send_poll required params 2019-10-05 20:23:54 +04:00