Merge pull request #111 from Sheigutn/fix-typos

Fixed a few copy-paste mistakes
This commit is contained in:
Ruben Bermudez 2016-07-13 20:16:05 +02:00 committed by GitHub
commit 5c240c4d13
10 changed files with 9 additions and 10 deletions

View File

@ -105,7 +105,6 @@ public class TelegramBotsApi {
* @param webHookURL * @param webHookURL
* @param botToken * @param botToken
* @param publicCertificatePath * @param publicCertificatePath
* @param publicCertificateName
* @throws TelegramApiException * @throws TelegramApiException
*/ */
private static void setWebhook(String webHookURL, String botToken, String publicCertificatePath) throws TelegramApiException { private static void setWebhook(String webHookURL, String botToken, String publicCertificatePath) throws TelegramApiException {

View File

@ -109,7 +109,7 @@ public class AnswerCallbackQuery extends BotApiMethod<Boolean> {
@Override @Override
public String toString() { public String toString() {
return "AnswerInlineQuery{" + return "AnswerCallbackQuery{" +
"callbackQueryId='" + callbackQueryId + '\'' + "callbackQueryId='" + callbackQueryId + '\'' +
", text=" + text + ", text=" + text +
", showAlert=" + showAlert + '\'' + ", showAlert=" + showAlert + '\'' +

View File

@ -19,7 +19,7 @@ import java.io.IOException;
* @date 20 of May of 2016 * @date 20 of May of 2016
*/ */
public class GetChatMember extends BotApiMethod<ChatMember> { public class GetChatMember extends BotApiMethod<ChatMember> {
public static final String PATH = "getChatAdministrators"; public static final String PATH = "getChatMember";
private static final String CHATID_FIELD = "chat_id"; private static final String CHATID_FIELD = "chat_id";
private static final String USERID_FIELD = "user_id"; private static final String USERID_FIELD = "user_id";

View File

@ -17,7 +17,7 @@ import java.io.IOException;
* @date 20 of May of 2016 * @date 20 of May of 2016
*/ */
public class GetChatMemberCount extends BotApiMethod<Integer> { public class GetChatMemberCount extends BotApiMethod<Integer> {
public static final String PATH = "getChatAdministrators"; public static final String PATH = "getChatMembersCount";
private static final String CHATID_FIELD = "chat_id"; private static final String CHATID_FIELD = "chat_id";
private String chatId; ///< Unique identifier for the chat to send the message to (Or username for channels) private String chatId; ///< Unique identifier for the chat to send the message to (Or username for channels)

View File

@ -90,7 +90,7 @@ public class KickChatMember extends BotApiMethod<Boolean> {
@Override @Override
public String toString() { public String toString() {
return "SendMessage{" + return "KickChatMember{" +
"chatId='" + chatId + '\'' + "chatId='" + chatId + '\'' +
", userId='" + userId + ", userId='" + userId +
'}'; '}';

View File

@ -86,7 +86,7 @@ public class UnbanChatMember extends BotApiMethod<Boolean> {
@Override @Override
public String toString() { public String toString() {
return "SendMessage{" + return "UnbanChatMember{" +
"chatId='" + chatId + '\'' + "chatId='" + chatId + '\'' +
", userId='" + userId + ", userId='" + userId +
'}'; '}';

View File

@ -207,7 +207,7 @@ public class SendContact extends BotApiMethod<Message> {
@Override @Override
public String toString() { public String toString() {
return "SendLocation{" + return "SendContact{" +
"chatId='" + chatId + '\'' + "chatId='" + chatId + '\'' +
", phoneNumber=" + phoneNumber + ", phoneNumber=" + phoneNumber +
", firstName=" + firstName + ", firstName=" + firstName +

View File

@ -233,7 +233,7 @@ public class SendVenue extends BotApiMethod<Message> {
@Override @Override
public String toString() { public String toString() {
return "SendLocation{" + return "SendVenue{" +
"chatId='" + chatId + '\'' + "chatId='" + chatId + '\'' +
", latitude=" + latitude + ", latitude=" + latitude +
", longitude=" + longitude + ", longitude=" + longitude +

View File

@ -107,7 +107,7 @@ public class CallbackQuery implements IBotApiObject {
@Override @Override
public String toString() { public String toString() {
return "Contact{" + return "CallbackQuery{" +
"id='" + id + '\'' + "id='" + id + '\'' +
", from='" + from + '\'' + ", from='" + from + '\'' +
", message='" + message + '\'' + ", message='" + message + '\'' +

View File

@ -119,7 +119,7 @@ public class MessageEntity implements IBotApiObject {
@Override @Override
public String toString() { public String toString() {
return "PhotoSize{" + return "MessageEntity{" +
"type='" + type + '\'' + "type='" + type + '\'' +
", offset=" + offset + ", offset=" + offset +
", length=" + length + ", length=" + length +