-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ refactor: update message builder #5
- Loading branch information
1 parent
d9bd0dc
commit 75cfea6
Showing
5 changed files
with
69 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
plugin/src/main/groovy/org/bot4j/telegram/message/MessageFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.bot4j.telegram.message; | ||
|
||
public abstract class MessageFactory { | ||
|
||
public static MarkdownBuilder createMarkdownBuilder() { | ||
return new MarkdownBuilder(); | ||
} | ||
|
||
public static HtmlBuilder createHtmlBuilder() { | ||
return new HtmlBuilder(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
plugin/src/main/groovy/org/bot4j/telegram/model/enums/TelegramTextMode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
package org.bot4j.telegram.model.enums; | ||
|
||
// @formatter:off | ||
public enum TelegramTextMode { | ||
|
||
Markdown, MarkdownV2, HTML | ||
Markdown, | ||
MarkdownV2, | ||
HTML | ||
} | ||
// @formatter:on |