Ronmi Ren
143777fbe0
Channel support and change chat_id size
...
* Chage signature of "Destination()", because we need send username in "chat_id" when
sending message to channel.
* By telegram API document, chat id is "not exceeding 1e13 by absolute value" which
needs int64 to store it.
2015-12-24 16:51:42 +08:00
Ian Byrd
4103e705b0
Fixing critical API issue; resolves #26
2015-12-05 11:40:55 +02:00
Ilya Kowalewski
651cd22f62
Tiny code changes
2015-11-16 12:22:37 +02:00
llya Kowalewski
4b7ee3b796
Merge pull request #23 from reddec/feature/close_connection
...
Fix close connection after usage
2015-11-12 20:06:14 +02:00
RedDec
5f730d77ec
Close connection after usage.
2015-11-12 20:59:24 +03:00
llya Kowalewski
ab25fcf6fa
Merge pull request #22 from shoonoise/master
...
Fix README example (send options)
2015-11-03 17:41:19 +02:00
Alexander
bd05f8e4f7
Fix README example
2015-11-03 18:12:22 +03:00
Ilya Kowalewski
72ce8fae88
Fixing #21 issue, introducing Recipient interface
2015-10-17 01:36:07 +03:00
Ilya Kowalewski
74d63a4754
Merging #20 into tucnak:master from aladine:patch-3
2015-10-16 19:36:20 +03:00
Ilya Kowalewski
752af53a8a
Pushing sensitive TELEGRAM_SECRET in Travis, praise da FOSS!
2015-10-15 20:15:20 +03:00
Ilya Kowalewski
6e16b55de1
Getting rid of excessive error types, switching to fmt.Errorf
2015-10-15 18:17:09 +03:00
Ilya Kowalewski
613d4d239e
Funky travis button added
2015-10-15 17:57:47 +03:00
Ilya Kowalewski
af44d8f63e
Travis embedded
2015-10-15 17:56:00 +03:00
llya Kowalewski
62ade911f7
Merge pull request #19 from superhacker777/master
...
Code bloating fixes, typo away
2015-10-14 09:47:45 +03:00
Anton Volodin
faeff79108
DRY condition fix
2015-10-13 17:42:17 +03:00
Anton Volodin
e38f2bd56c
Another code bloat fixes
2015-10-13 17:38:15 +03:00
Anton Volodin
761191f50a
Typo fix in ReplyMarkup structure
2015-10-13 17:33:14 +03:00
Anton Volodin
e9e91531ad
A little code bloat fix
2015-10-13 17:31:51 +03:00
llya Kowalewski
1601444837
Merge pull request #14 from ejamesc/master
...
Change API to return error on 500 http status.
2015-10-11 23:34:48 +03:00
Cedric Chin
f7c3d4f9d2
Change API to return error on 500 http status.
...
- The Telegram API does not return well-formed JSON when there is an
Internal Server Error. This results in incomprehensible errors.
2015-10-12 00:47:39 +07:00
llya Kowalewski
1492f3688f
Merge pull request #10 from aaomidi/master
...
Update README.md
2015-10-04 13:10:39 +03:00
llya Kowalewski
32efe8ce78
Merge pull request #12 from Ronmi/markdown
...
Support new API: markdown message.
2015-09-15 21:18:41 +03:00
Ronmi Ren
32d0662cde
update documentation
2015-09-15 20:24:34 +08:00
Ronmi Ren
ab11be604a
Support new API: markdown message.
2015-09-14 11:18:03 +08:00
Amir Ali Omidi
36ffa89aa6
Update README.md
...
Fixed the SendAudio documentation
2015-09-01 02:00:13 +04:30
llya Kowalewski
5db9cc7c56
Merge pull request #8 from Ronmi/master
...
Fix: type in json key `resize_keyboard`
2015-08-25 15:32:04 +03:00
Ronmi Ren
cc123431f8
fix typo in json key
2015-08-24 11:43:57 +08:00
Ilya Kowalewski
0192b0946f
go fmt
2015-08-05 20:53:20 +03:00
llya Kowalewski
4a633dc640
Merge pull request #5 from Ronmi/issue
...
Doing long polling in Bot.Listen to ensure message order
2015-08-05 20:47:27 +03:00
Ronmi Ren
77314762f1
This commit ensures we will not receive same message multiple times when
...
in bad network-speed environment. And message will be put to channel in
same order we receive from API call.
* Bot.Listen(): Use only 1 goroutine. Do really long polling, not
repeatly do short polling.
* API.go: getUpdates(): as doing long polling, channel is not required.
2015-08-04 09:14:16 +08:00
llya Kowalewski
89fca71055
Merge pull request #4 from Ronmi/master
...
Support custom keyboard
2015-07-31 12:00:07 +03:00
Ronmi Ren
e89b28808b
Support custom keyboard
2015-07-31 15:56:02 +08:00
llya Kowalewski
493d48ceb3
Merge pull request #3 from notatestuser/patch-1
...
Resolves #2 compatibility issue
2015-07-25 12:21:53 +03:00
Luke Plaster
79c044e8ec
Easy older go compat
...
`go range` without loop values is new to 1.4. some of us are stuck with older go (wheezy backport is 1.3.3)
merge if you wish - this was a quick one
2015-07-24 17:12:37 +02:00
Ilya Kowalewski
40c91ee0b4
Added some API and tests
2015-07-06 20:12:08 +03:00
Ilya Kowalewski
eaf9b17a54
Achieving final satisfaction with golint
2015-07-06 19:27:57 +03:00
Ilya Kowalewski
8dab2461ef
Chat actions implemented
2015-07-06 19:15:59 +03:00
Ilya Kowalewski
5da873e39b
Fix for even more lint warnings
2015-07-06 16:53:59 +03:00
Ilya Kowalewski
fb0e91451e
Significant API change, send options added
2015-07-06 16:46:51 +03:00
Ilya Kowalewski
8c49aeb84c
A little readability fix
2015-07-04 13:12:19 +03:00
Ilya Kowalewski
e041242bb2
Fixed a bunch of lint issues
2015-07-03 21:58:29 +03:00
Ilya Kowalewski
58956e3905
Update README to cover new features
2015-07-03 19:59:03 +03:00
Ilya Kowalewski
104a45344a
Sending docs, stickers, videos and locations
2015-07-03 19:25:04 +03:00
Ilya Kowalewski
51d01479b6
Sending audio
2015-07-03 15:27:18 +03:00
Ilya Kowalewski
6a4863ece8
Sending photos, API improvements
2015-07-02 21:39:39 +03:00
Ilya Kowalewski
418934be9c
Fix for a stupid arch solution
2015-07-02 14:04:45 +03:00
Ilya Kowalewski
d2435c4688
Message forwarding
2015-07-02 12:55:40 +03:00
Ilya Kowalewski
8025e90746
Update README.md
2015-06-28 00:03:23 +03:00
Ilya Kowalewski
43bbb6b396
All message types and replying/forwarding from API covered.
2015-06-27 20:37:22 +03:00
Ilya Kowalewski
fa51650dad
A little more documentation, code cleanup
2015-06-27 18:55:12 +03:00