Ian Byrd
29bd370702
Update README.md
7 years ago
Ian Byrd
00cebf376d
Merge pull request #96 from irgendwr/patch-3
...
Corrected version in readme
7 years ago
Jonas Bögle
ee0a78efe2
corrected version in readme
7 years ago
Ian Byrd
6d3c0904bd
Updated README.md, we're gopkg.in-v0 now. Resolves #78 .
7 years ago
Ian Byrd
ad89444161
Spelling 'recieved' -> 'received'.
7 years ago
Ian Byrd
f539f240a2
A couple minor changes across existing types.
...
- User: is_bot, language
- Chat: photo, description, invite_link, all_admins, pinned_msg
- ChatPhoto
7 years ago
Ian Byrd
4c4427bedb
Merge pull request #92 from irgendwr/patch-2
...
Make Serve return whether handler was found
7 years ago
Jonas Bögle
b5a2416766
fixed wrong return value
7 years ago
Jonas Bögle
1bc6f01afb
Make Serve return whether handler was found
7 years ago
Ian Byrd
2d298dfca8
Simple pluggable serve-and-handle API
7 years ago
Ian Byrd
f7a78ef0fc
Message should be passed by-value.
7 years ago
Ian Byrd
7acb52c3cf
Handlers will be executed in separate goroutines.
7 years ago
Ian Byrd
ad382bdb6b
Context.Msg -> Context.Message (for consistency).
7 years ago
Ian Byrd
b718278f36
Fixing excessive panicing.
7 years ago
Ian Byrd
b19ffa1b45
Experimental handlers API added.
7 years ago
Ian Byrd
a1a2c92dad
This commit refactors error handling throughout the library.
...
Bot.Errors channel has been introduced. It can be used to
debug Telebot. It also fixes sendFile() which used to upload
with its own custom http.Client instead of http.DefaultClient.
7 years ago
Ian Byrd
95901bcfc3
Minor time conversion change within private API.
7 years ago
Ian Byrd
a6b93fe7e9
Revert "Prevent the build from failing no more."
...
This reverts commit 3533141572
.
7 years ago
Ian Byrd
14151d8a26
Revert "Bots now support custom HTTP clients (*http.Client)."
...
This reverts commit c8e1ac037f
.
7 years ago
Ian Byrd
3533141572
Prevent the build from failing no more.
7 years ago
Ian Byrd
c8e1ac037f
Bots now support custom HTTP clients (*http.Client).
7 years ago
Ian Byrd
e6a8b961e7
Merge pull request #84 from irgendwr/patch-1
...
Adding support for forwarded messages from channels.
7 years ago
Ian Byrd
e5d60e6913
Replace IQR*.MarshalJSON with InlineQueryResultBase
...
This commit gets rid of multiple redundant copies of MarhsalJSON()
method present for all existing IQR. It does so by introducing a
new struct called InlineQueryResultBase, which takes care of new
Type (for JSON) and existing duplicated ID field.
InlineQueryResults is a new helper wrapper for []IQR slices. It
implements MarshalJSON, which makes sure IQR.ID and IQR.Type are
set properly (by computing a hash and infering IQR type).
7 years ago
irgendwer / Jonas
12099b9b19
support for forwarded messages from channels
...
This would fix the problem that forwarded messages from channels don't get detected as forwarded and allows you to get the chat id of the channel the message was originally posted to.
7 years ago
Ian Byrd
196512b59e
Keeping PR up-to-date with recent master changes.
8 years ago
Ian Byrd
7c002850b1
Typo infereIQR -> inferIQR.
8 years ago
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...
8 years ago
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
8 years ago
Ian Byrd
276daa0732
README.md bikeshedding.
8 years ago
Ian Byrd
acbbb524dc
Documentation for newly introduced methods.
8 years ago
Ian Byrd
a6c1dce4e0
Replace IQR*.MarshalJSON with InlineQueryResultBase, fixes #75 .
...
This commit gets rid of multiple redundant copies of MarhsalJSON()
method present for all existing IQR. It does so by introducing a
new struct called InlineQueryResultBase, which takes care of new
Type (for JSON) and existing duplicated ID field.
InlineQueryResults is a new helper wrapper for []IQR slices. It
implements MarshalJSON, which makes sure IQR.ID and IQR.Type are
set properly (by computing a hash and infering IQR type).
8 years ago
Ian Byrd
fedfe0d5f9
Switching to int64 update queries, resolves #16 hopefully.
8 years ago
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.
8 years ago
Ian Byrd
3a6f49efc1
Audio gets extended with optional fields, closes #11 .
8 years ago
Ian Byrd
a669eb6140
Merge pull request #72 from ahmdrz/master
...
URL in CallbackResponse Type added
8 years ago
Ahmadreza Zibaei
050aa8e2cc
Merge branch 'master' into master
8 years ago
Ahmadreza Zibaei
4bc115ce26
URL in CallbackResponse Type added
8 years ago
Ian Byrd
4656d9d892
Merge pull request #69 from ahmdrz/master
...
Added a whole bunch of chat methods.
8 years ago
ahmdrz
622415d138
LeaveChat boolean result removed
8 years ago
aiden
e5cf14aeea
Method name and structs specified.
8 years ago
aiden
5d1a071046
Some changes for godoc
8 years ago
aiden
2558381794
GetUserProfilePhotos added
8 years ago
aiden
fc4d712ce0
getChatMember added
8 years ago
aiden
229001da4a
getChatMemberCount added
8 years ago
aiden
d18a89193d
getChatAdministrators added
8 years ago
aiden
936198888e
getChat method added
8 years ago
aiden
08ec8d756a
leaveChat method added
8 years ago
Ahmadreza Zibaei
30d20b61f4
Caption added in Message struct
8 years ago
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
8 years ago
Juan Julián Merelo Guervós
41796c460e
README.md improved from newcomers' perspective ( #65 )
8 years ago