Instagram Direct Messages API
Project description
Instagram Direct Messages API
Example:
from typing import List
from instagram_direct import InstagramDirect
from instagram_direct.direct_api.model.MessageModel import MessageModel
direct = InstagramDirect(session_id="your_session_id")
async def main():
all_threads = await direct.inbox.all()
all_new_threads = await direct.inbox.all_pending()
selected_thread = await direct.thread.get("thread_id", cursor="for previus pages")
chat_messages: List[MessageModel] = selected_thread.messages
unread_count: int = await direct.badge.unread_count()
Direct API Endpoints:
- /api/v1/direct_v2/inbox/
- /api/v1/direct_v2/pending_inbox/
- /api/v1/direct_v2/threads/<thread_id:int>/
- /api/v1/direct_v2/threads/<thread_id:int>/items/<item_id:int>/seen/
- /api/v1/direct_v2/threads/<thread_id:int>/items/<item_id:int>/delete/
- /api/v1/direct_v2/threads/approve_multiple/
- /api/v1/direct_v2/threads/decline_all/
- /api/v1/direct_v2/threads/decline_multiple/
- /api/v1/direct_v2/threads/broadcast/configure_photo/
- /api/v1/direct_v2/ranked_recipients/
- /api/v1/direct_v2/create_group_thread/
- /api/v1/direct_v2/threads/<thread_id:int>/add_user/
- /api/v1/direct_v2/threads/<thread_id:int>/remove_users/
- /api/v1/direct_v2/threads/<thread_id:int>/add_admins/
- /api/v1/direct_v2/threads/<thread_id:int>/remove_admins/
- /api/v1/direct_v2/threads/<thread_id:int>/update_title/
- /api/v1/direct_v2/threads/<thread_id:int>/mute_video_call/
- /api/v1/direct_v2/threads/<thread_id:int>/unmute_video_call/
- /api/v1/direct_v2/threads/<thread_id:int>/mute/
- /api/v1/direct_v2/threads/<thread_id:int>/unmute/
- /api/v1/direct_v2/threads/<thread_id:int>/leave/
- /api/v1/direct_v2/threads/<thread_id:int>/hide/
- /api/v1/direct_v2/threads/<thread_id:int>/move/
- /api/v1/direct_v2/threads/broadcast/reel_share/
- /api/v1/direct_v2/threads/broadcast/story_share/
- /api/v1/direct_v2/threads/broadcast/live_viewer_invite/
- /api/v1/direct_v2/threads/broadcast/link/
- /api/v1/direct_v2/threads/broadcast/reel_react/
- /api/v1/direct_v2/get_badge_count/
- /api/v1/direct_v2/get_presence/
- /api/v1/direct_v2/threads/broadcast/forward/
- /api/v1/direct_v2/has_interop_upgraded/
-
/api/v1/direct_v2/threads/<thread_id:int>/get_items/ - /api/v1/direct_v2/icebreakers/get_suggested_icebreakers/
- /api/v1/direct_v2/threads/<thread_id:int>/set_disappearing_messages_settings/
- /api/v1/users/web_profile_info/
Supported 4/35 Endpoints
Внимание:
Автор/ы кода не несут ответственности если ваш аккаунт заблокируют или получит ограничения
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
instagram_direct-0.0.4.tar.gz
(13.2 kB
view details)
Built Distribution
File details
Details for the file instagram_direct-0.0.4.tar.gz
.
File metadata
- Download URL: instagram_direct-0.0.4.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.15 Linux/5.15.0-119-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6e8c56891ffb375b3512f61874cd455702d3b80526dcd4b4af5c2d74180e341 |
|
MD5 | cf7d3b173a9c94ba4409ea54dbfb28d3 |
|
BLAKE2b-256 | 38120ab9362807343b964ef39ee18b233f134b56cd04ed00b815cd6f2e7b792a |
File details
Details for the file instagram_direct-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: instagram_direct-0.0.4-py3-none-any.whl
- Upload date:
- Size: 30.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.15 Linux/5.15.0-119-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76988ca26a6035b6c83312eeb28bee7697a90962e0f544ecc5aebe2c9eb6d9ee |
|
MD5 | b0d5a88bf71bf419daa5a961d14d8f3a |
|
BLAKE2b-256 | eb62a529da04a424372166727c1495fa5c508f39b5cb56d034eec0e992870b7b |