private void ChangedString(string text, InlineKeyboardState state) { if (_encoding == Encoding.UTF8) { if (_useChangedStringV2) { _interactiveSession.Push(InlineResponses.ChangedStringUtf8V2(text, state)); } else { _interactiveSession.Push(InlineResponses.ChangedStringUtf8(text, state)); } } else { if (_useChangedStringV2) { _interactiveSession.Push(InlineResponses.ChangedStringV2(text, state)); } else { _interactiveSession.Push(InlineResponses.ChangedString(text, state)); } } }
private void PushChangedString(string text, uint cursor, InlineKeyboardState state) { // TODO (Caian): The *V2 methods are not supported because the applications that request // them do not seem to accept them. The regular methods seem to work just fine in all cases. if (_encoding == Encoding.UTF8) { _interactiveSession.Push(InlineResponses.ChangedStringUtf8(text, cursor, state)); } else { _interactiveSession.Push(InlineResponses.ChangedString(text, cursor, state)); } }