Skip to content

Commit 8eb50e4

Browse files
committed
Fix typo
1 parent 3781d59 commit 8eb50e4

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

library/src/main/java/com/pengrad/telegrambot/request/CopyMessage.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class CopyMessage private constructor(
3131
)
3232

3333
/**
34-
* Backwards-compatability for Java code
34+
* Backwards-compatibility for Java code
3535
*/
3636
constructor(chatId: JavaLong, fromChatId: JavaLong, messageId: JavaInteger) : this(
3737
chatId = chatId.toLong(),
@@ -51,7 +51,7 @@ class CopyMessage private constructor(
5151
)
5252

5353
/**
54-
* Backwards-compatability for Java code
54+
* Backwards-compatibility for Java code
5555
*/
5656
constructor(channelUsername: String, fromChatId: JavaLong, messageId: JavaInteger) : this(
5757
channelUsername = channelUsername,
@@ -71,7 +71,7 @@ class CopyMessage private constructor(
7171
)
7272

7373
/**
74-
* Backwards-compatability for Java code
74+
* Backwards-compatibility for Java code
7575
*/
7676
constructor(chatId: JavaLong, fromChannelUsername: String, messageId: JavaInteger) : this(
7777
chatId = chatId.toLong(),
@@ -91,7 +91,7 @@ class CopyMessage private constructor(
9191
)
9292

9393
/**
94-
* Backwards-compatability for Java code
94+
* Backwards-compatibility for Java code
9595
*/
9696
constructor(channelUsername: String, fromChannelUsername: String, messageId: JavaInteger) : this(
9797
channelUsername = channelUsername,
@@ -118,7 +118,7 @@ class CopyMessage private constructor(
118118
}
119119

120120
/**
121-
* Backwards-compatability for Java code
121+
* Backwards-compatibility for Java code
122122
*/
123123
@Suppress("DEPRECATION")
124124
@Deprecated("Use constructor with chatId and fromChatId or channelUsername and fromChannelUsername instead", ReplaceWith("ForwardMessage(chatId, fromChatId, messageId)"))

library/src/main/java/com/pengrad/telegrambot/request/ForwardMessage.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class ForwardMessage private constructor(
2929
)
3030

3131
/**
32-
* Backwards-compatability for Java code
32+
* Backwards-compatibility for Java code
3333
*/
3434
constructor(chatId: JavaLong, fromChatId: JavaLong, messageId: JavaInteger) : this(
3535
chatId = chatId.toLong(),
@@ -49,7 +49,7 @@ class ForwardMessage private constructor(
4949
)
5050

5151
/**
52-
* Backwards-compatability for Java code
52+
* Backwards-compatibility for Java code
5353
*/
5454
constructor(channelUsername: String, fromChatId: JavaLong, messageId: JavaInteger) : this(
5555
channelUsername = channelUsername,
@@ -69,7 +69,7 @@ class ForwardMessage private constructor(
6969
)
7070

7171
/**
72-
* Backwards-compatability for Java code
72+
* Backwards-compatibility for Java code
7373
*/
7474
constructor(chatId: JavaLong, fromChannelUsername: String, messageId: JavaInteger) : this(
7575
chatId = chatId.toLong(),
@@ -89,7 +89,7 @@ class ForwardMessage private constructor(
8989
)
9090

9191
/**
92-
* Backwards-compatability for Java code
92+
* Backwards-compatibility for Java code
9393
*/
9494
constructor(channelUsername: String, fromChannelUsername: String, messageId: JavaInteger) : this(
9595
channelUsername = channelUsername,
@@ -116,7 +116,7 @@ class ForwardMessage private constructor(
116116
}
117117

118118
/**
119-
* Backwards-compatability for Java code
119+
* Backwards-compatibility for Java code
120120
*/
121121
@Suppress("DEPRECATION")
122122
@Deprecated("Use constructor with chatId and fromChatId or channelUsername and fromChannelUsername instead", ReplaceWith("ForwardMessage(chatId, fromChatId, messageId)"))

library/src/main/java/com/pengrad/telegrambot/request/SendGift.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class SendGift private constructor(
3636
)
3737

3838
/**
39-
* Backwards compatability to constructor with userId
39+
* Backwards compatibility to constructor with userId
4040
*/
4141
@Deprecated("Use constructor(chatId, giftId) instead", ReplaceWith("SendGift(userId, giftId)"))
4242
operator fun invoke(userId: Long, giftId: String) =

0 commit comments

Comments
 (0)