payButton<T> method

KeyboardBuilder payButton<T>({
  1. required T hash,
})

VK Pay button, occupies the entire keyboard width

Accepts generic Map or String

builder.payButton<String>(
 hash: {
  "action": "transfer-to-group",
  "group_id": 1,
  "aid": 10
 }
);

Implementation

KeyboardBuilder payButton<T>({required T hash}) {
  final rawHash = hash is Map
      ? Uri.dataFromBytes(List.from(hash.entries)).toString()
      : hash;

  return _addWideButton({'hash': rawHash, 'type': 'vkpay'});
}