Skip to content

Commit

Permalink
tdapi.Message
Browse files Browse the repository at this point in the history
  • Loading branch information
sdfsdhgjkbmnmxc committed Sep 29, 2020
1 parent 06de597 commit 1cb0119
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tdapi/message.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package tdapi

import "github.com/tada-team/tdproto"

type MessageUpdate struct {
Important bool `json:"important,omitempty"`
Nopreview bool `json:"nopreview,omitempty"`
}

type Message struct {
Mediatype tdproto.Mediatype `json:"type"`
Text string `json:"text"`
MessageUid string `json:"message_id,omitempty"`
MessageUpdate
}

// file upload:
// <form action="...?message_id=..." method="post" enctype="multipart/form-data">
// <input type="file" name="file">
// </form>

0 comments on commit 1cb0119

Please sign in to comment.