Skip to content

Commit

Permalink
Update MTKruto
Browse files Browse the repository at this point in the history
  • Loading branch information
rojvv committed Jun 10, 2024
1 parent d9f3fbf commit f80617e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
1 change: 1 addition & 0 deletions allowed_methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export const ALLOWED_METHODS = [
"sendDice",
"sendVenue",
"sendPoll",
"sendInvoice",
"editMessageText",
"editInlineMessageText",
"editMessageMedia",
Expand Down
7 changes: 7 additions & 0 deletions client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import {
MessageContact,
MessageDice,
MessageDocument,
MessageInvoice,
MessageLocation,
MessagePhoto,
MessagePoll,
Expand Down Expand Up @@ -849,6 +850,12 @@ export class Client<C extends Context = Context> extends Composer<C> {
return this.#request("sendPoll", args);
}

sendInvoicе(
...args: Parameters<Client_["sendInvoice"]>
): Promise<MessageInvoice> {
return this.#request("sendInvoice", args);
}

editMessageText(
...args: Parameters<Client_["editMessageText"]>
): Promise<MessageText> {
Expand Down
11 changes: 6 additions & 5 deletions client/deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export type {
MessageContact,
MessageDice,
MessageDocument,
MessageInvoice,
MessageLocation,
MessagePhoto,
MessagePoll,
Expand All @@ -56,10 +57,10 @@ export type {
VideoChat,
VideoChatActive,
VideoChatScheduled,
} from "https://deno.land/x/mtkruto@0.1.708/mod.ts";
export { cleanObject } from "https://deno.land/x/mtkruto@0.1.708/utilities/0_object.ts";
export { iterateReadableStream } from "https://deno.land/x/mtkruto@0.1.708/utilities/1_misc.ts";
export { Composer } from "https://deno.land/x/mtkruto@0.1.708/client/1_composer.ts";
export { resolve } from "https://deno.land/x/mtkruto@0.1.708/client/0_utilities.ts";
} from "https://deno.land/x/mtkruto@0.2.11/mod.ts";
export { cleanObject } from "https://deno.land/x/mtkruto@0.2.11/utilities/0_object.ts";
export { iterateReadableStream } from "https://deno.land/x/mtkruto@0.2.11/utilities/1_misc.ts";
export { Composer } from "https://deno.land/x/mtkruto@0.2.11/client/1_composer.ts";
export { resolve } from "https://deno.land/x/mtkruto@0.2.11/client/0_utilities.ts";
export type { AllowedMethod } from "../allowed_methods.ts";
export { transform } from "../transform.ts";

0 comments on commit f80617e

Please sign in to comment.