C# Class SanderVantEinde.TelegramBot.TelegramBot

Inheritance: ReplyFactory
Show file Open project: sandervanteinde/TelegramBot Class Usage Examples

Private Properties

Property Type Description
CheckDir void
CheckUpdate Task
GetBot void
GetUpdates Task>
Print void
Run Task
SetupURLs void

Public Methods

Method Description
AddQueuedMessage ( Task task ) : void
LoggingPathForDate ( ) : string
LoggingPathForDate ( System.DateTime date ) : string
PrintError ( string msg ) : void
PrintNotification ( string msg ) : void
PrintSuccess ( string msg ) : void
PrintWarning ( string msg ) : void
Start ( ) : void
Stop ( ) : void
TelegramBot ( string apikey ) : Newtonsoft.Json

Private Methods

Method Description
CheckDir ( ) : void
CheckUpdate ( ) : Task
GetBot ( ) : void
GetUpdates ( ) : Task>
Print ( object msg, ConsoleColor color = ConsoleColor.White ) : void
Run ( ) : Task
SetupURLs ( string apikey ) : void

Method Details

AddQueuedMessage() public method

public AddQueuedMessage ( Task task ) : void
task Task
return void

LoggingPathForDate() public method

public LoggingPathForDate ( ) : string
return string

LoggingPathForDate() public method

public LoggingPathForDate ( System.DateTime date ) : string
date System.DateTime
return string

PrintError() public method

public PrintError ( string msg ) : void
msg string
return void

PrintNotification() public method

public PrintNotification ( string msg ) : void
msg string
return void

PrintSuccess() public method

public PrintSuccess ( string msg ) : void
msg string
return void

PrintWarning() public method

public PrintWarning ( string msg ) : void
msg string
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

TelegramBot() public method

public TelegramBot ( string apikey ) : Newtonsoft.Json
apikey string
return Newtonsoft.Json