1
0

Added hasAuthorSignature helper

This commit is contained in:
Maxim Lebedev 2018-01-29 13:02:35 +05:00
parent ce202b981f
commit 6028dbc557
No known key found for this signature in database
GPG Key ID: F8978F46FF0FFA4F

View File

@ -234,3 +234,11 @@ func (msg *Message) HasCaptionMentions() bool {
func (msg *Message) HasCaption() bool {
return !msg.IsText() && msg.Caption != ""
}
func (msg *Message) HasAuthorSignature() bool {
if msg == nil {
return false
}
return msg.AuthorSignature != ""
}