mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-17 03:40:18 +00:00
fact chect attribute
This commit is contained in:
parent
464eb8625f
commit
f77b7a7b33
@ -441,6 +441,16 @@ public extension Message {
|
|||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var factCheckAttribute: FactCheckMessageAttribute? {
|
||||||
|
for attribute in self.attributes {
|
||||||
|
if let attribute = attribute as? FactCheckMessageAttribute {
|
||||||
|
return attribute
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
var inlineBotAttribute: InlineBusinessBotMessageAttribute? {
|
var inlineBotAttribute: InlineBusinessBotMessageAttribute? {
|
||||||
for attribute in self.attributes {
|
for attribute in self.attributes {
|
||||||
if let attribute = attribute as? InlineBusinessBotMessageAttribute {
|
if let attribute = attribute as? InlineBusinessBotMessageAttribute {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user