mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
fact chect attribute
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user