mirror of
https://github.com/valitydev/alert-tg-bot.git
synced 2024-11-06 01:55:23 +00:00
Fix options order (#27)
This commit is contained in:
parent
bf334805d9
commit
e70501ae2d
@ -87,7 +87,7 @@ public class InlineHandler implements CommonHandler<AnswerInlineQuery> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
List<InlineQueryResultArticle> queryResultArticleListCopy = queryResultArticleList;
|
List<InlineQueryResultArticle> queryResultArticleListCopy = queryResultArticleList;
|
||||||
queryResultArticleListCopy.sort(Comparator.comparingInt(q -> q.getId().length()));
|
queryResultArticleListCopy.sort(Comparator.comparingInt(q -> q.getTitle().length()));
|
||||||
if (queryResultArticleListCopy.size() > MAX_INLINE_LIMIT) {
|
if (queryResultArticleListCopy.size() > MAX_INLINE_LIMIT) {
|
||||||
queryResultArticleListCopy = queryResultArticleListCopy.subList(0, MAX_INLINE_LIMIT);
|
queryResultArticleListCopy = queryResultArticleListCopy.subList(0, MAX_INLINE_LIMIT);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user