Commit Graph

16 Commits (407a3e8d651bb12d7881f32ec334b870b764446e)

Author SHA1 Message Date
Nick Groenen 852bebcd6f Fix inline bot example in README
Closes #52
8 years ago
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.
8 years ago
Ian Byrd ce6937b17c
i'm dumb... 9 years ago
Ian Byrd d181b4fd01
Fixed a wrong code listing 9 years ago
Ian Byrd 061a651188
This commit adds an inline mode implementation and resolves #28.
Only article results supported so far.
9 years ago
Alexander bd05f8e4f7 Fix README example 9 years ago
Ilya Kowalewski 613d4d239e Funky travis button added 9 years ago
Amir Ali Omidi 36ffa89aa6 Update README.md
Fixed the SendAudio documentation
9 years ago
Ilya Kowalewski fb0e91451e Significant API change, send options added 9 years ago
Ilya Kowalewski e041242bb2 Fixed a bunch of lint issues 9 years ago
Ilya Kowalewski 58956e3905 Update README to cover new features 9 years ago
Ilya Kowalewski 8025e90746 Update README.md 9 years ago
Ilya Kowalewski fa51650dad A little more documentation, code cleanup 9 years ago
Ilya Kowalewski dbcd156645 Self-handshaking test (still failing) 9 years ago
Ilya Kowalewski 37f537bfab Minor documentation fixes 9 years ago
llya Kowalewski 45451c0de3 Initial commit 9 years ago