You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I started dividing the long list of changes into small work packages, which can be tackled one by one. Went until file albums for now. feel free to edit & extend the list.
If we work on this with multiple people, I propose making a api-5.0-master branch which we can feed the changes to one by one in standalone PRs so that we have small PRs to review and at the same time have one big PR for checking that test_official works out before we merge
Edit: See #2181. all api-5.0-PRs should be based on api-5.0-master. If merge conflicts occour with master, we can merge once in the end.
WP4.4: Files (API 5.0 WP4.3: Handling of files in local mode #2223)
for self hosted servers with the local flag, files can be passed as file:///absolute/path/to/file. Maybe not in the initial release of api 5.0 but at least in the long rung we should support
new attribute proximity_alert_triggered for Message
WP7.2: Live Locations (@Bibo-Joshi, Api 5.0 WP 7 (Live Locations) #2188)
new attributes heading, proximity_alert_distance and horizontal_accuracy for Location, InlineQueryResultLocation and InputLocationMessageContent.
WP7.3: Live Locations (@Bibo-Joshi, Api 5.0 WP 7 (Live Locations) #2188)
new parameters heading, proximity_alert_distance and horizontal_accuracy for send_location and edit_message_live_location.
depricate remove the recently added convenience properties (see Add new constants #2147, that never was in a release, so we might as well remove completely)
double check that all the docs were updated correctly
WP11.2: Meta
double check everything once more
WP12: Shortcuts (@Poolitzer, Api 5.0 WP 9.1 #2196 )
this would be nice to have in the 5.0 PR but if not, that's okay too, then we'll do later
Message.reply_copy as shortcut for copy_message(chat_id=message.chat_id, …)
Message.copy as shortcut for copy_message(from_chat_id=message.chat.id, message_id=message.message_id, …)
CallbackQuery.copy_message as shortcut for cbq.message.copy
{Chat, User}.copy_message as shortcut for copy_message(from_chat_id=chat/user.id, …)
{Chat, User}.send_copy as shortcut forcopy_message(chat_id=chat/user.id, …)
WP13: New things building on API 5.0 (Api 5.0 WP 13 (New Filters) #2205)
these can go into separate PRs and don't necessarily have to be released with API 5.0. just noting here before I forget:
use the self-hosted api servers to stabilize tests.
Filters.sender_chat working the same as Filters.chat. Calling Filters.sender_chat(chat_id) will allow to exclude anon. admins and forwarded channel posts in specific groups. Also by now it's probably good to have Filters.{chat, user, via_bot, sender_chat} inherit from a common base class or from one another …
adding attributes Filters.sender_chat.{super_group, channel} will allow to exclude anon. admins and forwarded channel posts in all groups
WP14: New Wiki page
create a wiki page listing common questions for self-hosted apis. this should include
I started dividing the long list of changes into small work packages, which can be tackled one by one. Went until
file albumsfor now. feel free to edit & extend the list.If we work on this with multiple people, I propose making a
api-5.0-masterbranch which we can feed the changes to one by one in standalone PRs so that we have small PRs to review and at the same time have one big PR for checking thattest_officialworks out before we mergeEdit: See #2181. all api-5.0-PRs should be based on
api-5.0-master. If merge conflicts occour with master, we can merge once in the end.WP1: API Servers (@Bibo-Joshi, API 5.0 WP 1+2 (API Servers & Webhooks) #2183)
new
logOutandclosemethodsWP2.1: Webhooks (@Bibo-Joshi, API 5.0 WP 1+2 (API Servers & Webhooks) #2183)
new parameters for
set/deleteWebhookWP2.2: Webhooks (@Bibo-Joshi, API 5.0 WP 1+2 (API Servers & Webhooks) #2183)
WebhookInfoWP3.1: Groups (@Bibo-Joshi, API 5.0 WP 3 (Working with Groups) #2185)
new attributes for
Chat, returned byget_chatWP3.2: Groups (@Bibo-Joshi, API 5.0 WP 3 (Working with Groups) #2185)
ChatLocationunban_chat_memberWP4.1: Files (@Bibo-Joshi, Api 5.0 WP 4 (Working with Files) #2186 )
new attribute for
AudioandVideoWP4.2: Files (@Bibo-Joshi, Api 5.0 WP 4 (Working with Files) #2186 )
new parameter for
send_documentandInputMediaDocumentWP4.3: Files (@Poolitzer, API 5.0 WP4.3: Handling of files in local mode #2223)
check how the custom bot API server behaves with the local flag and file download
WP4.4: Files (API 5.0 WP4.3: Handling of files in local mode #2223)
for self hosted servers with the local flag, files can be passed as
file:///absolute/path/to/file. Maybe not in the initial release of api 5.0 but at least in the long rung we should support/absolute/path/to/file/relative/path/to/filepathlib.PathobjectWP5: Pinned messages (@harshil21, API 5.0 WP5 - Pinned messages #2184 )
unpit_chat_messageunpit_all_chat_messagesWP6: File albums (Api 5.0 WP 6 (File albums) #2187)
update type hints for
send_media_groupWP7.1: Live Locations (@Bibo-Joshi, Api 5.0 WP 7 (Live Locations) #2188)
live_periodforLocationProximityAlertTriggeredproximity_alert_triggeredforMessageWP7.2: Live Locations (@Bibo-Joshi, Api 5.0 WP 7 (Live Locations) #2188)
new attributes
heading,proximity_alert_distanceandhorizontal_accuracyforLocation,InlineQueryResultLocationandInputLocationMessageContent.WP7.3: Live Locations (@Bibo-Joshi, Api 5.0 WP 7 (Live Locations) #2188)
new parameters
heading,proximity_alert_distanceandhorizontal_accuracyforsend_locationandedit_message_live_location.WP8.1: Anonymous Admins (@Bibo-Joshi, Api 5.0 WP 8 (Anonymous Adimns) #2189)
sender_chatforMessagedepricateremove the recently added convenience properties (see Add new constants #2147, that never was in a release, so we might as well remove completely)WP8.2: Anonymous Admins (@Bibo-Joshi, Api 5.0 WP 8 (Anonymous Adimns) #2189)
is_anonymousforChatMemberis_anonymousforpromote_chat_memberMessage.author_signatureWP9.1: And More (@Poolitzer, Api 5.0 WP 9.1 #2196 )
MessageIDcopy_messageWP9.2: And More - Entities (@Bibo-Joshi, Api 5.0 WP 9.2+9.3 (caption_entities for InputMedia* and InlineQueryResult*) #2199)
new parameter
entitiesfor theInputMediaclassesWP9.3 And More - Entities (@Bibo-Joshi, Api 5.0 WP 9.2+9.3 (caption_entities for InputMedia* and InlineQueryResult*) #2199)
new parameter
entitiesfor theInlineQueryResultclassesWP9.4: And More - Entities (@Bibo-Joshi, Api 5.0 WP 9.2+9.3 (caption_entities for InputMedia* and InlineQueryResult*) #2199)
new parameter
entitiesfor thesend_{message,photo,video,animation,audio,document,voice,poll}andedit_message_{text,caption}methodsWP9.5: And More (@Bibo-Joshi, Api 5.0 WP 9.5 (Google Place Venues) #2193)
Venue,IQRVenue,InputVenueMessageContentsend_venueWP9.6: And More (@Bibo-Joshi, Api 5.0 WP 9.6 (allow_sending_without_reply) #2192)
allow_sending_without_replyto all thesend_*methodsWP10: Dice (@Bibo-Joshi, Api 5.0 WP 10 (Dice) #2190)
DiceWP11.1: Meta
WP11.2: Meta
double check everything once more
WP12: Shortcuts (@Poolitzer, Api 5.0 WP 9.1 #2196 )
this would be nice to have in the 5.0 PR but if not, that's okay too, then we'll do later
Message.reply_copyas shortcut forcopy_message(chat_id=message.chat_id, …)Message.copyas shortcut forcopy_message(from_chat_id=message.chat.id, message_id=message.message_id, …)CallbackQuery.copy_messageas shortcut forcbq.message.copy{Chat, User}.copy_messageas shortcut forcopy_message(from_chat_id=chat/user.id, …){Chat, User}.send_copyas shortcut forcopy_message(chat_id=chat/user.id, …)WP13: New things building on API 5.0 (Api 5.0 WP 13 (New Filters) #2205)
these can go into separate PRs and don't necessarily have to be released with API 5.0. just noting here before I forget:
Filters.sender_chatworking the same asFilters.chat. CallingFilters.sender_chat(chat_id)will allow to exclude anon. admins and forwarded channel posts in specific groups. Also by now it's probably good to haveFilters.{chat, user, via_bot, sender_chat}inherit from a common base class or from one another …Filters.sender_chat.{super_group, channel}will allow to exclude anon. admins and forwarded channel posts in all groupsWP14: New Wiki page
create a wiki page listing common questions for self-hosted apis. this should include
--localflag and filesbase_urlshould end with/bot