Merge pull request #111 from Sheigutn/fix-typos
Fixed a few copy-paste mistakes
This commit is contained in:
commit
5c240c4d13
@ -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 {
|
||||||
|
@ -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 + '\'' +
|
||||||
|
@ -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";
|
||||||
|
@ -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)
|
||||||
|
@ -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 +
|
||||||
'}';
|
'}';
|
||||||
|
@ -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 +
|
||||||
'}';
|
'}';
|
||||||
|
@ -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 +
|
||||||
|
@ -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 +
|
||||||
|
@ -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 + '\'' +
|
||||||
|
@ -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 +
|
||||||
|
Loading…
Reference in New Issue
Block a user