-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #182 from fizruk/bot-api-7.2
Bot API 7.2
- Loading branch information
Showing
41 changed files
with
317 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,39 @@ | ||
packages: | ||
telegram-bot-api/ | ||
telegram-bot-simple/ | ||
|
||
|
||
allow-newer: deepseq:base | ||
allow-newer: vault:base | ||
allow-newer: array:base | ||
allow-newer: wai-app-static:wai | ||
allow-newer: http2:containers | ||
allow-newer: servant-server:warp | ||
allow-newer: servant-server:wai-app-static | ||
allow-newer: servant-server:http-types | ||
allow-newer: servant-server:either | ||
allow-newer: servant-server:base | ||
allow-newer: servant-client-core:base | ||
allow-newer: servant-client-core:containers | ||
allow-newer: servant-client-core:template-haskell | ||
allow-newer: servant-multipart-client:servant-server | ||
allow-newer: servant-multipart:servant-server | ||
allow-newer: servant-server:containers | ||
allow-newer: servant-server:base-compat | ||
allow-newer: servant-docs:base-compat | ||
allow-newer: servant-docs:base | ||
allow-newer: servant-client:base | ||
allow-newer: servant-client:containers | ||
allow-newer: servant:base | ||
allow-newer: servant-foreign:base | ||
allow-newer: singleton-bool:base | ||
allow-newer: http-api-data:base | ||
allow-newer: http-api-data:containers | ||
allow-newer: uuid-types:template-haskell | ||
allow-newer: dhall:containers | ||
allow-newer: dhall:template-haskell | ||
allow-newer: repline:containers | ||
allow-newer: haskeline:base | ||
allow-newer: serialise:base | ||
allow-newer: cborg:base | ||
allow-newer: cborg-json:base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
telegram-bot-api/src/Telegram/Bot/API/Methods/GetBusinessConnection.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{-# LANGUAGE DataKinds #-} | ||
{-# LANGUAGE TypeApplications #-} | ||
{-# LANGUAGE TypeOperators #-} | ||
module Telegram.Bot.API.Methods.GetBusinessConnection where | ||
|
||
import Data.Proxy | ||
import Servant.API | ||
import Servant.Client hiding (Response) | ||
|
||
import Telegram.Bot.API.MakingRequests | ||
import Telegram.Bot.API.Types | ||
|
||
-- ** 'getBusinessConnection' | ||
|
||
type GetBusinessConnection = "getBusinessConnection" | ||
:> RequiredQueryParam "business_connection_id" BusinessConnectionId | ||
:> Post '[JSON] (Response BusinessConnection) | ||
|
||
-- | Use this method to get information about the connection of the bot with a business account. Returns a 'BusinessConnection' object on success. | ||
getBusinessConnection :: BusinessConnectionId -> ClientM (Response BusinessConnection) | ||
getBusinessConnection = client (Proxy @GetBusinessConnection) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.