Table of Contents

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

tweetId string
dstLang string
raw string

Properties

Cached

X が全文を 1 回で返したとき true(この翻訳を既に持っていた)、トークンごとにストリームしたとき false。

public bool Cached { get; }

Property Value

bool

ContentType

ツイートなら POST。

public string? ContentType { get; }

Property Value

string

DstLang

要求した言語コード。

public string DstLang { get; }

Property Value

string

Entities

X が翻訳に付けたエンティティ。X がキャッシュから返したときだけ入り、生成直後の翻訳では空です。

public JsonObject Entities { get; }

Property Value

JsonObject

Raw

応答本文そのまま(改行区切りの JSON)。

public string Raw { get; }

Property Value

string

Text

翻訳文。

public string Text { get; }

Property Value

string

TweetId

翻訳したツイートの ID。

public string TweetId { get; }

Property Value

string

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.