✨ Added hasAuthorSignature helper
This commit is contained in:
parent
ce202b981f
commit
6028dbc557
|
@ -234,3 +234,11 @@ func (msg *Message) HasCaptionMentions() bool {
|
||||||
func (msg *Message) HasCaption() bool {
|
func (msg *Message) HasCaption() bool {
|
||||||
return !msg.IsText() && msg.Caption != ""
|
return !msg.IsText() && msg.Caption != ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (msg *Message) HasAuthorSignature() bool {
|
||||||
|
if msg == nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
return msg.AuthorSignature != ""
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user