Open UnAfraid opened 9 years ago
Sounds like a good idea, but then in the form of a fluent API like Apache did with their rest client.
I've done it, and yeah its fluent, i'll do pull request
Pull Request up: https://github.com/Reefstah/TelegramBotAPI/pull/6
Whoops linked commit to wrong issue. Anyway here is the link to the commit. This is what I ment (;
SendMessage
.to(YourChatIdHere)
.withText("Sexy fluent TelegramBotAPI.")
.withBot(YourBotTokenHere);
I think we should still keep the method overloading I think that is just a matter of taste, but we should add the builders of course. Could you remove the licenses from the class headers and make the tests work. I have no idea how it works with forks, but I have set TOKEN and GROUP_CHAT_ID in Travis. Thanks :D #6
I striped the license :O
Hello,
I was wondering can you implement some generic helper about all the method's parameters. I mean all those duplicated methods with only difference optional parameters.
Something like
sendMessage:
sendPhoto: