Skip to content

Instantly share code, notes, and snippets.

@adibaulia
Last active August 26, 2020 03:36
Show Gist options
  • Select an option

  • Save adibaulia/7506355dd6487915c11d2db6720ae908 to your computer and use it in GitHub Desktop.

Select an option

Save adibaulia/7506355dd6487915c11d2db6720ae908 to your computer and use it in GitHub Desktop.
package models
import "github.com/dghubble/go-twitter/twitter"
type (
Request struct {
Tweet string `json:"tweet,omitempty"`
Crc_token string `json:"crc_token,omitempty" form:"crc_token" query:"crc_token"`
}
DMEvent struct {
ForUserID string `json:"for_user_id"`
DirectMessageEvents []twitter.DirectMessageEvent `json:"direct_message_events"`
}
DBStruct struct {
Text string `json:"text"`
}
Message struct {
SenderID string `json:"sender_id"`
ID string `json:"id"`
Message string `json:"message"`
MediaID []int64 `json:"media_id"`
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment