Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

The createNewStickerSet seems to be failing 馃悶 #58

Closed
HeySreelal opened this issue Mar 31, 2023 · 1 comment 路 Fixed by #59
Closed

The createNewStickerSet seems to be failing 馃悶 #58

HeySreelal opened this issue Mar 31, 2023 · 1 comment 路 Fixed by #59
Assignees
Labels
bug Something isn't working

Comments

@HeySreelal
Copy link
Owner

Sample code:

  final x = await bot.api.uploadStickerFile(
    chatId,
    InputFile.fromFile(File("./example/sticker.png")),
    StickerFormat.static,
  );

  await bot.api.createNewStickerSet(
    userId: chatId,
    name: 'somepackname_by_televersebot',
    title: 'Awesome Pack',
    stickerFormat: StickerFormat.static,
    stickers: [
      InputSticker(
        sticker: InputFile.fromFileId(x.fileId),
        emojis: ["馃崊", "馃崙"],
      )
    ],
  );

Note

This issue is a part of #57

@HeySreelal HeySreelal self-assigned this Mar 31, 2023
@HeySreelal HeySreelal added the bug Something isn't working label Mar 31, 2023
@HeySreelal
Copy link
Owner Author

Error that occured:
HttpException [400]: Bad Request: can't parse InputSticker: sticker not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant