diff --git a/src/Web/Telegram/API/Bot/JsonExt.hs b/src/Web/Telegram/API/Bot/JsonExt.hs
--- a/src/Web/Telegram/API/Bot/JsonExt.hs
+++ b/src/Web/Telegram/API/Bot/JsonExt.hs
@@ -13,12 +13,12 @@
 import           GHC.Generics
 
 -- | Method used to drop prefix from field name during serialization
-toJsonDrop :: forall a.(GHC.Generics.Generic a, GToJSON (GHC.Generics.Rep a)) => Int -> a -> Value
+toJsonDrop :: forall a.(Generic a, GToJSON Zero (Rep a)) => Int -> a -> Value
 toJsonDrop prefix = genericToJSON defaultOptions {
     fieldLabelModifier = drop prefix
   , omitNothingFields = True
   }
 
 -- | Method used to drop prefix from field name during deserialization
-parseJsonDrop :: forall a.(Generic a, GFromJSON (Rep a)) => Int -> Value -> Parser a
+parseJsonDrop :: forall a.(Generic a, GFromJSON Zero (Rep a)) => Int -> Value -> Parser a
 parseJsonDrop prefix = genericParseJSON defaultOptions { fieldLabelModifier = drop prefix }
diff --git a/telegram-api.cabal b/telegram-api.cabal
--- a/telegram-api.cabal
+++ b/telegram-api.cabal
@@ -1,5 +1,5 @@
 name:                telegram-api
-version:             0.5.0.0
+version:             0.5.0.1
 synopsis:            Telegram Bot API bindings
 description:         High-level bindings to the Telegram Bot API
 homepage:            http://github.com/klappvisor/haskell-telegram-api#readme
@@ -34,12 +34,12 @@
   other-modules:       Web.Telegram.API.Bot.JsonExt
                      , Servant.Client.MultipartFormData
   build-depends:       base >= 4.7 && < 5
-                     , aeson
+                     , aeson == 1.0.*
                      , either
                      , http-api-data
                      , http-client
-                     , servant == 0.7.*
-                     , servant-client == 0.7.*
+                     , servant >= 0.7 && <0.9
+                     , servant-client >= 0.7 && <0.9
                      , text
                      , transformers
                      , http-media
@@ -58,7 +58,7 @@
                      , InlineSpec
                      , JsonSpec
   build-depends:       base
-                     , aeson
+                     , aeson == 1.0.*
                      , hjpath
                      , ansi-wl-pprint
                      , http-client
@@ -66,8 +66,8 @@
                      , http-types
                      , hspec
                      , optparse-applicative
-                     , servant == 0.7.*
-                     , servant-client == 0.7.*
+                     , servant >= 0.7 && <0.9
+                     , servant-client >= 0.7 && <0.9
                      , telegram-api
                      , http-types
                      , filepath
