Skip to content

Commit

Permalink
fix(code): Removed unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
naseif committed Mar 16, 2022
1 parent 6bd7c9e commit ace5bad
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 21 deletions.
1 change: 0 additions & 1 deletion src/structure/TelegramAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ import {
TPollCallback,
TPreCheckoutQueryCallback,
TShippingQueryCallback,
TOnError,
IMessageId,
LocalFile,
ActionType,
Expand Down
2 changes: 1 addition & 1 deletion src/structure/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ export {
editChatInviteLinkOptions,
answerCallbackQueryOptions,
editMessageTextOptions,
editMessageCaptionOptions
editMessageCaptionOptions,
} from "./methodsOptions";
29 changes: 15 additions & 14 deletions src/structure/methodsOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ export interface OptionsBase {
* Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
*/
reply_markup?:
| IInlineKeyboardMarkup
| IReplyKeyboardMarkup
| IReplayKeyboardRemove
| IForceReply
| string;
| IInlineKeyboardMarkup
| IReplyKeyboardMarkup
| IReplayKeyboardRemove
| IForceReply
| string;
}

export interface sendPollOptions extends OptionsBase {
Expand Down Expand Up @@ -432,10 +432,10 @@ export interface setMyCommandsOptions {
* A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault.
*/
scope?:
| IBotCommandScopeBase
| IBotCommandScopeChat
| IBotCommandScopeChatAdministrators
| IBotCommandScopeChatMember;
| IBotCommandScopeBase
| IBotCommandScopeChat
| IBotCommandScopeChatAdministrators
| IBotCommandScopeChatMember;

/**
* A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands
Expand Down Expand Up @@ -532,7 +532,8 @@ export interface createChatInviteLinkOptions {
creates_join_request?: boolean;
}

export interface editChatInviteLinkOptions extends createChatInviteLinkOptions { }
export interface editChatInviteLinkOptions
extends createChatInviteLinkOptions {}
export interface answerCallbackQueryOptions {
/**
* Text of the notification. If not specified, nothing will be shown to the user, 0-200 characters
Expand All @@ -549,7 +550,7 @@ export interface answerCallbackQueryOptions {
/**
* The maximum amount of time in seconds that the result of the callback query may be cached client-side. Telegram apps will support caching starting in version 3.14. Defaults to 0.
*/
cache_time?: number
cache_time?: number;
}

export interface editMessageTextOptions {
Expand Down Expand Up @@ -580,7 +581,7 @@ export interface editMessageTextOptions {
/**
* A JSON-serialized object for an inline keyboard.
*/
reply_markup?: IInlineKeyboardMarkup | string
reply_markup?: IInlineKeyboardMarkup | string;
}

export interface editMessageCaptionOptions {
Expand All @@ -607,5 +608,5 @@ export interface editMessageCaptionOptions {
/**
* A JSON-serialized object for an inline keyboard.
*/
reply_markup?: IInlineKeyboardMarkup | string
}
reply_markup?: IInlineKeyboardMarkup | string;
}
5 changes: 0 additions & 5 deletions src/structure/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ import {
IChosenInlineResult,
ICallbackQuery,
IChatJoinRequest,
IAudio,
IDocument,
IPhotoSize,
IUser,
IVideo,
} from "../types";

export type TMessageCallback = (message: IMessage) => void;
Expand Down

0 comments on commit ace5bad

Please sign in to comment.