Skip to content

Commit 6efe3aa

Browse files
committed
Added the method deleteStory, allowing bots to delete stories they had previously posted on behalf of a managed business account.
1 parent aeb4fe5 commit 6efe3aa

File tree

1 file changed

+16
-0
lines changed
  • library/src/main/java/com/pengrad/telegrambot/request/business

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.pengrad.telegrambot.request.business
2+
3+
import com.pengrad.telegrambot.request.KBaseRequest
4+
import com.pengrad.telegrambot.response.BaseResponse
5+
import com.pengrad.telegrambot.utility.kotlin.requestParameter
6+
7+
@Suppress("unused")
8+
class DeleteStory(
9+
businessConnectionId: String,
10+
storyId: Int
11+
): KBaseRequest<DeleteStory, BaseResponse>(BaseResponse::class) {
12+
13+
val businessConnectionId: String by requestParameter(businessConnectionId, customParameterName = "business_connection_id")
14+
val storyId: Int by requestParameter(storyId, customParameterName = "story_id")
15+
16+
}

0 commit comments

Comments
 (0)