Skip to content

Commit 6d48189

Browse files
committed
Added the parameters can_post_stories, can_edit_stories and can_delete_stories to the method promoteChatMember
1 parent b2aaecc commit 6d48189

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

library/src/main/java/com/pengrad/telegrambot/request/PromoteChatMember.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,18 @@ public PromoteChatMember canDeleteMessages(boolean canDeleteMessages) {
3737
return add("can_delete_messages", canDeleteMessages);
3838
}
3939

40+
public PromoteChatMember canPostStories(boolean canPostStories) {
41+
return add("can_post_stories", canPostStories);
42+
}
43+
44+
public PromoteChatMember canEditStories(boolean canEditStories) {
45+
return add("can_edit_stories", canEditStories);
46+
}
47+
48+
public PromoteChatMember canDeleteStories(boolean canDeleteStories) {
49+
return add("can_delete_stories", canDeleteStories);
50+
}
51+
4052
/**
4153
* @deprecated Use canManageVideoChats(boolean canManageVideoChats) instead
4254
*/

0 commit comments

Comments
 (0)