🤖 The wrapper for the Telegram Bot API written in Swift. It's not a framework. There is no special syntax here. This is a library that implements all Telegram Bot API methods, which is available to you to work with Vapor, Smoke, Hummingbird, FlyingFox.
According to API docs v7, both Message and InaccessibleMessage share 3 common properties
chat
messageId
date
To make those properties available when accessing TGMaybeInaccessibleMessage a public extension has been added to TGMaybeInaccessibleMessage.
Now any TGMaybeInaccessibleMessage instance can have access to the above properties.
It causes no breaking to new API and also prevents older codes to break.
According to API docs v7, both
Message
andInaccessibleMessage
share 3 common propertiesTo make those properties available when accessing
TGMaybeInaccessibleMessage
a public extension has been added toTGMaybeInaccessibleMessage
. Now anyTGMaybeInaccessibleMessage
instance can have access to the above properties.It causes no breaking to new API and also prevents older codes to break.