mirror of
				https://github.com/Maks1mS/nestjs-telegraf.git
				synced 2025-10-31 05:52:17 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			537 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			537 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { ModuleMetadata, Type } from '@nestjs/common/interfaces'
 | |
| 
 | |
| export interface TelegrafModuleOptions {
 | |
|   token: string
 | |
|   sitePublicUrl?: string
 | |
| }
 | |
| 
 | |
| export interface TelegrafOptionsFactory {
 | |
|   createTelegrafOptions(): TelegrafModuleOptions
 | |
| }
 | |
| 
 | |
| export interface TelegrafModuleAsyncOptions
 | |
|   extends Pick<ModuleMetadata, 'imports'> {
 | |
|   useExisting?: Type<TelegrafOptionsFactory>
 | |
|   useClass?: Type<TelegrafOptionsFactory>
 | |
|   useFactory?: (
 | |
|     ...args: any[]
 | |
|   ) => Promise<TelegrafModuleOptions> | TelegrafModuleOptions
 | |
|   inject?: any[]
 | |
| }
 |