(
client: TelegramClient,
target: any
)
| 259 | |
| 260 | private static async safeGetEntity( |
| 261 | client: TelegramClient, |
| 262 | target: any |
| 263 | ): Promise<any | null> { |
| 264 | try { |
| 265 | return await client.getEntity(target); |
| 266 | } catch { |
| 267 | return null; |
| 268 | } |
| 269 | } |
| 270 | |
| 271 | private static async safeGetInputEntity( |
| 272 | client: TelegramClient, |
| 273 | target: any |
no outgoing calls
no test coverage detected