-
-
Save MrChrisHammond/c569fbe0a8e6b2bbd5c764caa0677f7a to your computer and use it in GitHub Desktop.
Entry point for Telegram chatbot that allows users to interact with GPT-powered chatbots, triggering humorous conversations, and providing an option to exit.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace TelegramChatBot | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
TelegramGPTBots bots = new TelegramGPTBots(); | |
while (true) | |
{ | |
var prompt = Console.ReadLine(); | |
if(prompt == null) | |
{ | |
Console.WriteLine("Enter something..."); | |
} | |
else if (prompt.StartsWith("BotInteraction")) | |
{ | |
bots.BotInteraction(new List<int> { 0, 1 }); | |
} | |
else if (prompt.StartsWith("Exit")) | |
{ | |
Console.WriteLine("Good bye!"); | |
break; | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment