We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af029c3 commit 6da34a6Copy full SHA for 6da34a6
types.go
@@ -112,6 +112,11 @@ func (m *Message) IsGroup() bool {
112
return m.From.ID != m.Chat.ID
113
}
114
115
+// IsGroup returns if the message was sent to a group.
116
+func (m *Message) IsCommand() bool {
117
+ return m.Text != "" && m.Text[0] == '/'
118
+}
119
+
120
// PhotoSize contains information about photos, including ID and Width and Height.
121
type PhotoSize struct {
122
FileID string `json:"file_id"`
0 commit comments