Giter Site home page Giter Site logo

goodboytatbot's People

Contributors

markhuntdev avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

goodboytatbot's Issues

Enhance translation of Google's API

As I know know Google returns several translations. Give to the user ability to choose better translation by himself/herself.
For example:
"I found several translation, choose a better one:

  1. Hello, World! (some-link to choose this translation)
  2. Hi, World! (some-link to choose this translation)"

Сделать Mock API телеграма

Сделать mock API телеграма, чтобы можно было тестировать локально без привязки к телеграму. А также, гонять интеграционные тесты.

Private Chats: translate messages only when markers are used

There are two markers (hashtags) that bot should recognize:

  • #перевод
  • #тәрҗемә

Cases:

  • when message contains #перевод hashtag then message should be translated from Tatar to Russian
  • when message contains #тәрҗемә hashtag then message should be translated from Russian to Tatar
  • when #перевод hashtag links to some message as a reply, that replied message should be translated from Tatar to Russian
  • when #тәрҗемә hashtag links to some message as a reply, that replied message should be translated from Russian to Tatar

Google Client falls with exception

org.springframework.web.client.ResourceAccessException: I/O error on POST request for "": null; nested exception is org.apache.http.client.ClientProtocolException
	at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:791) ~[spring-web-5.3.24.jar:5.3.24]
	at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:717) ~[spring-web-5.3.24.jar:5.3.24]
	at org.springframework.web.client.RestTemplate.postForEntity(RestTemplate.java:474) ~[spring-web-5.3.24.jar:5.3.24]
	at tatbash.translation.google.GoogleTranslateClient.requestTranslation(GoogleTranslateClient.java:70) ~[classes/:na]
	at tatbash.translation.google.GoogleTranslateClient.translate(GoogleTranslateClient.java:31) ~[classes/:na]
	at tatbash.translation.TranslationService.translate(TranslationService.java:35) ~[classes/:na]
	at tatbash.telegram.TranslationDelegator.translate(TranslationDelegator.java:20) ~[classes/:na]
	at tatbash.telegram.TelegramBotExecutor.onUpdateReceived(TelegramBotExecutor.java:33) ~[classes/:na]

Group Chats: translate messages only when markers are used

This feature should work similar to #16.

There are two markers (hashtags) that bot should recognize:

  • #перевод
  • #тәрҗемә

Cases:

  • when message contains #перевод hashtag then message should be translated from Tatar to Russian
  • when message contains #тәрҗемә hashtag then message should be translated from Russian to Tatar
  • when #перевод hashtag links to some message as a reply, that replied message should be translated from Tatar to Russian
  • when #тәрҗемә hashtag links to some message as a reply, that replied message should be translated from Russian to Tatar

Bot mustn't translate messages automatically in group chats (see #17).

Remove circular dependency between TelegramBotExecutor and TranslationDelegator

***************************
APPLICATION FAILED TO START
***************************

Description:

The dependencies of some of the beans in the application context form a cycle:

┌─────┐
|  telegramBotExecutor defined in file [/mydata/projects/tatbash-bot/target/classes/tatbash/telegram/TelegramBotExecutor.class]
↑     ↓
|  translationDelegator defined in file [/mydata/projects/tatbash-bot/target/classes/tatbash/telegram/TranslationDelegator.class]
└─────┘


Action:

Relying upon circular references is discouraged and they are prohibited by default. Update your application to remove the dependency cycle between beans. As a last resort, it may be possible to break the cycle automatically by setting spring.main.allow-circular-references to true.

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.