You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Quickstart/QuickstartGuideRider.md
+56-4Lines changed: 56 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,60 @@ thanks for your interested in using [RxTelegram.Bot](https://github.com/RxTelegr
14
14
15
15
Before we can get started you need to create a Telegram Bot by visiting [@BotFather](https://t.me/BotFather) with any Telegram client and create a new bot. He will give you an access token which you need to authorize your bot at every request, but do not worry we will handle this for you.
16
16
17
-
## 2.
18
-
> Comming soon!
17
+
## 2. Hello World - by clicking
19
18
20
-
## 3.
21
-
> Comming soon!
19
+
This Tutotial will not explain how to get Rider installed, but you need a working Rider installation so go and set it up. It is quite simple just ask any search engine and you will find many tutorial or click [here](https://www.jetbrains.com/help/rider/Installation_guide.html) follow the offical tutorial by Jetbrains.
20
+
21
+
So since you have a running Rider installation, lets begin.
22
+
23
+
### 2.1 Create a Project
24
+
25
+
First of all you have to create a new "Console Application" as shown in the video below.
26
+

27
+
28
+
### 2.2 Install RxTelegram.Bot
29
+
30
+
Now you have to install the [RxTelegram.Bot](https://github.com/RxTelegram/RxTelegram.Bot) Nuget package as shown in the video below.
$"Hello, World! I am bot number {me.Id}. My name is {me.FirstName}."
50
+
);
51
+
}
52
+
}
53
+
}
54
+
```
55
+
56
+
## 3. Run your programm
57
+
58
+
The last step is quid simple. Just click on the "Bug" button and your awesome Project will start.
59
+

60
+
61
+
## Troubleshooting
62
+
63
+
### Invalid Bot Token
64
+
65
+
```text
66
+
Unhandled exception. RxTelegram.Bot.Exceptions.InvalidTokenException: The given bot token is not valid. See "https://core.telegram.org/bots/api#authorizing-your-bot" for further information. Token was: ACCESS_TOKEN_HERE
67
+
at RxTelegram.Bot.BotInfo.ValidateToken(String token)
68
+
at RxTelegram.Bot.BotInfo..ctor(String token)
69
+
at RxTelegram.Bot.TelegramBot..ctor(String token)
70
+
at Awesome.Program.Main() in C:\Users\nikwe\Downloads\asf\Program.cs:line 7
71
+
```
72
+
73
+
If you get an Exception like this it is most likely that you did not replaced the access token in the code sample or you copied the wrong one.
0 commit comments