Commit Graph

299 Commits (b6441c36ee8feca2d3ddd509fe2e339b0b21df1b)

Author SHA1 Message Date
Gleb Sinyavsky e16094f76a Tests improved 2015-11-20 19:43:56 +03:00
Gleb Sinyavsky d0711736ec Test added, small improvements 2015-11-20 18:30:50 +03:00
Gleb Sinyavsky da026b435e Totally new, universal API 2015-11-20 17:55:32 +03:00
Gleb Sinyavsky d3f7ac7197 Refactorings 2015-11-20 17:31:01 +03:00
Gleb Sinyavsky 9361631c6d Refactoring 2015-11-20 17:08:53 +03:00
Gleb Sinyavsky 54b9c7e14b Refactoring 2015-11-20 15:15:34 +03:00
Gleb Sinyavsky d8ba9c84c8 Refactoring 2015-11-20 15:01:05 +03:00
Gleb Sinyavsky 92ce2aad94 Refactoring, drying 2015-11-20 14:50:23 +03:00
Gleb Sinyavsky 4610c561c6 Drying 2015-11-20 14:19:37 +03:00
Gleb Sinyavsky 57a07c0c22 Refactoring and DRYing 2015-11-20 14:06:51 +03:00
Gleb Sinyavsky 13a8bd025c Refactorings 2015-11-20 13:42:26 +03:00
Syfaro a1207f6391 allow ChannelUsername instead of ChatID, fix replies with SendPhoto 2015-11-04 09:46:01 -06:00
Syfaro 0d2feed6c2 fix UploadFile not properly throwing an error when not Ok response 2015-10-26 08:02:46 -05:00
Syfaro e1a0a819c0 Added a few helper methods for the type of Chat on the Chat type 2015-10-09 09:31:00 -05:00
Syfaro 8e71d1db32 New Telegram Chat type, instead of previous UserOrGroupChat type 2015-10-09 09:26:38 -05:00
Syfaro 7092cefe65 add missing const 2015-09-19 13:42:50 -05:00
Syfaro 1bbe8c7bd2 fix broken const 2015-09-19 13:41:55 -05:00
Syfaro 6b9324ca39 helper method to generate a link for a file 2015-09-19 10:53:32 -05:00
Syfaro 1bceea1ca5 new getFile and File types from Telegram Bot API update 2015-09-19 10:46:20 -05:00
Syfaro 3ce6dbabe0 Merge pull request #23 from gobwas/patch-1
Update webhook.go
2015-09-14 07:45:18 -05:00
Syfaro 7c48fa5dbb Merge pull request #24 from jqs7/master
variable declaration fix for webhook example
2015-09-14 07:42:19 -05:00
gobwas 2a5bad0be4 Move to simple pattern 2015-09-14 12:50:41 +03:00
Jqs7 c72afc396b variable declaration fix for webhook example 2015-09-14 13:54:45 +08:00
Sergey Kamardin d1358d12aa Update webhook.go
Why there is a hardcoded `bot.Token`? =)
2015-09-13 21:56:43 +03:00
Syfaro 236ac39b34 Merge pull request #22 from jqs7/master
add markdown support
2015-09-12 09:09:48 -05:00
Jqs7 86e4fadcb0 add markdown support 2015-09-12 19:30:49 +08:00
Syfaro 8b33fd5a50 example for new webhooks 2015-09-07 13:17:38 -05:00
Syfaro b2d2f4f5b0 add a http listener for webhooks that uses the normal updates chan 2015-09-07 13:09:08 -05:00
Syfaro 3b466def71 fixed setting webhooks with a certificate 2015-09-07 12:47:31 -05:00
Syfaro 9efd300516 fix typo in debug log for setWebhook 2015-09-07 12:32:16 -05:00
Syfaro ca40caaa47 add (untested) function to set webhook with certificate 2015-09-07 11:44:29 -05:00
Syfaro 87a279827e Merge branch 'master' of github.com-syfaro:Syfaro/telegram-bot-api 2015-09-07 11:35:05 -05:00
Syfaro e48e6416e7 allow passing a []byte or io.Reader to upload functions, closes #20 2015-09-07 11:20:43 -05:00
Syfaro 792234b42e Merge pull request #21 from eefret/master
closes #17 adding response to SetWebhook Method
2015-09-04 11:21:22 -05:00
Christopher T. Herrera 4d3619d856 closes #17 adding response to SetWebhook Method 2015-09-04 12:13:58 -04:00
Syfaro 766f7494e9 Merge pull request #16 from jqs7/master
update to latest telegram bot api
2015-08-17 21:48:30 -05:00
Jqs7 ae7c1b4e22 merge upstream 2015-08-18 09:48:17 +08:00
Jqs7 d537d26a2b update to latest telegram bot api 2015-08-18 09:40:42 +08:00
Syfaro d54197d756 mention encodeaudio function on sendaudio function 2015-08-10 16:03:13 -05:00
Syfaro b92bbece9f fix docs in encodeaudio, remove log 2015-08-10 15:58:15 -05:00
Syfaro 3a401563b5 utils package, currently only for converting audio files 2015-08-10 15:55:46 -05:00
Syfaro 5a72ea6814 switch to streaming multipart, reduces memory usage for uploads 2015-08-10 07:41:44 -05:00
Syfaro d06eead68d don't panic for failed updates, even in debug (fixes #14) 2015-08-09 21:12:15 -05:00
Syfaro adc490e379 Merge pull request #11 from emadgh/master
NewChatPhoto was string!
2015-08-05 13:20:11 -05:00
Emad Ghasemi ca93bb337c Fixed Message.NewChatPhoto 2015-08-05 21:31:41 +04:30
Emad Ghasemi 91e1825b16 Update types.go 2015-08-05 21:30:54 +04:30
Syfaro 3fddac5396 Merge pull request #10 from jqs7/master
add sendAudio duration
2015-08-04 23:05:43 -04:00
Jqs7 6bf83a8185 add sendAudio duration 2015-08-05 09:55:48 +08:00
Syfaro 3c9ed7cfe2 Merge pull request #9 from jqs7/master
Updated to the last tgbot API
2015-08-04 21:50:30 -04:00
Jqs7 96a104444e Updated to the last tgbot API 2015-08-05 09:44:09 +08:00