-
Notifications
You must be signed in to change notification settings - Fork 0
Startup
immmdreza edited this page Jul 2, 2021
·
1 revision
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 FlamingoYou 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!