Stories
Part of the API Reference.
postStory
Future<Json> postStory(
String businessConnectionId,
InputStoryContent content,
int activePeriod, {
String? caption,
ParseMode? parseMode,
List<Json>? captionEntities,
List<Json>? areas,
bool? postToChatPage,
bool? protectContent,
}) async {
Posts a new Telegram Story on behalf of a connected business account.
editStory
Future<Json> editStory(
String businessConnectionId,
int storyId,
InputStoryContent content, {
String? caption,
ParseMode? parseMode,
List<Json>? captionEntities,
List<Json>? areas,
}) async {
Edits a previously posted Telegram Story.
deleteStory
Future<bool> deleteStory(String businessConnectionId, int storyId) async =>
Deletes a previously posted Telegram Story.
repostStory
Future<Json> repostStory(
String businessConnectionId,
int fromChatId,
int fromStoryId,
int activePeriod, {
bool? postToChatPage,
bool? protectContent,
}) async =>
Reposts a story from one connected business account to another. Both
accounts must be managed by this bot, and the source story must have
been posted (or reposted) by this bot. Requires the
can_manage_stories business bot right on both accounts. [activePeriod]
must be one of 6 * 3600, 12 * 3600, 86400, or 2 * 86400 seconds.