i am not able to send message #1704
Unanswered
manishworking
asked this question in
Q&A
Replies: 1 comment
-
def extract_direct_message(data):
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
site-packages\pydantic\main.py", line 164, in init
pydantic_self.pydantic_validator.validate_python(data, self_instance=pydantic_self)
pydantic_core._pydantic_core.ValidationError: 1 validation error for DirectMessage
timestamp
Input should be a valid datetime, dates after 9999 are not supported as unix timestamps [type=datetime_parsing, input_value='1702876892720207', input_type=str]
For further information visit https://errors.pydantic.dev/2.5/v/datetime_parsing
here is code
from instagrapi import Client
with open('credential.txt', 'r') as f:
USERNAME =f.readline()
PASSWORD=f.readline()
cl = Client()
cl.load_settings('settings.json')
usernam1=cl.user_id_from_username('zara')
cl.direct_send('Hello', user_ids=[usernam1])
Beta Was this translation helpful? Give feedback.
All reactions