fact chect attribute

This commit is contained in:
Mikhail Filimonov 2024-05-22 17:20:29 +04:00
parent 464eb8625f
commit f77b7a7b33

View File

@ -441,6 +441,16 @@ public extension Message {
}
return nil
}
var factCheckAttribute: FactCheckMessageAttribute? {
for attribute in self.attributes {
if let attribute = attribute as? FactCheckMessageAttribute {
return attribute
}
}
return nil
}
var inlineBotAttribute: InlineBusinessBotMessageAttribute? {
for attribute in self.attributes {
if let attribute = attribute as? InlineBusinessBotMessageAttribute {