Skip to content

Commit

Permalink
Remove vapor dependency, rename library
Browse files Browse the repository at this point in the history
  • Loading branch information
Koray Koska committed Jan 29, 2019
1 parent 9d442b8 commit d5ba1fd
Show file tree
Hide file tree
Showing 50 changed files with 157 additions and 97 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2017 Boilertalk
Copyright (c) 2019 Volkn, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
13 changes: 5 additions & 8 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,19 @@
import PackageDescription

let package = Package(
name: "VaporTelegramBot",
name: "TelegramBot",
products: [
.library(
name: "VaporTelegramBot",
targets: ["VaporTelegramBot"]),
name: "TelegramBot",
targets: ["TelegramBot"]),
],
dependencies: [
// Vapor for vapor related requests
.package(url: "https://github.com/vapor/vapor.git", from: "3.0.0"),

// Test dependencies
.package(url: "https://github.com/Quick/Quick.git", from: "1.2.0"),
.package(url: "https://github.com/Quick/Nimble.git", from: "7.0.3")
],
targets: [
.target(name: "VaporTelegramBot", dependencies: ["Vapor"]),
.testTarget(name: "VaporTelegramBotTests", dependencies: ["VaporTelegramBot", "Quick", "Nimble"])
.target(name: "TelegramBot", dependencies: []),
.testTarget(name: "TelegramBotTests", dependencies: ["TelegramBot", "Quick", "Nimble"])
]
)
43 changes: 12 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<a href="https://github.com/Boilertalk/VaporFacebookBot">
<a href="https://github.com/Boilertalk/TelegramBot.swift">
<img src="https://storage.googleapis.com/boilertalk/logo.svg" width="100%" height="256">
</a>

<p align="center">
<a href="https://travis-ci.org/Boilertalk/VaporFacebookBot">
<img src="https://travis-ci.org/Boilertalk/VaporTelegramBot.svg?branch=master" alt="Build Status">
<a href="https://travis-ci.org/Boilertalk/TelegramBot.swift">
<img src="https://travis-ci.org/Boilertalk/TelegramBot.swift.svg?branch=master" alt="Build Status">
</a>
<a href="https://github.com/Boilertalk/VaporFacebookBot/blob/master/LICENSE">
<a href="https://github.com/Boilertalk/TelegramBot.swift/blob/master/LICENSE">
<img src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat" alt="license">
</a>
<a href="https://swift.org">
Expand All @@ -17,13 +17,15 @@
</a>
</p>

# :alembic: VaporTelegramBot
# :alembic: TelegramBot.swift

This library provides helpers for [Vapor 2](https://github.com/vapor/vapor) to interact with the [Telegram bot api](https://core.telegram.org/bots/api). It simplifies the requests to the Telegram API as well as parses incoming [updates](https://core.telegram.org/bots/api#getting-updates) for you.
This library provides helpers for Swift to interact with the [Telegram bot api](https://core.telegram.org/bots/api). It simplifies the requests to the Telegram API as well as parses incoming [updates](https://core.telegram.org/bots/api#getting-updates) for you.

This library can be used with [Vapor 3](https://github.com/vapor/vapor) and with any other web libraries.

## :sparkles: Supported features

The following is a list with all features of the facebook Send API and webhooks as of May 2017 together with a note whether it is supported or not. If you find something that's not listed there please open an [issue](https://github.com/Boilertalk/VaporFacebookBot/issues).
The following is a list with all features of the facebook Send API and webhooks as of May 2017 together with a note whether it is supported or not. If you find something that's not listed there please open an [issue](https://github.com/Boilertalk/TelegramBot.swift/issues).

### Webhooks

Expand All @@ -35,37 +37,16 @@ The following is a list with all features of the facebook Send API and webhooks
## :package: Installation

This Swift package is intended to be used together with Vapor 2.0.
Add the following line to your dependencies in the `Package.swift` file:

```Swift
.Package(url: "https://github.com/Boilertalk/VaporTelegramBot.git", majorVersion: 0)
.package(url: "https://github.com/Boilertalk/TelegramBot.swift.git", from: "0.3.0")
```

Your `Package.swift` file should now look a little bit like the following:
Then you can start importing `TelegramBot`.

```Swift
import PackageDescription

let package = Package(
name: "MyAwesomeBot",
targets: [
Target(name: "App"),
Target(name: "Run", dependencies: ["App"]),
],
dependencies: [
.Package(url: "https://github.com/vapor/vapor.git", majorVersion: 2),
.Package(url: "https://github.com/vapor/fluent-provider.git", majorVersion: 1),
.Package(url: "https://github.com/Boilertalk/VaporTelegramBot.git", majorVersion: 0)
],
exclude: [
"Config",
"Database",
"Localization",
"Public",
"Resources",
]
)
import TelegramBot
```

## :book: Documentation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramCallbackGame.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 24.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramForceReply.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 24.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramInlineKeyboardButton.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 24.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramInlineKeyboardMarkup.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 24.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramKeyboardButton.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 24.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramReplyKeyboardMarkup.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 24.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramReplyKeyboardRemove.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 24.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramAnimation.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 14.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramAudio.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 14.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramCallbackQuery.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 15.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramChat.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 14.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramChatPhoto.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 14.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramChosenInlineResult.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 17.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramContact.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 15.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramDocument.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 14.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramEncryptedCredentials.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 17.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramEncryptedPassportElement.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 17.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramFile.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 17.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramGame.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 14.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramInlineQuery.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 17.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramInvoice.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 15.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramLocation.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 15.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramMaskPosition.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 14.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramMessage.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 14.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramMessageEntity.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 14.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramOrderInfo.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 15.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramPassportData.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 17.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramPassportFile.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 17.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramPhotoSize.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 14.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramPreCheckoutQuery.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 17.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramShippingAddress.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 15.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramShippingQuery.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 17.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramSticker.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 14.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramSuccessfulPayment.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 15.01.19.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// TelegramUpdate.swift
// VaporTelegramBot
// TelegramBot
//
// Created by Koray Koska on 14.01.19.
//
Expand Down
Loading

0 comments on commit d5ba1fd

Please sign in to comment.