packages feed

telegram-bot-simple 0.11 → 0.11.1

raw patch · 4 files changed

+29/−1 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Telegram.Bot.Simple.RunTG: instance Telegram.Bot.Simple.RunTG.RunTG Telegram.Bot.API.Methods.GetMyDescription.GetMyDescriptionRequest (Telegram.Bot.API.MakingRequests.Response Telegram.Bot.API.Types.BotDescription.BotDescription)
+ Telegram.Bot.Simple.RunTG: instance Telegram.Bot.Simple.RunTG.RunTG Telegram.Bot.API.Methods.GetMyShortDescription.GetMyShortDescriptionRequest (Telegram.Bot.API.MakingRequests.Response Telegram.Bot.API.Types.BotShortDescription.BotShortDescription)
+ Telegram.Bot.Simple.RunTG: instance Telegram.Bot.Simple.RunTG.RunTG Telegram.Bot.API.Methods.SetMyDescription.SetMyDescriptionRequest (Telegram.Bot.API.MakingRequests.Response GHC.Types.Bool)
+ Telegram.Bot.Simple.RunTG: instance Telegram.Bot.Simple.RunTG.RunTG Telegram.Bot.API.Methods.SetMyShortDescription.SetMyShortDescriptionRequest (Telegram.Bot.API.MakingRequests.Response GHC.Types.Bool)

Files

CHANGELOG.md view
@@ -1,3 +1,8 @@+0.11.1+---++- Add `RunTG` instances for newly added methods in 6.5.1.+ 0.11 --- 
README.md view
@@ -23,4 +23,11 @@ Contributions are welcome! Feel free to ping me on GitHub, file an issue or submit a PR :) +## Compatibility++| telegram-bot-api  | telegram-bot-simple |+| ------------- | ------------- |+| 0.10  | 6.5  |+| 0.11.1  | 6.5.1  |+ _Nick_
src/Telegram/Bot/Simple/RunTG.hs view
@@ -231,6 +231,14 @@ instance RunTG SetMyDefaultAdministratorRightsRequest (Response Bool) where   runTG = runTG . setMyDefaultAdministratorRights +-- | Wrapper around 'SetMyDescriptionRequest' request type for 'setMyDescription' method.+instance RunTG SetMyDescriptionRequest (Response Bool) where+  runTG = runTG . setMyDescription++-- | Wrapper around 'SetMyShortDescriptionRequest' request type for 'setMyShortDescription' method.+instance RunTG SetMyShortDescriptionRequest (Response Bool) where+  runTG = runTG . setMyShortDescription+ -- | Wrapper around 'CreateChatInviteLinkRequest' request type for 'createChatInviteLink' method. instance RunTG CreateChatInviteLinkRequest (Response ChatInviteLink) where   runTG = runTG . createChatInviteLink@@ -250,6 +258,14 @@ -- | Wrapper around 'GetMyDefaultAdministratorRightsRequest' request type for 'getMyDefaultAdministratorRights' method. instance RunTG GetMyDefaultAdministratorRightsRequest (Response ChatAdministratorRights) where   runTG = runTG . getMyDefaultAdministratorRights++-- | Wrapper around 'GetMyDescriptionRequest' request type for 'getMyDescription' method.+instance RunTG GetMyDescriptionRequest (Response BotDescription) where+  runTG = runTG . getMyDescription++-- | Wrapper around 'GetMyShortDescriptionRequest' request type for 'getMyShortDescription' method.+instance RunTG GetMyShortDescriptionRequest (Response BotShortDescription) where+  runTG = runTG . getMyShortDescription  -- | Wrapper around 'BanChatMemberRequest' request type for 'banChatMember' method. instance RunTG BanChatMemberRequest (Response Bool) where
telegram-bot-simple.cabal view
@@ -1,7 +1,7 @@ cabal-version: 1.12  name:           telegram-bot-simple-version:        0.11+version:        0.11.1 synopsis:       Easy to use library for building Telegram bots. description:    Please see the README on Github at <https://github.com/fizruk/telegram-bot-simple#readme> category:       Web