reactionsAttribute

This commit is contained in:
overtake
2021-12-01 21:30:45 +04:00
parent cb6ebecab4
commit 07944e9d49

View File

@@ -313,6 +313,16 @@ public extension Message {
return nil
}
}
public extension Message {
var reactionsAttribute: ReactionsMessageAttribute? {
for attribute in self.attributes {
if let attribute = attribute as? ReactionsMessageAttribute {
return attribute
}
}
return nil
}
}
public func _internal_parseMediaAttachment(data: Data) -> Media? {
guard let object = Api.parse(Buffer(buffer: MemoryBuffer(data: data))) else {