Skip to content

Instantly share code, notes, and snippets.

@MrChrisHammond
Created October 13, 2023 16:37
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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.
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