Commit Graph

132 Commits (d40f7f97034c8473b3fabe6e3034512fa1d655c9)

Author SHA1 Message Date
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
Syfaro 752bd45f4c fix readme for updateschan changes 2015-07-31 13:44:37 -04:00
Syfaro 196f515db7 helper functions on message 2015-07-31 13:40:42 -04:00
Syfaro f605a516c0 string function for user 2015-07-31 03:22:01 -04:00
Syfaro 8907d30fe0 remove unneeded line in test 2015-07-29 05:42:45 -04:00
Syfaro c12c67adde basic tests/examples, don't return updates chan, cleaned text 2015-07-29 05:41:41 -04:00
Syfaro 5e5de566ee remove unneeded else block 2015-07-28 12:19:53 -04:00
Syfaro b0c8029a0f fix wrong capitalization of a function name 2015-07-28 12:18:50 -04:00
Syfaro dc198e2346 Merge pull request #6 from raulsntos/master
Ability to pass a client instead of using http.DefaultClient
2015-07-28 12:15:46 -04:00
Raul Santos 3101266b61 Fixed NewBotAPIWithClient 2015-07-28 18:14:13 +02:00
Raul Santos 2483f04397 Separate NewBotAPI from NewBotAPIwithClient 2015-07-28 13:00:31 +02:00
Raul Santos fc8cb6e039 Client is now a pointer 2015-07-28 11:18:49 +02:00
Raul Santos 8249dd6a93 Few bug fixes 2015-07-27 00:22:10 +02:00
Raul Santos 612584dbd3 Ability to pass a client to the bot
Changed every instance of a DefaultClient to a Client stored in the bot.
2015-07-27 00:16:45 +02:00
Syfaro 60337023c5 Merge pull request #5 from Nikita-V/patch-1
Fix parameter name
2015-07-22 15:39:13 -05:00
Nikita Vorobei fee84ee239 Fix parameter name 2015-07-22 19:10:27 +03:00
Syfaro 1b2d9a5c42 Merge pull request #3 from sirlori/master
Little bugfix
2015-07-06 15:07:02 -05:00
Lorenzo Landolfi 7f0dd9c504 little fix that sometimes causes crash 2015-07-06 21:25:18 +02:00