Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

DirectMessage #28

Closed
ghost opened this issue Mar 23, 2017 · 4 comments
Closed

DirectMessage #28

ghost opened this issue Mar 23, 2017 · 4 comments

Comments

@ghost
Copy link

ghost commented Mar 23, 2017

Hello, thanks for your package, Im trying to send simple message through DirectMessage(), help me, please
screenshot from 2017-03-23 19-06-36

@zhuharev
Copy link
Contributor

@kuronyago tell about the difficulties you encountered and give text of your code

@ahmdrz
Copy link
Owner

ahmdrz commented Mar 23, 2017

Hi @kuronyago
Direct has three types.

  1. Uploaded Photo - Video
  2. Share
  3. Text

Only text implemented in goinsta

By the way , You can send direct text with these simple lines :

	insta := goinsta.New(Username, Password)
	if err = insta.Login(); err != nil {
		log.Fatal("Instagram : Connection refused")
	}
	defer insta.Logout()

	user, _ := insta.GetUsername(AnotherUsername)
	insta.DirectMessage(strconv.Itoa(user.User.Pk), "Hello World")

@ghost
Copy link
Author

ghost commented Mar 24, 2017

thank you for help

@ghost ghost closed this as completed Mar 24, 2017
@batara666
Copy link

GetUsername is not exist

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants