Exemple #1
0
        public async Task SendTeamPollMessageAsync()
        {
            var pollMessage = _teamsController.GenerateMessage();

            if (string.IsNullOrEmpty(pollMessage))
            {
                return;
            }

            _likesMessage = _teamsController.LikesMessage();
            var players = await PlayerRepository.GetReadyToPlayAsync();

            await SendMessageAsync(players, pollMessage, MarkupHelper.GetTeamPollMarkup(_teamsController.GetActivePollId()));
        }