@mtcute/core 0.9.2 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,6 +8,7 @@ import { MaybeArray, MaybePromise, PartialExcept, PartialOnly } from '../types/i
8
8
  import { BaseTelegramClientOptions } from './base.js';
9
9
  import { ITelegramClient } from './client.types.js';
10
10
  import { start } from './methods/auth/start.js';
11
+ import { CreateGroupResult } from './methods/chats/create-group.js';
11
12
  import { getChatEventLog } from './methods/chats/get-chat-event-log.js';
12
13
  import { getChatMembers } from './methods/chats/get-chat-members.js';
13
14
  import { getForumTopics, GetForumTopicsOffset } from './methods/forums/get-forum-topics.js';
@@ -832,6 +833,7 @@ export interface TelegramClient extends ITelegramClient {
832
833
  *
833
834
  * @param chatId ID of the chat or its username
834
835
  * @param users ID(s) of the user(s) to add
836
+ * @returns List of users that were failed to be invited (may be empty)
835
837
  */
836
838
  addChatMembers(chatId: InputPeerLike, users: MaybeArray<InputPeerLike>, params: {
837
839
  /**
@@ -841,7 +843,7 @@ export interface TelegramClient extends ITelegramClient {
841
843
  * @default 100
842
844
  */
843
845
  forwardCount?: number;
844
- }): Promise<void>;
846
+ }): Promise<tl.RawMissingInvitee[]>;
845
847
  /**
846
848
  * Archive one or more chats
847
849
  *
@@ -914,7 +916,7 @@ export interface TelegramClient extends ITelegramClient {
914
916
  * @default 0 (i.e. messages don't expire)
915
917
  */
916
918
  ttlPeriod?: number;
917
- }): Promise<Chat>;
919
+ }): Promise<CreateGroupResult>;
918
920
  /**
919
921
  * Create a new supergroup
920
922
  *