groupme-js / GroupMeCommunityDocs

21 stars 8 forks source link

More Attachment types #4

Open not-so-smart opened 2 years ago

not-so-smart commented 2 years ago

I analyzed a bunch of messages from a large group and found these attachment types. (Sample: 80,000 messages from 1 group, August 2020-August 2021)

These ones are already documented:

These ones are documented, but they didn't show up at all in my sample: (perhaps deprecated?)

These ones still need documentation:

I'll add examples of each in the comments

2CATteam commented 2 years ago

Note that polls are already documented here, but it doesn't say anything about how to manually add them to a message, because as far as I know, sending a message about an event is an intrinsic part of creating it - you can't make it without a message about it being sent.

not-so-smart commented 2 years ago

Note that polls are already documented here, but it doesn't say anything about how to manually add them to a message, because as far as I know, sending a message about an event is an intrinsic part of creating it - you can't make it without a message about it being sent.

See #5, some attachments can't be sent (only received) and should be labelled as such on the docs

2CATteam commented 2 years ago

Makes sense, carry on

not-so-smart commented 2 years ago

type: event

see #6 for details

type: file

{
    type:    "file",
    file_id: string,
}

type: poll

{
    type:    "poll",
    poll_id: string,
}

type: linked_image

{
    type: "linked_image",
    url:  string,
}

type: autokicked_member

{
    type:    "autokicked_member",
    user_id: string,
}