Commit Graph

668 Commits (3dfc49d5c1144743b3911cc8ff22b49f114aca8e)

Author SHA1 Message Date
Syfaro 89bbb1edff Merge pull request #82 from davidmz/patch-1
Remove double call of strings.SplitN
2017-03-20 10:20:14 -05:00
Давид Мзареулян 963864785d Remove double call of strings.SplitN 2017-03-18 14:42:30 +03:00
pol 999653626b added 'caption' to document parameters 2017-02-11 15:13:49 +01:00
Syfaro f5c6a478a0 Allow specifying a custom buffer size for the updates channel 2017-01-27 11:40:09 -06:00
Syfaro f57724f783 Remove NewWebhookWithCertAndMaxConnections
This function is long and it is easy enough to just set the maximum
number of connections by modifying the returned struct.
2017-01-27 11:38:15 -06:00
Syfaro 3866c68e79 Add check for status code on request, closes #60 2017-01-27 11:35:23 -06:00
Syfaro 3293f3ad84 Change visibility of UpdatesChannel, closes #76 2017-01-26 11:43:37 -06:00
Sergey Juriev 5d28cf05d0 Fix returning APIResponse from SetWebHook 2017-01-18 12:05:01 +03:00
Syfaro 99170e2de4 Merge pull request #71 from Eternity-Yarr/upstream
Added max connections configuration option to SetWebHook
2017-01-17 10:04:37 -06:00
Dmitry V 833e457376 Added max connections configuration option to SetWebHook 2017-01-17 17:18:26 +03:00
Ivan Kuznetsov c0bffcdbba Fix Caption in VoiceConfig
`values()` and `params()` methods of `VoiceConfig` don't process `Caption` field.
2017-01-15 14:00:37 +07:00
Syfaro 80bdd621f7 Return APIResponse even with error in MakeRequest, closes #66. 2016-12-31 13:48:48 -06:00
Syfaro d74d1f3472 Merge pull request #65 from sschepens/fix_inline_keyboard_button
Fix InlineKeyboardButton type
2016-12-31 13:45:25 -06:00
Sebastian Schepens 71e0c25410
Fix InlineKeyboardButton type 2016-12-26 11:59:52 -03:00
Syfaro 3763be308e Merge pull request #64 from lupoDharkael/master
Added Clear() functionallity usage in examples and code simplification
2016-12-25 20:43:51 -06:00
lupoDharkael c034de512a Added Clear() to examples and code simplification 2016-12-16 02:07:54 +01:00
Syfaro 0a95dda18a Merge pull request #63 from lupoDharkael/master
Added updatesChannel type with Clear() method
2016-12-15 16:28:47 -06:00
lupoDharkael 66446d51ff Added updatesChannel type with Clear() method 2016-12-15 22:51:58 +01:00
Syfaro e2916e08ad Add error checking in the configs MessageConfig values method (#61)
add error try catch in the configs MessageConfig values method
2016-12-01 00:00:59 -06:00
MyeongJun 40f1937150 change return new data to return exist v data 2016-12-01 13:17:28 +09:00
LeeMyeongJun 9d6e221a00 add error try catch in all method that use BaseChat.values 2016-11-30 22:07:37 +09:00
LeeMyeongJun cbf597eaf6 add error try catch in the configs MessageConfig values method 2016-11-30 21:41:10 +09:00
Syfaro 0a57807db7 Additional changes for Telegram API updates. 2016-11-24 23:50:35 -06:00
Syfaro f3a33ae6f1 Add support for games, among other updates. 2016-10-03 10:47:19 -05:00
Syfaro a7f48eb2dd Merge pull request #55 from tucher/master
Fixed BaseEdit.values
2016-08-01 13:36:25 -05:00
tucher a1204e7ea1 Fixed BaseEdit.values
chat_id and message_id should be sent only if there is no
inline_message_id (and vice versa), according to documentation.
2016-08-01 20:30:30 +03:00
Syfaro 4f996f7f27 Add NewInlineQueryResultPhotoWithThumb for #54. 2016-07-26 13:44:48 -05:00
Syfaro 1daed40422 Allow negative Offset values for GetUpdates, closes #51. 2016-06-29 12:37:30 -05:00
Syfaro 13f31854a2 Clean up some formatting. 2016-06-02 15:57:39 -05:00
Syfaro 7f37376fd0 Merge pull request #49 from llorephie/master
Add support for Markdown/HTML in NewInlineQueryResultArticle
2016-06-02 15:55:32 -05:00
Maxim Martyanov 862c67342c
Rollback for backward compatibility, added NewInlineQueryResultArticleMarkdown and NewInlineQueryResultArticleHTML 2016-06-02 23:41:55 +03:00
Maxim Martyanov 0a1b57cdf9
Update bot_test.go for support updated NewInlineQueryResultArticle 2016-06-02 22:53:44 +03:00
Maxim Martyanov 64f1ab7a89
Add support for Markdown/HTML in NewInlineQueryResultArticle 2016-06-02 22:42:05 +03:00
Syfaro 217764ba45 Add new chat methods for Bot API 2.1. 2016-05-22 10:16:28 -05:00
Syfaro 3ed6b6ac16 EditedMessage to Update, EditDate to Message, User to MessageEntity. 2016-05-22 09:37:43 -05:00
Syfaro bdaf1dc07c Add field for Emoji on Sticker and ForwardFromChat for Message. 2016-05-20 20:34:56 -05:00
Syfaro bf6e165e92 Fix more ReplyMarkup items in edits, finishes #43, closes #47. 2016-04-27 08:00:19 -05:00
Syfaro 7bf755956c Add NewMessageToChannel for #45. 2016-04-22 10:03:00 -05:00
Syfaro 369364b8c6 Merge pull request #44 from jqs7/master
simplify append loop
2016-04-21 06:37:46 -05:00
Jqs7 b98d5c9b34 simplify append loop 2016-04-21 15:40:12 +08:00
Syfaro ab63d49cc9 Merge pull request #43 from xboston/fix-editMessageReplyMarkup
fix EditMessageReplyMarkupConfig
2016-04-19 07:40:08 -05:00
boston 890c908551 fix EditMessageReplyMarkupConfig 2016-04-19 12:19:36 +05:00
Syfaro a2483eb98b Add helpers for callback queries. 2016-04-14 16:30:41 -05:00
Syfaro 0d1bc8c4e2 Add helpers for regular and inline keyboards. 2016-04-14 15:59:28 -05:00
Syfaro 0252f39e17 Add missing t.Fail() 2016-04-14 14:04:35 -05:00
Syfaro e7b9f16e73 Add missing helpers, move helper tests to own file. 2016-04-14 14:00:45 -05:00
Syfaro ed7fe62451 Fix incorrect float32. 2016-04-14 13:28:38 -05:00
Syfaro e8e55fe41a Add more omitempty. 2016-04-14 13:21:26 -05:00
Syfaro c0eb5db6c3 Add more tests. 2016-04-13 17:06:18 -05:00
Syfaro 289f7ef6ad Add more omitempty, as null values create errors. 2016-04-13 15:45:51 -05:00