Hello community,
here is the log from the commit of package ghc-telegram-api for
openSUSE:Factory checked in at 2017-05-18 20:51:10
Comparing /work/SRC/openSUSE:Factory/ghc-telegram-api (Old)
and /work/SRC/openSUSE:Factory/.ghc-telegram-api.new (New)
Package is "ghc-telegram-api"
Thu May 18 20:51:10 2017 rev:2 rq:495712 version:0.6.1.1
Changes:
--- /work/SRC/openSUSE:Factory/ghc-telegram-api/ghc-telegram-api.changes
2017-05-10 20:45:56.273620241 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-telegram-api.new/ghc-telegram-api.changes
2017-05-18 20:51:17.946035886 +0200
@@ -1,0 +2,10 @@
+Wed May 3 08:14:03 UTC 2017 - psim...@suse.com
+
+- Update to version 0.6.1.1 with cabal2obs.
+
+---
+Tue Mar 14 09:26:22 UTC 2017 - psim...@suse.com
+
+- Update to version 0.6.1.0 with cabal2obs.
+
+---
Old:
telegram-api-0.6.0.2.tar.gz
New:
telegram-api-0.6.1.1.tar.gz
Other differences:
--
++ ghc-telegram-api.spec ++
--- /var/tmp/diff_new_pack.I50t6S/_old 2017-05-18 20:51:20.009744642 +0200
+++ /var/tmp/diff_new_pack.I50t6S/_new 2017-05-18 20:51:20.009744642 +0200
@@ -19,7 +19,7 @@
%global pkg_name telegram-api
%bcond_with tests
Name: ghc-%{pkg_name}
-Version:0.6.0.2
+Version:0.6.1.1
Release:0
Summary:Telegram Bot API bindings
License:BSD-3-Clause
++ telegram-api-0.6.0.2.tar.gz -> telegram-api-0.6.1.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/telegram-api-0.6.0.2/CHANGELOG.md
new/telegram-api-0.6.1.1/CHANGELOG.md
--- old/telegram-api-0.6.0.2/CHANGELOG.md 2017-01-31 20:10:31.0
+0100
+++ new/telegram-api-0.6.1.1/CHANGELOG.md 2017-04-30 17:21:45.0
+0200
@@ -1,3 +1,18 @@
+## 0.6.1.1
+
+Bugfixes:
+
+* Migration to `Int64` to represent chat id and fix integer overflow issue
+
+## 0.6.1.0
+
+* Added `ChatId` data type since it can be integer or string starting from
`@`, f.e. `@channelusername`
+* Changes in `getUpdates` and `getUpdateM` function
+
+## 0.6.0.1
+
+* Bump aeson upper bound to include 1.1.*
+
## 0.6.0.0
* Added `TelegramClient`, see example of usage in README.md
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/telegram-api-0.6.0.2/src/Web/Telegram/API/Bot/API/Get.hs
new/telegram-api-0.6.1.1/src/Web/Telegram/API/Bot/API/Get.hs
--- old/telegram-api-0.6.0.2/src/Web/Telegram/API/Bot/API/Get.hs
2017-01-31 20:10:31.0 +0100
+++ new/telegram-api-0.6.1.1/src/Web/Telegram/API/Bot/API/Get.hs
2017-03-06 21:48:58.0 +0100
@@ -17,8 +17,8 @@
) where
import Data.Proxy
-import Data.Text(Text)
-import Network.HTTP.Client (Manager)
+import Data.Text (Text)
+import Network.HTTP.Client(Manager)
import Servant.API
import Servant.Client
import Web.Telegram.API.Bot.API.Core
@@ -32,7 +32,7 @@
:> QueryParam "file_id" Text
:> Get '[JSON] FileResponse
:<|> TelegramToken :> "getUserProfilePhotos"
- :> QueryParam "user_id" Int
+ :> QueryParam "user_id" Integer
:> QueryParam "offset" Int
:> QueryParam "limit" Int
:> Get '[JSON] UserProfilePhotosResponse
@@ -43,7 +43,7 @@
getMe_ :: Token -> ClientM GetMeResponse
getFile_ :: Token -> Maybe Text -> ClientM FileResponse
-getUserProfilePhotos_ :: Token -> Maybe Int -> Maybe Int -> Maybe Int ->
ClientM UserProfilePhotosResponse
+getUserProfilePhotos_ :: Token -> Maybe Integer -> Maybe Int -> Maybe Int
-> ClientM UserProfilePhotosResponse
getMe_
:<|> getFile_
:<|> getUserProfilePhotos_
@@ -67,9 +67,9 @@
getFileM fileId = run_ getFile_ (Just fileId)
-- | Use this method to get a list of profile pictures for a user. Returns a
'UserProfilePhotos' object.
-getUserProfilePhotos :: Token -> Int -> Maybe Int -> Maybe Int -> Manager ->
IO (Either ServantError UserProfilePhotosResponse)
+getUserProfilePhotos :: Token -> Integer -> Maybe Int -> Maybe Int -> Manager
-> IO (Either ServantError UserProfilePhotosResponse)
getUserProfilePhotos token userId offset limit = runClient
(getUserProfilePhotosM userId offset limit) token
-- | See 'getUserProfilePhotos'
-getUserProfilePhotosM :: Int -> Maybe Int -> Maybe Int -> TelegramClient
UserProfilePhotosResponse
+getUserProfilePhotosM :: Integer -> Maybe Int -> Maybe Int -> TelegramClient
UserProfilePhotosResponse
getUserProfi