DEV Community

Cover image for Develop a LINE Bot in C# for Beginner Part 1 : Set up your first bot

Develop a LINE Bot in C# for Beginner Part 1 : Set up your first bot

Kenichiro Nakamura on February 09, 2018

Overview This is the first of two part articles. In this article, I explain how you can start creating your first LINE Bot in C#. The se...
Collapse
 
yong0011 profile image
Chanon Sae-lee •

Hello Kenichiro,

If I want to split the Blob Storage out from this project, It's will be run perfectly like the past ?

I'm apologize for my stp question , I'm just a beginner of this. lol

Regards.

Collapse
 
kenakamu profile image
Kenichiro Nakamura •

Yes you can delete all the dependencies of storage as it merely stores user information :)

Collapse
 
yong0011 profile image
Chanon Sae-lee •

Thanks a lot Mr.Kenichiro N.

Collapse
 
yong0011 profile image
Chanon Sae-lee •

Mr.Kenichiro, Do you have a topic about LIFF ?

Collapse
 
kenakamu profile image
Kenichiro Nakamura •

I can write a post but what kind of topic you are interested in?

Collapse
 
yong0011 profile image
Chanon Sae-lee •

Just a sample of LIFF with C# MVC to guided the beginner like me.

Best Regards.

Thread Thread
 
kenakamu profile image
Kenichiro Nakamura •
Thread Thread
 
kenakamu profile image
Kenichiro Nakamura •

MVC or not doesn't matter much as its HTML/Javascript

Collapse
 
jamesaq12wsx profile image
James Lin •

Hi, thank you for making this tutorial, I'm a beginner, I follow the tutorial, but I get an error.

System.FormatException: No valid combination of account information found.

Did I miss anything?

Collapse
 
kenakamu profile image
Kenichiro Nakamura •

Could you let me know where exactly you see the error?

Collapse
 
jamesaq12wsx profile image
James Lin • • Edited

Sure
First when I run the project and I get this error message on web site, I think this is what you want me to ignore.
start error

And when I user simulator to send message, there is no reply but I get error message on terminal
simulator error

Btw, the StorageConnectionString I use my cosmo DB connect string.

Thanks

Thread Thread
 
kenakamu profile image
Kenichiro Nakamura •

It's for Azure Storage, not CosmosDB. Please provision Storage Account and give the bot storage connection.

Thread Thread
 
jamesaq12wsx profile image
James Lin •

It works now, thanks.

Collapse
 
goga17 profile image
goga17 • • Edited

Solution template and simulator

Where is this option, where I have to do this.

Okay I get it.

Collapse
 
kenakamu profile image
Kenichiro Nakamura •

Sorry for delay. I wrote blog articles regarding to this. But now i have new simulator and I will write a blog about it soon.

Collapse
 
kusumy profile image
kusumy •

Hi, i am still beginner
and I want to create a .NET application (ex. console application) that send messages to LINE Group.

What do i need to do the job?

Regards

Collapse
 
kenakamu profile image
Kenichiro Nakamura •

Hi @kusumy !

If you are talking about BOT (Line Messaging API), I recommend you to grab C# SDK for Messaging API and write console app, but the thing is you need to know the "group id" where the bot resides. Therefore you still need to create a web api to receive bot message to garb those group id. What is your plan exactly?