Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
ef78c5d9b4
|
|||
|
a04375efbd
|
67
types.go
67
types.go
@@ -50,17 +50,41 @@ type MessageReplyMarkup struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Message struct {
|
type Message struct {
|
||||||
MessageID int `json:"message_id"`
|
MessageID int `json:"message_id"`
|
||||||
MessageThreadID int `json:"message_thread_id,omitempty"`
|
MessageThreadID int `json:"message_thread_id,omitempty"`
|
||||||
From *User `json:"from,omitempty"`
|
BusinessConnectionId string `json:"business_connection_id,omitempty"`
|
||||||
Chat *Chat `json:"chat,omitempty"`
|
From *User `json:"from,omitempty"`
|
||||||
Text string `json:"text"`
|
|
||||||
|
|
||||||
Photo extypes.Slice[*PhotoSize] `json:"photo,omitempty"`
|
SenderChat *Chat `json:"sender_chat,omitempty"`
|
||||||
Caption string `json:"caption,omitempty"`
|
SenderBoostCount int `json:"sender_boost_count,omitempty"`
|
||||||
ReplyToMessage *Message `json:"reply_to_message"`
|
SenderBusinessBot *User `json:"sender_business_bot,omitempty"`
|
||||||
|
Chat *Chat `json:"chat,omitempty"`
|
||||||
|
|
||||||
|
IsTopicMessage bool `json:"is_topic_message,omitempty"`
|
||||||
|
IsAutomaticForward bool `json:"is_automatic_forward,omitempty"`
|
||||||
|
IsFromOffline bool `json:"is_from_offline,omitempty"`
|
||||||
|
IsPaidPost bool `json:"is_paid_post,omitempty"`
|
||||||
|
MediaGroupId string `json:"media_group_id,omitempty"`
|
||||||
|
AuthorSignature string `json:"author_signature,omitempty"`
|
||||||
|
PaidStarCount int `json:"paid_star_count,omitempty"`
|
||||||
|
ReplyToMessage *Message `json:"reply_to_message,omitempty"`
|
||||||
|
|
||||||
|
Text string `json:"text"`
|
||||||
|
|
||||||
|
Photo extypes.Slice[*PhotoSize] `json:"photo,omitempty"`
|
||||||
|
Caption string `json:"caption,omitempty"`
|
||||||
|
CaptionEntities []MessageEntity `json:"caption_entities,omitempty"`
|
||||||
|
|
||||||
|
Date int `json:"date"`
|
||||||
|
EditDate int `json:"edit_date"`
|
||||||
|
|
||||||
ReplyMarkup *MessageReplyMarkup `json:"reply_markup,omitempty"`
|
ReplyMarkup *MessageReplyMarkup `json:"reply_markup,omitempty"`
|
||||||
|
|
||||||
|
Entities []MessageEntity `json:"entities,omitempty"`
|
||||||
|
LinkPreviewOptions *LinkPreviewOptions `json:"link_preview_options,omitempty"`
|
||||||
|
SuggestedPostInfo *SuggestedPostInfo `json:"suggested_post_info,omitempty"`
|
||||||
|
|
||||||
|
EffectID string `json:"effect_id,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type InaccessableMessage struct {
|
type InaccessableMessage struct {
|
||||||
@@ -72,8 +96,33 @@ type InaccessableMessage struct {
|
|||||||
type MaybeInaccessibleMessage struct {
|
type MaybeInaccessibleMessage struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type MessageEntityType string
|
||||||
|
|
||||||
|
const (
|
||||||
|
MessageEntityMention MessageEntityType = "mention"
|
||||||
|
MessageEntityHashtag MessageEntityType = "hashtag"
|
||||||
|
MessageEntityCashtag MessageEntityType = "cashtag"
|
||||||
|
MessageEntityBotCommand MessageEntityType = "bot_command"
|
||||||
|
MessageEntityUrl MessageEntityType = "url"
|
||||||
|
MessageEntityEmail MessageEntityType = "email"
|
||||||
|
MessageEntityPhoneNumber MessageEntityType = "phone_number"
|
||||||
|
MessageEntityBold MessageEntityType = "bold"
|
||||||
|
MessageEntityItalic MessageEntityType = "italic"
|
||||||
|
MessageEntityUnderline MessageEntityType = "underline"
|
||||||
|
MessageEntityStrike MessageEntityType = "strikethrough"
|
||||||
|
MessageEntitySpoiler MessageEntityType = "spoiler"
|
||||||
|
MessageEntityBlockquote MessageEntityType = "blockquote"
|
||||||
|
MessageEntityExpandableBlockquote MessageEntityType = "expandable_blockquote"
|
||||||
|
MessageEntityCode MessageEntityType = "code"
|
||||||
|
MessageEntityPre MessageEntityType = "pre"
|
||||||
|
MessageEntityTextLink MessageEntityType = "text_link"
|
||||||
|
MessageEntityTextMention MessageEntityType = "text_mention"
|
||||||
|
MessageEntityCustomEmoji MessageEntityType = "custom_emoji"
|
||||||
|
)
|
||||||
|
|
||||||
type MessageEntity struct {
|
type MessageEntity struct {
|
||||||
Type string `json:"type"`
|
Type MessageEntityType `json:"type"`
|
||||||
|
|
||||||
Offset int `json:"offset"`
|
Offset int `json:"offset"`
|
||||||
Length int `json:"length"`
|
Length int `json:"length"`
|
||||||
URL string `json:"url,omitempty"`
|
URL string `json:"url,omitempty"`
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
package laniakea
|
package laniakea
|
||||||
|
|
||||||
const (
|
const (
|
||||||
VersionString = "0.4.3"
|
VersionString = "0.4.4-1"
|
||||||
VersionMajor = 0
|
VersionMajor = 0
|
||||||
VersionMinor = 4
|
VersionMinor = 4
|
||||||
VersionPatch = 3
|
VersionPatch = 4
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user