Class TweetTranslation
- Namespace
- Twikit
- Assembly
- Twikit.dll
Grok によるポストの翻訳(api.x.com/2/grok/translation.json)。TranslateTweetAsync(string, string?) が返します。
public sealed class TweetTranslation
- Inheritance
-
TweetTranslation
- Inherited Members
Constructors
TweetTranslation(string, string, string)
public TweetTranslation(string tweetId, string dstLang, string raw)
Parameters
Properties
Cached
X が全文を 1 回で返したとき true(この翻訳を既に持っていた)、トークンごとにストリームしたとき false。
public bool Cached { get; }
Property Value
ContentType
ツイートなら POST。
public string? ContentType { get; }
Property Value
DstLang
要求した言語コード。
public string DstLang { get; }
Property Value
Entities
X が翻訳に付けたエンティティ。X がキャッシュから返したときだけ入り、生成直後の翻訳では空です。
public JsonObject Entities { get; }
Property Value
Raw
応答本文そのまま(改行区切りの JSON)。
public string Raw { get; }
Property Value
Text
翻訳文。
public string Text { get; }
Property Value
TweetId
翻訳したツイートの ID。
public string TweetId { get; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.