(feat): migrate ttp to mtp
(wip): crypto migration
This commit is contained in:
parent
4e69b8ef77
commit
930663d495
30 changed files with 559 additions and 749 deletions
|
|
@ -11,13 +11,13 @@ import type { RawMessages } from "../values";
|
|||
*/
|
||||
export async function getMessages(
|
||||
send: BoundSendFn,
|
||||
amount: number,
|
||||
offset: number,
|
||||
Amount: number,
|
||||
Offset: number,
|
||||
UserId: number,
|
||||
): Promise<RawMessages> {
|
||||
const messages = await send("messages_get", {
|
||||
amount: amount,
|
||||
offset: offset,
|
||||
const messages = await send("MessagesGet", {
|
||||
Amount,
|
||||
Offset,
|
||||
UserId,
|
||||
});
|
||||
|
||||
|
|
@ -25,5 +25,5 @@ export async function getMessages(
|
|||
throw new Error(messages.type);
|
||||
}
|
||||
|
||||
return messages.data.messages;
|
||||
return messages.data.Messages;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue