Skip to content

Startup

immmdreza edited this page Jul 2, 2021 · 1 revision

Install

First of all install Flamingo using Nuget: https://www.nuget.org/packages/Flamingo

To start using Flamingo simply create an instance of FlamingoCore.

Don't forget to add the reference

using Flamingo

You don't have to pass anything necessary to FlamingoCore constructor at the moment.

Second important step is to pass your bot token to the Flamingo and initialize your bot.

var flamingo = new FlamingoCore();

await flamingo.InitBot("your bot token should be here");

InitBot is an async method and should be awaited!

After that, your bot user info are always available from flamingo with flamingo.BotInfo.

Try writing it in console.

Console.WriteLine($"Connected to {flamingo.BotInfo.FirstName}")

That all for now!

What's next?

Setup your handlers

Flamingo Framework written in pure c#, install from Nuget

Clone this wiki locally