Commit Graph

116 Commits

Author SHA1 Message Date
Vlad Lukyanov
d2067e919f changed InlineKeyboardMarkup to SendOptions where it needed 2017-05-10 12:08:11 +05:00
Vlad Lukyanov
15a4d8f413 Add meaasge edit feature
This commit may break some bots because changes in return of SendMessage
and SendPhoto functions
2017-01-12 05:48:11 +05:00
Vlad Lukyanov
ae8106fc82 Merge pull request #1 from tucnak/master
Merge with upstream
2016-11-28 17:27:48 +05:00
Ian Byrd
6360f1f7d9
Refactoring, poor BC, closes #44 and probably resolves #41.
- EntityType and ChatType enums introduced.
- Documentation fixes, struct refactoring.
- Poor BC, poor BC...
2016-11-10 22:04:50 +02:00
Ian Byrd
d8b2ca1983
Fixes lots of complete bollocks that got into the codebase.
- Malformed JSON field tags, OMG fixed
- Making linters happy
- Foursquare_id -> FoursquareID, fuck BC
2016-11-10 21:34:02 +02:00
Ian Byrd
276daa0732
README.md bikeshedding. 2016-11-10 21:32:23 +02:00
Ian Byrd
fedfe0d5f9 Switching to int64 update queries, resolves #16 hopefully. 2016-11-10 01:34:57 +02:00
Ian Byrd
e0d2195801
Partial refactoring of internals.
- GetChat and LeaveChat handle error descriptions
- Documentation fix for Result type
- Wrapping structs for IQRs go inside marshal funcs.
2016-11-10 01:28:00 +02:00
Ian Byrd
3a6f49efc1
Audio gets extended with optional fields, closes #11. 2016-11-10 00:05:01 +02:00
Ian Byrd
a669eb6140 Merge pull request #72 from ahmdrz/master
URL in CallbackResponse Type added
2016-11-09 23:28:42 +02:00
Ahmadreza Zibaei
050aa8e2cc Merge branch 'master' into master 2016-11-09 11:34:51 +03:30
Ahmadreza Zibaei
4bc115ce26 URL in CallbackResponse Type added 2016-11-09 11:34:22 +03:30
Ian Byrd
4656d9d892 Merge pull request #69 from ahmdrz/master
Added a whole bunch of chat methods.
2016-10-15 13:43:43 +03:00
ahmdrz
622415d138 LeaveChat boolean result removed 2016-10-15 10:52:58 +03:30
aiden
e5cf14aeea Method name and structs specified. 2016-10-14 18:31:45 +03:30
aiden
5d1a071046 Some changes for godoc 2016-10-10 00:12:07 +03:30
aiden
2558381794 GetUserProfilePhotos added 2016-10-09 23:59:03 +03:30
aiden
fc4d712ce0 getChatMember added 2016-10-09 23:46:33 +03:30
aiden
229001da4a getChatMemberCount added 2016-10-09 23:41:23 +03:30
aiden
d18a89193d getChatAdministrators added 2016-10-09 23:39:07 +03:30
aiden
936198888e getChat method added 2016-10-09 23:30:04 +03:30
aiden
08ec8d756a leaveChat method added 2016-10-09 23:27:08 +03:30
Ahmadreza Zibaei
30d20b61f4 Caption added in Message struct 2016-10-09 23:18:19 +03:30
Illarionov Oleg
ce7114afe6 GetFile and GetFileDirectURL method to fetch url of file received from user (#63)
Bot.GetFile and Bot.GetFileDirectURL methods introduced.

* correct comment

* improve docs
2016-09-27 15:04:13 +03:00
Juan Julián Merelo Guervós
41796c460e README.md improved from newcomers' perspective (#65) 2016-09-24 14:54:43 +03:00
Ian Byrd
87d59cb737 Merge pull request #60 from neighborhood999/location-field
Sequence Location field moved around
2016-09-11 13:25:30 +03:00
Peng-Jie
1e02352d3f Sequence Location field 2016-08-27 20:40:49 +08:00
Ian Byrd
6217b8a41b Merge pull request #59 from neighborhood999/fix-readme
Add missing `log` package
2016-08-23 18:46:19 +03:00
Peng-Jie
d8ceddd66c Add missing log package 2016-08-22 10:44:11 +08:00
Ian Byrd
43fb1c544e Merge pull request #55 from sschepens/master
Add AnswerCallbackQuery
2016-08-04 22:14:07 +03:00
Sebastian Schepens
587ba1a4dc
add AnswerCallbackQuery 2016-07-25 19:09:18 -03:00
Ian Byrd
a663d42cbc Merge pull request #54 from vlad-lukyanov/message-entity
Add MessageEntity support
2016-07-22 18:03:50 +03:00
Vlad Lukyanov
407a3e8d65 Merge branch 'master' into message-entity 2016-07-11 00:15:02 +05:00
Vlad Lukyanov
15e5df6636 Add MessageEntity support 2016-07-11 00:09:42 +05:00
Ian Byrd
7d22fdc72c Merge pull request #48 from vlad-lukyanov/master
Added Venue message support, partially implements #44
2016-07-04 17:53:07 +03:00
Vlad Lukyanov
977e1d90f3 gofmt 2016-07-04 19:48:20 +05:00
Vlad Lukyanov
6e08411d89 fix. rewrite url.params to map 2016-07-04 19:45:08 +05:00
Vlad Lukyanov
4b79f3ff1b merge with upstream 2016-07-04 15:56:53 +05:00
Ian Byrd
9b14951f8f Merge pull request #53 from zoni/inline-bot-example-fix
Fix inline bot example in README, resolves #52
2016-07-02 14:06:26 +03:00
Nick Groenen
852bebcd6f Fix inline bot example in README
Closes #52
2016-07-02 13:04:42 +02:00
Ian Byrd
1a30b0193a Merge pull request #50 from zoni/inline_queries
Improve support for inline queries, closes #32
2016-07-02 03:17:29 +03:00
Nick Groenen
46992b037b Improve support for inline queries
These changes make it possible to set custom options when responding to
inline queries, as described on
https://core.telegram.org/bots/api#answerinlinequery.

It also includes all the (non-cached) inline result types as described
at https://core.telegram.org/bots/api#inlinequeryresult.

Some remarks:
* The internals of sendCommand have changed. It now expects a
  JSON-serializable object. Instead of doing GET requests with
  URL-encoded query parameters it now POSTS JSON directly.
* Because of the above, sendFile() has changed as well. It now expects a
* `map[string]string` which it will internally convert to URL encoded
  form values.
* Respond has been deprecated in favor of the new AnswerInlineQuery
  function. It is only kept for backward compatibility.
* A dependency on https://github.com/mitchellh/hashstructure has been
  introduced in order to generate automatic IDs for inline results.
2016-06-26 16:33:16 +02:00
Ian Byrd
12182e36dc
Minor documentation fixes, resolves #49 2016-06-26 10:15:11 +03:00
Ian Byrd
15ae62790e Merge pull request #47 from zabawaba99/inline-keyboard-button
Adding support for inline keyboard buttons
2016-06-10 13:24:13 +03:00
Steven Berlanga
4b2c1f976c adding documentation to callback struct 2016-05-25 09:53:01 -04:00
Vlad Lukyanov
0a92c6c68b Added Venue message support by calling SendVenue(recipient Recipient, venue *Venue, options *SendOptions) 2016-05-24 09:43:16 +05:00
Steven Berlanga
72e84f5ab5 Adding support for inline keyboard buttons 2016-04-29 18:20:50 -04:00
Ian Byrd
68ad7fd5dc
Hotfixing the bug introduced by jerks from Telegram:
>Renamed the fields new_chat_participant and left_chat_participant
>of the Message object to new_chat_member and left_chat_member.
via https://core.telegram.org/bots/api#recent-changes
2016-04-13 21:04:51 +03:00
Ian Byrd
4de603f9ee
Silent messages from https://telegram.org/blog/channels-2 2016-03-13 18:06:24 +02:00
Maxim Lebedev
896984e6ce Add param for sends the message silently
Remove duplicate lines in structures, add global parameter, add tips for godoc
2016-03-13 17:20:59 +05:00