TLSharp/README.md

106 lines
4.5 KiB
Markdown
Raw Normal View History

2015-09-28 04:38:19 +02:00
#TLSharp
2016-10-02 18:13:02 +02:00
[![Join the chat at https://gitter.im/TLSharp/Lobby](https://badges.gitter.im/TLSharp/Lobby.svg)](https://gitter.im/TLSharp/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
2016-02-10 11:58:46 +01:00
[![Build status](https://ci.appveyor.com/api/projects/status/95rl618ch5c4h2fa?svg=true)](https://ci.appveyor.com/project/sochix/tlsharp)
2015-09-28 04:38:19 +02:00
2016-02-14 10:57:42 +01:00
Telegram (http://telegram.org) client library implemented in C#. Only basic functionality is currently implemented. **Consider donation to speed up development process.** Bitcoin wallet: **3K1ocweFgaHnAibJ3n6hX7RNZWFTFcJjUe**
2015-09-28 04:38:19 +02:00
2015-10-12 06:18:36 +02:00
It's a perfect fit for any developer who would like to send data directly to Telegram users.
2015-09-28 04:38:19 +02:00
2016-02-04 15:05:48 +01:00
:star: If you :heart: library, please star it! :star:
2016-01-27 12:07:51 +01:00
:exclamation: **Please, don't use it for SPAM!**
2015-09-28 04:38:19 +02:00
2016-10-02 16:31:37 +02:00
# The Docuemention Moved to [TLSharp.aarani.ir](http://tlsharp.aarani.ir)
2016-02-12 09:43:10 +01:00
2016-02-04 15:05:48 +01:00
#Table of contents?
2015-09-28 04:38:19 +02:00
- [How do I add this to my project?](#how-do-i-add-this-to-my-project)
- [Dependencies](#dependencies)
- [Starter Guide](#starter-guide)
- [Quick configuration](#quick-configuration)
- [Contributing](#contributing)
- [FAQ](#faq)
2016-02-14 12:34:28 +01:00
- [Donations](#donations)
2015-09-28 04:38:19 +02:00
- [License](#license)
#How do I add this to my project?
2016-02-04 15:05:48 +01:00
Library isn't ready for production usage, that's why no Nu-Get package available.
To use it follow next steps:
2016-02-04 15:08:28 +01:00
2016-02-04 15:05:48 +01:00
1. Clone TLSharp from GitHub
2016-02-04 15:08:28 +01:00
1. Compile source with VS2015
1. Add reference to ```TLSharp.Core.dll``` to your awesome project.
2015-09-28 04:38:19 +02:00
#Dependencies
2015-10-12 06:18:36 +02:00
TLSharp has a few dependenices, most of functionality implemented from scratch.
2015-09-28 04:38:19 +02:00
All dependencies listed in [package.conf file](https://github.com/sochix/TLSharp/blob/master/TLSharp.Core/packages.config).
#Starter Guide
## Quick Configuration
2016-02-04 15:05:48 +01:00
Telegram API isn't that easy to start. You need to do some configuration first.
2015-09-30 04:24:32 +02:00
2016-02-04 15:05:48 +01:00
1. Create a [developer account](https://my.telegram.org/) in Telegram.
2016-04-21 13:02:44 +02:00
1. Goto [API development tools](https://my.telegram.org/apps) and copy **API_ID** and **API_HASH** from your account. You'll need it later.
2015-09-30 04:24:32 +02:00
2015-09-28 04:38:19 +02:00
## Contributing
2016-02-04 15:05:48 +01:00
Contributing is highly appreciated!
2016-02-07 11:28:41 +01:00
###What things can I Implement (Project Roadmap)?
* Add Updates handling
2015-09-28 04:38:19 +02:00
# FAQ
2015-10-01 04:52:40 +02:00
#### I get an error MIGRATE_X?
2015-09-28 04:38:19 +02:00
2016-01-27 12:07:51 +01:00
TLSharp library should automatically handle this errors. If you see such errors, pls create a new issue.
2015-09-28 04:38:19 +02:00
2016-10-02 16:31:37 +02:00
#### I get an exception: System.IO.EndOfStreamException: Unable to read beyond the end of the stream. All test methos except that AuthenticationWorks and TestConnection return same error. I did every thing including setting api id and hash, and setting server address.-
2015-09-30 04:29:29 +02:00
You should create a Telegram session. See [configuration guide](#sending-messages-set-up)
2015-10-03 03:27:41 +02:00
#### Why I get FLOOD_WAIT error?
It's Telegram restrictions. See [this](https://core.telegram.org/api/errors#420-flood)
2016-02-13 08:57:30 +01:00
#### Why does TLSharp lacks feature XXXX?
2015-09-28 04:38:19 +02:00
Now TLSharp is basic realization of Telegram protocol, you can be a contributor or a sponsor to speed-up developemnt of any feature.
2016-02-07 11:28:41 +01:00
#### Nothing helps
Create an issue in project bug tracker.
**Attach this information**:
* Full problem description and exception message
* Stack-trace
* Your code that runs in to this exception
Without information listen above your issue will be closed.
2016-02-14 12:34:28 +01:00
# Donations
Thanks for donations! It's highly appreciated.
Bitcoin wallet: **3K1ocweFgaHnAibJ3n6hX7RNZWFTFcJjUe**
List of donators:
* [mtbitcoin](https://github.com/mtbitcoin)
2016-02-07 11:28:41 +01:00
2015-09-28 04:38:19 +02:00
# License
**Please, provide link to an author when you using library**
The MIT License
2016-10-02 16:30:41 +02:00
Copyright (c) 2015 Ilya Pirozhenko http://www.sochix.ru/ & Afshin Arani http://aarani.ir
2015-09-28 04:38:19 +02:00
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.