Open NavpreetDevpuri opened 3 years ago
Useful scrape_all_contacts(): get a list of all contacts
scrape_all_contacts()
Just for Fun: use scrape_all_contacts() and send_message_to_number() for following functions
send_message_to_number()
https://github.com/Tithibots/tithiwa/blob/7cef0e13b6ab6f8050060bb3cbaad0f59f79c19e/tithiwa/contact.py#L29
send_message_containing_url_to_their_own_chatroom(number): send_message_containing_url_to_their_own_chatroom_to_all_contacts()
send_message_containing_url_to_their_own_chatroom(number)
send_message_containing_url_to_their_own_chatroom_to_all_contacts()
https://github.com/Tithibots/tithiwa/blob/7cef0e13b6ab6f8050060bb3cbaad0f59f79c19e/tithiwa/group.py#L113-L130
That's how we can go through all chats And do similar things to go through all contacts.
HINT: When we open contacts it sends requests containing mobile numbers.
Useful
scrape_all_contacts()
: get a list of all contactsJust for Fun: use
scrape_all_contacts()
andsend_message_to_number()
for following functionshttps://github.com/Tithibots/tithiwa/blob/7cef0e13b6ab6f8050060bb3cbaad0f59f79c19e/tithiwa/contact.py#L29
send_message_containing_url_to_their_own_chatroom(number)
:send_message_containing_url_to_their_own_chatroom_to_all_contacts()