Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
DinoLeung committed Mar 31, 2024
1 parent 107eca1 commit dc746e1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

- support Telegram API 6.9
- **Breaking** Updated function `telegram:Telegram.sendDice` and function `teledart:Message.replyDice` to accept enum of `DiceEmoji` instead of emoji string
- **Breaking** Updated class `Dice`, `InlineQueryResult`, `MenuButton`, `PassportElementError`, `InputMedia`, `InputMediaWithThumbnail`, `BotCommandScope` to use enum for `type`
- **Breaking** Updated class `Dice`, `InlineQueryResult`, `MenuButton`, `PassportElementError`, `InputMedia`, `InputMediaWithThumbnail`, `BotCommandScope`, `ChatMember` to use enum for `emoji`, `type` and `status` fields

## 0.6.1

Expand Down
15 changes: 0 additions & 15 deletions lib/src/telegram/models/inline_query_result.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,21 +79,6 @@ extension InlineQueryResultTypeExtenson on InlineQueryResultType {
/// https://core.telegram.org/bots/api#inlinequeryresult
@JsonSerializable(fieldRename: FieldRename.snake)
class InlineQueryResult {
static const typeArticle = 'article';
static const typeAudio = 'audio';
static const typeDocument = 'document';
static const typeGif = 'gif';
static const typeMpeg4Gif = 'mpeg4_gif';
static const typePhoto = 'photo';
static const typeSticker = 'sticker';
static const typeVideo = 'video';
static const typeVoice = 'voice';
static const typeContact = 'contact';
static const typeGame = 'game';
static const typeLocation = 'location';
static const typeVenue = 'venue';

// String type;
InlineQueryResultType type;
String id;
InlineKeyboardMarkup? replyMarkup;
Expand Down

0 comments on commit dc746e1

Please sign in to comment.