techlift-tech / TelegramBotForPokerAnalysis

0 stars 0 forks source link

Outgoing Messages and Flow #8

Open palashjhabak opened 3 years ago

palashjhabak commented 3 years ago
disha-2401 commented 3 years ago

we could send all data in form of buttons so that users don't have to type everything manually. tell me more about buyin request scenario I can't understand the flow. also as for displaying accept/reject button, we could just create two buttons whenever this scenario happens, when user clicks one of the buttons we will process buyin request.

disha-2401 commented 3 years ago

@palashjhabak Can you give me details about API from which we will get data and show it to user, I'll start working on that

palashjhabak commented 3 years ago

@disha-2401 https://app.swaggerhub.com/apis/techlift/poker-management/v1 find the link to the API documentation. It has all the needed APIs to handle the current workflow. This is just the API documentation so that you can get started with your code.

disha-2401 commented 3 years ago

we can set a webhook for one controller, but how can we call all these controllers? we can call different controllers using two approaches

  1. using HttpClient and then make requests to the appropriate controller.
  2. redirecting from one base controller to another using the RedirectToAction() method.
disha-2401 commented 3 years ago

@disha-2401 https://app.swaggerhub.com/apis/techlift/poker-management/v1 find the link to the API documentation. It has all the needed APIs to handle the current workflow. This is just the API documentation so that you can get started with your code.

@palashjhabak so we will make these specified requests or we are handling it ourselves?

disha-2401 commented 3 years ago

suppose the user enters "/todays_profit" then we will make a request to that API and process and forward message according to data we get in response.

palashjhabak commented 3 years ago

@disha-2401 yes you are correct