Giter VIP home page Giter VIP logo

bot-get-by-link's Introduction

bot-get-by-link's People

Contributors

anatoliych avatar prizrak778 avatar

Watchers

 avatar  avatar

bot-get-by-link's Issues

Рефакторинг получения контента из Reddit | Refactoring getting content from Reddit

  1. Переработать загрузку оригинального контента в Reddit | Rework uploading original content on Reddit;
  2. Добавить загрузку контента со сторонних ресурсов в Reddit | Add 3rd Party Content Loading to Reddit; (#72)
  3. Миграция из Newtonsoft.Json в System.Text.Json. (#71)

Или выводить их оригинальную ссылку | Or display their original link;

  • youtub
  • gfycat
  • imgur (partially done)
  • other content

Add a common appsetting.json for all projects

Как оказалось, webApi не видит добавленный appsettings.json, если он указан как ссылка, поэтому с помощью ConfigurationBuilder можно самому прочитать и забиндить (AddConfiguration) нужные файлы.

Частичный рефакторинг | Mini refactoring

  • комментарии для документации с большой буквы;
  • privat set / отсутcтвие set по возможности заменить на init;
  • добавить модификатор sealed к классам без наследников;
  • все регулярные выражения обернуть в IRegexWrapper;
  • поправить ссылки в документации.

Переделать на Task.WhenAll WellApi | Change to Task.WhenAll WellApi

Переделать на Task.WhenAll, c соблюдением порядка артефактов

foreach (var item in post.Attachments)
if (item.Instance is Photo photo)
{
var maxSize = photo.Sizes.Aggregate((a, b) => a.Height + a.Width > b.Height + b.Width ? a : b);
var size = await ProxyHelper.GetSizeContentUrlAsync(maxSize.Url.AbsoluteUri);
urlPicture.Add(new MediaInfo(maxSize.Url.AbsoluteUri, size, MediaType.Photo));
}

Add "/help" command handler for Client.Telegram.Polling

  1. Cделать новый блок в с файле конфигурации: { [название команды]: описание }; (временное решение)
  2. enum CommandName связать с новым блоком конфигурации;
  3. Команда "/help" должна выводить (ru/en):
    3.1. список всех доступных команд;
    3.2. описание бота;
    3.3. поддерживаемые платформы.

P.s: описание можно взять с описания репозитория.
Пример сообщения:
image

Добавить массив картинок и видео.

Тут разве не массив должен быть? Скопом все сразу возвращать.
Это для всех свойств, кроме text

Originally posted by @AnatoliyCh in #11 (comment)

Описание
Свойства ProxyResponseContent должны быть string[], кроме Text.
Создать команду, которая разбивает ответ от прокси, на сообщения для дальнейшей отправки в месенджеры

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.