Add some tests, fix copyMessage.
This commit is contained in:
parent
24e02f7ba6
commit
4064ced03f
6 changed files with 96 additions and 5 deletions
5
types.go
5
types.go
|
@ -584,6 +584,11 @@ func (m *Message) CommandArguments() string {
|
|||
return m.Text[entity.Length+1:]
|
||||
}
|
||||
|
||||
// MessageID represents a unique message identifier.
|
||||
type MessageID struct {
|
||||
MessageID int `json:"message_id"`
|
||||
}
|
||||
|
||||
// MessageEntity represents one special entity in a text message.
|
||||
type MessageEntity struct {
|
||||
// Type of the entity.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue